summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>2012-05-22 07:07:08 +0000
committerSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>2012-05-22 07:07:08 +0000
commit1d1987322713c4acaff82111a994e3a714db73a6 (patch)
treed6e7e737fede6a4c87041cbde66b10f06245eb4a
parentefcb2aebed40169e5dae8b67cbba5fdae81ac4d2 (diff)
downloadswig-1d1987322713c4acaff82111a994e3a714db73a6.tar.gz
Update previous syntax to the latest. LhsVar => AssignOutputVariable + Rhs => nbInputArgument
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Examples/scilab/matrix2/sci_sumitems.c4
-rw-r--r--Lib/scilab/matrix.i2
-rw-r--r--Lib/scilab/sciprimtypes.swg2
-rw-r--r--Lib/scilab/sciruntime.swg2
4 files changed, 5 insertions, 5 deletions
diff --git a/Examples/scilab/matrix2/sci_sumitems.c b/Examples/scilab/matrix2/sci_sumitems.c
index d9ca08e91..6daa43806 100644
--- a/Examples/scilab/matrix2/sci_sumitems.c
+++ b/Examples/scilab/matrix2/sci_sumitems.c
@@ -43,7 +43,7 @@ int sci_sumitems(char *fname,unsigned long fname_len)
return 0;
}
- LhsVar(1) = Rhs + 1;
+ AssignOutputVariable(1) = nbInputArgument + 1;
return 0;
}
@@ -75,7 +75,7 @@ int sci_getValues(char *fname,unsigned long fname_len)
return 0;
}
- LhsVar(1) = Rhs + 1;
+ AssignOutputVariable(1) = nbInputArgument + 1;
return 0;
}
diff --git a/Lib/scilab/matrix.i b/Lib/scilab/matrix.i
index 1a119a9c1..7aebae1ae 100644
--- a/Lib/scilab/matrix.i
+++ b/Lib/scilab/matrix.i
@@ -42,7 +42,7 @@
- LhsVar(iOutNum) = iVarOut;
+ AssignOutputVariable(iOutNum) = iVarOut;
iOutNum++;
iVarOut++;
}
diff --git a/Lib/scilab/sciprimtypes.swg b/Lib/scilab/sciprimtypes.swg
index d92dbcf13..ff18bd00b 100644
--- a/Lib/scilab/sciprimtypes.swg
+++ b/Lib/scilab/sciprimtypes.swg
@@ -67,7 +67,7 @@ SwigScilabInt32FromEnum(void *_pvApiCtx, int _iVarOut, int _enumValue) {
return SWIG_ERROR;
}
- LhsVar(_iVarOut) = Rhs + _iVarOut;
+ AssignOutputVariable(_iVarOut) = nbInputArgument + _iVarOut;
return SWIG_OK;
diff --git a/Lib/scilab/sciruntime.swg b/Lib/scilab/sciruntime.swg
index 9272cf22a..55195e7b6 100644
--- a/Lib/scilab/sciruntime.swg
+++ b/Lib/scilab/sciruntime.swg
@@ -173,7 +173,7 @@ SWIG_Scilab_SetOutput(SciObject _output) {
if (outputPosition < 0 || _output < 0) {
return SWIG_ERROR;
}
- LhsVar(outputPosition) = _output;
+ AssignOutputVariable(outputPosition) = _output;
return SWIG_OK;
}