diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 09:27:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:24:25 -0400 |
commit | 9ab96550da079abe048d1e0e2065e3fb85634cda (patch) | |
tree | 4d14085f75726b5464ab5f22bb45a26ed8059f38 /scripts/coccinelle | |
parent | 4ab85f4928be7ed096643bd5f7d8d5f2b42859fe (diff) | |
download | tor-9ab96550da079abe048d1e0e2065e3fb85634cda.tar.gz tor-9ab96550da079abe048d1e0e2065e3fb85634cda.zip |
document test-operator-cleanup
Diffstat (limited to 'scripts/coccinelle')
-rwxr-xr-x | scripts/coccinelle/test-operator-cleanup | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/coccinelle/test-operator-cleanup b/scripts/coccinelle/test-operator-cleanup index e7822542a4..28b4d4f588 100755 --- a/scripts/coccinelle/test-operator-cleanup +++ b/scripts/coccinelle/test-operator-cleanup @@ -1,4 +1,17 @@ #!/usr/bin/perl -w -p -i +# +# Copyright (c) 2001 Matej Pfajfar. +# Copyright (c) 2001-2004, Roger Dingledine. +# Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. +# Copyright (c) 2007-2019, The Tor Project, Inc. +# See LICENSE for licensing information + +# This script looks for instances of C comparison operators as macro arguments, +# and replaces them with our OP_* equivalents. +# +# Some macros that take operators are our tt_int_op() testing macro, and the +# standard timercmp() macro. Coccinelle can't handle their syntax, however, +# unless we give them their operators as a macro too. next if m#^ */\*# or m#^ *\* #; |