Define YYMALLOCARGTYPE appropriately.
authorGuy Harris <guy@alum.mit.edu>
Wed, 10 May 2017 20:46:58 +0000 (13:46 -0700)
committerGuy Harris <guy@alum.mit.edu>
Wed, 10 May 2017 20:47:35 +0000 (20:47 +0000)
Define it, so the generated parser knows what argument type the function
passed to MateParserAlloc() takes.  Use it when declaring
MateParserAlloc().

Change-Id: Ice18fd6b5fdbdb31f527e5d6eb06e78594d4565b
Reviewed-on: https://code.wireshark.org/review/21588
Reviewed-by: Guy Harris <guy@alum.mit.edu>
plugins/mate/mate.h

index 0dc0bcaff5dbb02c8119c88d6c7de300976b18ad..1d97ca85bbb5372cb68693e79010e97e1646b130 100644 (file)
@@ -382,10 +382,11 @@ extern gboolean mate_load_config(const gchar* filename, mate_config* mc);
 
 /* Constructor/Destructor prototypes for Lemon Parser */
 #if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 16))
-void *MateParserAlloc(void* (*)(gsize));
+#define YYMALLOCARGTYPE gsize
 #else
-void *MateParserAlloc(void* (*)(gulong));
+#define YYMALLOCARGTYPE gulong
 #endif
+void *MateParserAlloc(void* (*)(YYMALLOCARGTYPE));
 void MateParserFree(void*, void (*)(void *));
 void MateParser(void*, int, gchar*,  mate_config*);