File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
The following are coding style guidelines for this project.
3
3
4
- Code is expected to be ANSI C compatible (C89). Use ` /* ... */ ` comments, not
5
- ` // ... ` comments.
6
-
7
4
To automatically format all source code, install
8
5
[ clang-format] ( https://clang.llvm.org/docs/ClangFormat.html ) and
9
6
run ` make format ` .
10
7
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
+
11
18
## Blocks
12
19
13
20
The indentation rules are a variant on the K&R style.
You can’t perform that action at this time.
0 commit comments