define alloca to malloc in case we're using bison but don't have

alloca


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4734 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-04-05 07:22:08 +00:00
parent f5bc40d4b1
commit 756153f825
2 changed files with 14 additions and 0 deletions

View File

@@ -44,6 +44,13 @@ void yyerror (char *s);
long name2number(const char *str);
extern char *yytext;
/* This is for bison */
#if !defined(alloca) && !defined(HAVE_ALLOCA)
#define alloca(x) malloc(x)
#endif
%}
%union {