From 9453746b5e2276e26c4aaadba99aec2530889ea0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 9 Oct 2019 12:47:21 -0400 Subject: [PATCH] dispatch_naming.c: when COCCI is defined, disable unparseable macros. --- src/lib/dispatch/dispatch_naming.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/dispatch/dispatch_naming.c b/src/lib/dispatch/dispatch_naming.c index 83d9a2d604..79411cb3a1 100644 --- a/src/lib/dispatch/dispatch_naming.c +++ b/src/lib/dispatch/dispatch_naming.c @@ -33,6 +33,7 @@ dispatch_naming_init(void) { } +#ifndef COCCI /* Helper macro: declare functions to map IDs to and from names for a given * type in a namemap_t. */ @@ -56,6 +57,7 @@ dispatch_naming_init(void) return namemap_get_size(&type##_id_map); \ } \ EAT_SEMICOLON +#endif DECLARE_ID_MAP_FNS(message); DECLARE_ID_MAP_FNS(channel);