LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",") (http://www.linuxquestions.org/questions/programming-9/porting-to-fedora-gcc-4-0-parsing-backward-slash-%5C-comma-439119/)

code_blew 04-26-2006 04:38 PM

Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",")
 
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.

graemef 04-26-2006 05:07 PM

Maybe you could try \x2C which is the escape sequence for a comma?


All times are GMT -5. The time now is 11:36 AM.