remove extra lookup of directorout typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f1e95ff67
commit
54b87bdd7d
4 changed files with 0 additions and 20 deletions
|
|
@ -1627,11 +1627,6 @@ public:
|
||||||
Setattr(n, "type", return_type);
|
Setattr(n, "type", return_type);
|
||||||
tm = Swig_typemap_lookup("directorout", n, "c_result", w);
|
tm = Swig_typemap_lookup("directorout", n, "c_result", w);
|
||||||
Setattr(n, "type", type);
|
Setattr(n, "type", type);
|
||||||
if (tm == 0) {
|
|
||||||
String *name = NewString("c_result");
|
|
||||||
tm = Swig_typemap_search("directorout", return_type, name, NULL);
|
|
||||||
Delete(name);
|
|
||||||
}
|
|
||||||
if (tm != 0) {
|
if (tm != 0) {
|
||||||
Replaceall(tm, "$input", "swig_result");
|
Replaceall(tm, "$input", "swig_result");
|
||||||
/* TODO check this */
|
/* TODO check this */
|
||||||
|
|
|
||||||
|
|
@ -1305,11 +1305,6 @@ public:
|
||||||
Setattr(n, "type", return_type);
|
Setattr(n, "type", return_type);
|
||||||
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
||||||
Setattr(n, "type", type);
|
Setattr(n, "type", type);
|
||||||
if (tm == 0) {
|
|
||||||
String *name = NewString("result");
|
|
||||||
tm = Swig_typemap_search("directorout", return_type, name, NULL);
|
|
||||||
Delete(name);
|
|
||||||
}
|
|
||||||
if (tm != 0) {
|
if (tm != 0) {
|
||||||
char temp[24];
|
char temp[24];
|
||||||
sprintf(temp, "out(%d)", idx);
|
sprintf(temp, "out(%d)", idx);
|
||||||
|
|
|
||||||
|
|
@ -3949,11 +3949,6 @@ int PYTHON::classDirectorMethod(Node *n, Node *parent, String *super) {
|
||||||
Setattr(n, "type", return_type);
|
Setattr(n, "type", return_type);
|
||||||
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
||||||
Setattr(n, "type", type);
|
Setattr(n, "type", type);
|
||||||
if (tm == 0) {
|
|
||||||
String *name = NewString("result");
|
|
||||||
tm = Swig_typemap_search("directorout", return_type, name, NULL);
|
|
||||||
Delete(name);
|
|
||||||
}
|
|
||||||
if (tm != 0) {
|
if (tm != 0) {
|
||||||
if (outputs > 1) {
|
if (outputs > 1) {
|
||||||
Printf(w->code, "output = PyTuple_GetItem(result, %d);\n", idx++);
|
Printf(w->code, "output = PyTuple_GetItem(result, %d);\n", idx++);
|
||||||
|
|
|
||||||
|
|
@ -3245,11 +3245,6 @@ public:
|
||||||
Setattr(n, "type", return_type);
|
Setattr(n, "type", return_type);
|
||||||
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
tm = Swig_typemap_lookup("directorout", n, "result", w);
|
||||||
Setattr(n, "type", type);
|
Setattr(n, "type", type);
|
||||||
if (tm == 0) {
|
|
||||||
String *name = NewString("result");
|
|
||||||
tm = Swig_typemap_search("directorout", return_type, name, NULL);
|
|
||||||
Delete(name);
|
|
||||||
}
|
|
||||||
if (tm != 0) {
|
if (tm != 0) {
|
||||||
if (outputs > 1 && !asvoid ) {
|
if (outputs > 1 && !asvoid ) {
|
||||||
Printf(w->code, "output = rb_ary_entry(result, %d);\n", idx++);
|
Printf(w->code, "output = rb_ary_entry(result, %d);\n", idx++);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue