mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
smartlist.h: use COCCI to hide SMARTLIST_FOREACH_JOIN from Coccinelle
This commit is contained in:
parent
514c61e406
commit
41f44d8760
@ -92,6 +92,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
|
||||
size_t join_len, int terminate, size_t *len_out)
|
||||
ATTR_MALLOC;
|
||||
|
||||
#ifndef COCCI
|
||||
/* Helper: Given two lists of items, possibly of different types, such that
|
||||
* both lists are sorted on some common field (as determined by a comparison
|
||||
* expression <b>cmpexpr</b>), and such that one list (<b>sl1</b>) has no
|
||||
@ -165,5 +166,6 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
|
||||
#define SMARTLIST_FOREACH_JOIN_END(var1, var2) \
|
||||
} \
|
||||
STMT_END
|
||||
#endif
|
||||
|
||||
#endif /* !defined(TOR_SMARTLIST_H) */
|
||||
|
Loading…
Reference in New Issue
Block a user