[PyKDE] SIP: size_t?

Giovanni Bajo rasky at develer.com
Tue Mar 21 17:14:39 GMT 2006

Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

>> what is the correct way of handling size_t? It's not a builtin type that
>> SIP understands, and any typedef machinery is going to be wrong
>> (portability-wise).
> You have to make the typedef dependent on the %Platform.

Wouldn't be better if SIP did this automatically? A proper definition of
size_t across 32/64 bit systems (including Win64 vs Linux ABI differences)
is somehow problematic. Compilers do supply "size_t" specifically so that
people don't have to worry doing the ifdef-ery.
Giovanni Bajo

More information about the PyQt mailing list