scilab: add the SWIG banner to the generated gateway XML
This commit is contained in:
parent
30faff1fce
commit
6abf66324a
1 changed files with 8 additions and 10 deletions
|
|
@ -978,20 +978,18 @@ public:
|
|||
FileErrorDisplay(gatewayXMLFilename);
|
||||
SWIG_exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
// Add a slightly modified SWIG banner to the gateway XML ("--modify" is illegal in XML)
|
||||
gatewayXML = NewString("");
|
||||
Printf(gatewayXML, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n");
|
||||
Printf(gatewayXML, "<GATEWAY name=\"%s\">\n", gatewayName);
|
||||
Printf(gatewayXML, "<!--\n");
|
||||
Printf(gatewayXML, "Scilab Interface description. In this file, we define the list of the function which\n");
|
||||
Printf(gatewayXML, "will be available into Scilab and the link to the \"native\" function.\n\n");
|
||||
Printf(gatewayXML, "gatewayId is the position in the hashtable 'Interfaces' defined in the\n");
|
||||
Printf(gatewayXML, "file SCI/modules/core/src/c/callinterf.h\n\n");
|
||||
Printf(gatewayXML, "primitiveId is the position in the hashtable '<module>Table Tab[]' defined\n");
|
||||
Printf(gatewayXML, "in the file modules/<module>/sci_gateway/c/gw_<module>.c\n\n");
|
||||
Printf(gatewayXML, "primitiveName is the name of the Scilab function\n\n");
|
||||
Printf(gatewayXML, "Don't touch if you do not know what you are doing\n");
|
||||
Printf(gatewayXML, "This file was automatically generated by SWIG (http://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");
|
||||
Printf(gatewayXML, "-->\n");
|
||||
Printf(gatewayXML, "<GATEWAY name=\"%s\">\n", gatewayName);
|
||||
|
||||
primitiveID = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue