Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C99?



On Monday, Sep 1, 2003, at 13:12 US/Pacific, David Thorp wrote:

Greetings...

Someone has informed me that C99 will allow me to do something in C that is not allowed in the original ANSI C (that is, arrays declared using variables).

Actually C99 is ISO C 99 and ANSI C 99, the original ANSI C is C 89 (ANSI C) or C 90 (ISO C from ANSI C 89) or C 94 (ISO C 90+wchar_t).


My question is: Does project builder (2.1 Dec 2002) support C99? If so is it by default, or is there something I have to turn on?

Project Builder uses GCC and this has been a GCC extension for a long time, so yes what you want to do is turned on by default.

Also note to use all of C99 in PB (or really GCC) add the option std=c99 (this really only turns on the scope for for/while/ifs, kinda like what c++ 98 does).


Thanks,
Andrew Pinski
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >C99? (From: David Thorp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.