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
相关方案
|