Changes between Version 3 and Version 4 of coding_rules


Ignore:
Timestamp:
03/31/11 14:43:00 (14 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • coding_rules

    v3 v4  
    88
    99 - if/for should follow this:
     10  - no space fetween if/for and its statement
     11  - If an if/for holds on one line, then do not use brackets
     12  - Otherwise, use brackets
    1013{{{
    1114#!c
     
    2932}}}
    3033
     34 - Comments should follow the code indentation and there should not be any blank line between a comment and the code it is referring to
     35{{{
     36#!c
     37   /*Assigning values of A*/
     38   for(int i=0<i<n;i++){
     39
     40      /*The comment here is indented*/
     41      A[i]=i;
     42   }
     43}}}
     44
     45 - Function declaration should hold on one line only
     46{{{
     47#!c
     48bool Test(int a,double b,char* c){
     49}}}
    3150== Matlab ==
    3251