[Python-Dev] mingw32 and gc-header weirdness

Antoine Pitrou solipsis at pitrou.net
Sat Jul 25 16:19:36 CEST 2009


Neil Hodgson <nyamatongwe <at> gmail.com> writes:
> 
> typedef union _gc_head {
>        struct {
>                union _gc_head *gc_next;
>                union _gc_head *gc_prev;
>                Py_ssize_t gc_refs;
>        } gc;
>        long double dummy;  /* force worst-case alignment */
>        double dummy2;  /* in case long double doesn't trigger worst-case */
> } PyGC_Head;

We could add a PY_LONG_LONG to the mix just in case.
By the way, will this kind of thing be frozen by the PEP ABI?

Regards

Antoine.




More information about the Python-Dev mailing list