From: Marc Autret Date: Tue, 28 Aug 2001 20:48:17 +0000 (+0000) Subject: * src/output.c (output_actions): Clean up. X-Git-Tag: pre-merge-of-1-29-branch~48 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b33160bf452d50564fea2a5c84b9cd0a77937d2f?ds=sidebyside * src/output.c (output_actions): Clean up. * src/reader.c (reader): Clean up, CPP-out useless code. --- diff --git a/ChangeLog b/ChangeLog index 6314c2f7..a455236e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-28 Marc Autret + + * src/output.c (output_actions): Clean up. + * src/reader.c (reader): Clean up, CPP-out useless code. + 2001-08-28 Pascal Bart * src/output.c (output): Copy attrs_obstack in the '%%definitions' diff --git a/src/reader.c b/src/reader.c index aa6ec516..282611d7 100644 --- a/src/reader.c +++ b/src/reader.c @@ -2008,22 +2008,26 @@ reader (void) /* Read the declaration section. Copy %{ ... %} groups to TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left, etc. found there. */ - /* obstack_1grow (&table_obstack, '\n'); */ - read_declarations (); /* Start writing the guard and action files, if they are needed. */ - /* output_headers (); */ +#if 0 + output_headers (); +#endif /* Read in the grammar, build grammar in list form. Write out guards and actions. */ readgram (); /* Now we know whether we need the line-number stack. If we do, write its type into the .tab.h file. */ - /* if (defines_flag) - reader_output_yylsp (&defines_obstack); */ +#if 0 + if (defines_flag) + reader_output_yylsp (&defines_obstack); +#endif /* Write closing delimiters for actions and guards. */ - /* output_trailers (); */ - /* if (locations_flag) - obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n"); */ +#if 0 + output_trailers (); + if (locations_flag) + obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n"); +#endif /* Assign the symbols their symbol numbers. Write #defines for the token symbols into FDEFINES if requested. */ packsymbols ();