scilab: remove typemap useless stuff
This commit is contained in:
parent
7f14aa583a
commit
9aa006e62b
1 changed files with 2 additions and 16 deletions
|
|
@ -3,14 +3,8 @@
|
|||
|
||||
%include <scienum.swg>
|
||||
|
||||
// Include fundamental fragments definitions
|
||||
%include <typemaps/fragments.swg>
|
||||
// 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 <typemaps/swigtypemaps.swg>
|
||||
|
||||
// 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
|
||||
/* -----------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue