On Wednesday 18 August 2004 17:07, Stefan Hundhammer wrote:
I am running 64 bit Linux, but there appears to be no documentation about the arguments expected by SuSE XWindow. That is: are the normal 32 bit integers still 32 bit or change to 64 bit for function calls? More importantly, where is the documentation?
An integer is an integer is an integer, and it's up to the library makers to take care how many bits they have. If a function prototype specifies "int", pass an int and be happy. If it specifies "UINT32", pass a UINT32.
This is good point. You just need to follow what the library writes use in their function decelerations. However if you are counting bits it is worth noting that the default size of integer types does NOT change when you move to x86_64 . It is only pointers that change to 64bit. In consequence of course 'size_t' changes to 64bit. Michael