confmacros.h: fix coccinelle parsing.

This commit is contained in:
Nick Mathewson 2019-10-09 12:39:31 -04:00
parent 54c5366aa1
commit 3e41459dff
2 changed files with 5 additions and 0 deletions

View file

@ -57,4 +57,7 @@
#define NS_DECL(a, b, c) a b c #define NS_DECL(a, b, c) a b c
#define NS(a) a #define NS(a) a
#define CONF_TEST_MEMBERS(a,b,c)
#define DUMMY_CONF_TEST_MEMBERS
#define EAT_SEMICOLON extern int dummy__; #define EAT_SEMICOLON extern int dummy__;

View file

@ -15,11 +15,13 @@
#include "orconfig.h" #include "orconfig.h"
#include "lib/conf/conftesting.h" #include "lib/conf/conftesting.h"
#ifndef COCCI
/** /**
* Used to indicate the end of an array of configuration variables. * Used to indicate the end of an array of configuration variables.
**/ **/
#define END_OF_CONFIG_VARS \ #define END_OF_CONFIG_VARS \
{ .member = { .name = NULL } DUMMY_CONF_TEST_MEMBERS } { .member = { .name = NULL } DUMMY_CONF_TEST_MEMBERS }
#endif
/** /**
* Declare a config_var_t as a member named <b>membername</b> of the structure * Declare a config_var_t as a member named <b>membername</b> of the structure