|
From: | Geoffrey |
Subject: | Re: [Chicken-users] how to declare foreign variably size structs? |
Date: | Fri, 21 Jun 2013 07:27:14 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Dan,
You are imagining i am cleverer than I am. Currently i do: (define-foreign-record-type (inotify_event "struct inotify_event") (constructor: make-inotify_event) (destructor: free-inotify_event) (unsigned-int32 mask mask) (unsigned-int32 cookie cookie) (unsigned-int32 len len) (unsigned-int32 name name) ) Obviously name is wrong (except for file names of 2 chars length) I syntactically don't know how to make the allocated size bigger. On 21/06/13 06:32, Dan Leslie wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |