summaryrefslogtreecommitdiff
path: root/misc/tlci/files/patch-src_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tlci/files/patch-src_lexer.l')
-rw-r--r--misc/tlci/files/patch-src_lexer.l20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/tlci/files/patch-src_lexer.l b/misc/tlci/files/patch-src_lexer.l
new file mode 100644
index 000000000000..5abf330cec13
--- /dev/null
+++ b/misc/tlci/files/patch-src_lexer.l
@@ -0,0 +1,20 @@
+--- src/lexer.l.orig 2023-06-11 19:08:30 UTC
++++ src/lexer.l
+@@ -49,7 +49,7 @@ void reset_lexer(void)
+ YY_FLUSH_BUFFER;
+ }
+ /*********************************************************************************/
+-heap_cell_t* get_token_pos()
++heap_cell_t* get_token_pos(void)
+ {
+ return heap_alloc_token_pos(tlci_heap,
+ from_cstring(string_dup(filename)),
+@@ -61,7 +61,7 @@ void yyerror(char *s)
+ printf("%s:%d:%d: \033[31m%s:\033[0m Unexpected '%s'\n", filename, yylineno, tokenpos, s, yytext);
+ }
+ /*********************************************************************************/
+-void switch_to_stdin()
++void switch_to_stdin(void)
+ {
+ filename = "<interactive>";
+ yyin = stdin;