diff --git a/Lib/scilab/scitypemaps.swg b/Lib/scilab/scitypemaps.swg index abcd7d2fb..0afc03bdd 100644 --- a/Lib/scilab/scitypemaps.swg +++ b/Lib/scilab/scitypemaps.swg @@ -3,14 +3,8 @@ %include -// Include fundamental fragments definitions -%include -// Scilab types -#define SWIG_Object int - -// VOID_Object is used for functions returning void -// In Scilab, returning void is ignored (no typemap associated) -//#define VOID_Object ScilabObject +// Scilab object type +#define SWIG_Object int #define %append_output(obj) if (!SWIG_IsOK(SWIG_Scilab_SetOutput(pvApiCtx, obj))) return SWIG_ERROR #define %set_constant(name, obj) if (!SWIG_IsOK(SWIG_Scilab_SetOutput(pvApiCtx, obj))) return SWIG_ERROR // Name is managed by the the function name @@ -22,12 +16,6 @@ // Include the unified typemap library %include -// TODO TYPEMAPS -// CHAR SHORT INT LONG -// SIGNED INT8 INT16 INT32 INT32 -// X INT8/STRING INT16/DOUBLE INT32/DOUBLE INT32/DOUBLE -// UNSIGNED UINT8 UINT16 UINT32 UINT32 - /* SCILAB GENERIC TYPEMAPS */ /* * This typemap is used when Scilab does not store this type directly @@ -372,8 +360,6 @@ %typecheck(SWIG_TYPECHECK_BOOL_ARRAY) bool { SCILAB_TYPECHECK(isBooleanType) } %typecheck(SWIG_TYPECHECK_STRING_ARRAY) char ** { SCILAB_TYPECHECK(isStringType) } -//%apply int { size_t }; - /* -----------------------------------------------------------------------------*/ /* Constants and enums to Scilab variables /* -----------------------------------------------------------------------------*/