{
char *hash_bin = format("%s%s", path, ".ccache-hashX");
char *hash_txt = format("%s%s", path, ".ccache-input");
- hash_debug(hash_bin, hash_txt);
+ hash_debug_init(hash_bin, hash_txt);
free(hash_bin);
free(hash_txt);
}
static void
-debug_end(bool hit)
+debug_end()
{
- (void) hit;
+ hash_debug_end();
char *path = format("%s%s", output_obj, ".ccache-log");
cc_copylog(path);
free(path);
}
if (conf->debug) {
- debug_end(true);
+ debug_end();
}
// And exit with the right status code.
to_cache(compiler_args);
if (conf->debug) {
- debug_end(false);
+ debug_end();
}
x_exit(0);
// ----------------------------------------------------------------------------
// hash.c
-void hash_debug(const char *bin, const char *txt);
+void hash_debug_init(const char *bin, const char *txt);
+void hash_debug_end(void);
void hash_start(struct mdfour *md);
void hash_buffer(struct mdfour *md, const void *s, size_t len);
char *hash_result(struct mdfour *md);
// text input, for debugging
char *debug_hash_txt;
-void hash_debug(const char *bin, const char *txt)
+void hash_debug_init(const char *bin, const char *txt)
{
static char *hash_types = "cdp"; // common, direct, cpp
if (bin) {
}
}
+void hash_debug_end()
+{
+}
+
static void
hash_binary_buffer(struct mdfour *md, const void *s, size_t len)
{