2000-08-18 21:49:27 +00:00
|
|
|
Coding Style Guide
|
|
|
|
==================
|
|
|
|
|
|
|
|
You _WILL_ indent with hard tabs, or you will be harmed. :)
|
|
|
|
You can format for whatever tab spacing you like, but if you indent with spaces
|
|
|
|
you will be hurt, and you will have deserved it. :)
|
|
|
|
For best results, use 4-space tabs, because that's what id used and what most
|
|
|
|
of us use.
|
|
|
|
|
|
|
|
/*
|
|
|
|
SECTION_FunctionName
|
|
|
|
|
|
|
|
Description
|
|
|
|
*/
|
|
|
|
returntype
|
|
|
|
SECTION_FunctionName ( args )
|
|
|
|
{
|
|
|
|
type var;
|
|
|
|
|
|
|
|
for (stuff) { // do something silly
|
|
|
|
:
|
|
|
|
:
|
|
|
|
}
|
2000-08-20 13:33:48 +00:00
|
|
|
|
|
|
|
if (stuff) { // check something silly
|
|
|
|
:
|
|
|
|
} else {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2000-09-21 03:35:10 +00:00
|
|
|
switch (var) {
|
2000-08-20 13:33:48 +00:00
|
|
|
case a:
|
|
|
|
:
|
|
|
|
case b:
|
|
|
|
:
|
|
|
|
default:
|
|
|
|
:
|
|
|
|
}
|
2000-08-18 21:49:27 +00:00
|
|
|
}
|