diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-23 18:21:52 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-23 18:21:52 +0000 |
commit | 279ebdc0cf655feca4c80c23f115e90ce0470102 (patch) | |
tree | 89126a55905691847f13095e57828a69c25317b8 /Source | |
parent | e7834c8daa9414a631e90c1b03372ab5668302d8 (diff) | |
download | swig-279ebdc0cf655feca4c80c23f115e90ce0470102.tar.gz |
Beautify director output
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/perl5.cxx | 13 | ||||
-rw-r--r-- | Source/Modules/python.cxx | 15 |
2 files changed, 15 insertions, 13 deletions
diff --git a/Source/Modules/perl5.cxx b/Source/Modules/perl5.cxx index d7a131aa2..28f4a3f3d 100644 --- a/Source/Modules/perl5.cxx +++ b/Source/Modules/perl5.cxx @@ -1988,16 +1988,17 @@ public: But for now, this seems to be the least intrusive way. */ - Printf(f_directors_h, "\n\n"); - Printf(f_directors_h, "/* Internal Director utilities */\n"); + Printf(f_directors_h, "\n"); + Printf(f_directors_h, "/* Internal director utilities */\n"); Printf(f_directors_h, "public:\n"); - Printf(f_directors_h, " bool swig_get_inner(const char* swig_protected_method_name) const {\n"); + Printf(f_directors_h, " bool swig_get_inner(const char *swig_protected_method_name) const {\n"); Printf(f_directors_h, " std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);\n"); Printf(f_directors_h, " return (iv != swig_inner.end() ? iv->second : false);\n"); - Printf(f_directors_h, " }\n\n"); + Printf(f_directors_h, " }\n"); - Printf(f_directors_h, " void swig_set_inner(const char* swig_protected_method_name, bool val) const\n"); - Printf(f_directors_h, " { swig_inner[swig_protected_method_name] = val;}\n\n"); + Printf(f_directors_h, " void swig_set_inner(const char *swig_protected_method_name, bool val) const {\n"); + Printf(f_directors_h, " swig_inner[swig_protected_method_name] = val;\n"); + Printf(f_directors_h, " }\n"); Printf(f_directors_h, "private:\n"); Printf(f_directors_h, " mutable std::map<std::string, bool> swig_inner;\n"); } diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 1022f9fa0..e281bbbec 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -3074,22 +3074,23 @@ public: But for now, this seems to be the least intrusive way. */ - Printf(f_directors_h, "\n\n"); - Printf(f_directors_h, "/* Internal Director utilities */\n"); + Printf(f_directors_h, "\n"); + Printf(f_directors_h, "/* Internal director utilities */\n"); Printf(f_directors_h, "public:\n"); - Printf(f_directors_h, " bool swig_get_inner(const char* swig_protected_method_name) const {\n"); + Printf(f_directors_h, " bool swig_get_inner(const char *swig_protected_method_name) const {\n"); Printf(f_directors_h, " std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);\n"); Printf(f_directors_h, " return (iv != swig_inner.end() ? iv->second : false);\n"); - Printf(f_directors_h, " }\n\n"); + Printf(f_directors_h, " }\n"); - Printf(f_directors_h, " void swig_set_inner(const char* swig_protected_method_name, bool val) const\n"); - Printf(f_directors_h, " { swig_inner[swig_protected_method_name] = val;}\n\n"); + Printf(f_directors_h, " void swig_set_inner(const char *swig_protected_method_name, bool val) const {\n"); + Printf(f_directors_h, " swig_inner[swig_protected_method_name] = val;\n"); + Printf(f_directors_h, " }\n"); Printf(f_directors_h, "private:\n"); Printf(f_directors_h, " mutable std::map<std::string, bool> swig_inner;\n"); } if (director_method_index) { - Printf(f_directors_h, "\n\n"); + Printf(f_directors_h, "\n"); Printf(f_directors_h, "#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)\n"); Printf(f_directors_h, "/* VTable implementation */\n"); Printf(f_directors_h, " PyObject *swig_get_method(size_t method_index, const char *method_name) const {\n"); |