Eliminate 2 redundant copies of swig banner
We had a banner for C, a banner for target languages (parameterised to allow the comment sequence to be specified) and a special banner for XML files in scilab.cxx. The XML variant was only needed because the standard banner contains `--` for a hyphen, so we now use ` - ` for that instead. The C banner now calls Swig_banner_target_lang() with a suitable comment sequence to print the actual banner text.
This commit is contained in:
parent
5fb5c5f74d
commit
80d05a1a6c
2 changed files with 4 additions and 15 deletions
|
|
@ -957,11 +957,7 @@ public:
|
|||
gatewayXML = NewString("");
|
||||
Printf(gatewayXML, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n");
|
||||
Printf(gatewayXML, "<!--\n");
|
||||
Printf(gatewayXML, "This file was automatically generated by SWIG (https://www.swig.org).\n");
|
||||
Printf(gatewayXML, "Version %s\n", Swig_package_version());
|
||||
Printf(gatewayXML, "\n");
|
||||
Printf(gatewayXML, "Do not make changes to this file unless you know what you are doing - modify\n");
|
||||
Printf(gatewayXML, "the SWIG interface file instead.\n");
|
||||
Swig_banner_target_lang(gatewayXML, "");
|
||||
Printf(gatewayXML, "-->\n");
|
||||
Printf(gatewayXML, "<GATEWAY name=\"%s\">\n", gatewayName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue