summaryrefslogtreecommitdiffstats
path: root/scilab/modules/dynamic_link
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-02-11 12:50:26 +0100
committerAllan CORNET <allan.cornet@scilab.org>2010-02-11 12:50:26 +0100
commitdc601fd1540a6159722e56425b24725aabfb3c4c (patch)
treebbecefc1d893cf75fedd284e3ea6ca29e8464fee /scilab/modules/dynamic_link
parente8863cfc67a89e6561feb705dc83e8339a5cfb86 (diff)
downloadscilab-dc601fd1540a6159722e56425b24725aabfb3c4c.zip
scilab-dc601fd1540a6159722e56425b24725aabfb3c4c.tar.gz
bug 6480
Diffstat (limited to 'scilab/modules/dynamic_link')
-rw-r--r--scilab/modules/dynamic_link/help/en_US/call.xml16
1 files changed, 10 insertions, 6 deletions
diff --git a/scilab/modules/dynamic_link/help/en_US/call.xml b/scilab/modules/dynamic_link/help/en_US/call.xml
index 4adc296..b54ab8c 100644
--- a/scilab/modules/dynamic_link/help/en_US/call.xml
+++ b/scilab/modules/dynamic_link/help/en_US/call.xml
@@ -86,9 +86,13 @@
86 86
87 <itemizedlist> 87 <itemizedlist>
88 <listitem> 88 <listitem>
89 <para>with Scilab "<literal>link</literal>" command (incremental 89 <para>with Scilab "<literal>link</literal>" command (dynamical
90 "soft" linking) during the Scilab session.(see 90 linking) during the Scilab session.(see
91 <literal>link</literal>)</para> 91 <literal>link</literal>)</para>
92
93 <para>On Windows, C functions must use cdecl calling convention name
94 (see options in your C compiler(default calling convention for x86 C
95 compilers)).</para>
92 </listitem> 96 </listitem>
93 </itemizedlist> 97 </itemizedlist>
94 98
@@ -194,13 +198,13 @@
194 <refsection> 198 <refsection>
195 <title>Examples</title> 199 <title>Examples</title>
196 200
197 <programlisting role="example"><![CDATA[ 201 <programlisting role="example">
198//Example 1 with a simple C code 202//Example 1 with a simple C code
199f1=['#include <math.h>' 203f1=['#include &lt;math.h&gt;'
200 'void fooc(double c[],double a[],double *b,int *m,int *n)' 204 'void fooc(double c[],double a[],double *b,int *m,int *n)'
201 '{' 205 '{'
202 ' int i;' 206 ' int i;'
203 ' for ( i =0 ; i < (*m)*(*n) ; i++) ' 207 ' for ( i =0 ; i &lt; (*m)*(*n) ; i++) '
204 ' c[i] = sin(a[i]) + *b; ' 208 ' c[i] = sin(a[i]) + *b; '
205 '}']; 209 '}'];
206 210
@@ -251,7 +255,7 @@ exec loader.sce
251a=[1,2,3;4,5,6];b= %pi; 255a=[1,2,3;4,5,6];b= %pi;
252[m,n]=size(a); 256[m,n]=size(a);
253c=call("foof",a,2,"d",b,3,"d",m,4,"i",n,5,"i","out",[m,n],1,"d"); 257c=call("foof",a,2,"d",b,3,"d",m,4,"i",n,5,"i","out",[m,n],1,"d");
254 ]]></programlisting> 258 </programlisting>
255 </refsection> 259 </refsection>
256 260
257 <refsection> 261 <refsection>