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

Diff of /bison/data/yacc.c

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

revision 1.41 by eggert, Mon Dec 9 04:48:38 2002 UTC revision 1.42 by eggert, Wed Dec 11 05:25:27 2002 UTC
# Line 261  union yyalloc Line 261  union yyalloc
261  [};  [};
262    
263  /* The size of the maximum gap between one aligned stack and the next.  */  /* The size of the maximum gap between one aligned stack and the next.  */
264  # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)  # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
265    
266  /* The size of an array large to enough to hold all stacks, each with  /* The size of an array large to enough to hold all stacks, each with
267     N elements.  */     N elements.  */
268  ]b4_location_if(  ]b4_location_if(
269  [# define YYSTACK_BYTES(N) \  [# define YYSTACK_BYTES(N) \
270       ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))      \       ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))      \
271        + 2 * YYSTACK_GAP_MAX)],        + 2 * YYSTACK_GAP_MAXIMUM)],
272  [# define YYSTACK_BYTES(N) \  [# define YYSTACK_BYTES(N) \
273       ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \       ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \
274        + YYSTACK_GAP_MAX)])[        + YYSTACK_GAP_MAXIMUM)])[
275    
276  /* Copy COUNT objects from FROM to TO.  The source and destination do  /* Copy COUNT objects from FROM to TO.  The source and destination do
277     not overlap.  */     not overlap.  */
# Line 302  union yyalloc Line 302  union yyalloc
302          YYSIZE_T yynewbytes;                                            \          YYSIZE_T yynewbytes;                                            \
303          YYCOPY (&yyptr->Stack, Stack, yysize);                          \          YYCOPY (&yyptr->Stack, Stack, yysize);                          \
304          Stack = &yyptr->Stack;                                          \          Stack = &yyptr->Stack;                                          \
305          yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;   \          yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
306          yyptr += yynewbytes / sizeof (*yyptr);                          \          yyptr += yynewbytes / sizeof (*yyptr);                          \
307        }                                                                 \        }                                                                 \
308      while (0)      while (0)

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

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