| NAME: | the name of the file without extension |
| TYPE: | c header, c code, objective-c header, objective-c code, yacc source, or whatever filetype it may be |
| PROJECT: | the name of the project this file is part of |
| CONTENT: | a one-line description of the purpose of this file |
| AUTHORS: | the names of the authors of this file (i.e. the people who created and modified this file) |
| HISTORY: | chronolgy of modification of a file wich minimally contains the creation date and the date of the last modification. The time of the change is optional, dates should always be written with letter-shortcuts of the months. |
| MANUAL: | for header files this together with specially formatted comments contains the complete interface documentation for the module; for other files this contains an optional description of the contents of the file. |
The indentation is generally four characters. All the lines that are part of the same block have the same indentation. Continuation lines are indented according to corresponding structural parts of the expression, or at least eight characters.
In case this is not possible the continuation line should be indented at least 8 characters in addition to the base indentation.
The opening and closing brace of a block are in the same row or column.
The opening and closing brace of a block has to be either
The opening brace after a for, if, while or function head has to be directly under the first character of the statement, e.g.
for (i = 0; i < numberOfSubNodes; i++)
{
...
}
or the whole block is in the same line, e.g.
if (currentMax > current) { currentMax = current; }
The opening brace of a function call or function definition should be
directly after the function name without a space inbetween, e.g.
strcmp(charPtr,buffer);The opening brace of the expression following one of the keywords if, while, for and return, should be offset from the keyword by one space, e.g:
while (--counter > 0)
{
...
}
For example:
InMassActor, SimpleWindow
For example:
int roots_of_poly( // calculate polynomial roots unsigned int n, // order of the polynomial double * pol, // coefficients x^0 ... x^n double * roots // OUT: roots of the polynomial ); // OUT: number of roots
For example:
- (void) transformPoint : (const Pnt3D *) inPoint : (Pnt3D *) outPoint ;
- (void) getImageSize
:(IVec2D *) outImageSize
{
*outImageSize = imageSize;
}
- (void) setImageSize
: (const IVec2D *) inImageSize
{
imageSize = *inImageSize;
}
- (const char *) nodeName
{
return nodeName;
}
For example:
#define MATH_PI 3.14159265359 #define THIS_MUST_BE_A_MACRO(a,b,c)
For example:
extern const Pnt3D G3D_P_ZERO;
For example:
typedef enum ArsHitState
{
arshit_nothing_valid = 0x0,
arshit_valid_local_point = 0x1,
arshit_valid_local_normal = 0x2,
arshit_valid_world_normal = 0x4
}
ArsHitState;
This page is maintained by Robert F Tobler. It was last updated on August 27, 1999.
If you have any comments, please send a message to rft@cg.tuwien.ac.at.