Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 4ae2b7836b40174e555c688fe03e1b37 > files > 30

nsd-3.2.15-2.fc18.i686.rpm

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>...
  }