Coding Guidelines
From Openmoko
(Difference between revisions)
Line 4: | Line 4: | ||
== C Coding == | == C Coding == | ||
− | [http://developer.gnome.org/doc/guides/programming-guidelines/book1.html GNOME Programming Guidelines] | + | All C code should be done in the C99 standard -- it's much more maintainable, less error prone, |
+ | clean and concise, and removes a lot of C's warts. | ||
+ | |||
+ | Here is some good information about C99: | ||
+ | |||
+ | * http://www-128.ibm.com/developerworks/linux/library/l-c99.html?ca=dgr-lnxw07UsingC99 | ||
+ | * http://en.wikipedia.org/wiki/C_programming_language#C99 | ||
+ | |||
+ | This is a good C coding guide: | ||
+ | |||
+ | [http://developer.gnome.org/doc/guides/programming-guidelines/book1.html GNOME Programming Guidelines] | ||
== C++ Coding == | == C++ Coding == |
Revision as of 03:44, 29 August 2006
Contents |
General Recommendations
GNU Standards is also a good read for developers in general.
C Coding
All C code should be done in the C99 standard -- it's much more maintainable, less error prone, clean and concise, and removes a lot of C's warts.
Here is some good information about C99:
- http://www-128.ibm.com/developerworks/linux/library/l-c99.html?ca=dgr-lnxw07UsingC99
- http://en.wikipedia.org/wiki/C_programming_language#C99
This is a good C coding guide: