mirror of
https://github.com/reactos/ccache.git
synced 2025-02-22 12:00:51 +00:00
Improve comments in hash_include_file_string
This commit is contained in:
parent
32e96d16a3
commit
6faf3267d2
8
ccache.c
8
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)
|
||||
{
|
||||
|
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user