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

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

 



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.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]