Page History

Turn Off History

CVSTrac Coding Guidelines

These are more like observations from a latecomer, but better than nothing. CvstracArchitecture is a big picture overview. This talks about the nitty-gritty coding details.

  void function(args){          
    if( condition ){          
    }          
  }            

  if( condition ){         
  }else if( condition2 ){         
  }else{         
  }         

  if( condition ){         
    while( v[i] ) i++;         
  }         

but for loops are a bit different:

  for(i=0; i<40; i++){         
  }         

  zPath = mprintf("%s/%s", zDir, zFile);      

without a corresponding free(). The only time memory is really a concern happens when a large amount of activity happens in a loop. In such instances, free() or db_query_free() will be used.