mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Another windows include
This commit is contained in:
parent
4b32446a4c
commit
405fa42e8a
@ -58,9 +58,18 @@ def load_include_rules(fname):
|
||||
result.addPattern(line)
|
||||
return result
|
||||
|
||||
MDD = "--mdd" in sys.argv[1:]
|
||||
|
||||
if MDD:
|
||||
print(
|
||||
|
||||
for dirpath, dirnames, fnames in os.walk("src"):
|
||||
if ".may_include" in fnames:
|
||||
rules = load_include_rules(os.path.join(dirpath, RULES_FNAME))
|
||||
if MDD:
|
||||
dp = dirpath.replace("src/","")
|
||||
rules.dump_mdd(dp)
|
||||
else:
|
||||
for fname in fnames:
|
||||
if fname_is_c(fname):
|
||||
rules.applyToFile(os.path.join(dirpath,fname))
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !defined(_WIN32)
|
||||
/** Defined iff we need to add locks when defining fake versions of reentrant
|
||||
|
Loading…
Reference in New Issue
Block a user