Hello,
This question is motivated by #9343, but I think it fits here.
Suppose I have an external spkg written in C using a lot of #define's.
How do I get these #define's to work in Cython?
More concretely: in the pari source file src/headers/parigen.h, there is
#define lgefint(x) ((long)(((ulong*)(x))[1] & LGBITS))
But in Sage, in sage/libs/pari/decl.pxi, there is
long lgefint(GEN x)
This looks very wrong to me, even to the extent that I don't see how it
can possibly work. What is the correct way to do this?
Jeroen.
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org