aboutsummaryrefslogtreecommitdiff
path: root/src/lib/dispatch
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 12:47:21 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commit9453746b5e2276e26c4aaadba99aec2530889ea0 (patch)
tree5b27685f33bad5c3d39ed64d15b8a65b1f6aac55 /src/lib/dispatch
parent04a74d4aa7d990b03ea07182e86263ed1651db43 (diff)
downloadtor-9453746b5e2276e26c4aaadba99aec2530889ea0.tar.gz
tor-9453746b5e2276e26c4aaadba99aec2530889ea0.zip
dispatch_naming.c: when COCCI is defined, disable unparseable macros.
Diffstat (limited to 'src/lib/dispatch')
-rw-r--r--src/lib/dispatch/dispatch_naming.c2
1 files changed, 2 insertions, 0 deletions
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);