]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
confmacros.h: fix coccinelle parsing.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 16:39:31 +0000 (12:39 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
scripts/coccinelle/tor-coccinelle.h
src/lib/conf/confmacros.h

index c83dce3c5c1246d59d8f8f9156741c1c4bb50e4c..44d79325eb54e3c613a1660d3a9b260a919c6675 100644 (file)
@@ -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__;
index 68121891f19b8ced894a409ef3b7b8ed63394be5..6449458a106616b986d24996ef2427b3bf67a608 100644 (file)
 #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