summaryrefslogtreecommitdiff
path: root/Source/Modules/typepass.cxx
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2005-03-21 22:06:12 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2005-03-21 22:06:12 +0000
commit175e89dc8f8fe2edba1725b94f4ead7b63b92650 (patch)
treec4e9fa30d0d1642bfd2e3e50de71c5deb2e314db /Source/Modules/typepass.cxx
parent697b6a4c4d91ad2a8cc73f08f55332c3524b53fc (diff)
downloadswig-175e89dc8f8fe2edba1725b94f4ead7b63b92650.tar.gz
fix %varargs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Modules/typepass.cxx')
-rw-r--r--Source/Modules/typepass.cxx43
1 files changed, 0 insertions, 43 deletions
diff --git a/Source/Modules/typepass.cxx b/Source/Modules/typepass.cxx
index 56142f3e4..6a0997804 100644
--- a/Source/Modules/typepass.cxx
+++ b/Source/Modules/typepass.cxx
@@ -8,10 +8,6 @@
* type-expansion. All types are fully qualified with namespace prefixes
* and other information needed for compilation.
*
- * This module also handles the %varargs directive by looking for
- * "feature:varargs" and substituting ... with an alternative set of
- * arguments.
- *
* Author(s) : David Beazley (beazley@cs.uchicago.edu)
*
* Copyright (C) 1998-2002. The University of Chicago
@@ -558,26 +554,6 @@ class TypePass : private Dispatcher {
Delattr(n,"throws");
}
- /* Search for var args */
- if (Getattr(n,"feature:varargs")) {
- ParmList *v = Getattr(n,"feature:varargs");
- Parm *p = Getattr(n,"parms");
- Parm *pp = 0;
- while (p) {
- SwigType *t = Getattr(p,"type");
- if (Strcmp(t,"v(...)") == 0) {
- if (pp) {
- set_nextSibling(pp,Copy(v));
- } else {
- Setattr(n,"parms", Copy(v));
- }
- break;
- }
- pp = p;
- p = nextSibling(p);
- }
- }
-
/* Normalize types. */
SwigType *ty = Getattr(n,"type");
normalize_type(ty);
@@ -638,25 +614,6 @@ class TypePass : private Dispatcher {
Delattr(n,"throws");
}
- /* Search for var args */
- if (Getattr(n,"feature:varargs")) {
- ParmList *v = Getattr(n,"feature:varargs");
- Parm *p = Getattr(n,"parms");
- Parm *pp = 0;
- while (p) {
- SwigType *t = Getattr(p,"type");
- if (Strcmp(t,"v(...)") == 0) {
- if (pp) {
- set_nextSibling(pp,Copy(v));
- } else {
- Setattr(n,"parms", Copy(v));
- }
- break;
- }
- pp = p;
- p = nextSibling(p);
- }
- }
normalize_parms(Getattr(n,"parms"));
normalize_parms(Getattr(n,"throws"));