fix directors + unnamed parameters

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-24 05:47:57 +00:00
commit 66402343a5

View file

@ -25,6 +25,7 @@ char cvsroot_directors_cxx[] = "$Header";
String *Swig_csuperclass_call(String* base, String* method, ParmList* l) {
String *call = NewString("");
int arg_idx = 0;
Parm *p;
if (base) {
Printf(call, "%s::", base);
@ -32,6 +33,10 @@ String *Swig_csuperclass_call(String* base, String* method, ParmList* l) {
Printf(call, "%s(", method);
for (p=l; p; p = nextSibling(p)) {
String *pname = Getattr(p, "name");
if (!pname && Cmp(Getattr(p,"type"), "void")) {
pname = NewString("");
Printf(pname, "arg%d", arg_idx++);
}
if (p != l) Printf(call, ", ");
Printv(call, pname, NIL);
}