summaryrefslogtreecommitdiffstats
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 21:52:57 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 21:52:57 +0000
commitc0770282470be30c1aa3b581d7d80b570edc9b29 (patch)
treea31b212aa429bae765ecae0b494fda6a486c56a5 /libcpp/include/cpplib.h
parent57d460a6da5a86f6b48e232431425fb75e0d9e3d (diff)
downloadppe42-gcc-c0770282470be30c1aa3b581d7d80b570edc9b29.tar.gz
ppe42-gcc-c0770282470be30c1aa3b581d7d80b570edc9b29.zip
gcc/testsuite
PR preprocessor/27777: * gcc.dg/cpp/pr27777.c: New file. libcpp PR preprocessor/27777: * lex.c (cpp_output_line_to_string): New function. * internal.h (_cpp_begin_message): Don't declare. * errors.c (_cpp_begin_message): Now static. * include/cpplib.h (cpp_output_line_to_string): Declare. * directives.c (do_diagnostic): Rewrote. Use cpp_output_line_to_string. Don't use _cpp_begin_message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r--libcpp/include/cpplib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 6b3f7615c57..76288a9068c 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -844,6 +844,8 @@ extern void cpp_error_with_line (cpp_reader *, int, source_location, unsigned,
/* In lex.c */
extern int cpp_ideq (const cpp_token *, const char *);
extern void cpp_output_line (cpp_reader *, FILE *);
+extern unsigned char *cpp_output_line_to_string (cpp_reader *,
+ const unsigned char *);
extern void cpp_output_token (const cpp_token *, FILE *);
extern const char *cpp_type2name (enum cpp_ttype);
/* Returns the value of an escape sequence, truncated to the correct
OpenPOWER on IntegriCloud