|
Enki
1.9
|
The purprose of this page is to describe the Enki coding conventions. They exist to ensure readable and high-quality code, so please follow them. If you read Enki's code, you'll perhaps notice some parts that do not follow those conventions. Should this happen, feel free to clean the code and submit patch with a compliant version.
Code should be indented by tabs. A tab should be equivalent to 4 spaces. Please note that in the code below, non-breaking spaces are used because tabs don't display correctly in web pages.
Classes should begin with capitals, new words should be denoted by a capital, and words should not be separated by underscores or dashes. In other words,
instead of:
Class members, variables, and C function follow the same convention but without the initial capital:
instead of:
Brackets {} should be placed alone on a line, except if there is no or only one function call within them.
instead of:
If you use Emacs as your editor, you can make it apply these rules to Enki files by putting the following in the .emacs file in your home directory:
And adding the following to the top line of each of your source files:
1.8.11