Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: multi-lines deprecated

Thread Tools

Re: multi-lines deprecated

Jeremy Yallop
Posts: n/a
Frédéric Liné wrote:
> My gcc 3.2.2 tells me that "multilines are deprecated". What am I
> supposed to use instead ?

Do you perhaps mean "multi-line string literals are deprecated"? If
so, you can use the fact that adjacent string literals are
concatenated to retain the general layout of your code. That is,
instead of writing

char c[] = "This is a multi-line

you can write

char c[] = "This is a multi-line\n"

I notice that in gcc-3.3.3 multi-line string literals seem to have
been removed altogether, so the deprecation warning should be heeded.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deprecated methods: how important to fix? kaeli Java 3 08-24-2004 08:20 PM
XML/JDOM: Replacement for deprecated XMLOutputter ?? Bernd Oninger Java 1 06-10-2004 06:50 PM
deprecated getResources method David McDivitt Java 2 05-19-2004 01:49 PM
deprecated servlet session management: getSessionContext(); david Java 4 10-09-2003 12:22 AM
Deprecated warnings within deprecated code Barney Barumba Java 0 07-23-2003 12:46 AM