Next: Identifier Naming Details
Up: CONVENTIONS
Previous: CONVENTIONS
  Contents
The identifier naming conventions include:
- Variables, functions, parameters and struct fields beginning
with lower-case, then upper and lower-case mixed.
N_sapCreate and
sapAddr
are examples of function and parameter
identifiers in the following example.
"N_" in "N_sapCreate" is a module prefix and is not subject to this
convention.
N_SapDesc
N_sapCreate(sapAddr)
N_SapAddr *sapAddr;
- Typedefs, struct/Union/enum tags named with upper-case
groups. Beginning with upper case, then lower and upper-case
mixed:
String, struct N_SapAddr
- #define and enumerated constants named with upper-case
letters:
FALSE, MAXLENGTH
- Identifiers exported by a module prefix followed
by an '_'. The module prefix can be 1 to 4 letters long.
QU_init, TMR_Desc, N_SAPLENGTH
The layout of expressions and statements follow those in the book
written by Kernighan and Ritchie entitled
"The C Programming Language".
The few simple conventions mentioned above are
adequate for describing the basic guide lines.
The following section describe in more detail the naming conventions
followed and the rationale behind it.