aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-05-10 13:46:58 -0700
committerGuy Harris <guy@alum.mit.edu>2017-05-10 20:47:35 +0000
commit537eddbc407d891430d9f4a2d462c6c3c0753307 (patch)
tree1103bc0db38fcdb923a7e393f5a53e70d0af8a29 /plugins
parent559952b9030e6221dfccaf5ff2d1c85a24f2825f (diff)
Define YYMALLOCARGTYPE appropriately.
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>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mate/mate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mate/mate.h b/plugins/mate/mate.h
index 0dc0bcaff5..1d97ca85bb 100644
--- a/plugins/mate/mate.h
+++ b/plugins/mate/mate.h
@@ -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*);