summaryrefslogtreecommitdiff
path: root/Source/Swig/naming.c
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2007-01-02 21:17:19 +0000
committerDave Beazley <dave-swig@dabeaz.com>2007-01-02 21:17:19 +0000
commit52dcbb9001f55281c67db0f08cc2d032c5e34d1c (patch)
tree720cb51a0eff73d00371497ad2f20e3519a89140 /Source/Swig/naming.c
parent264b7dff9073d8835e39afbac3d4116faed56224 (diff)
downloadswig-52dcbb9001f55281c67db0f08cc2d032c5e34d1c.tar.gz
API cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Swig/naming.c')
-rw-r--r--Source/Swig/naming.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Swig/naming.c b/Source/Swig/naming.c
index 84c27f841..7dc9ee5af 100644
--- a/Source/Swig/naming.c
+++ b/Source/Swig/naming.c
@@ -1371,7 +1371,7 @@ void Swig_name_rename_add(String *prefix, String *name, SwigType *decl, Hash *ne
/* Create a parameter list for the new rename by copying all
but the last (defaulted) parameter */
- ParmList *newparms = ParmList_copy_all_except_last_parm(declparms);
+ ParmList *newparms = CopyParmListMax(declparms,ParmList_len(declparms)-1);
/* Create new declaration - with the last parameter removed */
SwigType *newdecl = Copy(decl);