[pypy-dev] make _ssl module compile

Armin Rigo arigo at tunes.org
Fri Aug 11 11:32:28 CEST 2006


Hi Lawrence,

On Thu, Aug 10, 2006 at 03:13:20PM +0200, Lawrence Oluyede wrote:
> So do you mean treat unions as struct at the rctypes level ? That
> could be simply making rctypes recognizing "Union" base class as an
> alias of Structure?

Yes.  After all, as far as I can tell, in C a 'union' is exactly the
same as a 'struct' apart from one detail: all fields start at offset 0
in the 'union' case, whereas they are one after the other in the
'struct' case.


A bientot,

Armin



More information about the Pypy-dev mailing list