Changes between Version 26 and Version 27 of Hacking


Ignore:
Timestamp:
01/12/16 18:37:54 (8 years ago)
Author:
andrew_b
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hacking

    v26 v27  
    55 
    66Please use the same indentation as other developers. 
     7 * Follow source templates (see [/browser/maint/templates maint/templates] in the source tree). 
    78 * Maximum line width is 100 characters. The reason is not about people with low-res screens but rather sticking to 100 columns prevents you from easily nesting more than one level of if statements or other code blocks. 
    89 * No tabs. Use 4 space tabs with whitespace fillers to indent. 
     
    365366#include "src/help.h"           /* interactive_display() */ 
    366367}}} 
    367  
    368 Do not mix global and local variables and functions. 
    369 Do not mix static and non-static statements. 
    370  
    371 Follow typical structure of *.c file: 
    372  
    373 {{{ 
    374 /*** global variables ****************************************************************************/ 
    375 }}} 
    376 {{{ 
    377 /*** file scope macro definitions ****************************************************************/ 
    378 }}} 
    379 {{{ 
    380 /*** file scope type declarations ****************************************************************/ 
    381 }}} 
    382 {{{ 
    383 /*** file scope variables ************************************************************************/ 
    384 }}} 
    385 {{{ 
    386 /*** file scope functions ************************************************************************/ 
    387 /* --------------------------------------------------------------------------------------------- */ 
    388 }}} 
    389 {{{ 
    390 /* --------------------------------------------------------------------------------------------- */ 
    391 /*** public functions ****************************************************************************/ 
    392 /* --------------------------------------------------------------------------------------------- */ 
    393 }}} 
    394 (see [/browser/maint/templates maint/templates] in the source tree).