summaryrefslogtreecommitdiff
path: root/hashutil.h
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2010-04-25 17:03:23 +0200
committerJoel Rosdahl <joel@rosdahl.net>2010-04-25 17:03:23 +0200
commit149d4912dcda693cade96f7da7bf41af92f3884d (patch)
tree76ee164d08bb99112dd7f271847b87996d74c236 /hashutil.h
parent6faf3267d20f9c758d53f25aaef79d45195a0948 (diff)
downloadccache-149d4912dcda693cade96f7da7bf41af92f3884d.tar.gz
Disable direct mode if __{DATE,FILE,TIME}__ is used
Diffstat (limited to 'hashutil.h')
-rw-r--r--hashutil.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/hashutil.h b/hashutil.h
index 1696f79c..96f11fc3 100644
--- a/hashutil.h
+++ b/hashutil.h
@@ -14,8 +14,19 @@ unsigned int hash_from_string(void *str);
int strings_equal(void *str1, void *str2);
int file_hashes_equal(struct file_hash *fh1, struct file_hash *fh2);
-void hash_include_file_string(
- struct mdfour *hash, const char *str, size_t len);
-int hash_include_file(struct mdfour *hash, const char *path);
+enum hash_source_code_result {
+ HASH_SOURCE_CODE_OK,
+ HASH_SOURCE_CODE_ERROR,
+ HASH_SOURCE_CODE_FOUND_VOLATILE_MACRO
+};
+
+enum hash_source_code_result
+hash_source_code_string(
+ struct mdfour *hash, const char *str, size_t len,
+ int check_volatile_macros);
+enum hash_source_code_result
+hash_source_code_file(
+ struct mdfour *hash, const char *path,
+ int check_volatile_macros);
#endif