From: Joel Rosdahl Date: Wed, 9 Jan 2019 18:46:36 +0000 (+0100) Subject: Define sloppiness constants by shifting X-Git-Tag: v3.6~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a41de2ce19dee4db238e554138992abd7c2648b;p=thirdparty%2Fccache.git Define sloppiness constants by shifting --- diff --git a/src/ccache.h b/src/ccache.h index d98e27780..590cfc46f 100644 --- a/src/ccache.h +++ b/src/ccache.h @@ -1,5 +1,5 @@ // Copyright (C) 2002-2007 Andrew Tridgell -// Copyright (C) 2009-2018 Joel Rosdahl +// Copyright (C) 2009-2019 Joel Rosdahl // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -84,22 +84,22 @@ enum guessed_compiler { extern enum guessed_compiler guessed_compiler; -#define SLOPPY_INCLUDE_FILE_MTIME 1 -#define SLOPPY_INCLUDE_FILE_CTIME 2 -#define SLOPPY_FILE_MACRO 4 -#define SLOPPY_TIME_MACROS 8 -#define SLOPPY_PCH_DEFINES 16 +#define SLOPPY_INCLUDE_FILE_MTIME (1U << 0) +#define SLOPPY_INCLUDE_FILE_CTIME (1U << 1) +#define SLOPPY_FILE_MACRO (1U << 2) +#define SLOPPY_TIME_MACROS (1U << 3) +#define SLOPPY_PCH_DEFINES (1U << 4) // Allow us to match files based on their stats (size, mtime, ctime), without // looking at their contents. -#define SLOPPY_FILE_STAT_MATCHES 32 +#define SLOPPY_FILE_STAT_MATCHES (1U << 5) // Allow us to not include any system headers in the manifest include files, // similar to -MM versus -M for dependencies. -#define SLOPPY_NO_SYSTEM_HEADERS 64 +#define SLOPPY_NO_SYSTEM_HEADERS (1U << 6) // Allow us to ignore ctimes when comparing file stats, so we can fake mtimes // if we want to (it is much harder to fake ctimes, requires changing clock) -#define SLOPPY_FILE_STAT_MATCHES_CTIME 128 +#define SLOPPY_FILE_STAT_MATCHES_CTIME (1U << 7) // Allow us to not include the -index-store-path option in the manifest hash. -#define SLOPPY_CLANG_INDEX_STORE 256 +#define SLOPPY_CLANG_INDEX_STORE (1U << 8) #define str_eq(s1, s2) (strcmp((s1), (s2)) == 0) #define str_startswith(s, prefix) \