/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by marc, Fri Aug 31 16:01:53 2001 UTC revision 1.51 by pascal, Fri Aug 31 16:56:44 2001 UTC
# Line 129  struct obstack output_obstack; Line 129  struct obstack output_obstack;
129  /* FIXME. */  /* FIXME. */
130    
131  static inline void  static inline void
132  output_table_data (struct obstack* oout,  output_table_data (struct obstack *oout,
133                     short* table_data,                     short *table_data,
134                     short first,                     short first,
135                     short begin,                     short begin,
136                     short end)                     short end)
# Line 969  output_parser (void) Line 969  output_parser (void)
969      }      }
970    fskel = xfopen (skeleton, "r");    fskel = xfopen (skeleton, "r");
971    
972    /* New output code. */    /* New output code.  */
973    line = 1;    line = 1;
974    c = getc (fskel);    c = getc (fskel);
975    while (c != EOF)    while (c != EOF)
# Line 983  output_parser (void) Line 983  output_parser (void)
983          }          }
984        else if ((c = getc (fskel)) == '%')        else if ((c = getc (fskel)) == '%')
985          {          {
986            /* Read the macro. */            /* Read the macro.  */
987            const char* macro_key = 0;            const char *macro_key = 0;
988            const char* macro_value = 0;            const char *macro_value = 0;
989            while (isalnum (c = getc (fskel)) || c == '_')            while (isalnum (c = getc (fskel)) || c == '_')
990              obstack_1grow (&macro_obstack, c);              obstack_1grow (&macro_obstack, c);
991            obstack_1grow (&macro_obstack, 0);            obstack_1grow (&macro_obstack, 0);
992    
993            /* Output the right value, or see if it's something special. */            /* Output the right value, or see if it's something special.  */
994            macro_key = obstack_finish (&macro_obstack);            macro_key = obstack_finish (&macro_obstack);
995            macro_value = macro_find (macro_key);            macro_value = macro_find (macro_key);
996            if (macro_value)            if (macro_value)
# Line 1013  output_parser (void) Line 1013  output_parser (void)
1013          obstack_1grow (&table_obstack, '%');          obstack_1grow (&table_obstack, '%');
1014      }      }
1015    
1016    /* End. */    /* End.  */
1017    xfclose (fskel);    xfclose (fskel);
1018  }  }
1019    

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26