* src/reader.c (reader): Remove calls to 'output_headers' and
authorRobert Anisko <robert@lrde.epita.fr>
Sat, 25 Aug 2001 15:13:42 +0000 (15:13 +0000)
committerRobert Anisko <robert@lrde.epita.fr>
Sat, 25 Aug 2001 15:13:42 +0000 (15:13 +0000)
commitb6610515d520cfefa5e2ead46538b823e7bd21c2
tree606faee83b09a93c20d04822a52b2b9393cf5b9e
parent26f609ffc36f35dd84da3d1df8ff716a6c01581c
* src/reader.c (reader): Remove calls to 'output_headers' and
'output_trailers'. Remove some C output.
(readgram): Disable a piece of code that was writing a default
definition for 'YYSTYPE'.
(reader_output_yylsp): Remove.
(packsymbols): Output token defintions to a macro.
(copy_definition): Disable C output.
* src/reader.c (parse_macro_decl): New function used to parse macro
declarations.
(copy_string2): Put the body of copy_string into this new function.
Add a parameter to let the caller choose whether he wants to copy the
string delimiters or not.
(copy_string): Be a simple call to copy_string2 with the last argument
bound to true.
(read_declarations): Add case for macro definition.
(copy_identifier): New.
(parse_macro_decl): Read macro identifiers using copy_identifier
rather than lex.
ChangeLog
src/reader.c