summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/apply.sh
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 10:07:50 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:24:25 -0400
commita2bb66c3558be224f3537296ee0ebec179164f57 (patch)
treec1585dcc744c620c942f38cfe1902373a96c3064 /scripts/coccinelle/apply.sh
parentea47e53252adc5aed81cfb334b20229718fd8ebf (diff)
downloadtor-a2bb66c3558be224f3537296ee0ebec179164f57.tar.gz
tor-a2bb66c3558be224f3537296ee0ebec179164f57.zip
Add a "COCCI" macro that we tell coccinelle is always defined.
This will let us give specific in-file equivalents to given macros or preprocessor directives, to make things parse.
Diffstat (limited to 'scripts/coccinelle/apply.sh')
-rwxr-xr-xscripts/coccinelle/apply.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/apply.sh b/scripts/coccinelle/apply.sh
index 82e773dc39..f531d7fa32 100755
--- a/scripts/coccinelle/apply.sh
+++ b/scripts/coccinelle/apply.sh
@@ -6,4 +6,4 @@
top="$(dirname "$0")/../.."
spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \
- -I "$top" -I "$top"/src -I "$top"/ext "$@"
+ -I "$top" -I "$top"/src -I "$top"/ext --defined COCCI "$@"