tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 9a101c2c0f1e4598cd5bd2710e6021052e4ebdfa
parent 41261c3b5cd505f5a601c319eb484866903814af
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 11 Sep 2019 18:43:16 -0400

Add a script to run spatch with appropriate arguments

It's a bit tricky to remember the right incantation to get the
proper include paths and incantations for coccinelle, but without
it, coccinelle is less effective at parsing our C.

Diffstat:
Ascripts/coccinelle/apply.sh | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/scripts/coccinelle/apply.sh b/scripts/coccinelle/apply.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# apply.sh: +# run spatch with appropriate includes and builtins for the Tor source code + +top="$(dirname "$0")/../.." + +spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \ + -I "$top" -I "$top"/src -I "$top"/ext "$@"