Changes between Version 1 and Version 2 of coding_rules
- Timestamp:
- 08/09/10 15:13:13 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
coding_rules
v1 v2 1 1 2 == Coding rules ==2 == Variable Names == 3 3 4 4 - variables should not use capital letters. Use underscores to make variables more understandable. 5 6 == Enum Names == 7 5 8 - Function names and enums should not use any underscore. Use capital letters to make names more understandable. 6 9 Example: … … 9 12 Input* vx_input=GetInput(inputs,VxInput); 10 13 }}} 14 15 == Function/Modules Names == 16 17 Functions that return an output corresponding to a given input should be named as follows: 18 - EnumToString 19 - IdToName 20 Never ever Id2Name or IdAsName,... 21 If necessary, "From" can be used instead of "To" if emphasis has to be put on the input: 22 - ResultFromInputs