Changeset 484c4e in git


Ignore:
Timestamp:
Jul 3, 2008, 7:27:10 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b3e756485561b1e091db80fa3af95e6278907e32
Parents:
f1f0d0967dd51f5b9549a38ef2ff5b5c7144c4e1
Message:
*hannes: RULES


git-svn-id: file:///usr/local/Singular/svn/trunk@10833 2c84dea3-7e68-4137-9b89-c4e89433aadc
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
     1C++ 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
     12Compiler 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 
     20Naming conventions(variables/functions/methods):
     21------------------------------------------------
     22- global names start with a prefix in small letters,
     23  describing the general field of that routine
    424  and have capital initial letters.
    525  Example: pGetExp
    6 - local names should be short and, if they coantain a capital letter, start with a capital
    7   letter.
     26- local names should be short and,
     27  if they coantain a capital letter, start with a capital letter.
    828  Example: i
    929- macros (which do not substitute procedures) should be all in capital letters.
     
    1232Naming conventions(filenames, libraries):
    1333-----------------------------------------
    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
    1537
    1638Error messages:
Note: See TracChangeset for help on using the changeset viewer.