Disable a couple of iterator macros when COCCI is defined.

This commit is contained in:
Nick Mathewson
2019-10-09 11:10:08 -04:00
parent 67247fa9ac
commit d9bad0203b
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -116,6 +116,7 @@ STATIC smartlist_t *origin_padding_machines = NULL;
* runtime and as long as circuits are alive. */
STATIC smartlist_t *relay_padding_machines = NULL;
#ifndef COCCI
/** Loop over the current padding state machines using <b>loop_var</b> as the
* loop variable. */
#define FOR_EACH_CIRCUIT_MACHINE_BEGIN(loop_var) \
@@ -130,6 +131,7 @@ STATIC smartlist_t *relay_padding_machines = NULL;
if (!(circ)->padding_info[loop_var]) \
continue;
#define FOR_EACH_ACTIVE_CIRCUIT_MACHINE_END } STMT_END ;
#endif
/**
* Free the machineinfo at an index
+2
View File
@@ -67,6 +67,7 @@
#include <unistd.h>
#endif
#ifndef COCCI
/* Helper macro. Iterate over every service in the global map. The var is the
* name of the service pointer. */
#define FOR_EACH_SERVICE_BEGIN(var) \
@@ -88,6 +89,7 @@
(var = service->desc_next); \
if (var == NULL) continue;
#define FOR_EACH_DESCRIPTOR_END } STMT_END ;
#endif
/* Onion service directory file names. */
static const char fname_keyfile_prefix[] = "hs_ed25519";