Avoid conflicting malloc/free declarations in Bison

This commit is contained in:
Asanka C. Herath
2010-11-24 12:56:44 -05:00
parent 6bf16f5250
commit e84b73370c
2 changed files with 10 additions and 0 deletions

View File

@@ -62,6 +62,10 @@ struct string_list {
struct string_list *next; struct string_list *next;
}; };
/* Declarations for Bison */
#define YYMALLOC malloc
#define YYFREE free
%} %}
%union { %union {

View File

@@ -46,6 +46,12 @@
#include "slc.h" #include "slc.h"
extern FILE *yyin; extern FILE *yyin;
extern struct assignment *assignment; extern struct assignment *assignment;
/* Declarations for Bison:
*/
#define YYMALLOC malloc
#define YYFREE free
%} %}
%union { %union {