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:
@@ -44,6 +44,13 @@ void yyerror (char *s);
|
|||||||
long name2number(const char *str);
|
long name2number(const char *str);
|
||||||
|
|
||||||
extern char *yytext;
|
extern char *yytext;
|
||||||
|
|
||||||
|
/* This is for bison */
|
||||||
|
|
||||||
|
#if !defined(alloca) && !defined(HAVE_ALLOCA)
|
||||||
|
#define alloca(x) malloc(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
|
@@ -46,6 +46,13 @@ long name2number(const char *str);
|
|||||||
struct string_list* append_string(struct string_list*, char*);
|
struct string_list* append_string(struct string_list*, char*);
|
||||||
void free_string_list(struct string_list *list);
|
void free_string_list(struct string_list *list);
|
||||||
unsigned string_to_flag(const char *);
|
unsigned string_to_flag(const char *);
|
||||||
|
|
||||||
|
/* This is for bison */
|
||||||
|
|
||||||
|
#if !defined(alloca) && !defined(HAVE_ALLOCA)
|
||||||
|
#define alloca(x) malloc(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
|
Reference in New Issue
Block a user