Avoid conflicting malloc/free declarations in Bison
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user