summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-05 23:42:43 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-05 23:42:43 +0000
commitc4a0fee9ea0630bd19fe39580e78427126501aae (patch)
treef75c0eae70e97a88004eb221f90aa6ae6175ab77 /gcc/cpplib.h
parent39b4544721a42184a6259f64d2197630d71d4744 (diff)
downloadppe42-gcc-c4a0fee9ea0630bd19fe39580e78427126501aae.tar.gz
ppe42-gcc-c4a0fee9ea0630bd19fe39580e78427126501aae.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38057 138bc75d-0d04-0410-961f-82ee72b054a4
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 524b8f6ed61..0caff3fb98e 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));
OpenPOWER on IntegriCloud