Skip to content

Commit abd0a20

Browse files
ihor-rudandreasabel
authored andcommitted
fix lex_destroy return type
1 parent e0662a9 commit abd0a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/src/BNFC/Backend/C/CFtoBisonC.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ header mode cf = unlines $ concat
137137
, "extern YY_BUFFER_STATE " ++ name ++ "_scan_string(const char *str, yyscan_t scanner);"
138138
, "extern void " ++ name ++ "_delete_buffer(YY_BUFFER_STATE buf, yyscan_t scanner);"
139139
, ""
140-
, "extern void " ++ name ++ "lex_destroy(yyscan_t scanner);"
140+
, "extern int " ++ name ++ "lex_destroy(yyscan_t scanner);"
141141
, "extern char* " ++ name ++ "get_text(yyscan_t scanner);"
142142
, ""
143143
, "extern yyscan_t " ++ name ++ "_initialize_lexer(FILE * inp);"

0 commit comments

Comments
 (0)