public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",")
@ 2006-04-27 15:36 mallen
  2006-04-27 15:48 ` John Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: mallen @ 2006-04-27 15:36 UTC (permalink / raw)
  To: gcc-help


This declaration statement used to work.... it would return 3 arguments to a
macro....

DEFINE_CONST( LINE_TEXT,    // argument 1
\{_TEXT("solid")\,_TEXT("dash")\,_TEXT("doubledash")\,\}, // argument 2
"")” // argument 3

now --- building on Fedora Core 4 with gcc 4.0

the statement breaks each backslash (\) comma (,) into arguments so it now
returns 6 arguments

which becomes a problem because the macro only expects 3 arguments....
any ideas on how to resolve this.
thanks.
--
View this message in context: http://www.nabble.com/Porting-to-Fedora-gcc-4.0--parsing-backward-slash%28%22%5C%22%29-comma%28%22%2C%22%29-t1518915.html#a4123190
Sent from the gcc - Help forum at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Porting to Fedora gcc 4.0 -parsing backward slash("\")  comma(",")
  2006-04-27 15:36 Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",") mallen
@ 2006-04-27 15:48 ` John Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: John Love-Jensen @ 2006-04-27 15:48 UTC (permalink / raw)
  To: mallen, MSX to GCC

Hi mallen,

Use this:

#define COMMA ,

DEFINE_CONST( LINE_TEXT,
{_TEXT("solid") COMMA _TEXT("dash") COMMA _TEXT("doubledash") COMMA },
"")

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-27 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-27 15:36 Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",") mallen
2006-04-27 15:48 ` John Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).