... | ... | @@ -6,6 +6,7 @@ Roughly Linux kernel code style: https://www.kernel.org/doc/Documentation/Coding |
|
|
|
|
|
* Tabs for indentation, spaces otherwise (aligning comments, parameters on next line, etc.)
|
|
|
* E.g. when aligning wrapped line, use tabs to follow indents, then spaces to align
|
|
|
* Casts are _NOT_ followed by a space (e.g. ```(int *)malloc(4)```).
|
|
|
* Typedefs are OK, use *_t notation
|
|
|
* Prefixed #ifdefs (#ifdef <notextile>_KNOTD_FOOBAR</notextile>)
|
|
|
* Instead of header guard like <notextile>_KNOTD_HEADER_H_</notextile> we use #pragma once
|
... | ... | |