/[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.138 by akim, Sat Dec 29 14:19:13 2001 UTC revision 1.139 by akim, Sat Dec 29 14:19:31 2001 UTC
# Line 52  typedef struct symbol_list Line 52  typedef struct symbol_list
52  } symbol_list;  } symbol_list;
53    
54  int lineno;  int lineno;
 short *user_toknums;  
55  static symbol_list *grammar;  static symbol_list *grammar;
56  static int start_flag;  static int start_flag;
57  static bucket *startval;  static bucket *startval;
# Line 1567  packsymbols (void) Line 1566  packsymbols (void)
1566    int tokno = 1;    int tokno = 1;
1567    int last_user_token_number;    int last_user_token_number;
1568    
   user_toknums = XCALLOC (short, nsyms + 1);  
1569    symbols = XCALLOC (bucket *, nsyms);    symbols = XCALLOC (bucket *, nsyms);
1570    
1571    max_user_token_number = 256;    max_user_token_number = 256;
# Line 1640  packsymbols (void) Line 1638  packsymbols (void)
1638          }          }
1639    
1640        symbols[bp->value] = bp;        symbols[bp->value] = bp;
       user_toknums[bp->value] = bp->user_token_number;  
1641      }      }
1642    
1643    token_translations_init ();    token_translations_init ();

Legend:
Removed from v.1.138  
changed lines
  Added in v.1.139

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