This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: No more multiline string constants
- To: Zack Weinberg <zackw at stanford dot edu>
- Subject: Re: No more multiline string constants
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 5 Jul 2001 21:40:00 +0100 (BST)
- cc: <gcc-patches at gcc dot gnu dot org>, Neil Booth <neil at daikokuya dot demon dot co dot uk>
On Thu, 5 Jul 2001, Zack Weinberg wrote:
> Remove multi-line string extension.
>
> * cpphash.h (struct cpp_reader): Remove mlstring_pos.
> * cpplex.c (unterminated): Delete.
> (parse_string): No string literal may extend over multiple
> lines. Suppress the error when preprocessing assembly.
>
> * doc/cpp.texi: Update to match.
> * testsuite/gcc.dg/cpp/multiline.c: Update to match.
You need to remove the documentation in invoke.texi under -traditional
which says
@item
@cindex string constants vs newline
@cindex newline vs string constants
The preprocessor considers a string constant to end at a newline (unless
the newline is escaped with @samp{\}). (Without @w{@option{-traditional}},
string constants can contain the newline character as typed.)
(a user pointed out <URL:http://gcc.gnu.org/ml/gcc/2001-03/msg00924.html>
that the extension had actually been documented in previous releases, in
this obscure place).
--
Joseph S. Myers
jsm28@cam.ac.uk