Re: [PATCH 7/7] remote generator: Annotate hyper with the actual C type

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

 



On 05/27/2011 04:12 AM, Daniel P. Berrange wrote:
>> But anything is better than nothing, so I won't give any further
>> complaints if we go with your idea of only annotating the exceptions to
>> the 'long long' default, rather than all uses of hyper.
> 
> My rationale for defaulting to 'long long' is that we should never
> add any more APIs which take a plain 'long' anywhere. It would be
> a nice idea if we could get apibuild.py or something to raise an
> error if it finds any more APIs using 'long', except for a whitelist
> of existing ones

Yes, I like that compromise.  Default to 'long long', enforce that
default in new code, and whitelist the old exceptions; then we only have
to annotate the exceptions, and don't have to worry about adding
annotations when adding new API.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]