From b20d9ed2e7aee8840ba2faf6e5e980ee28a88ad3 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Mon, 4 Nov 1996 21:54:52 +0000 Subject: [PATCH] Add YYLEX and YYEMPTY macros to make byacc look more like bison. Obtained from: Cygnus source tree, with permission. Original commit by Jim Wilson, wilson@cygnus.com. --- usr.bin/yacc/skeleton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index 0dc2e2e50ac2..a35981dc7908 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -60,7 +60,9 @@ char *banner[] = "#define YYBYACC 1", "#define YYMAJOR 1", "#define YYMINOR 9", - "#define yyclearin (yychar=(-1))", + "#define YYLEX yylex()", + "#define YYEMPTY -1", + "#define yyclearin (yychar=(YYEMPTY))", "#define yyerrok (yyerrflag=0)", "#define YYRECOVERING (yyerrflag!=0)", "/* cfront 1.2 defines \"c_plusplus\" instead of \"__cplusplus\" */",