SF.net SVN: geany:[4187] trunk/HACKING
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Sep 14 14:48:24 UTC 2009
Revision: 4187
http://geany.svn.sourceforge.net/geany/?rev=4187&view=rev
Author: ntrel
Date: 2009-09-14 14:48:24 +0000 (Mon, 14 Sep 2009)
Log Message:
-----------
Add example of pointer declarations and more operator spacing.
Modified Paths:
--------------
trunk/HACKING
Modified: trunk/HACKING
===================================================================
--- trunk/HACKING 2009-09-14 14:39:11 UTC (rev 4186)
+++ trunk/HACKING 2009-09-14 14:48:24 UTC (rev 4187)
@@ -195,14 +195,16 @@
gint function_long_name(gchar arg1, <too many args to fit on this line>,
gchar argN)
{
- gint foo;
+ 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 go on separate lines */
if (foo)
{
gint dir = -1; /* -1 to search backwards */
bar = foo;
- if (bar != 7)
+ if ((bar & (guint)dir) != 7)
some_code(arg1, <too many args to fit on this line>,
argN - 1, argN);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list