reverting to 1.17, the protected constructor problem is now fixed in lang.cxx

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-01 00:56:35 +00:00
commit 28ba4aca2d

View file

@ -524,18 +524,6 @@ Swig_symbol_cadd(String_or_char *name, Node *n) {
* for namespace support, type resolution, and other issues.
* ----------------------------------------------------------------------------- */
static Node*
symbol_head(Node *n)
{
Node *pn = Getattr(n, "sym:previousSibling");
while (pn) {
n = pn;
pn = Getattr(n, "sym:previousSibling");
}
return n;
}
Node *
Swig_symbol_add(String_or_char *symname, Node *n) {
Hash *c, *cn, *cl = 0;
@ -722,15 +710,8 @@ Swig_symbol_add(String_or_char *symname, Node *n) {
assert(!Getattr(n,"sym:overname"));
Setattr(n,"sym:overname", NewStringf("__SWIG_%d", pn));
/*Printf(stdout,"%s %s %s\n", symname, Getattr(n,"decl"), Getattr(n,"sym:overname")); */
if (Getattr(n,"access") && !Getattr(n,"feature:director")) {
/* add the protected/private members at the top of the overload list*/
Node *hl = symbol_head(cl);
Setattr(n,"sym:nextSibling",hl);
Setattr(hl,"sym:previousSibling",n);
} else {
Setattr(cl,"sym:nextSibling",n);
Setattr(n,"sym:previousSibling",cl);
}
Setattr(cl,"sym:nextSibling",n);
Setattr(n,"sym:previousSibling",cl);
Setattr(cl,"sym:overloaded",c);
Setattr(n,"sym:overloaded",c);
return n;