summaryrefslogtreecommitdiff
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 10:01:19 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:24:25 -0400
commitea47e53252adc5aed81cfb334b20229718fd8ebf (patch)
tree7369f3b5b497052a0f3ccc6e19e61fc82434c180 /scripts/coccinelle
parent017c62000cc078e2e858bc0a9a7efa60c4196c60 (diff)
downloadtor-ea47e53252adc5aed81cfb334b20229718fd8ebf.tar.gz
tor-ea47e53252adc5aed81cfb334b20229718fd8ebf.zip
tor-coccinelle.h: handle NS and NS_DECL.
Diffstat (limited to 'scripts/coccinelle')
-rw-r--r--scripts/coccinelle/tor-coccinelle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/coccinelle/tor-coccinelle.h b/scripts/coccinelle/tor-coccinelle.h
index 87871b40b2..ea12a61fef 100644
--- a/scripts/coccinelle/tor-coccinelle.h
+++ b/scripts/coccinelle/tor-coccinelle.h
@@ -44,3 +44,6 @@
#define TOR_TAILQ_ENTRY(a) struct tailq_entry
#define TOR_SIMPLEQ_HEAD(a,b) struct simpleq_entry
#define TOR_SIMPLEQ_ENTRY(a) struct simpleq_entry
+
+#define NS_DECL(a, b, c) a b c
+#define NS(a) a