diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2015-02-07 09:45:05 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2015-02-11 23:24:40 +0000 |
commit | 0236435c4893185444b6353cf1e3db18153cfb48 (patch) | |
tree | aff0d4d7c0b6ceecce64f32c76117e69d654d0ea /Lib/scilab/scimatrixdouble.swg | |
parent | 9402f1439368e8d9047cb4452b4b401938bafa74 (diff) | |
download | swig-0236435c4893185444b6353cf1e3db18153cfb48.tar.gz |
Scilab typemap fixes for C89
Diffstat (limited to 'Lib/scilab/scimatrixdouble.swg')
-rw-r--r-- | Lib/scilab/scimatrixdouble.swg | 8 |
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; } |