]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Apply code review suggestions
authorGeert Kloosterman <geert.kloosterman@brightcomputing.com>
Thu, 1 Mar 2018 06:59:32 +0000 (07:59 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 1 Mar 2018 19:56:37 +0000 (20:56 +0100)
doc/MANUAL.txt
src/ccache.c

index ff3116bfe3311256d15cbfbdf697e63ba8aa216b..f528ad44cbbb556a18da0ccf715d9ee863b5ff2c 100644 (file)
@@ -451,13 +451,13 @@ might be incorrect.
     matching the compiler name in the normal *PATH* that isn't a symbolic link
     to ccache itself.
 
-*pch_external_checksum* (*CCACHE_PCH_EXTSUM*)::
+*pch_external_checksum* (*CCACHE_PCH_EXTSUM* or *CCACHE_NOPCH_EXTSUM*, see <<_boolean_values,Boolean values>> above)::
 
     When this option is set, and ccache finds a precompiled header file,
-    ccache will look for a file with the extension ``.sum`` added
-    (e.g. ``pre.h.gch.sum``), and if found, it will hash this file instead
-    of the precompiled header itself.  To work around the performance
-    penalty of hashing of very large files.
+    ccache will look for a file with the extension ``.sum'' added
+    (e.g. ``pre.h.gch.sum''), and if found, it will hash this file instead
+    of the precompiled header itself to work around the performance
+    penalty of hashing very large files.
 
 *prefix_command* (*CCACHE_PREFIX*)::
 
index 53bd46d779ce4183ff164e8fb344f3c6ad69d752..7f23f38c1190640058148ed4bbbcb53b19a56b45 100644 (file)
@@ -642,9 +642,9 @@ remember_include_file(char *path, struct mdfour *cpp_hash, bool system)
                if (conf->pch_external_checksum) {
                        // hash pch.sum instead of pch when it exists
                        // to prevent hashing a very large .pch file every time
-                       char * pch_sum_path = format("%s.sum", path);
+                       char *pch_sum_path = format("%s.sum", path);
                        if (x_stat(pch_sum_path, &st) == 0) {
-                               char * old_path = path;
+                               char *old_path = path;
                                path = pch_sum_path;
                                pch_sum_path = old_path;
                                using_pch_sum = true;