Hello Ilia,

Thursday, May 19, 2005, 3:21:16 PM, you wrote:

> Marcus Boerger wrote:
>> Hello Ilia,
>> 
>>  gcc is becoming worse and worse. They completeley fuck up the c language.
>> We should disallow gcc 4. Both 3.4 and 4 are doing some things just wrong.

> I agree to some extent, but as much as may want GCC 4.0 will become the 
> standard compiler soon. OSX Tiger already ships it as the default 
> compiler and I suspect other distros will follow by the end of the year. 
> I doubt anyone would keep an old version of GCC around just for the sake 
> of compiling PHP.

> Ilia


I looked it up in more detail and here is the result. Indeed was the , at
the end of enums not in the first ISO standards. It was changed in ISO C99
but most compilers already allowed it before. Here is the current
definition:
  �ISO/IEC ISO/IEC 9899:1999 (E)
  6.7.2.2 Enumeration specifiers
  Syntax
    1 enum-specifier:
        enum identifieropt { enumerator-list }
        enum identifieropt { enumerator-list , }
        enum identifier
      enumerator-list:
        enumerator
        enumerator-list , enumerator
      enumerator:
        enumeration-constant
        enumeration-constant = constant-expression

Maybe gcc has a flag that is needed to enable iso c 99 - maybe they are just
braindead. But i want to believe it is all to become good...

-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to