summaryrefslogtreecommitdiffstats
path: root/test/scan-once.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/scan-once.py')
-rw-r--r--test/scan-once.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/scan-once.py b/test/scan-once.py
index 0d1dd2a..7019e23 100644
--- a/test/scan-once.py
+++ b/test/scan-once.py
@@ -356,10 +356,10 @@ def write_out(file, dict):
f.write(file + ": " + str(dict[k]) + "\\n")
f.close()
-orig_function = CScan.function
+orig_function = CScan.scan
-def MyCScan(node, env, target, orig_function=orig_function):
- deps = orig_function(node, env, target)
+def MyCScan(node, paths, orig_function=orig_function):
+ deps = orig_function(node, paths)
global Scanned
n = str(node)
@@ -371,7 +371,7 @@ def MyCScan(node, env, target, orig_function=orig_function):
return deps
-CScan.function = MyCScan
+CScan.scan = MyCScan
env = Environment(CPPPATH = ".")
l = env.StaticLibrary("g", Split("libg_1.c libg_2.c libg_3.c"))