[cffi-devel] Using preprocessor symbol as argument to :count in cstruct
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
On Tue, 2008-10-14 at 09:23 -0400, Hugo Duncan wrote:
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.
I've applied your patch. Sorry for the delay -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.
participants (2)
-
Hugo Duncan
-
Stelian Ionescu