aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-12-05 23:42:43 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-12-05 23:42:43 +0000
commit3cf3593fad06d6fb27f5e8ef3715c41fad1553b8 (patch)
treef75c0eae70e97a88004eb221f90aa6ae6175ab77 /gcc/cpplib.h
parentd53c4221afa7f4a00b7200c6d9023e1c6c5c2769 (diff)
downloadgcc-3cf3593fad06d6fb27f5e8ef3715c41fad1553b8.zip
gcc-3cf3593fad06d6fb27f5e8ef3715c41fad1553b8.tar.gz
gcc-3cf3593fad06d6fb27f5e8ef3715c41fad1553b8.tar.bz2
cppfiles.c (stack_include_file): Push zero-length buffers in case of failure.
* cppfiles.c (stack_include_file): Push zero-length buffers in case of failure. Return void, as we don't fail any more. (read_include_file): Check for files we shouldn't re-read. Don't return an error code; errors are implied by marking the file NEVER_REREAD. (_cpp_execute_include): Move the recursion and in-macro checks here. Update for stack_include_file not failing. * cpplib.c (cpp_push_buffer): Always succeed, since _cpp_execute_include performs the recursion check. Tidy up. * cpplib.h (cpp_push_buffer): Update prototype. From-SVN: r38057
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index 524b8f6..0caff3f 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -725,7 +725,7 @@ extern void cpp_undef PARAMS ((cpp_reader *, const char *));
extern void cpp_unassert PARAMS ((cpp_reader *, const char *));
extern cpp_buffer *cpp_push_buffer PARAMS ((cpp_reader *,
- const unsigned char *, long));
+ const unsigned char *, size_t));
extern cpp_buffer *cpp_pop_buffer PARAMS ((cpp_reader *));
extern int cpp_defined PARAMS ((cpp_reader *, const unsigned char *, int));