From 25266990096c508a66a45ded1711f9050155b875 Mon Sep 17 00:00:00 2001 From: zack Date: Thu, 14 Mar 2002 18:17:18 +0000 Subject: * cpphash.h (struct lexer_state): Remove line_extension member. * cpplib.c (dequote_string, do_linemarker): New functions. (linemarker_dir): New data object. (DIRECTIVE_TABLE): No longer need to interpret #line in preprocessed source. Delete obsolete comment about return values of handlers. (end_directive, directive_diagnostics, _cpp_handle_directive): Don't muck with line_extension. (directive_diagnostics): No need to issue warnings for linemarkers here. (_cpp_handle_directive): Issue warnings for linemarkers here, when appropriate. Dispatch linemarkers to do_linemarker, not do_line. (do_line): Code to handle linemarkers split out to do_linemarker. Convert escape sequences in filename argument, both places. * cppmacro.c (quote_string): Rename cpp_quote_string and export. All callers changed. * cpplib.h (cpp_quote_string): Prototype. * cppmain.c (print_line): Call cpp_quote_string on to_file before printing it. * doc/cpp.texi: Document that escapes are now interpreted in #line and in linemarkers, and that non-printing characters are converted to octal escapes when linemarkers are generated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50779 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index de5dd54bacf..191649ccfd6 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -592,6 +592,9 @@ extern void cpp_forall_identifiers PARAMS ((cpp_reader *, /* In cppmacro.c */ extern void cpp_scan_nooutput PARAMS ((cpp_reader *)); extern int cpp_sys_macro_p PARAMS ((cpp_reader *)); +extern unsigned char *cpp_quote_string PARAMS ((unsigned char *, + const unsigned char *, + unsigned int)); /* In cppfiles.c */ extern int cpp_included PARAMS ((cpp_reader *, const char *)); -- cgit v1.2.3