You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
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 <stdio.h> |
|
#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 <alloca.h> |
|
-#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); |
|
} |
|
|
|
|
|
|