* memory leak or SEGV for things that haven't been well-tested.
*/
+/* This file is "exempt" from having
+#include "config.h"
+ * as the first include statement because Python.h also does environment
+ * setup & these trample over each other.
+ */
+
#include <Python.h>
#include "structmember.h"
#include <string.h>
item(IPV4_PREFIX_TKN) // IPV4 network prefixes
item(IPV6_TKN) // IPV6 prefixes
item(IPV6_PREFIX_TKN) // IPV6 network prefixes
+ item(MAC_TKN) // MAC address
+ item(MAC_PREFIX_TKN) // MAC address with mask
/* plumbing types */
item(FORK_TKN) item(JOIN_TKN) item(START_TKN)
static void graph_wrap_free(void *arg)
{
struct wrap_graph *wgraph = arg;
+
+ graph_delete_graph(wgraph->graph);
free(wgraph->nodewrappers);
free(wgraph->definition);
}
} while (0)
#endif
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
PyMODINIT_FUNC command_py_init(void)
{
PyObject *pymod;