]> git.draconx.ca Git - cdecl99.git/blobdiff - src/scan.l
Use the reentrant scanner API.
[cdecl99.git] / src / scan.l
index f0bf30af01022a2f352dcd69e24818db1abbd994..06647de3170551252f3900b4bc49d59ab29bce62 100644 (file)
  #include "parse.h"
 }
 
-%option noyywrap bison-locations
+%option noyywrap bison-locations reentrant
 
 %{
 #define lex_error(msg) do { \
-       yyerror(yylloc, NULL, (msg)); \
+       yyerror(yylloc, NULL, NULL, (msg)); \
        return T_LEX_ERROR; \
 } while(0)
 %}