diff options
author | Rupak Rokade | 2021-05-28 11:36:24 +0530 |
---|---|---|
committer | GitHub | 2021-05-28 11:36:24 +0530 |
commit | 66ab875f7a0de3acaa0c9e2b1a8eb4ebee5f2481 (patch) | |
tree | b9eb67443b1d81fd05b24ad32e211663d3978dbe /thirdparty/linux | |
parent | c6fd117ed4944b99d5974c77c8a82a2f564f0539 (diff) | |
parent | d9b060337d3bfca571fabf3af80a4188d9d8ab37 (diff) | |
download | fossee-scilab-octave-toolbox-66ab875f7a0de3acaa0c9e2b1a8eb4ebee5f2481.tar.gz fossee-scilab-octave-toolbox-66ab875f7a0de3acaa0c9e2b1a8eb4ebee5f2481.tar.bz2 fossee-scilab-octave-toolbox-66ab875f7a0de3acaa0c9e2b1a8eb4ebee5f2481.zip |
Merge pull request #5 from shag527/master
Handled octave functions that represent the input and output data in structure format
Diffstat (limited to 'thirdparty/linux')
-rw-r--r-- | thirdparty/linux/include/fun.h | 42 | ||||
-rwxr-xr-x | thirdparty/linux/lib/x64/libfun.so | bin | 2855912 -> 2976136 bytes |
2 files changed, 29 insertions, 13 deletions
diff --git a/thirdparty/linux/include/fun.h b/thirdparty/linux/include/fun.h index e5e1fff..f79fbf4 100644 --- a/thirdparty/linux/include/fun.h +++ b/thirdparty/linux/include/fun.h @@ -15,35 +15,51 @@ extern "C" { - typedef enum - { + typedef enum { TYPE_DOUBLE, + TYPE_COMPLEX, TYPE_STRING, + TYPE_STRUCT, }FUNCTYPE; - typedef struct - { + typedef struct { + FUNCTYPE type; // type of value in struct's field + void* key; // key of struct field + int rows; // rows dimension of struct field's value + int cols; // cols dimension of struct fields' value + void* dataReal; // Real data if struct field's value is real + void* dataImg; // Img data if struct field's value is complex + void* str; // string data if struct field's value is string + } FUNCSTRUCT; + + typedef struct { FUNCTYPE type; int n_in_rows; int n_in_cols; + int n_in_struct_len; // ip struct length int n_out_rows; int n_out_cols; + int n_out_struct_len; // op struct length int is_in_cmplx; int is_out_cmplx; + int is_out_string; + int is_out_struct; void* in_data_real; void* in_data_img; void* out_data_real; void* out_data_img; - }FUNCARGS; - + FUNCSTRUCT* in_struct; + FUNCSTRUCT* out_struct; + } 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 *err; // Name - //char *package; //Name of octave package to be loaded - FUNCARGS *argument; -} FUNCCALL; + 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 *err; // Name + //char *package; //Name of octave package to be loaded + FUNCARGS *argument; + } FUNCCALL; int fun(FUNCARGS *arr, FUNCCALL *call); } diff --git a/thirdparty/linux/lib/x64/libfun.so b/thirdparty/linux/lib/x64/libfun.so Binary files differindex 6c97c22..eb0a7e0 100755 --- a/thirdparty/linux/lib/x64/libfun.so +++ b/thirdparty/linux/lib/x64/libfun.so |