Re: py-ext: casting pointers to ints on 32bit and 64bit systems

2006-01-27 Thread David Rushby
Alexander Schmolck wrote: > what's the best approach to write C(++)-extension code that has to create a > python int from a C pointer and vice versa so that it works smoothly on 32 bit > and 64 platforms (on which sizeof(int) != sizeof(*void)) equally work (under > unix,mac&windows and with gcc, vc

Re: py-ext: casting pointers to ints on 32bit and 64bit systems

2006-01-27 Thread Thomas Heller
Alexander Schmolck <[EMAIL PROTECTED]> writes: > what's the best approach to write C(++)-extension code that has to > create a python int from a C pointer and vice versa so that it works > smoothly on 32 bit and 64 platforms (on which sizeof(int) != > sizeof(*void)) equally work (under unix,mac&wi

py-ext: casting pointers to ints on 32bit and 64bit systems

2006-01-27 Thread Alexander Schmolck
what's the best approach to write C(++)-extension code that has to create a python int from a C pointer and vice versa so that it works smoothly on 32 bit and 64 platforms (on which sizeof(int) != sizeof(*void)) equally work (under unix,mac&windows and with gcc, vc and borland)? Currently the rele