From d9b060337d3bfca571fabf3af80a4188d9d8ab37 Mon Sep 17 00:00:00 2001 From: detailer Date: Thu, 27 May 2021 07:36:19 +0530 Subject: error handling for unsupported o/p data in struct --- help/en_US/master_help.xml | 6 +-- help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS | 2 +- .../scilab_en_US_help/JavaHelpSearch/DOCS.TAB | Bin 63 -> 63 bytes .../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | Bin 16 -> 18 bytes .../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 628 -> 655 bytes help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA | 2 +- help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP | Bin 2048 -> 2048 bytes help/en_US/scilab_en_US_help/index.html | 2 +- help/en_US/scilab_en_US_help/jhelpmap.jhm | 2 +- help/en_US/scilab_en_US_help/jhelptoc.xml | 2 +- help/en_US/scilab_en_US_help/octave_fun.html | 10 ++-- .../section_5e7519fee5718c0930fe5ef6701da2b8.html | 55 +++++++++++++++++++++ jar/scilab_en_US_help.jar | Bin 17354 -> 18184 bytes sci_gateway/cpp/libscilab_octave.so | Bin 32008 -> 32072 bytes sci_gateway/cpp/sci_octave.cpp | 4 ++ src/fun.cpp | 2 +- src/fun.o | Bin 4850888 -> 4842216 bytes src/libfun.so | Bin 2978856 -> 2976136 bytes thirdparty/linux/lib/x64/libfun.so | Bin 2978856 -> 2976136 bytes 19 files changed, 73 insertions(+), 14 deletions(-) create mode 100644 help/en_US/scilab_en_US_help/section_5e7519fee5718c0930fe5ef6701da2b8.html diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml index b69c571..df6b1f8 100644 --- a/help/en_US/master_help.xml +++ b/help/en_US/master_help.xml @@ -1,7 +1,7 @@ - + ]> scilab_octave - + scilab_octave -&a6cc3dc89e25a63d5d5def95b52cbd1c1; +&ac91b127f3650008b133aa7f9a6245451; diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS index 05ed080..47d90e9 100644 --- a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS @@ -1 +1 @@ -@@@@@@@@@@@@@@@@ \ No newline at end of file + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB index d8be745..8619a1d 100644 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB and b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS index 49845b0..1dd7e51 100644 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS index 4d70a0b..df7a604 100644 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA b/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA index c1b7d51..0f59404 100644 --- a/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA @@ -1,2 +1,2 @@ JavaSearch 1.0 -TMAP bs=2048 rt=0 fl=-1 id1=122 id2=1 +TMAP bs=2048 rt=0 fl=-1 id1=123 id2=1 diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP index c3eb111..02edaea 100644 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP and b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP differ diff --git a/help/en_US/scilab_en_US_help/index.html b/help/en_US/scilab_en_US_help/index.html index 12a0617..335931d 100644 --- a/help/en_US/scilab_en_US_help/index.html +++ b/help/en_US/scilab_en_US_help/index.html @@ -31,7 +31,7 @@

scilab_octave


diff --git a/help/en_US/scilab_en_US_help/jhelpmap.jhm b/help/en_US/scilab_en_US_help/jhelpmap.jhm index 0130989..65a6697 100644 --- a/help/en_US/scilab_en_US_help/jhelpmap.jhm +++ b/help/en_US/scilab_en_US_help/jhelpmap.jhm @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelptoc.xml b/help/en_US/scilab_en_US_help/jhelptoc.xml index f6b705d..6ccea26 100644 --- a/help/en_US/scilab_en_US_help/jhelptoc.xml +++ b/help/en_US/scilab_en_US_help/jhelptoc.xml @@ -2,7 +2,7 @@ - + diff --git a/help/en_US/scilab_en_US_help/octave_fun.html b/help/en_US/scilab_en_US_help/octave_fun.html index 827d29a..9576ea8 100644 --- a/help/en_US/scilab_en_US_help/octave_fun.html +++ b/help/en_US/scilab_en_US_help/octave_fun.html @@ -12,11 +12,11 @@
- << scilab_octave + << scilab_octave - scilab_octave + scilab_octave @@ -28,7 +28,7 @@ - scilab_octave >> scilab_octave > octave_fun + scilab_octave >> scilab_octave > octave_fun

octave_fun

@@ -94,11 +94,11 @@
Report an issue
- << scilab_octave + << scilab_octave - scilab_octave + scilab_octave diff --git a/help/en_US/scilab_en_US_help/section_5e7519fee5718c0930fe5ef6701da2b8.html b/help/en_US/scilab_en_US_help/section_5e7519fee5718c0930fe5ef6701da2b8.html new file mode 100644 index 0000000..a828712 --- /dev/null +++ b/help/en_US/scilab_en_US_help/section_5e7519fee5718c0930fe5ef6701da2b8.html @@ -0,0 +1,55 @@ + + + + + + +
+ + + + +
+ + + scilab_octave + + + +
+
+
+ + + + scilab_octave >> scilab_octave + +

+

scilab_octave

+
  • octave_funCalls an octave function with given inputs and returns the expected output
+
+ +
+ + + + + + +
Report an issue
+ + + scilab_octave + + + +
+
+
+ + diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index 81861cc..973d083 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/sci_gateway/cpp/libscilab_octave.so b/sci_gateway/cpp/libscilab_octave.so index 221c3c8..5069d2b 100755 Binary files a/sci_gateway/cpp/libscilab_octave.so and b/sci_gateway/cpp/libscilab_octave.so differ diff --git a/sci_gateway/cpp/sci_octave.cpp b/sci_gateway/cpp/sci_octave.cpp index 817c184..177a6b9 100644 --- a/sci_gateway/cpp/sci_octave.cpp +++ b/sci_gateway/cpp/sci_octave.cpp @@ -368,6 +368,10 @@ extern "C" else if (outStruct[j].type == TYPE_STRING){ scilab_setStructMatrix2dData(env, out[i], (const wchar_t*) outStruct[j].key, 0, 0, scilab_createString(env, (const wchar_t*) outStruct[j].str)); } + else{ + Scierror(999, _("%s: Unsupported type of output argument in struct %d for key \"%ls\".\n"), fname, i, (const wchar_t*) outStruct[i].key); + return STATUS_ERROR; + } } } else if (ins[i].is_out_string == 1){ diff --git a/src/fun.cpp b/src/fun.cpp index 1362e67..8929d83 100644 --- a/src/fun.cpp +++ b/src/fun.cpp @@ -275,7 +275,7 @@ extern "C" outStruct[j].str = malloc(sizeof(wchar_t) * (currValueStr.length() + 1)); mbstowcs((wchar_t*) outStruct[j].str, currValueStr.c_str(), currValueStr.length() + 1); } - else { + else if (currValue.is_double_type()){ outStruct[j].type = TYPE_DOUBLE; Matrix currValueMatrix(currValue.matrix_value()); diff --git a/src/fun.o b/src/fun.o index ca3d57a..db956ed 100644 Binary files a/src/fun.o and b/src/fun.o differ diff --git a/src/libfun.so b/src/libfun.so index 581c20b..eb0a7e0 100755 Binary files a/src/libfun.so and b/src/libfun.so differ diff --git a/thirdparty/linux/lib/x64/libfun.so b/thirdparty/linux/lib/x64/libfun.so index 581c20b..eb0a7e0 100755 Binary files a/thirdparty/linux/lib/x64/libfun.so and b/thirdparty/linux/lib/x64/libfun.so differ -- cgit