X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7d27c823deae06e004cc3c55f843964e24f518a7..3067fbef531832df1e43bbd28787655808361eed:/src/gram.c diff --git a/src/gram.c b/src/gram.c index 1df89a02..35302616 100644 --- a/src/gram.c +++ b/src/gram.c @@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA. */ #include "system.h" #include "gram.h" +#include "reader.h" void dummy PARAMS((void)); @@ -52,10 +53,15 @@ int pure_parser; int error_token_number; -/* This is to avoid linker problems which occur on VMS when using GCC, - when the file in question contains data definitions only. */ - void -dummy (void) +ritem_print (FILE *out) { + int i; + fputs ("RITEM\n", out); + for (i = 0; ritem[i]; ++i) + if (ritem[i] > 0) + fprintf (out, " %s", tags[ritem[i]]); + else + fprintf (out, " (rule %d)\n", -ritem[i]); + fputs ("\n\n", out); }