diff options
author | rupak | 2019-09-27 19:18:10 +0530 |
---|---|---|
committer | rupak | 2019-09-27 19:18:10 +0530 |
commit | 21a1e0b3f7fa3db7291d93a4d75503cec88f413f (patch) | |
tree | b8e6a13364a2f10d475283f5ad35e18dec68a712 /thirdparty/linux/include/fun.h | |
parent | 5389ebb4ebe79b95418d0a3d26c9e091080a2562 (diff) | |
download | fossee-scilab-octave-toolbox-21a1e0b3f7fa3db7291d93a4d75503cec88f413f.tar.gz fossee-scilab-octave-toolbox-21a1e0b3f7fa3db7291d93a4d75503cec88f413f.tar.bz2 fossee-scilab-octave-toolbox-21a1e0b3f7fa3db7291d93a4d75503cec88f413f.zip |
scilab can now accep any # of input and output of type double and string
Diffstat (limited to 'thirdparty/linux/include/fun.h')
-rw-r--r-- | thirdparty/linux/include/fun.h | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/thirdparty/linux/include/fun.h b/thirdparty/linux/include/fun.h index 9b59492..45f5a7d 100644 --- a/thirdparty/linux/include/fun.h +++ b/thirdparty/linux/include/fun.h @@ -3,15 +3,32 @@ extern "C" { -typedef struct octave_fun -{ - char* name1 = ""; - char* name2 = ""; - double* input1; - int size_input1[2]; - double* output1; - int size_output1[2]; -}octf; -int fun(octf *inp); + typedef enum + { + TYPE_DOUBLE, + TYPE_STRING, + }FUNCTYPE; + + typedef struct + { + FUNCTYPE type; + int n_in_rows; + int n_in_cols; + int n_out_rows; + int n_out_cols; + void* in_data; + void* out_data; + }FUNCARGS; + + typedef struct { + int n_in_arguments; // number of input arguments + int n_out_arguments; // number of output arguments + int n_out_user; // number of output arguments + //char *name; // Name + //char *package; //Name of octave package to be loaded + FUNCARGS *argument; +} FUNCCALL; + + int fun(FUNCARGS *arr, FUNCCALL *call); } |