doc: Examples for PDZInfo have been fixed in the specification
[libisds.git] / CodingStyle
blob63b3ae20d4717571e5dd8778700ad69b61aed5db
1 Coding Style
2 ============
4 Maximal line length is 80 columns. (I hate endless lines.)
6 Indent by 4 spaces. No tabulators. (Because width limit.)
8 Use ISO C 99 languge and POSIX or Single UNIX Specification functions.
9 (Portability.)
11 Opening parentheses remains at the end of line. (Consistency.)
13 Each non-static function has to have a prefix. `isds_' prefix for public
14 functions, `_isds_' for internal functions shared between objects. (Not to
15 polute name space, especially with static linkage.)
17 Internal functions shared beetween objects but not in public API have to have
18 `_hidden' marker on function definition to exclude the symbol from exporting
19 to symbol table. (Run-time optimization.)