} else {
unlink(output_obj);
/* only make a hardlink if the cache file is uncompressed */
- if (getenv("CCACHE_HARDLINK") && test_if_compressed(cached_obj) == 0) {
+ if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_obj) == 0) {
ret = link(cached_obj, output_obj);
} else {
ret = copy_file(cached_obj, output_obj, 0);
if (produce_dep_file) {
unlink(output_dep);
/* only make a hardlink if the cache file is uncompressed */
- if (getenv("CCACHE_HARDLINK") && test_if_compressed(cached_dep) == 0) {
+ if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_dep) == 0) {
ret = link(cached_dep, output_dep);
} else {
ret = copy_file(cached_dep, output_dep, 0);
int move_file(const char *src, const char *dest, int compress_dest);
int move_uncompressed_file(const char *src, const char *dest,
int compress_dest);
-bool test_if_compressed(const char *filename);
+bool file_is_compressed(const char *filename);
int create_dir(const char *dir);
const char *get_hostname(void);
/* test if a file is zlib compressed */
bool
-test_if_compressed(const char *filename)
+file_is_compressed(const char *filename)
{
FILE *f;