[bind10-dev] IntElement type

fujiwara at jprs.co.jp fujiwara at jprs.co.jp
Wed Jul 3 10:18:42 UTC 2013


Thanks comments.

> From: Danny Mayer <mayer at pdmconsulting.net>
>> Which do you like better, "long long int" and "int64_t" ?
>> 
> 
> Personally I find the int64_t provides an exact definition of the size
> of the datatype. long int, long long, etc. aren't very clear. On
> different compilers I have found the long has different meanings.

> From: Francis Dupont <fdupont at isc.org>
> => I support Danny (who is BTW expert about a platform where
> long is 32 bit long in both 32 and 64 bit variants).

In trac3015 branch, I implemented and tested.

[3015] Type of IntElement is changed from long int to int64_t.
       Element::create() accepts char, short, int, long, long long, int32_t and int64_t.
       IntElement->intValue() returns int64_t.
       IntElement->getValue() and IntElement->setValue() accept int64_t only.

However, strtoint64_t function does not exist.
It is assumed that "long long" and int64_t are the same sizes.
strtoll is used to convert string to integer.

Is it acceptable ? 

Regards,

--
Kazunori Fujiwara, JPRS <fujiwara at jprs.co.jp>


More information about the bind10-dev mailing list