[C2hs] add addrof directive (was: ptrto)

Philipp Balzarek species64738 at googlemail.com
Thu May 2 22:09:13 CEST 2013


{#addrof <path> #} retrieves the address of a field of a c
structure, following <path>. It behaves much like get or set, but
instead of marshalling the target it returns a pointer to it.
This is useful e.g. when the associated Haskell type doesn't
have a Storable instance, for example SockAddr.

See also: http://www.haskell.org/pipermail/c2hs/2013-March/001113.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addrof.patch
Type: text/x-patch
Size: 10694 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/c2hs/attachments/20130502/647d839a/attachment.bin>


More information about the C2hs mailing list