/[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.135 by akim, Sat Dec 29 14:17:43 2001 UTC revision 1.136 by akim, Sat Dec 29 14:18:32 2001 UTC
# Line 1556  token_translations_init (void) Line 1556  token_translations_init (void)
1556  }  }
1557    
1558    
1559  /*------------------------------------------------------------------.  /*----------------------------------------------------------------.
1560  | Assign symbol numbers, and write definition of token names into   |  | Assign symbol numbers, and write definition of token names into |
1561  | FDEFINES.  Set up vectors TAGS and SPREC of names and precedences |  | FDEFINES.  Set up vectors SYMBOL_TABLE, TAGS of symbols.        |
1562  | of symbols.                                                       |  `----------------------------------------------------------------*/
 `------------------------------------------------------------------*/  
1563    
1564  static void  static void
1565  packsymbols (void)  packsymbols (void)
# Line 1571  packsymbols (void) Line 1570  packsymbols (void)
1570    
1571    tags = XCALLOC (char *, nsyms + 1);    tags = XCALLOC (char *, nsyms + 1);
1572    user_toknums = XCALLOC (short, nsyms + 1);    user_toknums = XCALLOC (short, nsyms + 1);
1573      symbols = XCALLOC (bucket *, nsyms);
1574    
   sprec = XCALLOC (short, nsyms);  
1575    sassoc = XCALLOC (short, nsyms);    sassoc = XCALLOC (short, nsyms);
1576    
1577    max_user_token_number = 256;    max_user_token_number = 256;
# Line 1644  packsymbols (void) Line 1643  packsymbols (void)
1643              max_user_token_number = bp->user_token_number;              max_user_token_number = bp->user_token_number;
1644          }          }
1645    
1646          symbols[bp->value] = bp;
1647        tags[bp->value] = bp->tag;        tags[bp->value] = bp->tag;
1648        user_toknums[bp->value] = bp->user_token_number;        user_toknums[bp->value] = bp->user_token_number;
       sprec[bp->value] = bp->prec;  
1649        sassoc[bp->value] = bp->assoc;        sassoc[bp->value] = bp->assoc;
1650      }      }
1651    

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136

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