mirror of
https://github.com/systemd/systemd.git
synced 2025-09-23 17:45:04 +03:00
CODING_STYLE: document that we should avoid kernel types like u32
This commit is contained in:
@@ -147,7 +147,9 @@
|
|||||||
|
|
||||||
- Do not use types like "short". They *never* make sense. Use ints,
|
- Do not use types like "short". They *never* make sense. Use ints,
|
||||||
longs, long longs, all in unsigned+signed fashion, and the fixed
|
longs, long longs, all in unsigned+signed fashion, and the fixed
|
||||||
size types uint32_t and so on, as well as size_t, but nothing else.
|
size types uint32_t and so on, as well as size_t, but nothing
|
||||||
|
else. Do not use kernel types like u32 and so on, leave that to the
|
||||||
|
kernel.
|
||||||
|
|
||||||
- Public API calls (i.e. functions exported by our shared libraries)
|
- Public API calls (i.e. functions exported by our shared libraries)
|
||||||
must be marked "_public_" and need to be prefixed with "sd_". No
|
must be marked "_public_" and need to be prefixed with "sd_". No
|
||||||
|
Reference in New Issue
Block a user