Version 3 (modified by angel_il, 14 years ago) (diff) |
---|
Code Style
Please use the same indentation as other developers. Follow the style used in GNU Midnight Commander:
indent --gnu-style --format-first-column-comments --indent-level4 --brace-indent0 --line-length100 --no-tabs --blank-lines-after-procedures
or in short notation:
indent -gnu -fc1 -i4 -bli0 -nut -bap -l100
Programming Tips
typical structure of *.c file
/*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/
/*** file scope type declarations ****************************************************************/
/*** file scope variables ************************************************************************/
/*** file scope functions ************************************************************************/ /* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */ /*** public functions ****************************************************************************/ /* --------------------------------------------------------------------------------------------- */