summaryrefslogtreecommitdiffstats
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-04 18:06:19 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-04 18:06:19 +0000
commitf789fe3e72e0085a7d89158655461d82c78eeba7 (patch)
tree545ffe9bc98a6d6ff50b698d701fdeaba1622b1d /libcpp/include/cpplib.h
parentc3a17dfe7c4bf1fe7777f1856ccdba7084c7e15e (diff)
downloadppe42-gcc-f789fe3e72e0085a7d89158655461d82c78eeba7.tar.gz
ppe42-gcc-f789fe3e72e0085a7d89158655461d82c78eeba7.zip
libcpp/
PR preprocessor/13726 * directives.c (check_eol_return_comments): New static function. (parse_include): Add buf parameter. Change all callers. (do_include_common): If not discard comments, turn on save_comments. Pass collected comments to include callback. * include/cpplib.h (struct cpp_callbacks): Add new parameter to include callback: cpp_token list. gcc/ PR preprocessor/13726 * c-ppoutput.c (cb_include): Add comments parameter, and print out any comments passed in. gcc/testsuite/ PR preprocessor/13726 * gcc.dg/cpp/cmdlne-dI-C.c: New test. * gcc.dg/cpp/cmdlne-dI-C.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r--libcpp/include/cpplib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index c84f6243376..3c4d0d6cb5b 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -459,7 +459,7 @@ struct cpp_callbacks
void (*dir_change) (cpp_reader *, const char *);
void (*include) (cpp_reader *, unsigned int, const unsigned char *,
- const char *, int);
+ const char *, int, const cpp_token **);
void (*define) (cpp_reader *, unsigned int, cpp_hashnode *);
void (*undef) (cpp_reader *, unsigned int, cpp_hashnode *);
void (*ident) (cpp_reader *, unsigned int, const cpp_string *);
OpenPOWER on IntegriCloud