m
' prefix identifies a variable with module scope, while a 'g
' prefix identifies a global variable.p
' prefix for pointer variables.EFI_
prefix.DXE_
and PEI_
prefixes shall be reserved for DXE and PEI drivers, respectively. If a structure happens to apply equally to PEI and DXE, it should use the prefix DXE_
. If a structure is local to a particular module only, no special prefix is required.#ifndef
at the start of an include file, uses a postfix underscore character '_
', in its name in order to prevent collision with other names that follow the naming convention. This may not be sufficient for header files that don't have a unique name. In that case, additional text may have to be added to the macro name in order to make it unique. This may not be required if the header files are mutually exclusive.#else
and #endif
clauses identifying the block the clause is associated with. This is illustrated in the preceding code example. The comment shall be on the same line as the #else
or #endif
clause.