Skip to content

Commit

Permalink
include parsers.h for yyerror proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 10, 2024
1 parent 70f1be5 commit 5878b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logalert-x/lex.l
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <string.h>
#include "parser.h"
#include "parsers.h"

unsigned int in_block = 0;
extern unsigned int lineno;
Expand All @@ -26,7 +27,7 @@ extern unsigned int lineno;
in_block = 0;
printf("finished block\n");
} else {
yyerror("ERRO: NOT in block");
yyerror("ERROR: NOT in block");
}
}
<INBLOCK>match|regex { printf("OPA MATCH %d\n",in_block); return MATCH; }
Expand Down

0 comments on commit 5878b0a

Please sign in to comment.