Changeset 484c4e in git
- Timestamp:
- Jul 3, 2008, 7:27:10 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b3e756485561b1e091db80fa3af95e6278907e32
- Parents:
- f1f0d0967dd51f5b9549a38ef2ff5b5c7144c4e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/RULES
rf1f0d0 r484c4e 1 Naming conventions(variables): 2 ----------------------------- 3 - global name start with a prefix in small letters, describing the general field of that routine 1 C++ conventions 2 --------------- 3 - struct are used in sense of C, otherwise use a class 4 - a class must have a constructor and destruction, do not rely on the default ones 5 - avoid virtual methods, if possible 6 - under all circumstances, avoid multiple inheritance 7 - remember, that Singular has C and C++ parts, i.e. ia C compiler must be able 8 to comple your .h file (wrap C++-only parts in #ifdef) 9 - use // comments only in C++-parts 10 11 12 Compiler conventions 13 -------------------- 14 - should compile with gcc/g++ version 2.9.3 to 4.x 15 - should create correct code with gcc/g++ version 2.9.3 to 4.x : with 16 well known exeptions 17 ( IA64: gcc 4.0.x, 4.1.x produce wrong code, 18 OsX: ..., etc.) 19 20 Naming conventions(variables/functions/methods): 21 ------------------------------------------------ 22 - global names start with a prefix in small letters, 23 describing the general field of that routine 4 24 and have capital initial letters. 5 25 Example: pGetExp 6 - local names should be short and, if they coantain a capital letter, start with a capital7 letter.26 - local names should be short and, 27 if they coantain a capital letter, start with a capital letter. 8 28 Example: i 9 29 - macros (which do not substitute procedures) should be all in capital letters. … … 12 32 Naming conventions(filenames, libraries): 13 33 ----------------------------------------- 14 - to avoid confusion on poor file systems, filenames should be all in small letters 34 - to avoid confusion on poor file systems, 35 filenames should be all in small letters, or, at least, be unique if converted 36 to small letters 15 37 16 38 Error messages:
Note: See TracChangeset
for help on using the changeset viewer.