From c6e3171ad40484dafd04d7e252fee95a76e49bad Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 13 Jun 2012 14:33:52 +0200 Subject: [PATCH] Cosmetics: allow a semicolon after macro usage. Without this change, tools like etags are confused and fail to parse the file correctly. --- src/surf/surfxml_parse.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 91e0254dd3..c695806fa2 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -593,20 +593,22 @@ void STag_surfxml_random(void){ surfxml_call_cb_functions(STag_surfxml_random_cb_list); } -#define parse_method(type,name) \ -void type##Tag_surfxml_##name(void) \ -{ surfxml_call_cb_functions(type##Tag_surfxml_##name##_cb_list); } -parse_method(E, route) -parse_method(E, link_ctn) -parse_method(E, process) -parse_method(E, argument) -parse_method(E, prop) -parse_method(E, trace) -parse_method(E, trace_connect) -parse_method(E, random) -parse_method(E, ASroute) -parse_method(E, bypassRoute) -parse_method(E, bypassASroute) +#define parse_method(type,name) \ + void type##Tag_surfxml_##name(void) \ + { surfxml_call_cb_functions(type##Tag_surfxml_##name##_cb_list); } \ + void type##Tag_surfxml_##name(void) + +parse_method(E, route); +parse_method(E, link_ctn); +parse_method(E, process); +parse_method(E, argument); +parse_method(E, prop); +parse_method(E, trace); +parse_method(E, trace_connect); +parse_method(E, random); +parse_method(E, ASroute); +parse_method(E, bypassRoute); +parse_method(E, bypassASroute); /* Open and Close parse file */ -- 2.20.1