]> gcc.gnu.org Git - gcc.git/commit
cpphash.h (struct lexer_state): Remove line_extension member.
authorZack Weinberg <zack@gcc.gnu.org>
Thu, 14 Mar 2002 18:42:31 +0000 (18:42 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Thu, 14 Mar 2002 18:42:31 +0000 (18:42 +0000)
commitf0cce04a619628240a01a5b577d2eebedd2567f6
tree00d89c40d54da72ffe76e3c5a8acee4d60febcac
parentdcc229e5a1a7425479e0738cb9e70e8e8a2132da
cpphash.h (struct lexer_state): Remove line_extension member.

* 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.

From-SVN: r50780
gcc/ChangeLog
This page took 0.063348 seconds and 5 git commands to generate.