Merge branch 'gsoc2012-scilab' of https://github.com/swig/swig into gsoc2012-scilab
This commit is contained in:
commit
524091ad15
1 changed files with 17 additions and 8 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
* This file is part of SWIG, which is licensed as a whole under version 3
|
* This file is part of SWIG, which is licensed as a whole under version 3
|
||||||
* (or any later version) of the GNU General Public License. Some additional
|
* (or any later version) of the GNU General Public License. Some additional
|
||||||
|
|
@ -52,9 +51,11 @@ protected:
|
||||||
bool generateBuilder;
|
bool generateBuilder;
|
||||||
bool extraWarning;
|
bool extraWarning;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------
|
||||||
* main()
|
* main()
|
||||||
* ----------------------------------------------------------------------*/
|
* ----------------------------------------------------------------------*/
|
||||||
|
|
||||||
virtual void main(int argc, char *argv[]) {
|
virtual void main(int argc, char *argv[]) {
|
||||||
|
|
||||||
sourceFileList = NewList();
|
sourceFileList = NewList();
|
||||||
|
|
@ -132,6 +133,7 @@ public:
|
||||||
/* ------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------
|
||||||
* top()
|
* top()
|
||||||
* ----------------------------------------------------------------------*/
|
* ----------------------------------------------------------------------*/
|
||||||
|
|
||||||
virtual int top(Node *node) {
|
virtual int top(Node *node) {
|
||||||
|
|
||||||
/* Get the module name */
|
/* Get the module name */
|
||||||
|
|
@ -223,8 +225,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------
|
||||||
* emitWrapper()
|
* emitBanner()
|
||||||
* ----------------------------------------------------------------------*/
|
* ----------------------------------------------------------------------*/
|
||||||
|
|
||||||
void emitBanner(File *f) {
|
void emitBanner(File *f) {
|
||||||
Printf(f, "// ----------------------------------------------------------------------------\n");
|
Printf(f, "// ----------------------------------------------------------------------------\n");
|
||||||
Swig_banner_target_lang(f, "// ");
|
Swig_banner_target_lang(f, "// ");
|
||||||
|
|
@ -234,6 +237,7 @@ public:
|
||||||
/* ------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------
|
||||||
* functionWrapper()
|
* functionWrapper()
|
||||||
* ----------------------------------------------------------------------*/
|
* ----------------------------------------------------------------------*/
|
||||||
|
|
||||||
virtual int functionWrapper(Node *node) {
|
virtual int functionWrapper(Node *node) {
|
||||||
|
|
||||||
/* Get some useful attributes of this function */
|
/* Get some useful attributes of this function */
|
||||||
|
|
@ -446,8 +450,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* dispatchFunctionWrapper()
|
* dispatchFunction()
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
void dispatchFunction(Node *node) {
|
void dispatchFunction(Node *node) {
|
||||||
Wrapper *wrapper = NewWrapper();
|
Wrapper *wrapper = NewWrapper();
|
||||||
|
|
||||||
|
|
@ -486,6 +491,7 @@ public:
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* variableWrapper()
|
* variableWrapper()
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
virtual int variableWrapper(Node *node) {
|
virtual int variableWrapper(Node *node) {
|
||||||
|
|
||||||
/* Get information about variable */
|
/* Get information about variable */
|
||||||
|
|
@ -552,6 +558,7 @@ public:
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* constantWrapper()
|
* constantWrapper()
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
virtual int constantWrapper(Node *node) {
|
virtual int constantWrapper(Node *node) {
|
||||||
|
|
||||||
/* Get the useful information from the node */
|
/* Get the useful information from the node */
|
||||||
|
|
@ -629,6 +636,7 @@ public:
|
||||||
/* ---------------------------------------------------------------------
|
/* ---------------------------------------------------------------------
|
||||||
* enumvalueDeclaration()
|
* enumvalueDeclaration()
|
||||||
* --------------------------------------------------------------------- */
|
* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
virtual int enumvalueDeclaration(Node *node) {
|
virtual int enumvalueDeclaration(Node *node) {
|
||||||
static int iPreviousEnumValue = 0;
|
static int iPreviousEnumValue = 0;
|
||||||
|
|
||||||
|
|
@ -753,6 +761,7 @@ public:
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* addFunctionInBuilder(): add a new function wrapper in builder.sce file
|
* addFunctionInBuilder(): add a new function wrapper in builder.sce file
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
void addFunctionInBuilder(const_String_or_char_ptr scilabFunctionName, const_String_or_char_ptr wrapperFunctionName) {
|
void addFunctionInBuilder(const_String_or_char_ptr scilabFunctionName, const_String_or_char_ptr wrapperFunctionName) {
|
||||||
if (generateBuilder) {
|
if (generateBuilder) {
|
||||||
if (++builderFunctionCount % 10 == 0) {
|
if (++builderFunctionCount % 10 == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue