Changes between Version 4 and Version 5 of Developer/Coding/NamingRules
- Timestamp:
- 05/30/14 18:14:34 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Coding/NamingRules
v4 v5 3 3 = General rules = 4 4 5 * Avoid abbreviations. 5 * Avoid abbreviations. Exceptions are for well-known acronyms. 6 * Use descriptive language. 7 * File names should be lower-case alphabet letters only, plus the extension. 8 * Local-scope variable names are all lower case with underscores between words. 9 * Constants are all capital letters with underscores between words. 10 * Type names, function names, and global scope names have different rules depending on whether they are part of the public API or are internal to RTEMS, see below. 6 11 = User-facing API = 7 12 8 The public API routines follow a standard API like POSIX or *BSD or start with rtems_. 13 The public API routines follow a standard API like POSIX or *BSD or start with rtems_. If a name starts with rtems_, then it should be assumed to be available for use by the application and be documented in the User's Guide. 14 = Classic API = 9 15 10 If a name starts with rtems_, then it should be assumed to be available for use by the application and be documented in the User's Guide.16 * TODO. 11 17 = SuperCore Naming = 12 18