summaryrefslogtreecommitdiffstats
path: root/scilab/modules/api_scilab
diff options
context:
space:
mode:
authorantoine ELIAS <antoine.elias@scilab.org>2010-01-28 17:40:30 +0100
committerantoine ELIAS <antoine.elias@scilab.org>2010-01-28 17:40:30 +0100
commite83af56bd2cb72bd171ce31b248ca2316a94a0f9 (patch)
tree7b8f060edb7e2fed5f861094f215baa1ef6e9fdd /scilab/modules/api_scilab
parentc86168d5a66bd984424f0102225d044a8117cb75 (diff)
downloadscilab-e83af56bd2cb72bd171ce31b248ca2316a94a0f9.zip
scilab-e83af56bd2cb72bd171ce31b248ca2316a94a0f9.tar.gz
api documentation
Diffstat (limited to 'scilab/modules/api_scilab')
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean/A_isBooleanType.xml57
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean/B_getScalarBoolean.xml65
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean/C_createScalarBoolean.xml65
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean/D_booleanExample.xml122
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean_Sparse/A_isBooleanSparseType.xml57
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean_Sparse/B_getAllocatedBooleanSparseMatrix.xml97
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean_Sparse/CHAPTER1
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean_Sparse/C_freeAllocatedBooleanSparse.xml53
-rw-r--r--scilab/modules/api_scilab/help/en_US/Boolean_Sparse/D_booleanSparseExample.xml98
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/A_isDoubleType.xml57
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/B_getScalarDouble.xml65
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/C_getScalarComplexDouble.xml73
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/D_createScalarDouble.xml65
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/E_createScalarComplexDouble.xml73
-rw-r--r--scilab/modules/api_scilab/help/en_US/Double/F_doubleExample.xml163
-rw-r--r--scilab/modules/api_scilab/help/en_US/Integer/A_isIntegerType.xml57
-rw-r--r--scilab/modules/api_scilab/help/en_US/Integer/B_getScalarInteger.xml110
-rw-r--r--scilab/modules/api_scilab/help/en_US/Integer/C_createScalarInteger.xml110
-rw-r--r--scilab/modules/api_scilab/help/en_US/Integer/D_intergerExample.xml344
-rw-r--r--scilab/modules/api_scilab/help/en_US/List_management/CHAPTER1
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/CHAPTER1
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/boolean_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/boolean_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/bsparse_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/bsparse_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvaraddr_api.xml (renamed from scilab/modules/api_scilab/help/en_US/common_getvaraddr_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvardimension_api.xml (renamed from scilab/modules/api_scilab/help/en_US/common_getvardimension_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvartype_api.xml (renamed from scilab/modules/api_scilab/help/en_US/common_getvartype_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/common_iscomplex_api.xml (renamed from scilab/modules/api_scilab/help/en_US/common_iscomplex_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/common_isvarmatrixtype_api.xml (renamed from scilab/modules/api_scilab/help/en_US/common_isvarmatrixtype_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/double_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/double_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/double_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/double_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/int_getmatrixofintegerprecision_api.xml (renamed from scilab/modules/api_scilab/help/en_US/int_getmatrixofintegerprecision_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/integer_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/integer_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/pointer_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/pointer_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_getpolyvariablename_api.xml (renamed from scilab/modules/api_scilab/help/en_US/poly_getpolyvariablename_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/poly_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/poly_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/sparse_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/sparse_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/string_reading_api.xml (renamed from scilab/modules/api_scilab/help/en_US/string_reading_api.xml)0
-rw-r--r--scilab/modules/api_scilab/help/en_US/Low_level_functions/string_writing_api.xml (renamed from scilab/modules/api_scilab/help/en_US/string_writing_api.xml)0
-rw-r--r--scilab/modules/api_scilab/includes/api_int.h32
-rw-r--r--scilab/modules/api_scilab/src/cpp/api_int.cpp64
46 files changed, 1782 insertions, 48 deletions
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean/A_isBooleanType.xml b/scilab/modules/api_scilab/help/en_US/Boolean/A_isBooleanType.xml
new file mode 100644
index 0000000..98b31bf
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean/A_isBooleanType.xml
@@ -0,0 +1,57 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="isBooleanType"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>isBooleanType</refname>
23
24 <refpurpose>
25 Check if it is a boolean variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int isBooleanType(void* _pvCtx, int* _piAddress)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 </variablelist>
52 </refsection>
53 <refsection>
54 <title>Return value</title>
55 <para>1 if variable is a boolean type, otherwise 0</para>
56 </refsection>
57</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean/B_getScalarBoolean.xml b/scilab/modules/api_scilab/help/en_US/Boolean/B_getScalarBoolean.xml
new file mode 100644
index 0000000..3f6b038
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean/B_getScalarBoolean.xml
@@ -0,0 +1,65 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="getScalarBoolean"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>getScalarBoolean</refname>
23
24 <refpurpose>
25 Read scalar boolean data from a gateway argument.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int getScalarBoolean(void* _pvCtx, int* _piAddress, int* _piBool)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Address of the Scilab variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_piBool</term>
53 <listitem>
54 <para>
55 Return boolean value.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsection>
61 <refsection>
62 <title>Return value</title>
63 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
64 </refsection>
65</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean/C_createScalarBoolean.xml b/scilab/modules/api_scilab/help/en_US/Boolean/C_createScalarBoolean.xml
new file mode 100644
index 0000000..b2158b9
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean/C_createScalarBoolean.xml
@@ -0,0 +1,65 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="createScalarBoolean"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>createScalarBoolean</refname>
23
24 <refpurpose>
25 Create scalar boolean variable in Scilab memory.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int createScalarBoolean(void* _pvCtx, int _iVar, int _iBool)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_iVar</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_iBool</term>
53 <listitem>
54 <para>
55 Boolean value.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsection>
61 <refsection>
62 <title>Return value</title>
63 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
64 </refsection>
65</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean/D_booleanExample.xml b/scilab/modules/api_scilab/help/en_US/Boolean/D_booleanExample.xml
new file mode 100644
index 0000000..8dcce87
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean/D_booleanExample.xml
@@ -0,0 +1,122 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="booleanExample"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20 <refnamediv>
21 <refname>boolean example</refname>
22
23 <refpurpose>
24 Boolean use case.
25 </refpurpose>
26 </refnamediv>
27
28 <refsection>
29 <title>Description</title>
30 <para>This example shows how to get a boolean variable and return it to Scilab.</para>
31 </refsection>
32 <refsection>
33 <!--File_gateway: SCI/modules/api_scilab/tests/unit_tests/booleanExample.c-->
34 <!--File_scilab: SCI/modules/api_scilab/tests/unit_tests/booleanExample.tst-->
35 <!--Lib_name: booleanExample-->
36 <!--Func_list: booleanExample-->
37 <title>Gateway Source</title>
38 <programlisting role="code_gateway">
39 <![CDATA[
40int booleanExample(char *fname,unsigned long fname_len)
41{
42 SciErr sciErr;
43 int* piAddr = NULL;
44 int iType = 0;
45 int iRet = 0;
46
47 CheckRhs(1,1);
48 CheckLhs(0,1);
49
50 sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
51 if(sciErr.iErr)
52 {
53 printError(&sciErr, 0);
54 return 0;
55 }
56
57 if(isBooleanType(pvApiCtx, piAddr))
58 {
59 if(isScalar(pvApiCtx, piAddr))
60 {
61 int iBool = 0;
62 iRet = getScalarBoolean(pvApiCtx, piAddr, &iBool);
63 if(iRet)
64 {
65 return 0;
66 }
67
68 iRet = createScalarBoolean(pvApiCtx, Rhs + 1, iBool);
69 if(iRet)
70 {
71 return 0;
72 }
73 }
74 else
75 {
76 int iRows = 0;
77 int iCols = 0;
78 int *piBool = NULL;
79
80 sciErr = getMatrixOfBoolean(pvApiCtx, piAddr, &iRows, &iCols, &piBool);
81 if(sciErr.iErr)
82 {
83 printError(&sciErr, 0);
84 return 0;
85 }
86
87 sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, iRows, iCols, piBool);
88 if(sciErr.iErr)
89 {
90 printError(&sciErr, 0);
91 return 0;
92 }
93 }
94 LhsVar(1) = Rhs + 1;
95 }
96 else
97 {
98 LhsVar(1) = 0;
99 }
100 return 0;
101}
102 ]]>
103 </programlisting>
104 </refsection>
105
106 <refsection>
107 <title>Scilab test script</title>
108 <programlisting role="code_scilab">
109 <![CDATA[
110a = %t;
111b = %f;
112c = [a,b;b,a;a,b;b,a];
113d = c';
114
115booleanExample(a) == a
116booleanExample(b) == b
117booleanExample(c) == c
118booleanExample(d) == d
119 ]]>
120 </programlisting>
121 </refsection>
122</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/A_isBooleanSparseType.xml b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/A_isBooleanSparseType.xml
new file mode 100644
index 0000000..97d2b83
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/A_isBooleanSparseType.xml
@@ -0,0 +1,57 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="isBooleanSparseType"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>isBooleanSparseType</refname>
23
24 <refpurpose>
25 Check if it is a boolean sparse variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int isBooleanSparseType(void* _pvCtx, int* _piAddress)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 </variablelist>
52 </refsection>
53 <refsection>
54 <title>Return value</title>
55 <para>1 if variable is a boolean sparse type, otherwise 0</para>
56 </refsection>
57</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/B_getAllocatedBooleanSparseMatrix.xml b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/B_getAllocatedBooleanSparseMatrix.xml
new file mode 100644
index 0000000..28b85f6
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/B_getAllocatedBooleanSparseMatrix.xml
@@ -0,0 +1,97 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="getAllocatedBooleanSparseMatrix"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>getAllocatedBooleanSparseMatrix</refname>
23
24 <refpurpose>
25 Get sparse matrix attributs.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int getAllocatedBooleanSparseMatrix(void* _pvCtx, int* _piAddress, int* _piRows, int* _piCols, int* _piNbItem, int** _piNbItemRow, int** _piColPos)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Address of the Scilab variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_piRows</term>
53 <listitem>
54 <para>
55 Return number of rows of the variable.
56 </para>
57 </listitem>
58 </varlistentry>
59 <varlistentry>
60 <term>_piCols</term>
61 <listitem>
62 <para>
63 Return number of columns of the variable.
64 </para>
65 </listitem>
66 </varlistentry>
67 <varlistentry>
68 <term>_piNbItem</term>
69 <listitem>
70 <para>
71 Return number of non %f value.
72 </para>
73 </listitem>
74 </varlistentry>
75 <varlistentry>
76 <term>_piNbItemRow</term>
77 <listitem>
78 <para>
79 Return number of item in each rows (size: *_piRows).
80 </para>
81 </listitem>
82 </varlistentry>
83 <varlistentry>
84 <term>_piColPos</term>
85 <listitem>
86 <para>
87 Return column position for each item (size: *_piNbItem).
88 </para>
89 </listitem>
90 </varlistentry>
91 </variablelist>
92 </refsection>
93 <refsection>
94 <title>Return value</title>
95 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
96 </refsection>
97</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/CHAPTER b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/CHAPTER
new file mode 100644
index 0000000..5484471
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/CHAPTER
@@ -0,0 +1 @@
title = Boolean Sparse \ No newline at end of file
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/C_freeAllocatedBooleanSparse.xml b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/C_freeAllocatedBooleanSparse.xml
new file mode 100644
index 0000000..d4115c38
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/C_freeAllocatedBooleanSparse.xml
@@ -0,0 +1,53 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="freeAllocatedBooleanSparse"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>freeAllocatedBooleanSparse</refname>
23
24 <refpurpose>
25 Free memory allocated by getAllocatedBooleanSparseMatrix function.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>void freeAllocatedBooleanSparse(int* _piNbItemRow, int* _piColPos)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_piNbItemRow</term>
37 <listitem>
38 <para>
39 Pointer "_piNbItemRow" allocated by getAllocatedBooleanSparseMatrix.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piColPos</term>
45 <listitem>
46 <para>
47 Pointer "_piColPos" allocated by getAllocatedBooleanSparseMatrix.
48 </para>
49 </listitem>
50 </varlistentry>
51 </variablelist>
52 </refsection>
53</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/D_booleanSparseExample.xml b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/D_booleanSparseExample.xml
new file mode 100644
index 0000000..081188d
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Boolean_Sparse/D_booleanSparseExample.xml
@@ -0,0 +1,98 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="booleanSparseExample"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20 <refnamediv>
21 <refname>boolean sparse example</refname>
22
23 <refpurpose>
24 Boolean sparse use case.
25 </refpurpose>
26 </refnamediv>
27
28 <refsection>
29 <title>Description</title>
30 <para>This example shows how to get a boolean sparse variable and return it to Scilab.</para>
31 </refsection>
32 <refsection>
33 <!--File_gateway: SCI/modules/api_scilab/tests/unit_tests/booleanSparseExample.c-->
34 <!--File_scilab: SCI/modules/api_scilab/tests/unit_tests/booleanSparseExample.tst-->
35 <!--Lib_name: booleanSparseExample-->
36 <!--Func_list: booleanSparseExample-->
37 <title>Gateway Source</title>
38 <programlisting role="code_gateway">
39 <![CDATA[
40int booleanSparseExample(char *fname,unsigned long fname_len)
41{
42 SciErr sciErr;
43 int* piAddr = NULL;
44 int iType = 0;
45 int iRet = 0;
46
47 CheckRhs(1,1);
48 CheckLhs(0,1);
49
50 sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
51 if(sciErr.iErr)
52 {
53 printError(&sciErr, 0);
54 return 0;
55 }
56
57 if(isBooleanSparseType(pvApiCtx, piAddr))
58 {
59 int iRows = 0;
60 int iCols = 0;
61 int iNbItem = 0;
62 int* piNbItemRow = NULL;
63 int* piColPos = NULL;
64
65 iRet = getAllocatedBooleanSparseMatrix(pvApiCtx, piAddr, &iRows, &iCols, &iNbItem, &piNbItemRow, &piColPos);
66 if(iRet)
67 {
68 freeAllocatedBooleanSparse(piNbItemRow, piColPos);
69 return iRet;
70 }
71
72 sciErr = createBooleanSparseMatrix(pvApiCtx, Rhs + 1, iRows, iCols, iNbItem, piNbItemRow, piColPos);
73 if(sciErr.iErr)
74 {
75 freeAllocatedBooleanSparse(piNbItemRow, piColPos);
76 printError(&sciErr, 0);
77 return sciErr.iErr;
78 }
79
80 freeAllocatedBooleanSparse(piNbItemRow, piColPos);
81 LhsVar(1) = Rhs + 1;
82 }
83 return 0;
84}
85 ]]>
86 </programlisting>
87 </refsection>
88
89 <refsection>
90 <title>Scilab test script</title>
91 <programlisting role="code_scilab">
92 <![CDATA[
93bsp = sparse([1,1;2,2;3,3],[%t,%t,%t]);
94or(booleanSparseExample(bsp) == bsp)
95 ]]>
96 </programlisting>
97 </refsection>
98</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/A_isDoubleType.xml b/scilab/modules/api_scilab/help/en_US/Double/A_isDoubleType.xml
new file mode 100644
index 0000000..aec6559
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/A_isDoubleType.xml
@@ -0,0 +1,57 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="isDoubleType"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>isDoubleType</refname>
23
24 <refpurpose>
25 Check if it is a double variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int isDoubleType(void* _pvCtx, int* _piAddress)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 </variablelist>
52 </refsection>
53 <refsection>
54 <title>Return value</title>
55 <para>1 if variable is a double type, otherwise 0</para>
56 </refsection>
57</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/B_getScalarDouble.xml b/scilab/modules/api_scilab/help/en_US/Double/B_getScalarDouble.xml
new file mode 100644
index 0000000..4066dad
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/B_getScalarDouble.xml
@@ -0,0 +1,65 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="getScalarDouble"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>getScalarDouble</refname>
23
24 <refpurpose>
25 Get scalar double variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int getScalarDouble(void* _pvCtx, int* _piAddress, double* _pdblReal)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Address of the Scilab variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_pdblReal</term>
53 <listitem>
54 <para>
55 Double value.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsection>
61 <refsection>
62 <title>Return value</title>
63 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
64 </refsection>
65</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/C_getScalarComplexDouble.xml b/scilab/modules/api_scilab/help/en_US/Double/C_getScalarComplexDouble.xml
new file mode 100644
index 0000000..cba6872
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/C_getScalarComplexDouble.xml
@@ -0,0 +1,73 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="getScalarComplexDouble"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>getScalarComplexDouble</refname>
23
24 <refpurpose>
25 Get scalar complex double variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int getScalarComplexDouble(void* _pvCtx, int* _piAddress, double* _pdblReal, double* _pdblImg)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_pdblReal</term>
53 <listitem>
54 <para>
55 Real part value.
56 </para>
57 </listitem>
58 </varlistentry>
59 <varlistentry>
60 <term>_pdblImg</term>
61 <listitem>
62 <para>
63 Imaginary part value.
64 </para>
65 </listitem>
66 </varlistentry>
67 </variablelist>
68 </refsection>
69 <refsection>
70 <title>Return value</title>
71 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
72 </refsection>
73</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/D_createScalarDouble.xml b/scilab/modules/api_scilab/help/en_US/Double/D_createScalarDouble.xml
new file mode 100644
index 0000000..970f346
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/D_createScalarDouble.xml
@@ -0,0 +1,65 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="createScalarDouble"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>createScalarDouble</refname>
23
24 <refpurpose>
25 Create a scalar double in Scilab memory.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int createScalarDouble(void* _pvCtx, int _iVar, double _dblReal)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_iVar</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_dblReal</term>
53 <listitem>
54 <para>
55 Double value.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsection>
61 <refsection>
62 <title>Return value</title>
63 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
64 </refsection>
65</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/E_createScalarComplexDouble.xml b/scilab/modules/api_scilab/help/en_US/Double/E_createScalarComplexDouble.xml
new file mode 100644
index 0000000..4c48ca9
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/E_createScalarComplexDouble.xml
@@ -0,0 +1,73 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="createScalarComplexDouble"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>createScalarComplexDouble</refname>
23
24 <refpurpose>
25 Create a scalar complex double in Scilab memory.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int createScalarComplexDouble(void* _pvCtx, int _iVar, double _dblReal, double _dblImg)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_iVar</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 <varlistentry>
52 <term>_dblReal</term>
53 <listitem>
54 <para>
55 Real part value.
56 </para>
57 </listitem>
58 </varlistentry>
59 <varlistentry>
60 <term>_dblImg</term>
61 <listitem>
62 <para>
63 imaginary part value.
64 </para>
65 </listitem>
66 </varlistentry>
67 </variablelist>
68 </refsection>
69 <refsection>
70 <title>Return value</title>
71 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
72 </refsection>
73</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Double/F_doubleExample.xml b/scilab/modules/api_scilab/help/en_US/Double/F_doubleExample.xml
new file mode 100644
index 0000000..1ffed71
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Double/F_doubleExample.xml
@@ -0,0 +1,163 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="doubleExample"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20 <refnamediv>
21 <refname>double example</refname>
22
23 <refpurpose>
24 Double use case.
25 </refpurpose>
26 </refnamediv>
27
28 <refsection>
29 <title>Description</title>
30 <para>This example shows how to get a double variable and return it to Scilab.</para>
31 </refsection>
32 <refsection>
33 <!--File_gateway: SCI/modules/api_scilab/tests/unit_tests/doubleExample.c-->
34 <!--File_scilab: SCI/modules/api_scilab/tests/unit_tests/doubleExample.tst-->
35 <!--Lib_name: doubleExample-->
36 <!--Func_list: doubleExample-->
37 <title>Gateway Source</title>
38 <programlisting role="code_gateway">
39 <![CDATA[
40int doubleExample(char *fname,unsigned long fname_len)
41{
42 SciErr sciErr;
43 int* piAddr = NULL;
44 int iType = 0;
45 int iRet = 0;
46
47 CheckRhs(1,1);
48 CheckLhs(0,1);
49
50 sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
51 if(sciErr.iErr)
52 {
53 printError(&sciErr, 0);
54 return 0;
55 }
56
57 if(isEmptyMatrix(pvApiCtx, piAddr))
58 {
59 iRet = createEmptyMatrix(pvApiCtx, Rhs + 1);
60 if(iRet)
61 {
62 return iRet;
63 }
64 }
65 else if(isDoubleType(pvApiCtx, piAddr))
66 {
67 if(isScalar(pvApiCtx, piAddr))
68 {
69 double dblReal = 0;
70 double dblImg = 0;
71
72 if(isVarComplex(pvApiCtx, piAddr))
73 {
74 iRet = getScalarComplexDouble(pvApiCtx, piAddr, &dblReal, &dblImg);
75 if(iRet)
76 {
77 return iRet;
78 }
79
80 iRet = createScalarComplexDouble(pvApiCtx, Rhs + 1, dblReal, dblImg);
81 if(iRet)
82 {
83 return iRet;
84 }
85 }
86 else
87 {
88 iRet = getScalarDouble(pvApiCtx, piAddr, &dblReal);
89 if(iRet)
90 {
91 return iRet;
92 }
93
94 iRet = createScalarDouble(pvApiCtx, Rhs + 1, dblReal);
95 if(iRet)
96 {
97 return iRet;
98 }
99 }
100 }
101 else
102 {
103 int iRows = 0;
104 int iCols = 0;
105 double* pdblReal = NULL;
106 double* pdblImg = NULL;
107
108 if(isVarComplex(pvApiCtx, piAddr))
109 {
110 sciErr = getComplexMatrixOfDouble(pvApiCtx, piAddr, &iRows, &iCols, &pdblReal, &pdblImg);
111 if(sciErr.iErr)
112 {
113 printError(&sciErr, 0);
114 return sciErr.iErr;
115 }
116
117 sciErr = createComplexMatrixOfDouble(pvApiCtx, Rhs + 1, iRows, iCols, pdblReal, pdblImg);
118 if(sciErr.iErr)
119 {
120 printError(&sciErr, 0);
121 return sciErr.iErr;
122 }
123 }
124 else
125 {
126 sciErr = getMatrixOfDouble(pvApiCtx, piAddr, &iRows, &iCols, &pdblReal);
127 if(sciErr.iErr)
128 {
129 printError(&sciErr, 0);
130 return sciErr.iErr;
131 }
132
133 sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, iRows, iCols, pdblReal);
134 if(sciErr.iErr)
135 {
136 printError(&sciErr, 0);
137 return sciErr.iErr;
138 }
139 }
140 }
141 }
142 return 0;
143}
144 ]]>
145 </programlisting>
146 </refsection>
147 <refsection>
148 <title>Scilab test script</title>
149 <programlisting role="code_scilab">
150 <![CDATA[
151a = 1;
152b = %i;
153c = [1,2,3;4,5,6];
154d = c(1:$) + c($:-1:1) * %i;
155
156doubleExample(a) == a
157doubleExample(b) == b
158doubleExample(c) == c
159doubleExample(d) == d
160 ]]>
161 </programlisting>
162 </refsection>
163</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Integer/A_isIntegerType.xml b/scilab/modules/api_scilab/help/en_US/Integer/A_isIntegerType.xml
new file mode 100644
index 0000000..8ea0fb6
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Integer/A_isIntegerType.xml
@@ -0,0 +1,57 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="isIntegerType"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>isIntegerType</refname>
23
24 <refpurpose>
25 Check if it is a double variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int isIntegerType(void* _pvCtx, int* _piAddress)</synopsis>
31 </refsynopsisdiv>
32 <refsection>
33 <title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term>_pvCtx</term>
37 <listitem>
38 <para>
39 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
40 </para>
41 </listitem>
42 </varlistentry>
43 <varlistentry>
44 <term>_piAddress</term>
45 <listitem>
46 <para>
47 Position in the Scilab memory where you want to put the variable.
48 </para>
49 </listitem>
50 </varlistentry>
51 </variablelist>
52 </refsection>
53 <refsection>
54 <title>Return value</title>
55 <para>1 if variable is a integer type, otherwise 0</para>
56 </refsection>
57</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Integer/B_getScalarInteger.xml b/scilab/modules/api_scilab/help/en_US/Integer/B_getScalarInteger.xml
new file mode 100644
index 0000000..5f65c15
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Integer/B_getScalarInteger.xml
@@ -0,0 +1,110 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="getScalarInteger8"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>getScalarInteger8</refname>
23
24 <refpurpose>
25 Get scalar integer variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int getScalarInteger8(void* _pvCtx, int* _piAddress, char* _pcData)</synopsis>
31 <synopsis xml:id="getScalarInteger16">int getScalarInteger16(void* _pvCtx, int* _piAddress, short* _psData)</synopsis>
32 <synopsis xml:id="getScalarInteger32">int getScalarInteger32(void* _pvCtx, int* _piAddress, int* _piData)</synopsis>
33 <synopsis xml:id="getScalarUnsignedInteger8">int getScalarUnsignedInteger8(void* _pvCtx, int* _piAddress, unsigned char* _pucData)</synopsis>
34 <synopsis xml:id="getScalarUnsignedInteger16">int getScalarUnsignedInteger16(void* _pvCtx, int* _piAddress, unsigned short* _pusData)</synopsis>
35 <synopsis xml:id="getScalarUnsignedInteger32">int getScalarUnsignedInteger32(void* _pvCtx, int* _piAddress, unsigned int* _puiData)</synopsis>
36 </refsynopsisdiv>
37 <refsection>
38 <title>Parameters</title>
39 <variablelist>
40 <varlistentry>
41 <term>_pvCtx</term>
42 <listitem>
43 <para>
44 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
45 </para>
46 </listitem>
47 </varlistentry>
48 <varlistentry>
49 <term>_piAddress</term>
50 <listitem>
51 <para>
52 Address of the Scilab variable.
53 </para>
54 </listitem>
55 </varlistentry>
56 <varlistentry>
57 <term>_cData</term>
58 <listitem>
59 <para>
60 Integer 8 bits value.
61 </para>
62 </listitem>
63 </varlistentry>
64 <varlistentry>
65 <term>_sData</term>
66 <listitem>
67 <para>
68 Integer 16 bits value.
69 </para>
70 </listitem>
71 </varlistentry>
72 <varlistentry>
73 <term>_iData</term>
74 <listitem>
75 <para>
76 Integer 32 bits value.
77 </para>
78 </listitem>
79 </varlistentry>
80 <varlistentry>
81 <term>_ucData</term>
82 <listitem>
83 <para>
84 Unsigned integer 8 bits value.
85 </para>
86 </listitem>
87 </varlistentry>
88 <varlistentry>
89 <term>_usData</term>
90 <listitem>
91 <para>
92 Unsigned integer 16 bits value.
93 </para>
94 </listitem>
95 </varlistentry>
96 <varlistentry>
97 <term>_uiData</term>
98 <listitem>
99 <para>
100 Unsigned integer 32 bits value.
101 </para>
102 </listitem>
103 </varlistentry>
104 </variablelist>
105 </refsection>
106 <refsection>
107 <title>Return value</title>
108 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
109 </refsection>
110</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Integer/C_createScalarInteger.xml b/scilab/modules/api_scilab/help/en_US/Integer/C_createScalarInteger.xml
new file mode 100644
index 0000000..2f7ab39
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Integer/C_createScalarInteger.xml
@@ -0,0 +1,110 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="createScalarInteger8"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20
21 <refnamediv>
22 <refname>createScalarInteger8</refname>
23
24 <refpurpose>
25 Create scalar integer variable.
26 </refpurpose>
27 </refnamediv>
28 <refsynopsisdiv>
29 <title>Calling Sequence</title>
30 <synopsis>int createScalarInteger8(void* _pvCtx, int _iVar, char cData)</synopsis>
31 <synopsis xml:id="createScalarInteger16">int createScalarInteger16(void* _pvCtx, int _iVar, short sData)</synopsis>
32 <synopsis xml:id="createScalarInteger32">int createScalarInteger32(void* _pvCtx, int _iVar, int iData)</synopsis>
33 <synopsis xml:id="createScalarUnsignedInteger8">int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char ucData)</synopsis>
34 <synopsis xml:id="createScalarUnsignedInteger16">int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short usData)</synopsis>
35 <synopsis xml:id="createScalarUnsignedInteger32">int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int uiData)</synopsis>
36 </refsynopsisdiv>
37 <refsection>
38 <title>Parameters</title>
39 <variablelist>
40 <varlistentry>
41 <term>_pvCtx</term>
42 <listitem>
43 <para>
44 Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h.
45 </para>
46 </listitem>
47 </varlistentry>
48 <varlistentry>
49 <term>_iVar</term>
50 <listitem>
51 <para>
52 Position in the Scilab memory where you want to put the variable.
53 </para>
54 </listitem>
55 </varlistentry>
56 <varlistentry>
57 <term>_cData</term>
58 <listitem>
59 <para>
60 Integer 8 bits value.
61 </para>
62 </listitem>
63 </varlistentry>
64 <varlistentry>
65 <term>_sData</term>
66 <listitem>
67 <para>
68 Integer 16 bits value.
69 </para>
70 </listitem>
71 </varlistentry>
72 <varlistentry>
73 <term>_iData</term>
74 <listitem>
75 <para>
76 Integer 32 bits value.
77 </para>
78 </listitem>
79 </varlistentry>
80 <varlistentry>
81 <term>_ucData</term>
82 <listitem>
83 <para>
84 Unsigned integer 8 bits value.
85 </para>
86 </listitem>
87 </varlistentry>
88 <varlistentry>
89 <term>_usData</term>
90 <listitem>
91 <para>
92 Unsigned integer 16 bits value.
93 </para>
94 </listitem>
95 </varlistentry>
96 <varlistentry>
97 <term>_uiData</term>
98 <listitem>
99 <para>
100 Unsigned integer 32 bits value.
101 </para>
102 </listitem>
103 </varlistentry>
104 </variablelist>
105 </refsection>
106 <refsection>
107 <title>Return value</title>
108 <para>if successful 0, otherwise print error(s) message(s) in the Scilab console and returns first error number.</para>
109 </refsection>
110</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/Integer/D_intergerExample.xml b/scilab/modules/api_scilab/help/en_US/Integer/D_intergerExample.xml
new file mode 100644
index 0000000..dec506a
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Integer/D_intergerExample.xml
@@ -0,0 +1,344 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Antoine ELIAS
5 *
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 *
12 -->
13<refentry version="5.0-subset Scilab" xml:id="integerExample"
14 xml:lang="en" xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns5="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
20 <refnamediv>
21 <refname>integer example</refname>
22
23 <refpurpose>
24 Integer use case.
25 </refpurpose>
26 </refnamediv>
27
28 <refsection>
29 <title>Description</title>
30 <para>This example shows how to get a integer variable and return it to Scilab.</para>
31 </refsection>
32 <refsection>
33 <!--File_gateway: SCI/modules/api_scilab/tests/unit_tests/integerExample.c-->
34 <!--File_scilab: SCI/modules/api_scilab/tests/unit_tests/integerExample.tst-->
35 <!--Lib_name: integerExample-->
36 <!--Func_list: integerExample-->
37 <title>Gateway Source</title>
38 <programlisting role="code_gateway">
39 <![CDATA[
40int integerExample(char *fname,unsigned long fname_len)
41{
42 SciErr sciErr;
43 int* piAddr = NULL;
44 int iType = 0;
45 int iRet = 0;
46 int iPrec = 0;
47
48 CheckRhs(1,1);
49 CheckLhs(0,1);
50
51 sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
52 if(sciErr.iErr)
53 {
54 printError(&sciErr, 0);
55 return 0;
56 }
57
58
59 if(isIntegerType(pvApiCtx, piAddr))
60 {
61 sciErr = getMatrixOfIntegerPrecision(pvApiCtx, piAddr, &iPrec);
62 if(sciErr.iErr)
63 {
64 printError(&sciErr, 0);
65 return sciErr.iErr;
66 }
67
68 switch(iPrec)
69 {
70 case SCI_INT8 :
71 if(isScalar(pvApiCtx, piAddr))
72 {
73 char cData = 0;
74 iRet = getScalarInteger8(pvApiCtx, piAddr, &cData);
75 if(iRet)
76 {
77 return iRet;
78 }
79
80 iRet = createScalarInteger8(pvApiCtx, Rhs + 1, cData);
81 if(iRet)
82 {
83 return iRet;
84 }
85 }
86 else
87 {
88 int iRows = 0;
89 int iCols = 0;
90 char* pcData = NULL;
91
92 sciErr = getMatrixOfInteger8(pvApiCtx, piAddr, &iRows, &iCols, &pcData);
93 if(sciErr.iErr)
94 {
95 printError(&sciErr, 0);
96 return sciErr.iErr;
97 }
98
99 sciErr = createMatrixOfInteger8(pvApiCtx, Rhs + 1, iRows, iCols, pcData);
100 if(sciErr.iErr)
101 {
102 printError(&sciErr, 0);
103 return sciErr.iErr;
104 }
105 }
106 break;
107 case SCI_INT16 :
108 if(isScalar(pvApiCtx, piAddr))
109 {
110 short sData = 0;
111 iRet = getScalarInteger16(pvApiCtx, piAddr, &sData);
112 if(iRet)
113 {
114 return iRet;
115 }
116
117 iRet = createScalarInteger16(pvApiCtx, Rhs + 1, sData);
118 if(iRet)
119 {
120 return iRet;
121 }
122 }
123 else
124 {
125 int iRows = 0;
126 int iCols = 0;
127 short* psData = NULL;
128
129 sciErr = getMatrixOfInteger16(pvApiCtx, piAddr, &iRows, &iCols, &psData);
130 if(sciErr.iErr)
131 {
132 printError(&sciErr, 0);
133 return sciErr.iErr;
134 }
135
136 sciErr = createMatrixOfInteger16(pvApiCtx, Rhs + 1, iRows, iCols, psData);
137 if(sciErr.iErr)
138 {
139 printError(&sciErr, 0);
140 return sciErr.iErr;
141 }
142 }
143 break;
144 case SCI_INT32 :
145 if(isScalar(pvApiCtx, piAddr))
146 {
147 int iData = 0;
148 iRet = getScalarInteger32(pvApiCtx, piAddr, &iData);
149 if(iRet)
150 {
151 return iRet;
152 }
153
154 iRet = createScalarInteger32(pvApiCtx, Rhs + 1, iData);
155 if(iRet)
156 {
157 return iRet;
158 }
159 }
160 else
161 {
162 int iRows = 0;
163 int iCols = 0;
164 int* piData = NULL;
165
166 sciErr = getMatrixOfInteger32(pvApiCtx, piAddr, &iRows, &iCols, &piData);
167 if(sciErr.iErr)
168 {
169 printError(&sciErr, 0);
170 return sciErr.iErr;
171 }
172
173 sciErr = createMatrixOfInteger32(pvApiCtx, Rhs + 1, iRows, iCols, piData);
174 if(sciErr.iErr)
175 {
176 printError(&sciErr, 0);
177 return sciErr.iErr;
178 }
179 }
180 break;
181#ifdef __SCILAB_INT64__
182 case SCI_INT64 :
183#endif
184 case SCI_UINT8 :
185 if(isScalar(pvApiCtx, piAddr))
186 {
187 unsigned char ucData = 0;
188 iRet = getScalarUnsignedInteger8(pvApiCtx, piAddr, &ucData);
189 if(iRet)
190 {
191 return iRet;
192 }
193
194 iRet = createScalarUnsignedInteger8(pvApiCtx, Rhs + 1, ucData);
195 if(iRet)
196 {
197 return iRet;
198 }
199 }
200 else
201 {
202 int iRows = 0;
203 int iCols = 0;
204 unsigned char* pucData = NULL;
205
206 sciErr = getMatrixOfUnsignedInteger8(pvApiCtx, piAddr, &iRows, &iCols, &pucData);
207 if(sciErr.iErr)
208 {
209 printError(&sciErr, 0);
210 return sciErr.iErr;
211 }
212
213 sciErr = createMatrixOfUnsignedInteger8(pvApiCtx, Rhs + 1, iRows, iCols, pucData);
214 if(sciErr.iErr)
215 {
216 printError(&sciErr, 0);
217 return sciErr.iErr;
218 }
219 }
220 break;
221
222 case SCI_UINT16 :
223 if(isScalar(pvApiCtx, piAddr))
224 {
225 unsigned short usData = 0;
226 iRet = getScalarUnsignedInteger16(pvApiCtx, piAddr, &usData);
227 if(iRet)
228 {
229 return iRet;
230 }
231
232 iRet = createScalarUnsignedInteger16(pvApiCtx, Rhs + 1, usData);
233 if(iRet)
234 {
235 return iRet;
236 }
237 }
238 else
239 {
240 int iRows = 0;
241 int iCols = 0;
242 unsigned short* pusData = NULL;
243
244 sciErr = getMatrixOfUnsignedInteger16(pvApiCtx, piAddr, &iRows, &iCols, &pusData);
245 if(sciErr.iErr)
246 {
247 printError(&sciErr, 0);
248 return sciErr.iErr;
249 }
250
251 sciErr = createMatrixOfUnsignedInteger16(pvApiCtx, Rhs + 1, iRows, iCols, pusData);
252 if(sciErr.iErr)
253 {
254 printError(&sciErr, 0);
255 return sciErr.iErr;
256 }
257 }
258 break;
259 case SCI_UINT32 :
260 if(isScalar(pvApiCtx, piAddr))
261 {
262 unsigned int uiData = 0;
263 iRet = getScalarUnsignedInteger32(pvApiCtx, piAddr, &uiData);
264 if(iRet)
265 {
266 return iRet;
267 }
268
269 iRet = createScalarUnsignedInteger32(pvApiCtx, Rhs + 1, uiData);
270 if(iRet)
271 {
272 return iRet;
273 }
274 }
275 else
276 {
277 int iRows = 0;
278 int iCols = 0;
279 unsigned int* puiData = NULL;
280
281 sciErr = getMatrixOfUnsignedInteger32(pvApiCtx, piAddr, &iRows, &iCols, &puiData);
282 if(sciErr.iErr)
283 {
284 printError(&sciErr, 0);
285 return sciErr.iErr;
286 }
287
288 sciErr = createMatrixOfUnsignedInteger32(pvApiCtx, Rhs + 1, iRows, iCols, puiData);
289 if(sciErr.iErr)
290 {
291 printError(&sciErr, 0);
292 return sciErr.iErr;
293 }
294 }
295 break;
296
297#ifdef __SCILAB_INT64__
298 case SCI_UINT64 :
299#endif
300 default :
301 break;
302 }
303 }
304 return 0;}
305 ]]>
306 </programlisting>
307 </refsection>
308 <refsection>
309 <title>Scilab test script</title>
310 <programlisting role="code_scilab">
311 <![CDATA[
312i8_1 = int8(1);
313i8_2 = int8([1,2,3;4,5,6]);
314ui8_1 = uint8(1);
315ui8_2 = uint8([1,2,3;4,5,6]);
316
317i16_1 = int16(1);
318i16_2 = int16([1,2,3;4,5,6]);
319ui16_1 = uint16(1);
320ui16_2 = uint16([1,2,3;4,5,6]);
321
322i32_1 = int32(1);
323i32_2 = int32([1,2,3;4,5,6]);
324ui32_1 = uint32(1);
325ui32_2 = uint32([1,2,3;4,5,6]);
326
327if integerExample(i8_1) <> i8_1 then pause;end
328if integerExample(i8_2) <> i8_2 then pause;end
329if integerExample(ui8_1) <> ui8_1 then pause;end
330if integerExample(ui8_2) <> ui8_2 then pause;end
331
332if integerExample(i16_1) <> i16_1 then pause;end
333if integerExample(i16_2) <> i16_2 then pause;end
334if integerExample(ui16_1) <> ui16_1 then pause;end
335if integerExample(ui16_2) <> ui16_2 then pause;end
336
337if integerExample(i8_1) <> i16_1 then pause;end
338if integerExample(i8_2) <> i16_2 then pause;end
339if integerExample(ui8_1) <> ui16_1 then pause;end
340if integerExample(ui8_2) <> ui16_2 then pause;end
341 ]]>
342 </programlisting>
343 </refsection>
344</refentry>
diff --git a/scilab/modules/api_scilab/help/en_US/List_management/CHAPTER b/scilab/modules/api_scilab/help/en_US/List_management/CHAPTER
new file mode 100644
index 0000000..4e72a7a
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/List_management/CHAPTER
@@ -0,0 +1 @@
title = List manipulation
diff --git a/scilab/modules/api_scilab/help/en_US/Low_level_functions/CHAPTER b/scilab/modules/api_scilab/help/en_US/Low_level_functions/CHAPTER
new file mode 100644
index 0000000..aaf2bd2
--- /dev/null
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/CHAPTER
@@ -0,0 +1 @@
title = Low level functions
diff --git a/scilab/modules/api_scilab/help/en_US/boolean_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_reading_api.xml
index 8e1f0a4..8e1f0a4 100644
--- a/scilab/modules/api_scilab/help/en_US/boolean_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/boolean_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_writing_api.xml
index b47d226..b47d226 100644
--- a/scilab/modules/api_scilab/help/en_US/boolean_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/boolean_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/bsparse_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_reading_api.xml
index 7b0aafa..7b0aafa 100644
--- a/scilab/modules/api_scilab/help/en_US/bsparse_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/bsparse_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_writing_api.xml
index 0e800f2..0e800f2 100644
--- a/scilab/modules/api_scilab/help/en_US/bsparse_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/bsparse_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/common_getvaraddr_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvaraddr_api.xml
index 1da4718..1da4718 100644
--- a/scilab/modules/api_scilab/help/en_US/common_getvaraddr_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvaraddr_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/common_getvardimension_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvardimension_api.xml
index d2bf242..d2bf242 100644
--- a/scilab/modules/api_scilab/help/en_US/common_getvardimension_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvardimension_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/common_getvartype_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvartype_api.xml
index fcbb602..fcbb602 100644
--- a/scilab/modules/api_scilab/help/en_US/common_getvartype_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_getvartype_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/common_iscomplex_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_iscomplex_api.xml
index 6f4f13c..6f4f13c 100644
--- a/scilab/modules/api_scilab/help/en_US/common_iscomplex_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_iscomplex_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/common_isvarmatrixtype_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_isvarmatrixtype_api.xml
index fcaa407..fcaa407 100644
--- a/scilab/modules/api_scilab/help/en_US/common_isvarmatrixtype_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/common_isvarmatrixtype_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/double_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/double_reading_api.xml
index 9372cb8..9372cb8 100644
--- a/scilab/modules/api_scilab/help/en_US/double_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/double_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/double_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/double_writing_api.xml
index 11c197f..11c197f 100644
--- a/scilab/modules/api_scilab/help/en_US/double_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/double_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/int_getmatrixofintegerprecision_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/int_getmatrixofintegerprecision_api.xml
index 423c306..423c306 100644
--- a/scilab/modules/api_scilab/help/en_US/int_getmatrixofintegerprecision_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/int_getmatrixofintegerprecision_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/integer_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_reading_api.xml
index d00c66d..d00c66d 100644
--- a/scilab/modules/api_scilab/help/en_US/integer_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/integer_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_writing_api.xml
index 788757b..788757b 100644
--- a/scilab/modules/api_scilab/help/en_US/integer_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/integer_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/pointer_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_reading_api.xml
index 2e0d060..2e0d060 100644
--- a/scilab/modules/api_scilab/help/en_US/pointer_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/pointer_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_writing_api.xml
index acdf2c39..acdf2c39 100644
--- a/scilab/modules/api_scilab/help/en_US/pointer_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/pointer_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/poly_getpolyvariablename_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_getpolyvariablename_api.xml
index c88947c..c88947c 100644
--- a/scilab/modules/api_scilab/help/en_US/poly_getpolyvariablename_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_getpolyvariablename_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/poly_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_reading_api.xml
index eaa4e4c..eaa4e4c 100644
--- a/scilab/modules/api_scilab/help/en_US/poly_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/poly_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_writing_api.xml
index 58bb811..58bb811 100644
--- a/scilab/modules/api_scilab/help/en_US/poly_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/poly_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/sparse_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_reading_api.xml
index 701d6e7..701d6e7 100644
--- a/scilab/modules/api_scilab/help/en_US/sparse_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/sparse_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_writing_api.xml
index 5159fda..5159fda 100644
--- a/scilab/modules/api_scilab/help/en_US/sparse_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/sparse_writing_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/string_reading_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/string_reading_api.xml
index 0fbd376..0fbd376 100644
--- a/scilab/modules/api_scilab/help/en_US/string_reading_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/string_reading_api.xml
diff --git a/scilab/modules/api_scilab/help/en_US/string_writing_api.xml b/scilab/modules/api_scilab/help/en_US/Low_level_functions/string_writing_api.xml
index c9df082..c9df082 100644
--- a/scilab/modules/api_scilab/help/en_US/string_writing_api.xml
+++ b/scilab/modules/api_scilab/help/en_US/Low_level_functions/string_writing_api.xml
diff --git a/scilab/modules/api_scilab/includes/api_int.h b/scilab/modules/api_scilab/includes/api_int.h
index 843cbee..4c8a3ce 100644
--- a/scilab/modules/api_scilab/includes/api_int.h
+++ b/scilab/modules/api_scilab/includes/api_int.h
@@ -435,7 +435,7 @@ int getNamedScalarUnsignedInteger64(void* _pvCtx, char* _pstName, unsigned long
435 * @param[in] _pcData array of integer 8 bits 435 * @param[in] _pcData array of integer 8 bits
436 * @return if the operation successed (0) or not ( !0 ) 436 * @return if the operation successed (0) or not ( !0 )
437 */ 437 */
438int createScalarInteger8(void* _pvCtx, int _iVar, char cData); 438int createScalarInteger8(void* _pvCtx, int _iVar, char _cData);
439 439
440/** 440/**
441 * create scalar integer variable data 441 * create scalar integer variable data
@@ -443,7 +443,7 @@ int createScalarInteger8(void* _pvCtx, int _iVar, char cData);
443 * @param[in] _psData array of integer 16 bits 443 * @param[in] _psData array of integer 16 bits
444 * @return if the operation successed (0) or not ( !0 ) 444 * @return if the operation successed (0) or not ( !0 )
445 */ 445 */
446int createScalarInteger16(void* _pvCtx, int _iVar, short sData); 446int createScalarInteger16(void* _pvCtx, int _iVar, short _sData);
447 447
448/** 448/**
449 * create scalar integer variable data 449 * create scalar integer variable data
@@ -451,7 +451,7 @@ int createScalarInteger16(void* _pvCtx, int _iVar, short sData);
451 * @param[in] _piData array of integer 32 bits 451 * @param[in] _piData array of integer 32 bits
452 * @return if the operation successed (0) or not ( !0 ) 452 * @return if the operation successed (0) or not ( !0 )
453 */ 453 */
454int createScalarInteger32(void* _pvCtx, int _iVar, int iData); 454int createScalarInteger32(void* _pvCtx, int _iVar, int _iData);
455 455
456/** 456/**
457 * create scalar integer variable data 457 * create scalar integer variable data
@@ -460,7 +460,7 @@ int createScalarInteger32(void* _pvCtx, int _iVar, int iData);
460 * @return if the operation successed (0) or not ( !0 ) 460 * @return if the operation successed (0) or not ( !0 )
461 */ 461 */
462#ifdef __SCILAB_INT64__ 462#ifdef __SCILAB_INT64__
463int createScalarInteger64(void* _pvCtx, int _iVar, long long llData); 463int createScalarInteger64(void* _pvCtx, int _iVar, long long _llData);
464#endif 464#endif
465 465
466/** 466/**
@@ -469,7 +469,7 @@ int createScalarInteger64(void* _pvCtx, int _iVar, long long llData);
469 * @param[in] _pucData array of unsigned integer 8 bits 469 * @param[in] _pucData array of unsigned integer 8 bits
470 * @return if the operation successed (0) or not ( !0 ) 470 * @return if the operation successed (0) or not ( !0 )
471 */ 471 */
472int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char ucData); 472int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char _ucData);
473 473
474/** 474/**
475 * create scalar integer variable data 475 * create scalar integer variable data
@@ -477,7 +477,7 @@ int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char ucData);
477 * @param[in] _pusData array of unsigned integer 16 bits 477 * @param[in] _pusData array of unsigned integer 16 bits
478 * @return if the operation successed (0) or not ( !0 ) 478 * @return if the operation successed (0) or not ( !0 )
479 */ 479 */
480int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short usData); 480int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short _usData);
481 481
482/** 482/**
483 * create scalar integer variable data 483 * create scalar integer variable data
@@ -485,7 +485,7 @@ int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short usData
485 * @param[in] _puiData array of unsigned integer 32 bits 485 * @param[in] _puiData array of unsigned integer 32 bits
486 * @return if the operation successed (0) or not ( !0 ) 486 * @return if the operation successed (0) or not ( !0 )
487 */ 487 */
488int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int uiData); 488int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int _uiData);
489 489
490/** 490/**
491 * create scalar integer variable data 491 * create scalar integer variable data
@@ -494,7 +494,7 @@ int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int uiData);
494 * @return if the operation successed (0) or not ( !0 ) 494 * @return if the operation successed (0) or not ( !0 )
495 */ 495 */
496#ifdef __SCILAB_INT64__ 496#ifdef __SCILAB_INT64__
497int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long ullData); 497int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long _ullData);
498#endif 498#endif
499 499
500/** 500/**
@@ -503,7 +503,7 @@ int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long ul
503 * @param[in] _pcData array of integer 8 bits 503 * @param[in] _pcData array of integer 8 bits
504 * @return if the operation successed (0) or not ( !0 ) 504 * @return if the operation successed (0) or not ( !0 )
505 */ 505 */
506int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char cData); 506int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char _cData);
507 507
508/** 508/**
509 * create named scalar integer variable data 509 * create named scalar integer variable data
@@ -511,7 +511,7 @@ int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char cData);
511 * @param[in] _psData array of integer 16 bits 511 * @param[in] _psData array of integer 16 bits
512 * @return if the operation successed (0) or not ( !0 ) 512 * @return if the operation successed (0) or not ( !0 )
513 */ 513 */
514int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short sData); 514int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short _sData);
515 515
516/** 516/**
517 * create named scalar integer variable data 517 * create named scalar integer variable data
@@ -519,7 +519,7 @@ int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short sData);
519 * @param[in] _piData array of integer 32 bits 519 * @param[in] _piData array of integer 32 bits
520 * @return if the operation successed (0) or not ( !0 ) 520 * @return if the operation successed (0) or not ( !0 )
521 */ 521 */
522int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int iData); 522int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int _iData);
523 523
524/** 524/**
525 * create named scalar integer variable data 525 * create named scalar integer variable data
@@ -528,7 +528,7 @@ int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int iData);
528 * @return if the operation successed (0) or not ( !0 ) 528 * @return if the operation successed (0) or not ( !0 )
529 */ 529 */
530#ifdef __SCILAB_INT64__ 530#ifdef __SCILAB_INT64__
531int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long llData); 531int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long _llData);
532#endif 532#endif
533 533
534/** 534/**
@@ -537,7 +537,7 @@ int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long llData);
537 * @param[in] _pucData array of unsigned integer 8 bits 537 * @param[in] _pucData array of unsigned integer 8 bits
538 * @return if the operation successed (0) or not ( !0 ) 538 * @return if the operation successed (0) or not ( !0 )
539 */ 539 */
540int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned char ucData); 540int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned char _ucData);
541 541
542/** 542/**
543 * create named scalar integer variable data 543 * create named scalar integer variable data
@@ -545,7 +545,7 @@ int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned cha
545 * @param[in] _pusData array of unsigned integer 16 bits 545 * @param[in] _pusData array of unsigned integer 16 bits
546 * @return if the operation successed (0) or not ( !0 ) 546 * @return if the operation successed (0) or not ( !0 )
547 */ 547 */
548int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned short usData); 548int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned short _usData);
549 549
550/** 550/**
551 * create named scalar integer variable data 551 * create named scalar integer variable data
@@ -553,7 +553,7 @@ int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned sh
553 * @param[in] _puiData array of unsigned integer 32 bits 553 * @param[in] _puiData array of unsigned integer 32 bits
554 * @return if the operation successed (0) or not ( !0 ) 554 * @return if the operation successed (0) or not ( !0 )
555 */ 555 */
556int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned int uiData); 556int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned int _uiData);
557 557
558/** 558/**
559 * create named scalar integer variable data 559 * create named scalar integer variable data
@@ -562,7 +562,7 @@ int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned in
562 * @return if the operation successed (0) or not ( !0 ) 562 * @return if the operation successed (0) or not ( !0 )
563 */ 563 */
564#ifdef __SCILAB_INT64__ 564#ifdef __SCILAB_INT64__
565int createNamedScalarUnsignedInteger64(void* _pvCtx, char* _pstName, unsigned long long ullData); 565int createNamedScalarUnsignedInteger64(void* _pvCtx, char* _pstName, unsigned long long _ullData);
566#endif 566#endif
567 567
568 568
diff --git a/scilab/modules/api_scilab/src/cpp/api_int.cpp b/scilab/modules/api_scilab/src/cpp/api_int.cpp
index 10ab849..f64802d 100644
--- a/scilab/modules/api_scilab/src/cpp/api_int.cpp
+++ b/scilab/modules/api_scilab/src/cpp/api_int.cpp
@@ -893,11 +893,11 @@ static int getCommandNamedScalarInteger(void* _pvCtx, char* _pstName, int _iPrec
893 return 0; 893 return 0;
894} 894}
895/*--------------------------------------------------------------------------*/ 895/*--------------------------------------------------------------------------*/
896int createScalarInteger8(void* _pvCtx, int _iVar, char cData) 896int createScalarInteger8(void* _pvCtx, int _iVar, char _cData)
897{ 897{
898 SciErr sciErr; 898 SciErr sciErr;
899 899
900 sciErr = createMatrixOfInteger8(_pvCtx, _iVar, 1, 1, &cData); 900 sciErr = createMatrixOfInteger8(_pvCtx, _iVar, 1, 1, &_cData);
901 if(sciErr.iErr) 901 if(sciErr.iErr)
902 { 902 {
903 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger8"); 903 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger8");
@@ -908,11 +908,11 @@ int createScalarInteger8(void* _pvCtx, int _iVar, char cData)
908 return 0; 908 return 0;
909} 909}
910/*--------------------------------------------------------------------------*/ 910/*--------------------------------------------------------------------------*/
911int createScalarInteger16(void* _pvCtx, int _iVar, short sData) 911int createScalarInteger16(void* _pvCtx, int _iVar, short _sData)
912{ 912{
913 SciErr sciErr; 913 SciErr sciErr;
914 914
915 sciErr = createMatrixOfInteger16(_pvCtx, _iVar, 1, 1, &sData); 915 sciErr = createMatrixOfInteger16(_pvCtx, _iVar, 1, 1, &_sData);
916 if(sciErr.iErr) 916 if(sciErr.iErr)
917 { 917 {
918 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger16"); 918 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger16");
@@ -923,11 +923,11 @@ int createScalarInteger16(void* _pvCtx, int _iVar, short sData)
923 return 0; 923 return 0;
924} 924}
925/*--------------------------------------------------------------------------*/ 925/*--------------------------------------------------------------------------*/
926int createScalarInteger32(void* _pvCtx, int _iVar, int iData) 926int createScalarInteger32(void* _pvCtx, int _iVar, int _iData)
927{ 927{
928 SciErr sciErr; 928 SciErr sciErr;
929 929
930 sciErr = createMatrixOfInteger32(_pvCtx, _iVar, 1, 1, &iData); 930 sciErr = createMatrixOfInteger32(_pvCtx, _iVar, 1, 1, &_iData);
931 if(sciErr.iErr) 931 if(sciErr.iErr)
932 { 932 {
933 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger32"); 933 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger32");
@@ -939,11 +939,11 @@ int createScalarInteger32(void* _pvCtx, int _iVar, int iData)
939} 939}
940/*--------------------------------------------------------------------------*/ 940/*--------------------------------------------------------------------------*/
941#ifdef __SCILAB_INT64__ 941#ifdef __SCILAB_INT64__
942int createScalarInteger64(void* _pvCtx, int _iVar, long long llData) 942int createScalarInteger64(void* _pvCtx, int _iVar, long long _llData)
943{ 943{
944 SciErr sciErr; 944 SciErr sciErr;
945 945
946 sciErr = createMatrixOfInteger64(_pvCtx, _iVar, 1, 1, llData); 946 sciErr = createMatrixOfInteger64(_pvCtx, _iVar, 1, 1, _llData);
947 if(sciErr.iErr) 947 if(sciErr.iErr)
948 { 948 {
949 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger64"); 949 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarInteger64");
@@ -955,11 +955,11 @@ int createScalarInteger64(void* _pvCtx, int _iVar, long long llData)
955} 955}
956#endif 956#endif
957/*--------------------------------------------------------------------------*/ 957/*--------------------------------------------------------------------------*/
958int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char ucData) 958int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char _ucData)
959{ 959{
960 SciErr sciErr; 960 SciErr sciErr;
961 961
962 sciErr = createMatrixOfUnsignedInteger8(_pvCtx, _iVar, 1, 1, &ucData); 962 sciErr = createMatrixOfUnsignedInteger8(_pvCtx, _iVar, 1, 1, &_ucData);
963 if(sciErr.iErr) 963 if(sciErr.iErr)
964 { 964 {
965 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger8"); 965 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger8");
@@ -970,11 +970,11 @@ int createScalarUnsignedInteger8(void* _pvCtx, int _iVar, unsigned char ucData)
970 return 0; 970 return 0;
971} 971}
972/*--------------------------------------------------------------------------*/ 972/*--------------------------------------------------------------------------*/
973int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short usData) 973int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short _usData)
974{ 974{
975 SciErr sciErr; 975 SciErr sciErr;
976 976
977 sciErr = createMatrixOfUnsignedInteger16(_pvCtx, _iVar, 1, 1, &usData); 977 sciErr = createMatrixOfUnsignedInteger16(_pvCtx, _iVar, 1, 1, &_usData);
978 if(sciErr.iErr) 978 if(sciErr.iErr)
979 { 979 {
980 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger16"); 980 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger16");
@@ -985,12 +985,12 @@ int createScalarUnsignedInteger16(void* _pvCtx, int _iVar, unsigned short usData
985 return 0; 985 return 0;
986} 986}
987/*--------------------------------------------------------------------------*/ 987/*--------------------------------------------------------------------------*/
988int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int uiData) 988int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int _uiData)
989{ 989{
990 SciErr sciErr; 990 SciErr sciErr;
991 unsigned int* puiData = NULL; 991 unsigned int* puiData = NULL;
992 992
993 sciErr = createMatrixOfUnsignedInteger32(_pvCtx, _iVar, 1, 1, &uiData); 993 sciErr = createMatrixOfUnsignedInteger32(_pvCtx, _iVar, 1, 1, &_uiData);
994 if(sciErr.iErr) 994 if(sciErr.iErr)
995 { 995 {
996 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger32"); 996 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger32");
@@ -1002,11 +1002,11 @@ int createScalarUnsignedInteger32(void* _pvCtx, int _iVar, unsigned int uiData)
1002} 1002}
1003/*--------------------------------------------------------------------------*/ 1003/*--------------------------------------------------------------------------*/
1004#ifdef __SCILAB_INT64__ 1004#ifdef __SCILAB_INT64__
1005int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long ullData) 1005int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long _ullData)
1006{ 1006{
1007 SciErr sciErr; 1007 SciErr sciErr;
1008 1008
1009 sciErr = createMatrixOfUnsignedInteger64(_pvCtx, _iVar, 1, 1, &ullData); 1009 sciErr = createMatrixOfUnsignedInteger64(_pvCtx, _iVar, 1, 1, &_ullData);
1010 if(sciErr.iErr) 1010 if(sciErr.iErr)
1011 { 1011 {
1012 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger64"); 1012 addErrorMessage(&sciErr, API_ERROR_CREATE_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createScalarUnsignedInteger64");
@@ -1018,11 +1018,11 @@ int createScalarUnsignedInteger64(void* _pvCtx, int _iVar, unsigned long long ul
1018} 1018}
1019#endif 1019#endif
1020/*--------------------------------------------------------------------------*/ 1020/*--------------------------------------------------------------------------*/
1021int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char cData) 1021int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char _cData)
1022{ 1022{
1023 SciErr sciErr; 1023 SciErr sciErr;
1024 1024
1025 sciErr = createNamedMatrixOfInteger8(_pvCtx, _pstName, 1, 1, &cData); 1025 sciErr = createNamedMatrixOfInteger8(_pvCtx, _pstName, 1, 1, &_cData);
1026 if(sciErr.iErr) 1026 if(sciErr.iErr)
1027 { 1027 {
1028 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger8"); 1028 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger8");
@@ -1033,11 +1033,11 @@ int createNamedScalarInteger8(void* _pvCtx, char* _pstName, char cData)
1033 return 0; 1033 return 0;
1034} 1034}
1035/*--------------------------------------------------------------------------*/ 1035/*--------------------------------------------------------------------------*/
1036int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short sData) 1036int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short _sData)
1037{ 1037{
1038 SciErr sciErr; 1038 SciErr sciErr;
1039 1039
1040 sciErr = createNamedMatrixOfInteger16(_pvCtx, _pstName, 1, 1, &sData); 1040 sciErr = createNamedMatrixOfInteger16(_pvCtx, _pstName, 1, 1, &_sData);
1041 if(sciErr.iErr) 1041 if(sciErr.iErr)
1042 { 1042 {
1043 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger16"); 1043 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger16");
@@ -1048,11 +1048,11 @@ int createNamedScalarInteger16(void* _pvCtx, char* _pstName, short sData)
1048 return 0; 1048 return 0;
1049} 1049}
1050/*--------------------------------------------------------------------------*/ 1050/*--------------------------------------------------------------------------*/
1051int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int iData) 1051int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int _iData)
1052{ 1052{
1053 SciErr sciErr; 1053 SciErr sciErr;
1054 1054
1055 sciErr = createNamedMatrixOfInteger32(_pvCtx, _pstName, 1, 1, &iData); 1055 sciErr = createNamedMatrixOfInteger32(_pvCtx, _pstName, 1, 1, &_iData);
1056 if(sciErr.iErr) 1056 if(sciErr.iErr)
1057 { 1057 {
1058 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger32"); 1058 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger32");
@@ -1064,11 +1064,11 @@ int createNamedScalarInteger32(void* _pvCtx, char* _pstName, int iData)
1064} 1064}
1065/*--------------------------------------------------------------------------*/ 1065/*--------------------------------------------------------------------------*/
1066#ifdef __SCILAB_INT64__ 1066#ifdef __SCILAB_INT64__
1067int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long llData) 1067int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long _llData)
1068{ 1068{
1069 SciErr sciErr; 1069 SciErr sciErr;
1070 1070
1071 sciErr = createNamedMatrixOfInteger64(_pvCtx, _pstName, 1, 1, &llData); 1071 sciErr = createNamedMatrixOfInteger64(_pvCtx, _pstName, 1, 1, &_llData);
1072 if(sciErr.iErr) 1072 if(sciErr.iErr)
1073 { 1073 {
1074 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger64"); 1074 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarInteger64");
@@ -1080,11 +1080,11 @@ int createNamedScalarInteger64(void* _pvCtx, char* _pstName, long long llData)
1080} 1080}
1081#endif 1081#endif
1082/*--------------------------------------------------------------------------*/ 1082/*--------------------------------------------------------------------------*/
1083int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned char ucData) 1083int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned char _ucData)
1084{ 1084{
1085 SciErr sciErr; 1085 SciErr sciErr;
1086 1086
1087 sciErr = createNamedMatrixOfUnsignedInteger8(_pvCtx, _pstName, 1, 1, &ucData); 1087 sciErr = createNamedMatrixOfUnsignedInteger8(_pvCtx, _pstName, 1, 1, &_ucData);
1088 if(sciErr.iErr) 1088 if(sciErr.iErr)
1089 { 1089 {
1090 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger8"); 1090 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger8");
@@ -1095,11 +1095,11 @@ int createNamedScalarUnsignedInteger8(void* _pvCtx, char* _pstName, unsigned cha
1095 return 0; 1095 return 0;
1096} 1096}
1097/*--------------------------------------------------------------------------*/ 1097/*--------------------------------------------------------------------------*/
1098int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned short usData) 1098int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned short _usData)
1099{ 1099{
1100 SciErr sciErr; 1100 SciErr sciErr;
1101 1101
1102 sciErr = createNamedMatrixOfUnsignedInteger16(_pvCtx, _pstName, 1, 1, &usData); 1102 sciErr = createNamedMatrixOfUnsignedInteger16(_pvCtx, _pstName, 1, 1, &_usData);
1103 if(sciErr.iErr) 1103 if(sciErr.iErr)
1104 { 1104 {
1105 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger16"); 1105 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger16");
@@ -1110,11 +1110,11 @@ int createNamedScalarUnsignedInteger16(void* _pvCtx, char* _pstName, unsigned sh
1110 return 0; 1110 return 0;
1111} 1111}
1112/*--------------------------------------------------------------------------*/ 1112/*--------------------------------------------------------------------------*/
1113int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned int uiData) 1113int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned int _uiData)
1114{ 1114{
1115 SciErr sciErr; 1115 SciErr sciErr;
1116 1116
1117 sciErr = createNamedMatrixOfUnsignedInteger32(_pvCtx, _pstName, 1, 1, &uiData); 1117 sciErr = createNamedMatrixOfUnsignedInteger32(_pvCtx, _pstName, 1, 1, &_uiData);
1118 if(sciErr.iErr) 1118 if(sciErr.iErr)
1119 { 1119 {
1120 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger32"); 1120 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger32");
@@ -1126,11 +1126,11 @@ int createNamedScalarUnsignedInteger32(void* _pvCtx, char* _pstName, unsigned in
1126} 1126}
1127/*--------------------------------------------------------------------------*/ 1127/*--------------------------------------------------------------------------*/
1128#ifdef __SCILAB_INT64__ 1128#ifdef __SCILAB_INT64__
1129int createNamedScalarUnsignedInteger64(void* _pvCtx, char* _pstName, unsigned long long ullData) 1129int createNamedScalarUnsignedInteger64(void* _pvCtx, char* _pstName, unsigned long long _ullData)
1130{ 1130{
1131 SciErr sciErr; 1131 SciErr sciErr;
1132 1132
1133 sciErr = createNamedMatrixOfUnsignedInteger64(_pvCtx, _pstName, 1, 1, &ullData); 1133 sciErr = createNamedMatrixOfUnsignedInteger64(_pvCtx, _pstName, 1, 1, &_ullData);
1134 if(sciErr.iErr) 1134 if(sciErr.iErr)
1135 { 1135 {
1136 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger64"); 1136 addErrorMessage(&sciErr, API_ERROR_CREATE_NAMED_SCALAR_INT, _("%s: Unable to create variable in Scilab memory"), "createNamedScalarUnsignedInteger64");