mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
Add prefix policy to CONTRIBUTING.md
This commit is contained in:
parent
b0d99f5c67
commit
f9f75a1362
1 changed files with 6 additions and 5 deletions
|
@ -139,9 +139,10 @@ breaking points so your code is easy to read.
|
||||||
|
|
||||||
### Names
|
### Names
|
||||||
|
|
||||||
Function and type names should be prefixed with `wlr_submodule_` (e.g. `struct
|
Global function and type names should be prefixed with `wlr_submodule_` (e.g.
|
||||||
wlr_drm_plane`, `wlr_output_set_cursor`). For static functions and types local
|
`struct wlr_output`, `wlr_output_set_cursor`). For static functions and
|
||||||
to a file, the names chosen aren't as important.
|
types local to a file, the names chosen aren't as important. Local function
|
||||||
|
names shouldn't have a `wlr_` prefix.
|
||||||
|
|
||||||
For include guards, use the header's filename relative to include. Uppercase
|
For include guards, use the header's filename relative to include. Uppercase
|
||||||
all of the characters, and replace any invalid characters with an underscore.
|
all of the characters, and replace any invalid characters with an underscore.
|
||||||
|
|
Loading…
Reference in a new issue