Changes between Version 1 and Version 2 of Developer/Coding/Conventions


Ignore:
Timestamp:
Jul 10, 2011, 2:52:48 PM (8 years ago)
Author:
Dufault
Comment:

/* Source Code Style */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coding/Conventions

    v1 v2  
    3434 *  Use spaces instead of tabs.
    3535 *  Use two spaces for indentation.
     36 *  Adhere to a limit of 80 characters per line.
    3637 *  Pay attention to warnings.
    3738 *  Check all return statuses.
     
    4243
    4344When in doubt, use the source code in ''cpukit/rtems'' as a style reference.
     45
     46If you are a ''vim'' user then the following additions to your ''.vimrc'' will assist in the indentation:
     47
     48{{{
     49 set tabstop=2
     50 set shiftwidth=2
     51 set expandtab
     52}}}
    4453
    4554Eric Valette did some research and came up with a set of arguments for version 2.2.7 of the ''indent'' program which seem to match the RTEMS style.  So if you need help, try this and see how it does: