293
/* ------------------------------------------------------------
294
* Swig_director_parms_fixup()
296
* For each parameter in the C++ member function, copy the parameter name
297
* to its "lname"; this ensures that Swig_typemap_attach_parms() will do
298
* the right thing when it sees strings like "$1" in "directorin" typemaps.
299
* ------------------------------------------------------------ */
301
void Swig_director_parms_fixup(ParmList *parms) {
304
for (i = 0, p = parms; p; p = nextSibling(p), ++i) {
305
String *arg = Getattr(p, "name");
308
if (!arg && !Equal(Getattr(p, "type"), "void")) {
309
lname = NewStringf("arg%d", i);
310
Setattr(p, "name", lname);
314
Setattr(p, "lname", lname);