You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a naked import:declaration, gives a line in the translation as : define C-pointer-type <char*> => <C-signed-char>;
with <char*> used in function declarations. However, these are unable to be directly assigned to a <string>.
Having a line equate: { "char *" => <c-string> }
allows an assignment to <string>, but gives the following error.
Serious warning at sqlib-base-ffi.dylan:12:
Attempt to define variable {<C-string> in c-ffi-interface} owned by another library, definition ignored.
sqlib-base-ffi.dylan:11: ---------------------------------------------------
sqlib-base-ffi.dylan:12: define C-pointer-type <c-string> => <C-signed-char>;
sqlib-base-ffi.dylan:13: ---------------------------------------------------
It might be worthwhile having the define C-pointer-type <char*> => <C-signed-char>; line in the cffi library in addition to the <c-string> definition (assuming that's where it is) (there must be other common substitutions as well), but then not writing anything into the dylan file, so the error isn't generated, especially if it's marked as 'serious'
The text was updated successfully, but these errors were encountered:
Having a naked import:declaration, gives a line in the translation as :
define C-pointer-type <char*> => <C-signed-char>;
with
<char*>
used in function declarations. However, these are unable to be directly assigned to a<string>
.Having a line
equate: { "char *" => <c-string> }
allows an assignment to
<string>
, but gives the following error.It might be worthwhile having the
define C-pointer-type <char*> => <C-signed-char>;
line in the cffi library in addition to the<c-string>
definition (assuming that's where it is) (there must be other common substitutions as well), but then not writing anything into the dylan file, so the error isn't generated, especially if it's marked as 'serious'The text was updated successfully, but these errors were encountered: