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

Re: [Libvir] RFC: Add a short doc with libvirt coding style guidelines



Hey,
	There's a few more obvious things missing, I think - e.g. should new
code use lower_case_with_underscores naming style or mixedCase ?

On Sun, 2008-01-13 at 17:39 +0000, Daniel P. Berrange wrote:
>   2. Do not use conditionals in front of 'free'.
> 
>      eg Instead of
> 
>        if (foo) free(foo)
> 
>      Use
> 
>        free(foo)

	That's only safe with glibc, right ?

Cheers,
Mark.


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