Paste: FFI C-STRUCT:
Author: | dlh |
Mode: | factor |
Date: | Tue, 2 Dec 2008 01:46:51 |
Plain Text |
I have a simple struct:
C-STRUCT: WPS_SimpleAuthentication
{ "char*" "username" }
{ "char*" "realm" } ;
Used like this:
"blah" "WPS_SimpleAuthentication" <c-object> set-WPS_SimpleAuthentication-username
results in this error:
Type check error
Object: "blah"
Object type: string
Expected type: alien
Author: | slava |
Mode: | factor |
Date: | Tue, 2 Dec 2008 01:49:23 |
Plain Text |
[
"WPS_SimpleAuthentication" <c-object>
"blah" ascii malloc-string &dispose
over set-WPS_SimpleAuthentication-username
] with-destructors
Author: | dlh |
Mode: | factor |
Date: | Tue, 2 Dec 2008 02:15:49 |
Plain Text |
[
"WPS_SimpleAuthentication" <c-object>
"blah" ascii malloc-string &free
over set-WPS_SimpleAuthentication-username
] with-destructors
New Annotation