THE XHARBOUR PROJECT

xHarbour Source Code Format

You find here a few very basic formatting rules for the source files. This formatting ensures readability of the source codes.

  • Keep headers compact & descriptive, with clear separated copyright information
  • Move license & disclaimer to the bottom of the text
  • Single Line Comments should use // style comment
    Multi Line Comments should use /**/ style
  • Delimit functions with "//-----------------------"
  • ALWAYS use {} brackets, even with single line conditional blocks.
    Use this style of brackets and spacing:

    if( bCondition )
    {
       SomeAction();
    }

    Example C File

Part of the xHarbour open source project.Get in touch

Search across all xHarbour pages.

Find your next step.ESC to close