X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/08ac16e49d67a40f0f8127cf43f8a166626615dc..4c0777b31ef7ddba6eb0fa4ca62cf5b9423fe1c9:/src/scan.l diff --git a/src/scan.l b/src/scan.l index bb6564b..54cea88 100644 --- a/src/scan.l +++ b/src/scan.l @@ -17,15 +17,17 @@ * along with this program. If not, see . */ +#include #include "parse.h" } -%option noyywrap bison-locations reentrant +%option nodefault noyywrap bison-locations reentrant never-interactive %option extra-type="_Bool" +%option prefix="cdecl__yy" %{ #define lex_error(msg) do { \ - yyerror(yylloc, NULL, NULL, (msg)); \ + cdecl__yyerror(yylloc, NULL, NULL, (msg)); \ return T_LEX_ERROR; \ } while(0)