/[bison]/bison/src/bison.simple
ViewVC logotype

Diff of /bison/src/bison.simple

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

revision 1.83 by akim, Fri Nov 30 14:00:14 2001 UTC revision 1.84 by eggert, Tue Dec 4 13:29:27 2001 UTC
# Line 163  union yyalloc Line 163  union yyalloc
163       + YYSTACK_GAP_MAX)       + YYSTACK_GAP_MAX)
164  # endif  # endif
165    
166    # if defined (__STDC__) || defined (__cplusplus)
167    #  define YYPOINTER void *
168    # else
169    #  define YYPOINTER char *
170    # endif
171    
172  /* Relocate the TYPE STACK from its old location to the new one.  The  /* Relocate the TYPE STACK from its old location to the new one.  The
173     local variables YYSIZE and YYSTACKSIZE give the old and new number of     local variables YYSIZE and YYSTACKSIZE give the old and new number of
174     elements in the stack, and YYPTR gives the new location of the     elements in the stack, and YYPTR gives the new location of the
# Line 174  union yyalloc Line 180  union yyalloc
180          YYSIZE_T yynewbytes;                                            \          YYSIZE_T yynewbytes;                                            \
181          yymemcpy (yyptr, (char *) (Stack),                              \          yymemcpy (yyptr, (char *) (Stack),                              \
182                    yysize * (YYSIZE_T) sizeof (Type));                   \                    yysize * (YYSIZE_T) sizeof (Type));                   \
183          (Stack) = (Type *) yyptr;                                       \          (Stack) = (Type *) (YYPOINTER) yyptr;                           \
184          yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX;     \          yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX;     \
185          yynewbytes -= yynewbytes % sizeof (union yyalloc);              \          yynewbytes -= yynewbytes % sizeof (union yyalloc);              \
186          yyptr += yynewbytes;                                            \          yyptr += yynewbytes;                                            \
# Line 466  yystrlen (yystr) Line 472  yystrlen (yystr)
472  /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in  /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
473     YYDEST.  */     YYDEST.  */
474  static char *  static char *
475  #   ifndef __cplusplus  #   if defined (__STDC__) || defined (__cplusplus)
476    yystpcpy (char *yydest, const char *yysrc)
477    #   else
478  yystpcpy (yydest, yysrc)  yystpcpy (yydest, yysrc)
479       char *yydest;       char *yydest;
480       const char *yysrc;       const char *yysrc;
 #   else  
 yystpcpy (char *yydest, const char *yysrc)  
481  #   endif  #   endif
482  {  {
483    register char *yyd = yydest;    register char *yyd = yydest;
# Line 965  yyerrlab: Line 971  yyerrlab:
971              yyerror ("parse error; also virtual memory exhausted");              yyerror ("parse error; also virtual memory exhausted");
972          }          }
973        else        else
974  #endif /* YYERROR_VERBOSE */  #endif /* defined (YYERROR_VERBOSE) */
975          yyerror ("parse error");          yyerror ("parse error");
976      }      }
977    goto yyerrlab1;    goto yyerrlab1;

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

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