diff options
author | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-04-04 11:47:44 +0200 |
---|---|---|
committer | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-04-04 11:47:44 +0200 |
commit | 51e2bcb1fd11296570675f8ea3630efe47740564 (patch) | |
tree | 6bb0c0a50cfdafbaee11cc3865dd6d74f5b7fcaf /Lib/scilab/scitypemaps.swg | |
parent | 7af4bc72c6d48d13d546f04396d4b16806fb4444 (diff) | |
download | swig-51e2bcb1fd11296570675f8ea3630efe47740564.tar.gz |
scilab: fix comments
Diffstat (limited to 'Lib/scilab/scitypemaps.swg')
-rw-r--r-- | Lib/scilab/scitypemaps.swg | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Lib/scilab/scitypemaps.swg b/Lib/scilab/scitypemaps.swg index 0140463aa..7789a14ea 100644 --- a/Lib/scilab/scitypemaps.swg +++ b/Lib/scilab/scitypemaps.swg @@ -16,8 +16,10 @@ // Include the unified typemap library %include <typemaps/swigtypemaps.swg> -/* SCILAB GENERIC TYPEMAPS */ -/* +/* ---------------------------------------------------------------------------*/ +/* Generic typmemaps */ +/* ---------------------------------------------------------------------------*/ + * This typemap is used when Scilab does not store this type directly * For example, a 'float' is stored in Scilab as a 'double' * So we read a 'double' in Scilab and cast it to a 'float' @@ -79,12 +81,18 @@ } %enddef -/* Array typmemaps */ + +/* ---------------------------------------------------------------------------*/ +/* Array typmemaps */ +/* ---------------------------------------------------------------------------*/ + %include "sciarray.swg" -/* ----------------------------------------------------------------------------- - * --- Use enum from Scilab --- - * ----------------------------------------------------------------------------- */ + +/* ---------------------------------------------------------------------------*/ +/* Enum typemaps */ +/* ---------------------------------------------------------------------------*/ + %typemap(in, noblock=1, fragment=SWIG_AsVal_frag(Enum)) enum SWIGTYPE (int val) { if (SWIG_AsVal_dec(Enum)($input, &val) != SWIG_OK) { return SWIG_ERROR; @@ -92,9 +100,6 @@ $1 = %reinterpret_cast(val, $ltype); } -/* ----------------------------------------------------------------------------- - * --- Return enum to Scilab --- - * ----------------------------------------------------------------------------- */ %typemap(out, fragment=SWIG_From_frag(Enum)) enum SWIGTYPE { if (SWIG_From_dec(Enum)($1) != SWIG_OK) { return SWIG_ERROR; @@ -165,9 +170,9 @@ %typecheck(SWIG_TYPECHECK_STRING_ARRAY, noblock=1) char *[ANY], char ** { SCILAB_TYPECHECK(isStringType) } -/* -----------------------------------------------------------------------------*/ -/* Constants and enums to Scilab variables -/* -----------------------------------------------------------------------------*/ +/* ---------------------------------------------------------------------------*/ +/* %scilabconstcode() feature typemaps */ +/* ---------------------------------------------------------------------------*/ %typemap(scilabconstcode, fragment=SWIG_CreateScilabVariable_frag(int)) int %{ |