[tor-commits] [tor/master] dispatch_naming.c: when COCCI is defined, disable unparseable macros.
teor at torproject.org
teor at torproject.org
Thu Oct 24 00:01:21 UTC 2019
commit 9453746b5e2276e26c4aaadba99aec2530889ea0
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Oct 9 12:47:21 2019 -0400
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 83d9a2d60..79411cb3a 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);
More information about the tor-commits
mailing list