ports/misc/tlci/files/patch-src_lexer.l
Muhammad Moinur Rahman 77f8df9a0d misc/tlci: Fix build with llvm15
Approved by:	portmgr (blanket)
2023-06-11 21:16:23 +02:00

20 lines
707 B
Text

--- 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;