]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move all externally maintained source files into src/ext
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Oct 2012 21:19:37 +0000 (17:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Oct 2012 21:22:03 +0000 (17:22 -0400)
The rationale for treating these files differently is that we should
be checking upstream for changes as applicable, and merging changes
upstream as warranted.

14 files changed:
changes/src_ext [new file with mode: 0644]
src/common/include.am
src/ext/OpenBSD_malloc_Linux.c [moved from src/common/OpenBSD_malloc_Linux.c with 100% similarity]
src/ext/eventdns.c [moved from src/or/eventdns.c with 100% similarity]
src/ext/eventdns.h [moved from src/or/eventdns.h with 100% similarity]
src/ext/ht.h [moved from src/common/ht.h with 100% similarity]
src/ext/include.am [new file with mode: 0644]
src/ext/tinytest.c [moved from src/test/tinytest.c with 100% similarity]
src/ext/tinytest.h [moved from src/test/tinytest.h with 100% similarity]
src/ext/tinytest_demo.c [moved from src/test/tinytest_demo.c with 100% similarity]
src/ext/tinytest_macros.h [moved from src/test/tinytest_macros.h with 100% similarity]
src/include.am
src/or/include.am
src/test/include.am

diff --git a/changes/src_ext b/changes/src_ext
new file mode 100644 (file)
index 0000000..a1b2a21
--- /dev/null
@@ -0,0 +1,3 @@
+  o Code refactoring:
+    - Source files taken from other packages now reside in src/ext;
+      previously they were scattered around the rest of Tor.
index ba08aa7e5a6a6a82f94242fa788052f3e09ec2d3..7299a47afb159f0369bd96e226149a7e0ce7cfa4 100644 (file)
@@ -9,7 +9,7 @@ EXTRA_DIST+= \
 AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common
 
 if USE_OPENBSD_MALLOC
-libor_extra_source=src/common/OpenBSD_malloc_Linux.c
+libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
 else
 libor_extra_source=
 endif
@@ -44,7 +44,6 @@ COMMONHEADERS = \
   src/common/container.h                       \
   src/common/crypto.h                          \
   src/common/di_ops.h                          \
-  src/common/ht.h                              \
   src/common/memarea.h                         \
   src/common/mempool.h                         \
   src/common/procmon.h                         \
similarity index 100%
rename from src/or/eventdns.c
rename to src/ext/eventdns.c
similarity index 100%
rename from src/or/eventdns.h
rename to src/ext/eventdns.h
similarity index 100%
rename from src/common/ht.h
rename to src/ext/ht.h
diff --git a/src/ext/include.am b/src/ext/include.am
new file mode 100644 (file)
index 0000000..97e7e46
--- /dev/null
@@ -0,0 +1,12 @@
+
+AM_CPPFLAGS += -I$(srcdir)/src/ext -Isrc/ext
+
+EXTHEADERS = \
+  src/ext/ht.h         \
+  src/ext/eventdns.h   \
+  src/ext/tinytest.h   \
+  src/ext/tinytest_macros.h
+
+noinst_HEADERS+= $(EXTHEADERS)
+
+
similarity index 100%
rename from src/test/tinytest.c
rename to src/ext/tinytest.c
similarity index 100%
rename from src/test/tinytest.h
rename to src/ext/tinytest.h
index 965a4940420b82c0349a606ff81aed1e02190ec4..d0693e25b09691a0924c7600f7ea71272077bb4b 100644 (file)
@@ -1,6 +1,7 @@
+include src/ext/include.am
 include src/common/include.am
 include src/or/include.am
 include src/test/include.am
 include src/tools/include.am
 include src/win32/include.am
-include src/config/include.am
\ No newline at end of file
+include src/config/include.am
index 90dea44ba83d394b3f1335fd4fdc7ca52f7ac914..749206151ac34b6f542581c0cd12ade8cf0e6600 100644 (file)
@@ -12,7 +12,7 @@ EXTRA_DIST+= src/or/ntmain.c src/or/or_sha1.i src/or/Makefile.nmake
 if USE_EXTERNAL_EVDNS
 evdns_source=
 else
-evdns_source=src/or/eventdns.c
+evdns_source=src/ext/eventdns.c
 endif
 
 src_or_libtor_a_SOURCES = \
@@ -110,7 +110,6 @@ ORHEADERS = \
        src/or/dirvote.h                                \
        src/or/dns.h                                    \
        src/or/dnsserv.h                                \
-       src/or/eventdns.h                               \
        src/or/eventdns_tor.h                           \
        src/or/geoip.h                                  \
        src/or/hibernate.h                              \
index 03fef23375a158639ba249778ad479a72471e585..bdfe498d6618d62bd803df1e99f6c2989c56bc41 100644 (file)
@@ -5,7 +5,7 @@ noinst_PROGRAMS+= src/test/test src/test/test-child src/test/bench
 src_test_AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
         -DLOCALSTATEDIR="\"$(localstatedir)\"" \
         -DBINDIR="\"$(bindir)\""              \
-       -I"$(top_srcdir)/src/or"
+       -I"$(top_srcdir)/src/or" -I"$(top_srcdir)/src/ext"
 
 # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
 # This seems to matter nowhere but on Windows, but I assure you that it
@@ -24,7 +24,7 @@ src_test_test_SOURCES = \
        src/test/test_replay.c \
        src/test/test_util.c \
        src/test/test_config.c \
-       src/test/tinytest.c
+       src/ext/tinytest.c
 
 src_test_test_CPPFLAGS= $(src_test_AM_CPPFLAGS)
 
@@ -48,8 +48,5 @@ src_test_bench_LDADD = src/or/libtor.a src/common/libor.a src/common/libor-crypt
        @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
 
 noinst_HEADERS+= \
-       src/test/tinytest.h \
-       src/test/tinytest_macros.h \
        src/test/test.h
 
-