General purpose library for name/value pairs.
Bruce Evans
brde at optusnet.com.au
Fri Jul 26 21:14:03 UTC 2013
On Fri, 26 Jul 2013, Pawel Jakub Dawidek wrote:
> On Fri, Jul 26, 2013 at 06:04:15PM +1000, Bruce Evans wrote:
>> On Thu, 25 Jul 2013, Pawel Jakub Dawidek wrote:
>>
>>> Returning to this thread after a short break. I removed all
>>> {,u}int{8,16.32.64} types and implemented only 'number' type which is
>>> uint64_t. Looks much nicer now.
>>
>> The numeric type should be floating point. Or better yet, bignum. Or
>> more practically, uintmax_t.
>
> The uintmax_t in theory can change in the future, which would make
> sending numeric type from system with larger uintmax_t to system with
> smaller uintmax_t problematic.
Using uint64_t is especially broken then, since uint64_t is too small to
represent numbers on the system with larger uintmax_t. But how is the
data sent across systems by your API?
Bruce
More information about the freebsd-arch
mailing list