IDL: uint64 or udlong

Amin Azez azez at ufomechanic.net
Tue Jan 15 16:31:34 GMT 2008


* Amin Azez wrote, On 15/01/08 16:08:
> * Stefan (metze) Metzmacher wrote, On 15/01/08 15:57:
>> Amin Azez schrieb:
>>   
>>> Grepping of the samba4 source helped me delcare an actual uint64_t by
>>> specifying a udlong.
>>>
>>> If I specify uint64 in the idl the pidl generated files try to make use
>>> of "struct uint64" instead of uint64_t
>>>
>>> Using udlong sounds like a step towards architecture specific sizes and
>>> makes me uneasy. 
>>>
>>> What should I be using in my idl when I want a 64 bit unsigned integer
>>> (for file-offsets in this case)?
>>>     
>>
>> use 'hyper'
>>   
> Google said:
> 12/08/04 17:04:13 <metze> uint64 is 4byte aligned and HYPER_T 8byte
> I guess something has happened since to remove uint64 but I'm sure I
> don't want 8 byte alignment, although I could jig my struct to match...
Ignore that comment from a chap who clearly can't do his 8 times table.

Sam


More information about the samba-technical mailing list