Go to the first, previous, next, last section, table of contents.

Naming Variables and Functions

Please use underscores to separate words in a name, so that the Emacs word commands can be useful within them. Stick to lower case; reserve upper case for macros and enum constants, and for name-prefixes that follow a uniform convention.

For example, you should use names like ignore_space_change_flag; don't use names like iCantReadThis.

Variables that indicate whether command-line options have been specified should be named after the meaning of the option, not after the option-letter. A comment should state both the exact meaning of the option and its letter. For example,

/* Ignore changes in horizontal whitespace (-b).  */
int ignore_space_change_flag;

When you want to define names with constant integer values, use enum rather than `#define'. GDB knows about enumeration constants.

Use file names of 14 characters or less, to avoid creating gratuitous problems on System V.


Go to the first, previous, next, last section, table of contents.