grub2-dev: Variables

1 
1 2.3 Variables
1 =============
1 
1 The rule is mostly the same as functions, as noted above.  If a variable
1 is global, its name must be prefixed with grub_ and must consist of only
1 small letters.  If the variable belongs to a specific function module,
1 the name must also be prefixed with the module name.  For example, if a
1 function is for dynamic loading, its name is prefixed with grub_dl_.  If
1 a variable is for ELF but not for all dynamic loading systems, its name
1 is prefixed with grub_dl_elf_.
1 
1    After a prefix, a variable name must start with a noun or an
1 adjective (such as name or long) and it should end with a noun.  Some
1 kind of abbreviation is permitted, as long as it wouldn't make code less
1 readable (e.g.  i18n).
1 
1    If a variable is global in the scope of a single file (i.e.  it is
1 declared with static), its name may not start with any prefix.  It must
1 start with a noun or an adjective.
1 
1    If a variable is local, you may choose any shorter name, as long as
1 it wouldn't make code less readable (e.g.  i).
1