[Python-Dev] Forward declaration of PyObject* values
Tom Emerson
tree at basistech.com
Wed Aug 13 17:14:46 EDT 2003
Scott Gilbert writes:
> I used the following for a similar task:
>
> #ifndef PyObject_HEAD
> struct _object;
> typedef _object PyObject;
> #endif
>
> Some compilers won't like the incomplete type on the struct, but it looks
> like you're using GCC which should be fine.
Thanks Scott. I'll eventually be on upwards of 11 platforms with this
code, so I'll soon find out what platform compilers don't like this.
-tree
--
Tom Emerson Basis Technology Corp.
Software Architect http://www.basistech.com
"Beware the lollipop of mediocrity: lick it once and you suck forever"
More information about the Python-Dev
mailing list