/[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.53.2.10 by akim, Fri Nov 30 13:14:10 2001 UTC revision 1.53.2.11 by eggert, Tue Dec 4 13:28:18 2001 UTC
# Line 102  union yyalloc Line 102  union yyalloc
102        + YYSTACK_GAP_MAX)        + YYSTACK_GAP_MAX)
103  # endif  # endif
104    
105    # if defined (__STDC__) || defined (__cplusplus)
106    #  define YYPOINTER void *
107    # else
108    #  define YYPOINTER char *
109    # endif
110    
111  /* 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
112     local variables YYSIZE and YYSTACKSIZE give the old and new number of     local variables YYSIZE and YYSTACKSIZE give the old and new number of
113     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 113  union yyalloc Line 119  union yyalloc
119          YYSIZE_T yynewbytes;                                            \          YYSIZE_T yynewbytes;                                            \
120          yymemcpy (yyptr, (char *) (Stack),                              \          yymemcpy (yyptr, (char *) (Stack),                              \
121                    yysize * (YYSIZE_T) sizeof (Type));                   \                    yysize * (YYSIZE_T) sizeof (Type));                   \
122          (Stack) = (Type *) yyptr;                                       \          (Stack) = (Type *) (YYPOINTER) yyptr;                           \
123          yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX;     \          yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX;     \
124          yynewbytes -= yynewbytes % sizeof (union yyalloc);              \          yynewbytes -= yynewbytes % sizeof (union yyalloc);              \
125          yyptr += yynewbytes;                                            \          yyptr += yynewbytes;                                            \
# Line 301  yystrlen (yystr) Line 307  yystrlen (yystr)
307  /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in  /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
308     YYDEST.  */     YYDEST.  */
309  static char *  static char *
310  #   ifndef __cplusplus  #   if defined (__STDC__) || defined (__cplusplus)
311    yystpcpy (char *yydest, const char *yysrc)
312    #   else
313  yystpcpy (yydest, yysrc)  yystpcpy (yydest, yysrc)
314       char *yydest;       char *yydest;
315       const char *yysrc;       const char *yysrc;
 #   else  
 yystpcpy (char *yydest, const char *yysrc)  
316  #   endif  #   endif
317  {  {
318    register char *yyd = yydest;    register char *yyd = yydest;
# Line 797  yyerrlab: Line 803  yyerrlab:
803              yyerror ("parse error; also virtual memory exhausted");              yyerror ("parse error; also virtual memory exhausted");
804          }          }
805        else        else
806  #endif /* YYERROR_VERBOSE */  #endif /* defined (YYERROR_VERBOSE) */
807          yyerror ("parse error");          yyerror ("parse error");
808      }      }
809    goto yyerrlab1;    goto yyerrlab1;

Legend:
Removed from v.1.53.2.10  
changed lines
  Added in v.1.53.2.11

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