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

Diff of /bison/src/reader.c

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

revision 1.129 by akim, Thu Dec 27 18:07:31 2001 UTC revision 1.130 by akim, Thu Dec 27 18:12:48 2001 UTC
# Line 1647  symbols_save (void) Line 1647  symbols_save (void)
1647  {  {
1648    struct obstack tokendefs;    struct obstack tokendefs;
1649    bucket *bp;    bucket *bp;
   char *cp, *symbol;  
   char c;  
1650    obstack_init (&tokendefs);    obstack_init (&tokendefs);
1651    
1652    for (bp = firstsymbol; bp; bp = bp->next)    for (bp = firstsymbol; bp; bp = bp->next)
1653      {      {
1654        symbol = bp->tag;                /* get symbol */        char *symbol = bp->tag;                /* get symbol */
1655    
1656        if (bp->value >= ntokens)        if (bp->value >= ntokens)
1657          continue;          continue;
# Line 1673  symbols_save (void) Line 1671  symbols_save (void)
1671          }          }
1672    
1673        /* Don't #define nonliteral tokens whose names contain periods.  */        /* Don't #define nonliteral tokens whose names contain periods.  */
1674        cp = symbol;        if (strchr (symbol, '.'))
       while ((c = *cp++) && c != '.');  
       if (c != '\0')  
1675          continue;          continue;
1676    
1677        obstack_fgrow2 (&tokendefs, "# define %s\t%d\n",        obstack_fgrow2 (&tokendefs, "# define %s\t%d\n",

Legend:
Removed from v.1.129  
changed lines
  Added in v.1.130

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