aboutsummaryrefslogtreecommitdiff
path: root/src/parser_helper.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:47:46 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:47:46 +0200
commitcc3cf3353f23dd2f87412d42f8c3d52f873711dd (patch)
tree94336a9ccee6451baeca51abff53da7e7e9c6230 /src/parser_helper.c
parentbb261ad231c3683a36d516c4caf9b2a06ce0145f (diff)
downloadek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.tar.gz
ek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.zip
add formatter
Diffstat (limited to 'src/parser_helper.c')
-rw-r--r--src/parser_helper.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/parser_helper.c b/src/parser_helper.c
index 2501f47..c382fca 100644
--- a/src/parser_helper.c
+++ b/src/parser_helper.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+
#include <stdarg.h>
#include <cu/parser.h>
@@ -31,7 +33,7 @@ void parse(struct parser *p, const char *fname, const char *buf)
/* I'm not convinced this is foolproof quite yet, more testing would be nice. */
int next_interesting_feature(YYSTYPE *yylval, YYLTYPE *yylloc, void *scanner,
- struct parser *parser)
+ struct parser *parser)
{
size_t depth = 0;
while (1) {
@@ -68,7 +70,8 @@ struct src_loc to_src_loc(YYLTYPE *yylloc)
return loc;
}
-void yyerror(YYLTYPE *yylloc, void *lexer, struct parser *parser, const char *msg)
+void yyerror(YYLTYPE *yylloc, void *lexer, struct parser *parser,
+ const char *msg)
{
(void)lexer;