diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-03-14 19:35:08 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-03-14 19:35:08 +0000 |
commit | e7182666e6f4b38afd0c0e36be1560a0c26ae4c1 (patch) | |
tree | 89ee63cfa3141e40d8e17c5c20b7ea0f80c0f8bd /gcc/cpphash.h | |
parent | f80022ff3df97a3f8f47e32ad22b989c7c70c00b (diff) | |
download | gcc-e7182666e6f4b38afd0c0e36be1560a0c26ae4c1.zip gcc-e7182666e6f4b38afd0c0e36be1560a0c26ae4c1.tar.gz gcc-e7182666e6f4b38afd0c0e36be1560a0c26ae4c1.tar.bz2 |
cppfiles.c (stack_include_file): Only increase the include count if we actually process the file properly...
* cppfiles.c (stack_include_file): Only increase the include
count if we actually process the file properly, as opposed
to treating it as length zero. Only call read_include_file
if not DO_NOT_REREAD. Handle the -H include file output
here.
(read_include_file): Remove now redundant DO_NOT_REREAD check.
(cpp_included, find_include_file): Simplify pathnames after
remapping them. If remapping, don't use the remapped file
name's buffer as our scratch buffer.
(cpp_pop_file_buffer): Replace the multiple include macro
only if it isn't yet set.
(read_name_map): Simplify remapped names when reading in.
(remap_filename): Move code to code path that uses it.
(_cpp_simplify_pathname): Return the input pointer.
* cpphash.h (_cpp_simplify_pathname): Update prototype.
From-SVN: r40467
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index df27e73..5d452c3 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -409,7 +409,7 @@ extern cpp_hashnode *_cpp_lookup_with_hash PARAMS ((cpp_reader*, size_t, /* In cppfiles.c */ extern void _cpp_fake_include PARAMS ((cpp_reader *, const char *)); extern void _cpp_never_reread PARAMS ((struct include_file *)); -extern void _cpp_simplify_pathname PARAMS ((char *)); +extern char *_cpp_simplify_pathname PARAMS ((char *)); extern int _cpp_read_file PARAMS ((cpp_reader *, const char *)); extern void _cpp_execute_include PARAMS ((cpp_reader *, const cpp_token *, int, int)); |