fix %template + private SF#1099976
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c486d3a694
commit
327dbabf19
2 changed files with 13 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
Version 1.3.25 (In progress)
|
||||
============================
|
||||
|
||||
02/22/2005: mmatus
|
||||
Fix %template + private error SF#1099976.
|
||||
|
||||
02/21/2005: mmatus
|
||||
|
||||
Fix swigrun.swg warnings reported when using "gcc -W -Wall"
|
||||
|
|
|
|||
|
|
@ -2982,6 +2982,16 @@ cpp_class_decl :
|
|||
}
|
||||
appendChild($$,dump_nested(Char(name)));
|
||||
}
|
||||
|
||||
if (cplus_mode != CPLUS_PUBLIC) {
|
||||
/* we 'open' the class at the end, to allow %template
|
||||
to add new members */
|
||||
Node *pa = new_node("access");
|
||||
Setattr(pa,"kind","public");
|
||||
cplus_mode = CPLUS_PUBLIC;
|
||||
appendChild($$,pa);
|
||||
}
|
||||
|
||||
Setattr($$,"symtab",Swig_symbol_popscope());
|
||||
|
||||
Classprefix = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue