[FW]C Coding Standards Quick Reference[1]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

Wireless Systems Group

C Coding Standards Quick Reference


Comments                                                      3.1

Every file that contains source code shall be documented with an introductory comment that provides information on the file name, its contents, and copyright information.

Every file that contains source code shall contain a revision history.

Files containing more that one function shall contain a function header for each function describing the function.

Code shall not be commented out.

Comments shall not be nested.

Constants                                                       3.2

Constants shall be used instead of hard coded numbers.

All locally defined constants shall be defined before the first function in the file.

If TRUE and FALSE are to be defined, TRUE shall be 1 and FALSE shall be 0.

NULL shall only be used for pointer comparisons and initializations.



Expressions                                                    3.3

本文关键:[FW]C Coding Standards Quick Reference
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top