Eliminated use of swigkeys.h/.c files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c12550e4ad
commit
ff41049b1c
20 changed files with 993 additions and 1279 deletions
|
|
@ -13,7 +13,6 @@
|
|||
char cvsroot_typeobj_c[] = "$Id$";
|
||||
|
||||
#include "swig.h"
|
||||
#include "swigkeys.h"
|
||||
#include <ctype.h>
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
@ -669,7 +668,7 @@ SwigType *SwigType_add_function(SwigType *t, ParmList *parms) {
|
|||
for (p = parms; p; p = nextSibling(p)) {
|
||||
if (p != parms)
|
||||
Putc(',', pstr);
|
||||
Append(pstr, Getattr(p, k_type));
|
||||
Append(pstr, Getattr(p, "type"));
|
||||
}
|
||||
Insert(t, 0, pstr);
|
||||
Delete(pstr);
|
||||
|
|
@ -764,15 +763,15 @@ SwigType *SwigType_add_template(SwigType *t, ParmList *parms) {
|
|||
p = parms;
|
||||
for (p = parms; p; p = nextSibling(p)) {
|
||||
String *v;
|
||||
if (Getattr(p, k_default))
|
||||
if (Getattr(p, "default"))
|
||||
continue;
|
||||
if (p != parms)
|
||||
Append(t, ",");
|
||||
v = Getattr(p, k_value);
|
||||
v = Getattr(p, "value");
|
||||
if (v) {
|
||||
Append(t, v);
|
||||
} else {
|
||||
Append(t, Getattr(p, k_type));
|
||||
Append(t, Getattr(p, "type"));
|
||||
}
|
||||
}
|
||||
Append(t, ")>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue