[PyKDE] SIP: size_t?

Phil Thompson phil at riverbankcomputing.co.uk
Tue Mar 21 17:52:46 GMT 2006

On Tuesday 21 March 2006 5:14 pm, Giovanni Bajo wrote:
> 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.

The standard library defines size_t, not the compiler. SIP just knows what's 
in the language definition, not the library.


More information about the PyQt mailing list