Skip to content

Commit 56398d8

Browse files
committed
Auto merge of #287 - fiveop:CONVENTIONS2, r=kamalmarhubi
A few additions to the CONVENTIONS file
2 parents da2cb87 + 3835777 commit 56398d8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

CONVENTIONS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ of either, feel free to remedy the flaw by opening a pull request with
1010
appropriate changes or additions.
1111

1212

13-
## Integer Constants
13+
## libc constants, functions and structs
1414

1515
We do not define integer constants ourselves, but use or reexport them from the
1616
[libc crate][libc].
1717

18+
We use the functions exported from [libc][libc] instead of writing our own
19+
`extern` declarations.
20+
21+
We use the `struct` definitions from [libc][libc] internally instead of writing
22+
our own.
1823

1924
## Bitflags
2025

2126
We represent sets of constants that are intended to be combined using bitwise
2227
operations as parameters to functions by types defined using the `bitflags!`
2328
macro from the [bitflags crate][bitflags].
29+
We name the type for a set of constants whose element's names start with `FOO_`
30+
`FooFlags`.
2431

2532

2633
## Enumerations

0 commit comments

Comments
 (0)