Version 1 (modified by tomkralidis, 13 years ago) ( diff )


Coding Style

This page documents possible coding conventions for MapServer.

Artistic Style (astyle)

Artistic Style (astyle) is source code formatting tool, and allows for flexible definitions (spaces, padding, indents, one liners, etc.) to automatically format source code for a given coding convention.

Here is a sample invocation:

$ astyle --style=kr --unpad=paren --indent=spaces=2 mslibxml2.c

Coding Conventions

  • style (k&r, gnu, linux)
  • tabs an brackets (tabs, spaces)
  • indentation
  • formatting (parens)
Note: See TracWiki for help on using the wiki.