From 6e746484fcc55dd81eb15859787b5621691d8562 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 30 Nov 2002 09:20:52 +0000 Subject: [PATCH] Add Yacc Library. gram_error is static. yylex and yyerror must be declared. --- ChangeLog | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 04346a98..d2529512 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,25 @@ +2002-11-30 Paul Eggert + + Add Yacc library, since POSIX requires it. + * doc/bison.texinfo (Yacc Library): New node. Regenerate top menu. + * lib/Makefile.am (lib_LIBRARIES, liby_a_SOURCES): New macros. + * lib/main.c, lib/yyerror.c: New files. + + gram_error can be static; it need not be extern. + * src/reader.h (gram_error): Remove decl. + * src/parse-gram.y (gram_error): Now static. Add static decl. + (print_token_value): Omit parameter names from forward decl, + for consistency. + 2002-11-29 Paul Eggert + * doc/bison.texinfo: Emphasize that yylex and yyerror must + be declared before being used. E.g., one should typically + declare them in the prologue. Use GNU coding style in examples. + Put "const" consistently after the type it modifies. Mention + that C99 supports "inline". Mention that yyerror traditionally + returns "int". + %parse-param and %lex-param now take just one argument, the declaration; the argument name is deduced from the declaration. -- 2.47.2