mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
(YYSIZE_T): Do not define merely because YYSTACK_USE_ALLOCA is nonzero
or alloca or _ALLOCA_H are defined. On some platforms, <alloca.h> does not declare YYSTD (size_t).
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
||||||
#line
|
#line
|
||||||
/* Skeleton output parser for bison,
|
/* Skeleton output parser for bison,
|
||||||
Copyright (C) 1984, 1989, 1990, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
|
||||||
|
Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -47,12 +49,10 @@
|
|||||||
|
|
||||||
# if YYSTACK_USE_ALLOCA
|
# if YYSTACK_USE_ALLOCA
|
||||||
# define YYSTACK_ALLOC alloca
|
# define YYSTACK_ALLOC alloca
|
||||||
# define YYSIZE_T YYSTD (size_t)
|
|
||||||
# else
|
# else
|
||||||
# ifndef YYSTACK_USE_ALLOCA
|
# ifndef YYSTACK_USE_ALLOCA
|
||||||
# if defined (alloca) || defined (_ALLOCA_H)
|
# if defined (alloca) || defined (_ALLOCA_H)
|
||||||
# define YYSTACK_ALLOC alloca
|
# define YYSTACK_ALLOC alloca
|
||||||
# define YYSIZE_T YYSTD (size_t)
|
|
||||||
# else
|
# else
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define YYSTACK_ALLOC __builtin_alloca
|
# define YYSTACK_ALLOC __builtin_alloca
|
||||||
|
|||||||
Reference in New Issue
Block a user