Skip to content

Commit a360e02

Browse files
author
Philip Oakley
committed
doc: CodingGuidelines: use -1 for unspecified cli options
This documents previous folk wisdom as discussed in https://public-inbox.org/git/[email protected]/. Raised recently in #201 and #237. Signed-off-by: Philip Oakley <[email protected]>
1 parent 8104ec9 commit a360e02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/CodingGuidelines

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ For C programs:
198198
including old ones. That means that you should not use C99
199199
initializers, even if a lot of compilers grok it.
200200

201+
- the convention is to use -1 for unspecified values of command-line
202+
options of config settings.
203+
201204
- Variables have to be declared at the beginning of the block.
202205

203206
- NULL pointers shall be written as NULL, not as 0.

0 commit comments

Comments
 (0)