]> git.draconx.ca Git - cdecl99.git/blobdiff - src/scan.l
Fix build with new Bison versions.
[cdecl99.git] / src / scan.l
index bb6564b7d214be4c82b12d89885959cf9afae147..54cea88717622f138a74f11841b73e9170f9f328 100644 (file)
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #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)