]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve comments in hash_include_file_string
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 15:02:25 +0000 (17:02 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 15:02:25 +0000 (17:02 +0200)
ccache.c
hashutil.c

index c8f5cb838c51ab5eae380589aa408878fd3e2121..8a43519a734566cc4d28ce0290c10e0b6897b3fd 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -386,12 +386,10 @@ static char *make_relative_path(char *path)
 
 /*
  * This function reads and hashes a file. While doing this, it also does these
- * things:
+ * things with preprocessor lines starting with a hash:
  *
- * - Makes include file paths whose prefix is CCACHE_BASEDIR relative when
- *   computing the hash sum.
- * - Stores the paths and hashes of included files in the global variable
- *   included_files.
+ * - Makes include file paths whose prefix is CCACHE_BASEDIR relative.
+ * - Stores the paths of included files in the global variable included_files.
  */
 static int process_preprocessed_file(struct mdfour *hash, const char *path)
 {
index d8f51eedcebf6ce0c2586828f5c8866061ecf366..bf97eff6a946b6bbb1cd2bf70aadabfae6efe8cb 100644 (file)
@@ -65,6 +65,7 @@ void hash_include_file_string(
                        goto end;
                }
                switch (*p) {
+               /* Potential start of comment. */
                case '/':
                        if (p+1 == end) {
                                break;
@@ -101,6 +102,7 @@ void hash_include_file_string(
                        }
                        break;
 
+               /* Start of string. */
                case '"':
                        HASH(*p);
                        p++;