This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: No more multiline string constants


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]