add notemplatereduce
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0a4c104f50
commit
7a4a6c5d04
2 changed files with 6 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ extern Node *Swig_cparse(File *);
|
||||||
extern Hash *Swig_cparse_namewarn();
|
extern Hash *Swig_cparse_namewarn();
|
||||||
extern Hash *Swig_cparse_features();
|
extern Hash *Swig_cparse_features();
|
||||||
extern void SWIG_cparse_set_compact_default_args(int defargs);
|
extern void SWIG_cparse_set_compact_default_args(int defargs);
|
||||||
extern void SWIG_cparse_template_reduce(int treduce);
|
extern int SWIG_cparse_template_reduce(int treduce);
|
||||||
|
|
||||||
/* util.c */
|
/* util.c */
|
||||||
extern void Swig_cparse_replace_descriptor(String *s);
|
extern void Swig_cparse_replace_descriptor(String *s);
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,9 @@ void SWIG_cparse_set_compact_default_args(int defargs) {
|
||||||
compact_default_args = defargs;
|
compact_default_args = defargs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SWIG_cparse_template_reduce(int treduce) {
|
int SWIG_cparse_template_reduce(int treduce) {
|
||||||
template_reduce = treduce;
|
template_reduce = treduce;
|
||||||
|
return treduce;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
@ -2023,6 +2024,9 @@ module_directive: MODULE options idstring {
|
||||||
if (Getattr($2,"templatereduce")) {
|
if (Getattr($2,"templatereduce")) {
|
||||||
template_reduce = 1;
|
template_reduce = 1;
|
||||||
}
|
}
|
||||||
|
if (Getattr($2,"notemplatereduce")) {
|
||||||
|
template_reduce = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!ModuleName) ModuleName = NewString($3);
|
if (!ModuleName) ModuleName = NewString($3);
|
||||||
if (!import_mode) {
|
if (!import_mode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue