template ext mode on for all languages, not just Python now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7130 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b173c87231
commit
34a035e3f1
6 changed files with 3 additions and 28 deletions
|
|
@ -2423,12 +2423,8 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
String *nname = NewStringf("__dummy_%d__", cnt++);
|
||||
Swig_cparse_template_expand(templnode,nname,temparms,tscope);
|
||||
Setattr(templnode,"sym:name",nname);
|
||||
if (!Swig_template_extmode()) {
|
||||
Setattr(templnode,"feature:ignore","1");
|
||||
} else {
|
||||
Setattr(templnode,"feature:onlychildren",
|
||||
"typemap,typemapitem,typemapcopy,typedef,types,fragment");
|
||||
}
|
||||
Setattr(templnode,"feature:onlychildren",
|
||||
"typemap,typemapitem,typemapcopy,typedef,types,fragment");
|
||||
}
|
||||
Delattr(templnode,"templatetype");
|
||||
Setattr(templnode,"template",nn);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ char cvsroot_lang_cxx[] = "$Header$";
|
|||
|
||||
static int director_mode = 0; /* set to 0 on default */
|
||||
static int director_protected_mode = 0; /* set to 0 on default */
|
||||
static int template_extmode = 0; /* set to 0 on default */
|
||||
|
||||
/* Set director_protected_mode */
|
||||
void Wrapper_director_mode_set(int flag) {
|
||||
|
|
@ -31,10 +30,6 @@ void Wrapper_director_protected_mode_set(int flag) {
|
|||
director_protected_mode = flag;
|
||||
}
|
||||
|
||||
void Wrapper_template_extmode_set(int flag) {
|
||||
template_extmode = flag;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
int Swig_director_mode()
|
||||
{
|
||||
|
|
@ -45,11 +40,6 @@ extern "C" {
|
|||
{
|
||||
return director_protected_mode;
|
||||
}
|
||||
|
||||
int Swig_template_extmode()
|
||||
{
|
||||
return template_extmode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -2585,7 +2575,7 @@ Language::classLookup(SwigType *s) {
|
|||
Delete(base);
|
||||
Delete(prefix);
|
||||
}
|
||||
if (n && (Getattr(n,"feature:ignore"))) {
|
||||
if (n && (Getattr(n,"feature:ignore") || Getattr(n,"feature:onlychildren"))) {
|
||||
n = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -671,10 +671,6 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
|||
Wrapper_director_mode_set(0);
|
||||
Wrapper_director_protected_mode_set(0);
|
||||
|
||||
/* Turn off template extmode */
|
||||
Wrapper_template_extmode_set(0);
|
||||
|
||||
|
||||
// Check for SWIG_LIB environment variable
|
||||
|
||||
if ((c = getenv("SWIG_LIB")) == (char *) 0) {
|
||||
|
|
|
|||
|
|
@ -107,11 +107,6 @@ public:
|
|||
|
||||
SWIG_library_directory("python");
|
||||
|
||||
|
||||
|
||||
/* Turn on template extmode */
|
||||
Wrapper_template_extmode_set(1);
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (argv[i]) {
|
||||
if(strcmp(argv[i],"-interface") == 0) {
|
||||
|
|
|
|||
|
|
@ -350,7 +350,6 @@ int is_member_director(Node* member);
|
|||
void Wrapper_virtual_elimination_mode_set(int);
|
||||
void Wrapper_director_mode_set(int);
|
||||
void Wrapper_director_protected_mode_set(int);
|
||||
void Wrapper_template_extmode_set(int);
|
||||
|
||||
void clean_overloaded(Node *n);
|
||||
|
||||
|
|
|
|||
|
|
@ -532,7 +532,6 @@ extern void Swig_fragment_emit(String *name);
|
|||
/* hacks defined in C++ ! */
|
||||
extern int Swig_need_protected();
|
||||
extern int Swig_director_mode();
|
||||
extern int Swig_template_extmode();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue