Add some Style example comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4486 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
3cb236eeee
commit
fdf62f3e77
4
HACKING
4
HACKING
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user