Seg fault fix running uffi tests
This commit is contained in:
parent
ab5559f51c
commit
9b0e06a8e8
1 changed files with 16 additions and 15 deletions
|
|
@ -363,23 +363,24 @@ int UFFI::classHandler(Node *n) {
|
||||||
for (c = firstChild(n); c; c = nextSibling(c)) {
|
for (c = firstChild(n); c; c = nextSibling(c)) {
|
||||||
SwigType *type = Getattr(c, "type");
|
SwigType *type = Getattr(c, "type");
|
||||||
SwigType *decl = Getattr(c, "decl");
|
SwigType *decl = Getattr(c, "decl");
|
||||||
type = Copy(type);
|
if (type) {
|
||||||
SwigType_push(type, decl);
|
type = Copy(type);
|
||||||
String *lisp_type;
|
SwigType_push(type, decl);
|
||||||
|
String *lisp_type;
|
||||||
|
|
||||||
if (Strcmp(nodeType(c), "cdecl")) {
|
if (Strcmp(nodeType(c), "cdecl")) {
|
||||||
Printf(stderr, "Structure %s has a slot that we can't deal with.\n", name);
|
Printf(stderr, "Structure %s has a slot that we can't deal with.\n", name);
|
||||||
Printf(stderr, "nodeType: %s, name: %s, type: %s\n", nodeType(c), Getattr(c, "name"), Getattr(c, "type"));
|
Printf(stderr, "nodeType: %s, name: %s, type: %s\n", nodeType(c), Getattr(c, "name"), Getattr(c, "type"));
|
||||||
SWIG_exit(EXIT_FAILURE);
|
SWIG_exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Printf(stdout, "Converting %s in %s\n", type, name); */
|
||||||
|
lisp_type = get_ffi_type(n, type, Getattr(c, "sym:name"));
|
||||||
|
|
||||||
|
Printf(f_cl, " (#.(%s \"%s\" :type :slot) %s)\n", identifier_converter, Getattr(c, "sym:name"), lisp_type);
|
||||||
|
|
||||||
|
Delete(lisp_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Printf(stdout, "Converting %s in %s\n", type, name); */
|
|
||||||
lisp_type = get_ffi_type(n, type, Getattr(c, "sym:name"));
|
|
||||||
|
|
||||||
Printf(f_cl, " (#.(%s \"%s\" :type :slot) %s)\n", identifier_converter, Getattr(c, "sym:name"), lisp_type);
|
|
||||||
|
|
||||||
Delete(lisp_type);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Language::classHandler(n);
|
// Language::classHandler(n);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue