File: coding-style

package info (click to toggle)
nsd3 3.2.5-1.squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,160 kB
  • ctags: 3,534
  • sloc: ansic: 21,814; python: 2,085; yacc: 1,368; makefile: 583; sh: 278
file content (17 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Coding Style for NSD

[This is incomplete, but a start]

o No space after function/keyword
o { on the same line as the if/while/for statement
o If an 'if' has one statement in the 'then' part omit the braces:
        if (!x) 
                return NULL;

  Indent the 'then' part with tabs
o Function:
  return-type
  functionname(parameters, ...)
  {
  <tab>...
  }