commit 3e41459dff9e62cabe2636eac61d19b32dd0a4e1
parent 54c5366aa15d667484a93abf16d166db7981a0ea
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 9 Oct 2019 12:39:31 -0400
confmacros.h: fix coccinelle parsing.
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/scripts/coccinelle/tor-coccinelle.h b/scripts/coccinelle/tor-coccinelle.h
@@ -57,4 +57,7 @@
#define NS_DECL(a, b, c) a b c
#define NS(a) a
+#define CONF_TEST_MEMBERS(a,b,c)
+#define DUMMY_CONF_TEST_MEMBERS
+
#define EAT_SEMICOLON extern int dummy__;
diff --git a/src/lib/conf/confmacros.h b/src/lib/conf/confmacros.h
@@ -15,11 +15,13 @@
#include "orconfig.h"
#include "lib/conf/conftesting.h"
+#ifndef COCCI
/**
* Used to indicate the end of an array of configuration variables.
**/
#define END_OF_CONFIG_VARS \
{ .member = { .name = NULL } DUMMY_CONF_TEST_MEMBERS }
+#endif
/**
* Declare a config_var_t as a member named <b>membername</b> of the structure