diff --git a/Doc/Manual/Scilab.html b/Doc/Manual/Scilab.html index d01cc916c..3f69a4f06 100644 --- a/Doc/Manual/Scilab.html +++ b/Doc/Manual/Scilab.html @@ -21,12 +21,11 @@
-The following table give for each C/C++ primitive type the equivalent Scilab type. -
- -| C/C++ type | -Scilab type | -
| bool | boolean |
| char | string |
| signed char | double or int8 |
| unsigned char | uint8 |
| short | double or int16 |
| unsigned short | uint16 |
| int | double or int32 |
| unsigned int | uint32 |
| long | double or int32 |
| unsigned long | uint32 |
| signed long long | not supported with Scilab 5.x |
| unsigned long long | not supported with Scilab 5.x |
| float | double |
| double | double |
| char* or char[] | string |
-Notes: -
-The default mapped type for C/C++ non-primitive types is the Scilab pointer. That is the case for exemple for C structs, C++ classes, etc... -But there are many type mappings for non-primitive types (such as enums, arrays, STL types, etc...). Each of them is described further in this document. -
--The type mappings used for arrays is described in 37.3.4. +The type mappings used for arrays is described in 37.4.1. It means that, if needed, a Scilab double vector is converted in input into a C int array. And this C int array is automatically converted in output to a Scilab double vector.
@@ -756,7 +706,7 @@ void print_matrix(double **M, int nbRows, int nbCols) { -The classes are wrapped in the same manner as structs, through functions. For example, the following class: @@ -790,14 +740,14 @@ ans = -
Templates are supported. See the SWIG general documentation on how templates are interfaced in SWIG.
An example of templates can be found in Examples/scilab/templates.
The Standard Template Library (STL) is partially supported. @@ -873,6 +823,60 @@ At last, the module initialization function has to be executed first in Scilab, See 37.5.6 for more details.
++The following table give for each C/C++ primitive type the equivalent Scilab type. +
+ +| C/C++ type | +Scilab type | +
| bool | boolean |
| char | string |
| signed char | double or int8 |
| unsigned char | uint8 |
| short | double or int16 |
| unsigned short | uint16 |
| int | double or int32 |
| unsigned int | uint32 |
| long | double or int32 |
| unsigned long | uint32 |
| signed long long | not supported with Scilab 5.x |
| unsigned long long | not supported with Scilab 5.x |
| float | double |
| double | double |
| char* or char[] | string |
+Notes: +
+The default mapped type for C/C++ non-primitive types is the Scilab pointer. That is the case for exemple for C structs, C++ classes, etc... +But there are many type mappings for non-primitive types (such as enums, arrays, STL types, etc...). Each of them is described further in this document. +
+@@ -996,7 +1000,7 @@ clear get_file_path;
A built-in Scilab function is generated for the wrapped module.