#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+/* Bison stupidly redeclares malloc/free unless they are #defined
+ * (or a bunch of madder conditions) */
+#ifndef malloc
+# define malloc malloc
+# define free free
+#endif
#include "secnet.h"
#include "conffile_internal.h"
+#include "conffile.yy.h"
#include "util.h"
#define YYERROR_VERBOSE
{
struct p_node *rv;
- rv=safe_malloc(sizeof(*rv),"p_node");
+ NEW(rv);
rv->type=type;
rv->loc.file=config_file;
rv->loc.line=config_lineno;