]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dispatch_naming.c: when COCCI is defined, disable unparseable macros.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 16:47:21 +0000 (12:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/dispatch/dispatch_naming.c

index 83d9a2d6047ab0323313c048ed34c6cd417e57ba..79411cb3a1632514c3da98c96e6684fbf2ab58c6 100644 (file)
@@ -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);