diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2010-04-25 17:03:23 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2010-04-25 17:03:23 +0200 |
commit | 149d4912dcda693cade96f7da7bf41af92f3884d (patch) | |
tree | 76ee164d08bb99112dd7f271847b87996d74c236 /hashutil.h | |
parent | 6faf3267d20f9c758d53f25aaef79d45195a0948 (diff) | |
download | ccache-149d4912dcda693cade96f7da7bf41af92f3884d.tar.gz |
Disable direct mode if __{DATE,FILE,TIME}__ is used
Diffstat (limited to 'hashutil.h')
-rw-r--r-- | hashutil.h | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 |