diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-11-29 07:33:55 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-11-29 07:33:55 +0000 |
commit | b65ba2a8db43b8fe377caee88fce8aa35bdfbcdb (patch) | |
tree | 4c48b6a9cb2833beda5d13e3f54ef77720ac982d /Source/Modules/main.cxx | |
parent | 44a883a05700d3c74ce6e13aa70a49c4533052d2 (diff) | |
download | swig-b65ba2a8db43b8fe377caee88fce8aa35bdfbcdb.tar.gz |
Minor code improvements
Diffstat (limited to 'Source/Modules/main.cxx')
-rw-r--r-- | Source/Modules/main.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx index 5336159af..290887c6e 100644 --- a/Source/Modules/main.cxx +++ b/Source/Modules/main.cxx @@ -862,13 +862,9 @@ void SWIG_getoptions(int argc, char *argv[]) { } } -void Swig_flatten_nested() { - String* name = NewString(""); - String* fname = NewString("feature:flatnested"); - String* val = NewString("1"); - Swig_feature_set(Swig_cparse_features(),name,0,fname, val, 0); - Delete(fname); - Delete(name); +static void flatten_nested() { + String *val = NewString("1"); + Swig_feature_set(Swig_cparse_features(), "", 0, "feature:flatnested", val, 0); Delete(val); } @@ -1167,7 +1163,7 @@ int SWIG_main(int argc, char *argv[], Language *l) { // add "ignore" directive if nested classes are not supported if (!lang->nestedClassesSupported()) - Swig_flatten_nested(); + flatten_nested(); Node *top = Swig_cparse(cpps); |