Skip to content

Commit

Permalink
Add some Style example comments.
Browse files Browse the repository at this point in the history
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4486 ea778897-0a13-0410-b9d1-a72fbfd435f5
  • Loading branch information
ntrel committed Dec 9, 2009
1 parent 3cb236e commit fdf62f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HACKING
Expand Up @@ -207,10 +207,14 @@ Example::
gint function_long_name(gchar arg1, <too many args to fit on this line>,
gchar argN)
{
/* variable declarations go before code in each scope */
gint foo, bar; /* variables can go on the same line */
gchar *ptr; /* pointer symbol must go next to variable name, not type */
gchar *another; /* pointers should normally go on separate lines */

/* Some long comment block
* taking several different
* lines to explain */
if (foo)
{
gint dir = -1; /* -1 to search backwards */
Expand Down

0 comments on commit fdf62f3

Please sign in to comment.