Project hosted by SourceForge.net
 
 
xHarbour.com
 
xHarbour Source Code Format

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

 
   
© 2017 xHarbour.org. All rights reserved.
Contact us | Terms of Use Agreement
xHarbour.ORG is maintained by Enrico Maria Giordano
Internet services kindly provided by Bekz.net