[Pyrex] Platform dependent external declarations?
    Greg Ewing 
    greg.ewing at canterbury.ac.nz
       
    Thu Mar  1 23:25:39 UTC 2007
    
    
  
Eric Huss wrote:
> Well, a more realistic, concrete example would be the difference between
> 32 and 64 bit platforms,
> 
> Using the wrong type for the platform will generate incorrect C code.
Not if a typedef is used, because the C compiler will
always be using the definition from the header.
> if you need to convert from/to Python
> values, on the 64-bit platform it will use the less efficient
> PyLong_FromLongLong instead of PyInt_FromLong.
That's a valid concern, although it's a matter of
efficiency rather than correctness.
I'll continue to think about this issue.
--
Greg
    
    
More information about the Pyrex
mailing list