Open iglennrogers opened 12 years ago
What if you do:
#include "whatever.h",
equate: {"char *" => <c-string>},
map: {"char *" => <byte-string>};
?
You still get define C-pointer-type <c-string> => <C-signed-char>;
written into the file - this is incidentally just before it's first required.
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'