summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--help/en_US/master_help.xml6
-rw-r--r--help/en_US/scilab_en_US_help/JavaHelpSearch/DOCSbin250 -> 250 bytes
-rw-r--r--help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TABbin63 -> 63 bytes
-rw-r--r--help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS3
-rw-r--r--help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONSbin593 -> 594 bytes
-rw-r--r--help/en_US/scilab_en_US_help/JavaHelpSearch/TMAPbin2048 -> 2048 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabCaution.pngbin507 -> 603 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabEdit.pngbin413 -> 574 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabExecute.pngbin534 -> 660 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabImportant.pngbin615 -> 717 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabNote.pngbin664 -> 863 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabTip.pngbin664 -> 863 bytes
-rw-r--r--help/en_US/scilab_en_US_help/ScilabWarning.pngbin507 -> 603 bytes
-rw-r--r--help/en_US/scilab_en_US_help/index.html2
-rw-r--r--help/en_US/scilab_en_US_help/jhelpmap.jhm2
-rw-r--r--help/en_US/scilab_en_US_help/jhelptoc.xml2
-rw-r--r--help/en_US/scilab_en_US_help/octave_fun.html10
-rw-r--r--help/en_US/scilab_en_US_help/section_cf80d198f9b614eed1313b0fb421a3f1.html (renamed from help/en_US/scilab_en_US_help/section_1c1bd9c3fd43e22beeaa17904025e167.html)2
-rw-r--r--help/en_US/scilab_en_US_help/style.css16
-rw-r--r--jar/scilab_en_US_help.jarbin15524 -> 16517 bytes
-rw-r--r--macros/octave_fun.binbin5099 -> 5099 bytes
-rwxr-xr-xsci_gateway/cpp/libscilab_octave.sobin21536 -> 27400 bytes
-rw-r--r--sci_gateway/cpp/sci_octave.cpp18
-rw-r--r--tests/test.sce4
24 files changed, 37 insertions, 28 deletions
diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml
index 42de660..4fd980d 100644
--- a/help/en_US/master_help.xml
+++ b/help/en_US/master_help.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book [
<!--Begin Entities-->
-<!ENTITY a2f62ac6eea8f91207887f252e499ff51 SYSTEM "/home/rupak19/scilab-octave-toolbox/fossee-scilab-octave-toolbox/help/en_US/octave_fun.xml">
+<!ENTITY ae2c4e799fa7bd155915cca166300af7e SYSTEM "/home/shagun/Documents/fossee-scilab-octave-toolbox/help/en_US/octave_fun.xml">
<!--End Entities-->
]>
<book version="5.0-subset Scilab" xml:lang="en_US"
@@ -16,8 +16,8 @@
<title>scilab_octave</title>
</info>
-<part xml:id='section_1c1bd9c3fd43e22beeaa17904025e167'>
+<part xml:id='section_cf80d198f9b614eed1313b0fb421a3f1'>
<title>scilab_octave</title>
-&a2f62ac6eea8f91207887f252e499ff51;
+&ae2c4e799fa7bd155915cca166300af7e;
</part>
</book>
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS
index a1d2a47..2b0c40c 100644
--- a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS
+++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS
Binary files differ
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 8619a1d..d8be745 100644
--- a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB
+++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS
index c3c7752..1ea4172 100644
--- a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS
+++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS
@@ -1 +1,2 @@
-Pk` \ No newline at end of file
+@
+Fz` \ No newline at end of file
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS
index 04e849b..d472163 100644
--- a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS
+++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP
index 171b814..4191943 100644
--- a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP
+++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabCaution.png b/help/en_US/scilab_en_US_help/ScilabCaution.png
index 77a9f4a..437c544 100644
--- a/help/en_US/scilab_en_US_help/ScilabCaution.png
+++ b/help/en_US/scilab_en_US_help/ScilabCaution.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabEdit.png b/help/en_US/scilab_en_US_help/ScilabEdit.png
index 4eb8bb9..8dac6b4 100644
--- a/help/en_US/scilab_en_US_help/ScilabEdit.png
+++ b/help/en_US/scilab_en_US_help/ScilabEdit.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabExecute.png b/help/en_US/scilab_en_US_help/ScilabExecute.png
index 06716cb..a240b4f 100644
--- a/help/en_US/scilab_en_US_help/ScilabExecute.png
+++ b/help/en_US/scilab_en_US_help/ScilabExecute.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabImportant.png b/help/en_US/scilab_en_US_help/ScilabImportant.png
index 1993bb3..e70a03c 100644
--- a/help/en_US/scilab_en_US_help/ScilabImportant.png
+++ b/help/en_US/scilab_en_US_help/ScilabImportant.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabNote.png b/help/en_US/scilab_en_US_help/ScilabNote.png
index 04e0e54..8907940 100644
--- a/help/en_US/scilab_en_US_help/ScilabNote.png
+++ b/help/en_US/scilab_en_US_help/ScilabNote.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabTip.png b/help/en_US/scilab_en_US_help/ScilabTip.png
index 04e0e54..8907940 100644
--- a/help/en_US/scilab_en_US_help/ScilabTip.png
+++ b/help/en_US/scilab_en_US_help/ScilabTip.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/ScilabWarning.png b/help/en_US/scilab_en_US_help/ScilabWarning.png
index 77a9f4a..437c544 100644
--- a/help/en_US/scilab_en_US_help/ScilabWarning.png
+++ b/help/en_US/scilab_en_US_help/ScilabWarning.png
Binary files differ
diff --git a/help/en_US/scilab_en_US_help/index.html b/help/en_US/scilab_en_US_help/index.html
index a7bcb41..ed8d5de 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 @@
<h3 class="book-title">scilab_octave</h3>
<ul class="list-part"><a name="scilab_octave_manual"></a><div class="info"></div>
-<li><a href="section_1c1bd9c3fd43e22beeaa17904025e167.html" class="part">scilab_octave</a>
+<li><a href="section_cf80d198f9b614eed1313b0fb421a3f1.html" class="part">scilab_octave</a>
<ul class="list-chapter"><li><a href="octave_fun.html" class="refentry">octave_fun</a> &#8212; <span class="refentry-description">Calls an octave function with given inputs and returns the expected output</span></li></ul></li></ul>
<br />
diff --git a/help/en_US/scilab_en_US_help/jhelpmap.jhm b/help/en_US/scilab_en_US_help/jhelpmap.jhm
index f46231d..9f3b27f 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 @@
<!DOCTYPE map PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN" "http://java.sun.com/products/javahelp/map_1_0.dtd">
<map version="1.0">
<mapID target="index" url="index.html"/>
-<mapID target="section_1c1bd9c3fd43e22beeaa17904025e167" url="section_1c1bd9c3fd43e22beeaa17904025e167.html"/>
+<mapID target="section_cf80d198f9b614eed1313b0fb421a3f1" url="section_cf80d198f9b614eed1313b0fb421a3f1.html"/>
<mapID target="octave_fun" url="octave_fun.html"/>
</map> \ 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 0a9d60c..9774bdf 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 @@
<!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN" "http://java.sun.com/products/javahelp/toc_1_0.dtd">
<toc version="1.0">
<tocitem target="index" text="scilab_octave">
-<tocitem target="section_1c1bd9c3fd43e22beeaa17904025e167" text="scilab_octave">
+<tocitem target="section_cf80d198f9b614eed1313b0fb421a3f1" text="scilab_octave">
<tocitem target="octave_fun" text="octave_fun"/>
</tocitem>
</tocitem>
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 3bff286..bff31a0 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 @@
<div class="manualnavbar">
<table width="100%"><tr>
<td width="30%">
- <span class="previous"><a href="section_1c1bd9c3fd43e22beeaa17904025e167.html">&lt;&lt; scilab_octave</a></span>
+ <span class="previous"><a href="section_cf80d198f9b614eed1313b0fb421a3f1.html">&lt;&lt; scilab_octave</a></span>
</td>
<td width="40%" class="center">
- <span class="top"><a href="section_1c1bd9c3fd43e22beeaa17904025e167.html">scilab_octave</a></span>
+ <span class="top"><a href="section_cf80d198f9b614eed1313b0fb421a3f1.html">scilab_octave</a></span>
</td>
<td width="30%" class="next">
@@ -28,7 +28,7 @@
- <span class="path" dir="ltr"><a href="index.html">scilab_octave</a> &gt;&gt; <a href="section_1c1bd9c3fd43e22beeaa17904025e167.html">scilab_octave</a> &gt; octave_fun</span>
+ <span class="path"><a href="index.html">scilab_octave</a> &gt;&gt; <a href="section_cf80d198f9b614eed1313b0fb421a3f1.html">scilab_octave</a> &gt; octave_fun</span>
<br /><br />
<div class="refnamediv"><h1 class="refname">octave_fun</h1>
@@ -94,11 +94,11 @@
<tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
<td width="30%">
- <span class="previous"><a href="section_1c1bd9c3fd43e22beeaa17904025e167.html">&lt;&lt; scilab_octave</a></span>
+ <span class="previous"><a href="section_cf80d198f9b614eed1313b0fb421a3f1.html">&lt;&lt; scilab_octave</a></span>
</td>
<td width="40%" class="center">
- <span class="top"><a href="section_1c1bd9c3fd43e22beeaa17904025e167.html">scilab_octave</a></span>
+ <span class="top"><a href="section_cf80d198f9b614eed1313b0fb421a3f1.html">scilab_octave</a></span>
</td>
<td width="30%" class="next">
diff --git a/help/en_US/scilab_en_US_help/section_1c1bd9c3fd43e22beeaa17904025e167.html b/help/en_US/scilab_en_US_help/section_cf80d198f9b614eed1313b0fb421a3f1.html
index a6d3f49..a828712 100644
--- a/help/en_US/scilab_en_US_help/section_1c1bd9c3fd43e22beeaa17904025e167.html
+++ b/help/en_US/scilab_en_US_help/section_cf80d198f9b614eed1313b0fb421a3f1.html
@@ -27,7 +27,7 @@
- <span class="path" dir="ltr"><a href="index.html">scilab_octave</a> &gt;&gt; scilab_octave</span>
+ <span class="path"><a href="index.html">scilab_octave</a> &gt;&gt; scilab_octave</span>
<br /><br />
<h3 class="title-part">scilab_octave</h3>
diff --git a/help/en_US/scilab_en_US_help/style.css b/help/en_US/scilab_en_US_help/style.css
index edc0b85..93bd898 100644
--- a/help/en_US/scilab_en_US_help/style.css
+++ b/help/en_US/scilab_en_US_help/style.css
@@ -68,7 +68,6 @@ h5 {
color:#333333;
line-height:120%;
padding:10px;
- direction: ltr;
}
.literal {
@@ -92,14 +91,12 @@ h5 {
font-family: monospace;
font-size: 100%;
color: #32b9b9;
- direction: ltr;
}
.varname {
font-family: monospace;
font-weight: bold;
font-size: 100%;
- direction: ltr;
}
.constant {
@@ -133,7 +130,6 @@ a:hover {
pre {
margin-bottom: 0px;
margin-top: 0px;
- direction: ltr;
}
.leftpart {
@@ -207,10 +203,9 @@ ul.toc li {
/* Top and bottom navigation controls on manual pages --------------------- */
div.manualnavbar {
background-color: #F0F0FF;
- color: inherit;
- padding: 4px;
- margin-bottom: 10px;
- direction: ltr;
+ color: inherit;
+ padding: 4px;
+ margin-bottom: 10px;
}
div.manualnavbar .prev {
padding-right: 4px;
@@ -380,7 +375,4 @@ td.revnumber
{
vertical-align: top;
}
-tr
-{
- vertical-align: top;
-}
+
diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar
index ff4e566..2170167 100644
--- a/jar/scilab_en_US_help.jar
+++ b/jar/scilab_en_US_help.jar
Binary files differ
diff --git a/macros/octave_fun.bin b/macros/octave_fun.bin
index ba7dc3f..3c35c06 100644
--- a/macros/octave_fun.bin
+++ b/macros/octave_fun.bin
Binary files differ
diff --git a/sci_gateway/cpp/libscilab_octave.so b/sci_gateway/cpp/libscilab_octave.so
index 229a76c..f4317ae 100755
--- a/sci_gateway/cpp/libscilab_octave.so
+++ b/sci_gateway/cpp/libscilab_octave.so
Binary files differ
diff --git a/sci_gateway/cpp/sci_octave.cpp b/sci_gateway/cpp/sci_octave.cpp
index 2ba43b5..d76993f 100644
--- a/sci_gateway/cpp/sci_octave.cpp
+++ b/sci_gateway/cpp/sci_octave.cpp
@@ -9,9 +9,11 @@
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
+#include <iostream>
#include <string>
#include "wchar.h"
#include <cstdlib>
+#include <sstream>
extern "C"
{
@@ -152,8 +154,22 @@ int sci_octave_fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt* o
return STATUS_ERROR;
}
}
+
+ // Capturing Errors and warnings
+ std::stringstream buffer_err;
+
+ // set our error buffer
+ std::cerr.rdbuf(buffer_err.rdbuf());
int status_fun = fun(argptr, funptr);
+
+ // grab error buffer contents
+ std::string err = buffer_err.str();
+ if(!err.empty())
+ sciprint("%s", err.c_str());
+ buffer_err.str("");
+
+
//printf("in scilab status_fun is: %d\n", status_fun);
//printf("in scilab funcall.n_out_arguments is: %d\n", funcall.n_out_arguments);
//printf("in scilab funcall.n_out_user is: %d\n", funcall.n_out_user);
@@ -164,7 +180,7 @@ int sci_octave_fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt* o
//printf("in scilab ouput args are: %d\n", funcall.n_out_arguments);
if(status_fun==1)
{
- Scierror(999, "\nOctave unable to process!\nCorrect usage:\n octave_fun(\"octave_function\",input1,input2,...)\n octave_fun(\"octave_function\",input1,input2,...,optional_input1,optional_input2,...)\n octave_fun(\"octave_function\",\"octave_package\",input1,input2,...)\n octave_fun(\"octave_function\",\"octave_package\",input1,input2,...,optional_input1,optional_input2,...)\n");
+ Scierror(999, "Scilab unable to process!\n");
return 1;
}
else if(funcall.n_out_user <= funcall.n_out_arguments)
diff --git a/tests/test.sce b/tests/test.sce
index e53eed3..e2c0ca1 100644
--- a/tests/test.sce
+++ b/tests/test.sce
@@ -290,12 +290,12 @@ end
/////////Test case for bilinear //////////
-[b a] = octave_fun("bilinear","signal",[1 2 3], [4 5 6], 1, 1);
+[b a] = octave_fun("bilinear","signal",[1 2 3], [4 5 6], 1);
b = round(b*10000)/10000;
a = round(a*10000)/10000;
-if(round(a) == [1 7 18 14])
+if(round(a) == [1 -1 0])
test_pass=[test_pass,1];
else
test_pass=[test_pass,0];