mirror of
https://salsa.debian.org/ha-team/libqb
synced 2025-08-25 21:45:49 +00:00
33 lines
672 B
Plaintext
33 lines
672 B
Plaintext
|
|
libqb coding style
|
|
|
|
Our coding style is basically https://www.kernel.org/doc/Documentation/process/coding-style.rst
|
|
|
|
And any differences will be appended here.
|
|
|
|
Chapter 5: Typedefs
|
|
- Use int32_t integer types and not "int" / "long".
|
|
|
|
Chapter 4: Naming
|
|
- functions preferably named object_verb
|
|
|
|
Chapter 8: Commenting
|
|
- Document public functions using doxygen style comments in the header file.
|
|
We use doxygen to generate man pages.
|
|
|
|
|
|
== Fixing mistakes ==
|
|
Use "./Lindent <file>" to fix any indentation.
|
|
|
|
== VIM settings ==
|
|
set formatoptions=tcqlron
|
|
set cinoptions=:0,l1,t0,g0
|
|
set cindent
|
|
set noexpandtab
|
|
set tabstop=8
|
|
set shiftwidth=8
|
|
set textwidth=78
|
|
set smarttab
|
|
|
|
|