/[bison]/bison/data/glr.c
ViewVC logotype

Diff of /bison/data/glr.c

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

revision 1.12 by akim, Sun Oct 13 14:25:55 2002 UTC revision 1.13 by akim, Sun Oct 13 18:50:40 2002 UTC
# Line 220  static YYLTYPE yyloc_default; Line 220  static YYLTYPE yyloc_default;
220    
221  /* YYFINAL -- State number of the termination state. */  /* YYFINAL -- State number of the termination state. */
222  #define YYFINAL  ]b4_final_state_number[  #define YYFINAL  ]b4_final_state_number[
 #define YYFLAG   ]b4_flag[  
223  #define YYLAST   ]b4_last[  #define YYLAST   ]b4_last[
224    
225  /* YYNTOKENS -- Number of terminals. */  /* YYNTOKENS -- Number of terminals. */
# Line 341  static const ]b4_int_type_for([b4_table] Line 340  static const ]b4_int_type_for([b4_table]
340    ]b4_table[    ]b4_table[
341  };  };
342    
343  /* YYCONFLP[YYPACT[STATE-NUM]] -- pointer into yyconfl of start of list  /* YYCONFLP[YYPACT[STATE-NUM]] -- Pointer into YYCONFL of start of
344     of conflicting reductions corresponding to action entry for state     list of conflicting reductions corresponding to action entry for
345     STATE-NUM in yytable.  0 means no conflicts.  The list in yyconfl     state STATE-NUM in yytable.  0 means no conflicts.  The list in
346     is terminated by a rule number of 0. */     yyconfl is terminated by a rule number of 0.  */
347  static const ]b4_int_type_for([b4_conflict_list_heads])[ yyconflp[] =  static const ]b4_int_type_for([b4_conflict_list_heads])[ yyconflp[] =
348  {  {
349    ]b4_conflict_list_heads[    ]b4_conflict_list_heads[
350  };  };
351    
352  /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated  /* YYCONFL[I] -- lists of conflicting rule numbers, each terminated by
353     by 0, pointed into by YYCONFLP. */     0, pointed into by YYCONFLP.  */
354  ]dnl Do not use b4_int_type_for here, since there are places where  ]dnl Do not use b4_int_type_for here, since there are places where
355  dnl pointers onto yyconfl are taken, which type is "short *".  dnl pointers onto yyconfl are taken, which type is "short *".
356  dnl We probably ought to introduce a type for confl.  dnl We probably ought to introduce a type for confl.
# Line 1591  yyrecoverParseError (yyGLRStack* yystack Line 1590  yyrecoverParseError (yyGLRStack* yystack
1590            /* Something's not right; we shouldn't be here.  */            /* Something's not right; we shouldn't be here.  */
1591            yyFail (yystack, NULL);            yyFail (yystack, NULL);
1592          yyj += *yytokenp;          yyj += *yytokenp;
1593          if (yyj < 0 || yyj > YYLAST || yycheck[yyj] != *yytokenp)          if (yyj < 0 || YYLAST < yyj || yycheck[yyj] != *yytokenp)
1594            {            {
1595              if (yydefact[yystack->yytops.yystates[0]->yylrState] != 0)              if (yydefact[yystack->yytops.yystates[0]->yylrState] != 0)
1596                return;                return;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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