- gpointer g_malloc (gulong n_bytes) G_GNUC_MALLOC;
to:
+ gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC;
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24710
f5534014-38df-0310-8fa8-
9805f1628bb7
} dfwork_t;
/* Constructor/Destructor prototypes for Lemon Parser */
+#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16))
+void *DfilterAlloc(void* (*)(gsize));
+#else
void *DfilterAlloc(void* (*)(gulong));
+#endif
+
void DfilterFree(void*, void (*)(void *));
void Dfilter(void*, int, stnode_t*, dfwork_t*);
*/
extern void DtdParse(void*,int,dtd_token_data_t*,dtd_build_data_t*);
+#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16))
+extern void *DtdParseAlloc(void *(*)(gsize));
+#else
extern void *DtdParseAlloc(void *(*)(gulong));
+#endif
extern void DtdParseFree( void*, void(*)(void*) );
extern void DtdParseTrace(FILE *TraceFILE, char *zTracePrompt);
extern int Dtd_Parse_lex(void);
#include "mate_parser_lex.h"
void MateParser(void*,int, gchar*, mate_config* matecfg);
+#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16))
+ void *MateParserAlloc(void *(*)(gsize));
+#else
void *MateParserAlloc(void *(*)(gulong));
+#endif
void MateParserFree( void*, void(*)(void*) );
void MateParseTrace(FILE*,char*);