mirror repository of the tor core protocol in case of issues
Go to file
Nick Mathewson a6627fdb80 Remove the legacy_test_helper and legacy_setup wrappers
These wrappers went into place when the default type for our unit
test functions changed from "void fn(void)" to "void fn(void *arg)".

To generate this patch, I did the same hokey-pokey as before with
replacing all operators used as macro arguments, then I ran a
coccinelle script, then I ran perl script to fix up everything that
used legacy_test_helper, then I manually removed the
legacy_test_helper functions, then I ran a final perl script to put
the operators back how they were.

==============================
 #!/usr/bin/perl -w -i -p

s/==,/_X_EQ_,/g;
s/!=,/_X_NE_,/g;
s/<,/_X_LT_,/g;
s/>,/_X_GT_,/g;
s/>=,/_X_GEQ_,/g;
s/<=,/_X_LEQ_,/g;

--------------------

@@
identifier func =~ "test_.*$";
statement S, S2;
@@
 static void func (
-void
+void *arg
 )
 {
 ... when != S2
+(void) arg;
 S
 ...
 }

--------------------
 #!/usr/bin/perl -w -i -p

s/, *legacy_test_helper, *([^,]+), *\&legacy_setup, *([^\}]+) *}/, $2, $1, NULL, NULL }/g;

--------------------
 #!/usr/bin/perl -w -i -p

s/_X_NEQ_/!=/g;
s/_X_NE_/!=/g;
s/_X_EQ_/==/g;
s/_X_GT_/>/g;
s/_X_LT_/</g;
s/_X_GEQ_/>=/g;
s/_X_LEQ_/<=/g;

--------------------
2014-09-16 09:30:22 -04:00
changes Add a changes file for 13119 2014-09-15 21:39:12 -04:00
contrib Merge remote-tracking branch 'intrigeri/bug12939-systemd-no-new-privileges' 2014-09-03 13:29:43 -04:00
doc Mention "make check" in doc/HACKING 2014-09-12 16:14:49 -04:00
m4 Use pc_from_ucontext.m4 from Google Performance Tools 2013-11-18 10:43:15 -05:00
scripts Improve comments in checkSpace.pl to explain how to fix its warnings 2014-08-18 10:03:14 -04:00
src Remove the legacy_test_helper and legacy_setup wrappers 2014-09-16 09:30:22 -04:00
.gitignore Merge remote-tracking branch 'public/torrc_minimal' 2014-09-10 23:36:27 -04:00
acinclude.m4 remove a stray " while warning about missing packages on redhat 2014-06-02 02:30:25 -04:00
autogen.sh Use a nicely written autoconf macro to determine the sign of a type 2013-02-07 16:23:48 -05:00
ChangeLog forward-port changelog from 0.2.5.7-rc 2014-09-11 21:25:03 -04:00
configure.ac Divide torrc.sample into torrc.sample and torrc.minimal 2014-09-02 19:14:30 -04:00
Doxyfile.in Fix up all doxygen warnings other than "foo is not documented" 2011-03-16 14:47:27 -04:00
INSTALL Small fixes for the 2702 implementation 2011-04-02 12:15:08 +02:00
LICENSE Raw import of Marek Majkowski's cisphash.c 2014-02-12 10:09:45 -05:00
Makefile.am Tweak coverage-html target 2014-07-16 06:04:55 -04:00
Makefile.nmake Clean up the MVSC nmake files so they work again. 2014-09-09 10:27:05 -04:00
README Fix some URLs in the README 2014-08-09 15:57:44 -04:00
ReleaseNotes and bring all the changelogs into master too 2014-07-28 04:21:45 -04:00

Tor protects your privacy on the internet by hiding the connection
between your Internet address and the services you use. We believe Tor
is reasonably secure, but please ensure you read the instructions and
configure it properly.

To build Tor from source:
        ./configure && make && make install

Home page:
        https://www.torproject.org/

Download new versions:
        https://www.torproject.org/download/download.html

Documentation, including links to installation and setup instructions:
        https://www.torproject.org/docs/documentation.html

Making applications work with Tor:
        https://wiki.torproject.org/projects/tor/wiki/doc/TorifyHOWTO

Frequently Asked Questions:
        https://www.torproject.org/docs/faq.html


To get started working on Tor development:
        See the doc/HACKING file.