Fix so that this file compiles
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b54804260f
commit
92b365d87d
1 changed files with 3 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ void add_defined_foreign_type(String *type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
String *get_ffi_type(SwigType *ty, String_or_char *name) {
|
String *get_ffi_type(SwigType *ty, const String_or_char *name) {
|
||||||
Hash *typemap = Swig_typemap_search("ffitype", ty, name, 0);
|
Hash *typemap = Swig_typemap_search("ffitype", ty, name, 0);
|
||||||
if (typemap) {
|
if (typemap) {
|
||||||
String *typespec = Getattr(typemap, "code");
|
String *typespec = Getattr(typemap, "code");
|
||||||
|
|
@ -166,9 +166,10 @@ String *get_ffi_type(SwigType *ty, String_or_char *name) {
|
||||||
Printf(stderr, "Unsupported data type: %s (was: %s)\n", type_reduced, ty);
|
Printf(stderr, "Unsupported data type: %s (was: %s)\n", type_reduced, ty);
|
||||||
SWIG_exit(EXIT_FAILURE);
|
SWIG_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
String *get_lisp_type(SwigType *ty, String_or_char *name)
|
String *get_lisp_type(SwigType *ty, const String_or_char *name)
|
||||||
{
|
{
|
||||||
Hash *typemap = Swig_typemap_search("lisptype", ty, name, 0);
|
Hash *typemap = Swig_typemap_search("lisptype", ty, name, 0);
|
||||||
if (typemap) {
|
if (typemap) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue