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:
Nick Treleaven 2009-12-09 12:52:11 +00:00
parent 3cb236eeee
commit fdf62f3e77

View File

@ -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 */