Normalize .may_include to always have paths, and paths to include

This commit is contained in:
Nick Mathewson 2018-11-06 20:27:43 -05:00
parent c0a7527eb8
commit e429e31ad1
26 changed files with 40 additions and 41 deletions

View File

@ -7,9 +7,9 @@ lib/malloc/*.h
lib/err/*.h
lib/smartlist_core/*.h
lib/string/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h
lib/intmath/*.h
lib/log/*.h
ht.h
siphash.h
ext/ht.h
ext/siphash.h

View File

@ -14,7 +14,7 @@
#include "lib/container/bloomfilt.h"
#include "lib/intmath/bits.h"
#include "lib/log/util_bug.h"
#include "siphash.h"
#include "ext/siphash.h"
/** How many bloom-filter bits we set per address. This is twice the
* BLOOMFILT_N_HASHES value, since we split the siphash output into two 32-bit

View File

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include "ht.h"
#include "ext/ht.h"
/** Helper: Declare an entry type and a map type to implement a mapping using
* ht.h. The map type will be called <b>maptype</b>. The key part of each

View File

@ -15,7 +15,7 @@
#include "lib/testsupport/testsupport.h"
#include "lib/cc/torint.h"
#include "siphash.h"
#include "ext/siphash.h"
#define DECLARE_MAP_FNS(maptype, keytype, prefix) \
typedef struct maptype maptype; \

View File

@ -13,7 +13,7 @@ lib/intmath/*.h
lib/sandbox/*.h
lib/string/*.h
lib/subsys/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h
lib/thread/*.h
lib/log/*.h
@ -22,4 +22,4 @@ trunnel/pwbox.h
keccak-tiny/*.h
ed25519/*.h
siphash.h
ext/siphash.h

View File

@ -24,7 +24,7 @@
#include "lib/subsys/subsys.h"
#include "siphash.h"
#include "ext/siphash.h"
/** Boolean: has our crypto library been initialized? (early phase) */
static int crypto_early_initialized_ = 0;

View File

@ -11,7 +11,7 @@
#include "lib/crypt_ops/crypto_rand.h"
#include "lib/defs/digest_sizes.h"
#include "lib/crypt_ops/digestset.h"
#include "siphash.h"
#include "ext/siphash.h"
/* Wrap our hash function to have the signature that the bloom filter
* needs. */

View File

@ -12,5 +12,5 @@ lib/testsupport/*.h
lib/thread/*.h
lib/time/*.h
src/ext/timeouts/timeout.c
tor_queue.h
ext/timeouts/timeout.c
ext/tor_queue.h

View File

@ -80,7 +80,8 @@ struct timeout_cb {
* use 32-bit math. */
#define WHEEL_BIT 5
#endif
#include "src/ext/timeouts/timeout.c"
#include "ext/timeouts/timeout.c"
static struct timeouts *global_timeouts = NULL;
static struct mainloop_event_t *global_timer_event = NULL;

View File

@ -36,7 +36,7 @@
#include "lib/net/socket.h"
#include "lib/thread/threads.h"
#include "tor_queue.h"
#include "ext/tor_queue.h"
#include <event2/event.h>
#include <string.h>

View File

@ -13,4 +13,4 @@ lib/malloc/*.h
lib/memarea/*.h
lib/sandbox/*.h
lib/string/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h

View File

@ -3,4 +3,4 @@ orconfig.h
lib/cc/*.h
lib/err/*.h
lib/malloc/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h

View File

@ -1,6 +1,6 @@
orconfig.h
siphash.h
ht.h
ext/siphash.h
ext/ht.h
lib/arch/*.h
lib/buf/*.h

View File

@ -53,7 +53,7 @@
#include "lib/string/printf.h"
#include "lib/string/util_string.h"
#include "siphash.h"
#include "ext/siphash.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>

View File

@ -16,8 +16,8 @@
#include "lib/string/parse_int.h"
#include "lib/string/util_string.h"
#include "siphash.h"
#include "ht.h"
#include "ext/siphash.h"
#include "ext/ht.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>

View File

@ -15,4 +15,4 @@ lib/subsys/*.h
lib/testsupport/*.h
lib/thread/*.h
ht.h
ext/ht.h

View File

@ -16,7 +16,7 @@
#include "lib/log/log.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/malloc.h"
#include "ht.h"
#include "ext/ht.h"
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>

View File

@ -9,6 +9,6 @@ lib/sandbox/*.h
lib/sandbox/*.inc
lib/string/*.h
ht.h
siphash.h
tor_queue.h
ext/ht.h
ext/siphash.h
ext/tor_queue.h

View File

@ -41,9 +41,9 @@
#include "lib/malloc/malloc.h"
#include "lib/string/scanf.h"
#include "tor_queue.h"
#include "ht.h"
#include "siphash.h"
#include "ext/tor_queue.h"
#include "ext/ht.h"
#include "ext/siphash.h"
#define DEBUGGING_CLOSE

View File

@ -4,4 +4,4 @@ lib/malloc/*.h
lib/err/*.h
lib/string/*.h
lib/smartlist_core/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h

View File

@ -6,5 +6,5 @@ lib/malloc/*.h
lib/ctime/*.h
lib/string/*.h
strlcat.c
strlcpy.c
ext/strlcat.c
ext/strlcpy.c

View File

@ -14,10 +14,10 @@
/* Inline the strl functions if the platform doesn't have them. */
#ifndef HAVE_STRLCPY
#include "strlcpy.c"
#include "ext/strlcpy.c"
#endif
#ifndef HAVE_STRLCAT
#include "strlcat.c"
#include "ext/strlcat.c"
#endif
#include <stdlib.h>

View File

@ -5,5 +5,4 @@ lib/log/*.h
lib/term/*.h
lib/malloc/*.h
# From src/ext
tor_readpassphrase.h
ext/tor_readpassphrase.h

View File

@ -36,7 +36,7 @@ SecureZeroMemory(PVOID ptr, SIZE_T cnt)
#elif defined(HAVE_READPASSPHRASE_H)
#include <readpassphrase.h>
#else
#include "tor_readpassphrase.h"
#include "ext/tor_readpassphrase.h"
#endif /* defined(_WIN32) || ... */
#include <stdlib.h>

View File

@ -13,7 +13,6 @@ lib/malloc/*.h
lib/net/*.h
lib/string/*.h
lib/subsys/*.h
lib/testsupport/testsupport.h
lib/testsupport/*.h
lib/tls/*.h
ciphers.inc
lib/tls/*.inc

View File

@ -461,7 +461,7 @@ static const char UNRESTRICTED_SERVER_CIPHER_LIST[] =
/** List of ciphers that clients should advertise, omitting items that
* our OpenSSL doesn't know about. */
static const char CLIENT_CIPHER_LIST[] =
#include "ciphers.inc"
#include "lib/tls/ciphers.inc"
/* Tell it not to use SSLv2 ciphers, so that it can select an SSLv3 version
* of any cipher we say. */
"!SSLv2"