/[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.76 by marc, Tue Nov 27 20:30:13 2001 UTC revision 1.77 by eggert, Tue Nov 27 23:19:14 2001 UTC
# Line 108  Line 108 
108  # define YYSTACK_REALLOC(Type, What, Array)                             \  # define YYSTACK_REALLOC(Type, What, Array)                             \
109  do {                                                                    \  do {                                                                    \
110    Type *old = What;                                                     \    Type *old = What;                                                     \
111    What = (Type *) malloc (yystacksize * sizeof (Type));                 \    What = (Type *) alloca (yystacksize * sizeof (Type));                 \
112    __yy_memcpy ((char *) What, (char *) old,                             \    __yy_memcpy ((char *) What, (char *) old,                             \
113                 (size) * (unsigned int) sizeof (Type));                  \                 (size) * (unsigned int) sizeof (Type));                  \
   yyfree_stacks = 1;                                                    \  
   if (old != Array)                                                     \  
     free (old);                                                         \  
114  } while (0)  } while (0)
115  #else  #else
116  # define YYSTACK_REALLOC(Type, What, Array)                             \  # define YYSTACK_REALLOC(Type, What, Array)                             \
117  do {                                                                    \  do {                                                                    \
118    Type *old = What;                                                     \    Type *old = What;                                                     \
119    What = (Type *) alloca (yystacksize * sizeof (Type));                 \    What = (Type *) malloc (yystacksize * sizeof (Type));                 \
120    __yy_memcpy ((char *) What, (char *) old,                             \    __yy_memcpy ((char *) What, (char *) old,                             \
121                 (size) * (unsigned int) sizeof (Type));                  \                 (size) * (unsigned int) sizeof (Type));                  \
122      yyfree_stacks = 1;                                                    \
123      if (old != Array)                                                     \
124        free (old);                                                         \
125  } while (0)  } while (0)
126  #endif  #endif
127    

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

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