File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22The following are coding style guidelines for this project.
33
4- Code is expected to be ANSI C compatible (C89). Use ` /* ... */ ` comments, not
5- ` // ... ` comments.
6-
74To automatically format all source code, install
85[ clang-format] ( https://clang.llvm.org/docs/ClangFormat.html ) and
96run ` make format ` .
107
8+ ## Standard compliance
9+
10+ Code is expected to be ANSI C compatible (C89). This means:
11+
12+ * All variables must be declared at the beginning of a block.
13+ * Use ` /* ... */ ` comments, not ` // ... ` comments.
14+ * There is no bool type (as added in C99); ` int ` is used for boolean values.
15+ * Other features added by later standards may not be used, such as inline
16+ functions, variable-length arrays or ` long long ` .
17+
1118## Blocks
1219
1320The indentation rules are a variant on the K&R style.
You can’t perform that action at this time.
0 commit comments