Revision 99a0949b CODING_STYLE
b/CODING_STYLE | ||
---|---|---|
40 | 40 |
|
41 | 41 |
3. Naming |
42 | 42 |
|
43 |
Variables are lower_case_with_underscores; easy to type and read. Structured |
|
44 |
type names are in CamelCase; harder to type but standing out. Scalar type |
|
45 |
names are lower_case_with_underscores_ending_with_a_t, like the POSIX |
|
46 |
uint64_t and family. Note that this last convention contradicts POSIX |
|
47 |
and is therefore likely to be changed. |
|
48 |
|
|
49 |
Typedefs are used to eliminate the redundant 'struct' keyword. It is the |
|
50 |
QEMU coding style. |
|
43 |
Variables are lower_case_with_underscores; easy to type and read. |
|
44 |
Structured type names are in CamelCase; harder to type but standing |
|
45 |
out. Scalar type names are a_lower_case_beginning_with_an a or an. |
|
46 |
Do not use _t suffix if you are including any headers. |
|
51 | 47 |
|
52 | 48 |
4. Block structure |
53 | 49 |
|
Also available in: Unified diff