Defined a rule for variable and constant numeric types
[pingcheck] / Readme
CommitLineData
703f4d65
GMF
1
2Code Conventions
3=======================================
4This section describes the code conventions that must be followed when maintain
5this code.
6
7
8Data Types
9---------------------------------------
10
11Use std::string to represent array of characters.
12
13Use int32_t, int16_t and int8_t (and their unsigned couter parts) instead of
14int, short and char, respectively, when the variable or constant MUST have a
15specific size (e.g. like in the protocol headers). This documents that the
16variable have the given number of bits.
17
18Use std::size_t for regular integer numbers that do not require any specific
19size. Thus leaving the size difinition to the platform.