On Jul 14, 2007, at 5:28 PM, CVS commit messages for libssh2 wrote:

> Update of /cvsroot/libssh2/libssh2
> In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5605
>
> Modified Files:
>       Makefile.am
> Added Files:
>       HACKING
> Log Message:
> Metion the current code style in the new file called HACKING. In  
> this, we
> could also add descriptions on how to send us patches and bug  
> reports etc...
>
>
> --- NEW FILE: HACKING ---
>
> libssh2 source code style guide:
>
>  - 4 level indent
>  - spaces-only (no tabs)
>  - open braces on the if/for line:
>
>      if (banana) {
>          go_nuts();
>      }
>
>  - write both braces on the else line:
>
>      if (banana) {
>          go_nuts();
>      } else {
>          stay_calm();
>      }
>
>  - use braces even for single-statement blocks
>
>  - keep source lines shorter than 80 columns
>
> ------------
>
>  Older libssh2 code that still hasn't quite transitioned to the above
>  mentioned style, used a different style:
>
>  - indented with tabs (only)
>
>  - no line length limits

All of the work I did all the code is less then 132 columns.

I tried to keep it as close to 80 as was reasonable without breaking  
the lines in too many places so that the code became unreadable in,  
especiall in gdb(1).

Jim

--

/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
                      http://www.FreeBSD.org     The Power to Serve
[EMAIL PROTECTED]  http://www.TheHousleys.net
---------------------------------------------------------------------
Fortune Not Found:
Abort, Retry, Ignore?




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to