When names are longer than one English word, the words are catenated and their first letters capitalized, e.g., ThisIsALongExample. This is shorter than other styles, and is at least as readable.
The environment defines three scopes, each of which has its own naming convention:
The words in a function name are arranged in an English sentence-like order:
External | Internal | Local | |
---|---|---|---|
Functions, Macros | Rng_RangeReadLower | RngRangeReadLower | ReadLower |
Variables | rng_numRanges | rngNumRanges | numRanges |
Structures | Rng_IntRange_t | RngIntRange_t | IntRange_t |
Enumerated types | Rng_FastMethod_c | RngFastMethod_c | FastMethod_c |
Constants | RNG_MAX_INT | RNGMAX_INT | MAX_INT |