aboutsummaryrefslogtreecommitdiffstats
path: root/src/build.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-08-13 17:30:02 +0200
committerTharre <tharre3@gmail.com>2014-08-13 17:34:08 +0200
commitd09eb6c95b85fcb22d6b36353c82c3b4293e6fb7 (patch)
tree4574d2a1fbc04671c889caf49da64a73d4d74904 /src/build.h
parent325c8e3992bf7b73714d10a5d2202c89ddbac189 (diff)
downloadredo-d09eb6c95b85fcb22d6b36353c82c3b4293e6fb7.tar.gz
redo-d09eb6c95b85fcb22d6b36353c82c3b4293e6fb7.tar.xz
redo-d09eb6c95b85fcb22d6b36353c82c3b4293e6fb7.zip
Implement (incomplete) dependency checking.
Targets still do not depend on .do-files, and a lot of the edge cases are still not handled correctly. Furthermore some error-checking code is still missing, which could possibly crash the program (partially marked with comments), as well as some free() calls. An utitlity python script (print_dep.py) was also added to aid in debugging matters.
Diffstat (limited to 'src/build.h')
-rw-r--r--src/build.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h
index 54093bb..0b34241 100644
--- a/src/build.h
+++ b/src/build.h
@@ -14,5 +14,8 @@ extern char *get_relpath(const char *target);
extern char *get_dep_path(const char *target);
extern void add_dep(const char *target, int indent);
extern void write_dep_hash(const char *target);
+extern bool has_changed(const char *target, int ident, bool is_sub_dependency);
+extern bool dependencies_changed(char buf[], size_t read);
+
#endif