mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-29 07:58:19 -04:00
CONTRIBUTING: Explicitly allow mixed declarations & code
Let's see how it goes. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
1078ee4993
commit
115b54fb97
1 changed files with 3 additions and 2 deletions
|
|
@ -139,8 +139,9 @@ try to follow the rules below.
|
||||||
- no braces in an if-body with just one statement;
|
- no braces in an if-body with just one statement;
|
||||||
- if one of the branches of an if-else condition has braces, then the
|
- if one of the branches of an if-else condition has braces, then the
|
||||||
other branch should also have braces;
|
other branch should also have braces;
|
||||||
- there is always an empty line between variable declarations and the
|
- there is always an empty line between initial variable declarations and
|
||||||
code;
|
the code;
|
||||||
|
- variable declarations may be interspersed with code
|
||||||
|
|
||||||
```c
|
```c
|
||||||
static int
|
static int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue