Improve comments in hash_include_file_string

This commit is contained in:
Joel Rosdahl 2010-04-25 17:02:25 +02:00
parent 32e96d16a3
commit 6faf3267d2
2 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View 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++;