Avoid conflicting malloc/free declarations in Bison
This commit is contained in:
@@ -62,6 +62,10 @@ struct string_list {
|
||||
struct string_list *next;
|
||||
};
|
||||
|
||||
/* Declarations for Bison */
|
||||
#define YYMALLOC malloc
|
||||
#define YYFREE free
|
||||
|
||||
%}
|
||||
|
||||
%union {
|
||||
|
@@ -46,6 +46,12 @@
|
||||
#include "slc.h"
|
||||
extern FILE *yyin;
|
||||
extern struct assignment *assignment;
|
||||
|
||||
/* Declarations for Bison:
|
||||
*/
|
||||
#define YYMALLOC malloc
|
||||
#define YYFREE free
|
||||
|
||||
%}
|
||||
|
||||
%union {
|
||||
|
Reference in New Issue
Block a user