[cffi-devel] Using preprocessor symbol as argument to :count in cstruct

Hugo Duncan hugo_duncan at yahoo.com
Tue Oct 14 13:23:14 UTC 2008


Hi,

Attatched is a simple (5-line) patch bundle that allows the use of a
preprocessor symbol as the argument to the :count keyword in a cstruct.
This allows grovelling of structs that contain arrays whose size is
specified by a #defined value.  Previously, non-numeric arguments were
ignored.

First time using darcs for anything other than retrieval, so I hope the  
attached is in a useable form.

Hugo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: count-patch.bundle
Type: application/octet-stream
Size: 2896 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20081014/682ef839/attachment.obj>


More information about the cffi-devel mailing list