X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/08ac16e49d67a40f0f8127cf43f8a166626615dc..1b9e87d8cac4e24034cb4d8f5c42824bac507772:/src/scan.l?ds=sidebyside 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)