Changes between Version 96 and Version 97 of Developer/Coding/Conventions


Ignore:
Timestamp:
Apr 7, 2017, 3:15:32 PM (2 years ago)
Author:
Joel Sherrill
Comment:

Add initial text on <inttypes.h>

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coding/Conventions

    v96 v97  
    3232 *  Do not put function prototypes in C source files, any global functions should have a prototype in a header file and any private function should be declared static.
    3333 *  Declare global variables in exactly one header file. Define global variables in at most one source file.  Include the header file declaring the global variable as the first include file if possible to make sure that the compiler checks the declaration and definition and that the header file is self-contained.
     34 * Do not cast arguments to any printf() or printk() variant. Use <inttypes.h> PRI constants for the types supported there. Use <rtems/inttypes.h> for the other POSIX and RTEMS types that have PRI constants defined there. This increases the portability of the printf() format.
     35
    3436= Formatting =
    3537