summaryrefslogtreecommitdiff
path: root/Lib/scilab/scimatrixdouble.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2015-02-07 09:45:05 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2015-02-11 23:24:40 +0000
commit0236435c4893185444b6353cf1e3db18153cfb48 (patch)
treeaff0d4d7c0b6ceecce64f32c76117e69d654d0ea /Lib/scilab/scimatrixdouble.swg
parent9402f1439368e8d9047cb4452b4b401938bafa74 (diff)
downloadswig-0236435c4893185444b6353cf1e3db18153cfb48.tar.gz
Scilab typemap fixes for C89
Diffstat (limited to 'Lib/scilab/scimatrixdouble.swg')
-rw-r--r--Lib/scilab/scimatrixdouble.swg8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/scilab/scimatrixdouble.swg b/Lib/scilab/scimatrixdouble.swg
index 8da9ae729..b8272e9a6 100644
--- a/Lib/scilab/scimatrixdouble.swg
+++ b/Lib/scilab/scimatrixdouble.swg
@@ -25,10 +25,8 @@
// in (double *IN, int IN_SIZE)
-%typemap(in, noblock=1, fragment="SWIG_SciDouble_AsDoubleArrayAndSize") (double *IN, int IN_SIZE)
+%typemap(in, noblock=1, fragment="SWIG_SciDouble_AsDoubleArrayAndSize") (double *IN, int IN_SIZE) (int rowCount, int colCount)
{
- int rowCount;
- int colCount;
if (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, $input, &rowCount, &colCount, &$1, fname) == SWIG_OK) {
$2 = rowCount * colCount;
}
@@ -39,10 +37,8 @@
// in (int IN_SIZE, double *IN)
-%typemap(in, noblock=1, fragment="SWIG_SciDouble_AsDoubleArrayAndSize") (int IN_SIZE, double *IN)
+%typemap(in, noblock=1, fragment="SWIG_SciDouble_AsDoubleArrayAndSize") (int IN_SIZE, double *IN) (int rowCount, int colCount)
{
- int rowCount;
- int colCount;
if (SWIG_SciDouble_AsDoubleArrayAndSize(pvApiCtx, $input, &rowCount, &colCount, &$2, fname) == SWIG_OK) {
$1 = rowCount * colCount;
}