Re: Coding style of function



On Wed, 2004-11-17 at 01:58 +0100, Harobed wrote:
> Hello,
> 
> I read the Gnome Coding Style at
> http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html and I don't see a paragraph about this question :
> 
> Why sometime a function is write as like void foo (int bar) and sometime
> as like void foo(int bar) ? (spacer less)

That is mostly a matter of taste. When contributing code to GNOME (or
any other project, for that matter) you should try (hard) to follow the
coding style of the surrounding code. Now, you'll quickly notice that
most code in GNOME does use a space before the opening parenthesis in a
function call, except for some exceptional modules.

-- m



-- 
Mariano Suárez-Alvarez <msuarezalvarez arnet com ar>
http://www.gnome.org/~mariano

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]