Kaydet (Commit) b00d39b3 authored tarafından Nick Treleaven's avatar Nick Treleaven

Add example of pointer declarations and more operator spacing.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4187 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst faa4e734
......@@ -195,14 +195,16 @@ Example::
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment