Thread (1 message) 1 message, 1 author, 2003-04-11

Re: parse error before `{', stray '\' in program

From: Eugene Surovegin <hidden>
Date: 2003-04-11 19:04:55

At 10:37 AM 4/11/2003, Ron Flory wrote:
Wolfgang Denk wrote:
quoted
In message [off-list ref] you wrote:
quoted
Does anyone know if the ppc_8xx-gcc 2.95.4 from DENX ELDK has this
patch applied?

No, it has not, and will not.

I see no sense in a modification that supports violations  of  the  C
standard.

Well, it doesn't violate any existing C/C++ standard:

This is excerpt from ISO/IEC 9899 (p. 9):

   5.1.1.2 Translation phases

     1 The precedence among the syntax rules of translation is specified
       by the following phases

         1. Physical source file multibyte characters are mapped,
            in an implementation-defined manner, to the source character set
            (introducing new-line characters for end-of-line indicators)
             if necessary.
             ....

         2. Each instance of a backslash character (\) immediately
            followed by a new-line character is deleted, splicing physical
            source lines to form logical source lines.
            ....

So, it's clearly implementation-defined behavior. In this sense both
preprocessor implementations (with or without patch) are standard compliant.

I think this trivial patch make more cleaner solution than any ugly makefile
hacks like dos2unix or tr or whatever... And definitely more user/developer
friendly.

Eugene


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help