head 1.1; access; symbols OPENPKG_E1_MP_HEAD:1.1 OPENPKG_E1_MP:1.1 OPENPKG_E1_MP_2_STABLE:1.1 OPENPKG_E1_FP:1.1 OPENPKG_2_STABLE_MP:1.1 OPENPKG_2_STABLE_20061018:1.1 OPENPKG_2_STABLE_20060622:1.1 OPENPKG_2_STABLE:1.1.0.10 OPENPKG_2_STABLE_BP:1.1 OPENPKG_2_5_RELEASE:1.1 OPENPKG_2_5_SOLID:1.1.0.8 OPENPKG_2_5_SOLID_BP:1.1 OPENPKG_2_4_RELEASE:1.1 OPENPKG_2_4_SOLID:1.1.0.6 OPENPKG_2_4_SOLID_BP:1.1 OPENPKG_CW_FP:1.1 OPENPKG_2_3_RELEASE:1.1 OPENPKG_2_3_SOLID:1.1.0.4 OPENPKG_2_3_SOLID_BP:1.1 OPENPKG_2_2_RELEASE:1.1 OPENPKG_2_2_SOLID:1.1.0.2 OPENPKG_2_2_SOLID_BP:1.1; locks; strict; comment @# @; 1.1 date 2004.10.07.19.26.53; author rse; state Exp; branches; next ; desc @@ 1.1 log @make portable and this way fix building under FreeBSD 5.3 @ text @Index: src/conflicts.c --- src/conflicts.c.orig 1995-08-15 17:40:40 +0200 +++ src/conflicts.c 2004-10-07 21:25:01 +0200 @@@@ -17,9 +17,6 @@@@ along with Bison; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifdef _AIX - #pragma alloca -#endif #include #include "system.h" #include "machine.h" @@@@ -35,19 +32,6 @@@@ #endif #endif -#ifndef __GNUC__ -#undef alloca -#define alloca __builtin_alloca -#else -#ifdef HAVE_ALLOCA_H -#include -#else -#ifndef _AIX -extern char *alloca (); -#endif -#endif -#endif - extern void print_synthesize(); /* printsem.c */ extern char **tags; @@@@ -201,7 +185,7 @@@@ register unsigned *fp2; register int redprec; /* Extra parens avoid errors on Ultrix 4.3. */ - errs *errp = (errs *) alloca ((sizeof(errs) + ntokens * sizeof(short))); + errs *errp = (errs *) xmalloc ((sizeof(errs) + ntokens * sizeof(short))); short *errtokens = errp->errs; /* find the rule to reduce by to get precedence of reduction */ @@@@ -286,6 +270,7 @@@@ } else err_table[state] = 0; + free (errp); } @