API_SCILAB: → Update include list (+ MALLOC.h)
Pierre MARECHAL [Mon, 2 Nov 2009 13:42:30 +0000 (14:42 +0100)]
            → Regenerate tests

53 files changed:
scilab/modules/api_scilab/tests/unit_tests/common_function.dia.ref
scilab/modules/api_scilab/tests/unit_tests/common_function.tst
scilab/modules/api_scilab/tests/unit_tests/common_function_api.c
scilab/modules/api_scilab/tests/unit_tests/common_list_api.c
scilab/modules/api_scilab/tests/unit_tests/common_list_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/common_list_api.tst
scilab/modules/api_scilab/tests/unit_tests/common_read_api.c
scilab/modules/api_scilab/tests/unit_tests/common_read_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/common_read_api.tst
scilab/modules/api_scilab/tests/unit_tests/double_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/double_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/double_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/double_writing_api.c
scilab/modules/api_scilab/tests/unit_tests/double_writing_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/double_writing_api.tst
scilab/modules/api_scilab/tests/unit_tests/integer_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/integer_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/integer_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/integer_writing_api.c
scilab/modules/api_scilab/tests/unit_tests/integer_writing_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/integer_writing_api.tst
scilab/modules/api_scilab/tests/unit_tests/list_createlist_api.c
scilab/modules/api_scilab/tests/unit_tests/list_createlist_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/list_createlist_api.tst
scilab/modules/api_scilab/tests/unit_tests/pointer_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/pointer_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/pointer_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/poly_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/poly_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/poly_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/poly_writing_api.c
scilab/modules/api_scilab/tests/unit_tests/poly_writing_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/poly_writing_api.tst
scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.c [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.dia.ref [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.tst [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.c [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.dia.ref [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.tst [new file with mode: 0644]
scilab/modules/api_scilab/tests/unit_tests/sparse_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/sparse_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/sparse_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/sparse_writing_api.c
scilab/modules/api_scilab/tests/unit_tests/sparse_writing_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/sparse_writing_api.tst
scilab/modules/api_scilab/tests/unit_tests/string_reading_api.c
scilab/modules/api_scilab/tests/unit_tests/string_reading_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/string_reading_api.tst
scilab/modules/api_scilab/tests/unit_tests/string_writing_api.c
scilab/modules/api_scilab/tests/unit_tests/string_writing_api.dia.ref
scilab/modules/api_scilab/tests/unit_tests/string_writing_api.tst
scilab/modules/development_tools/src/perl/xml2test/includes.txt
scilab/modules/development_tools/src/perl/xml2test/xml2test.pl

index 069aad9..e5ae71f 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/common_function"));
 cd(pathconvert(TMPDIR+"/common_function"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_function_api.c",pathconvert(TMPDIR+"/common_function/common_function_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_function",["common_function","common_function"],pathconvert(TMPDIR+"/common_function/common_function_api.c",%F),[],[],"",cflags);
+ilib_build("common_function",["common_function","common_function"],"common_function_api.c",[],"Makefile","",cflags);
                         
 l1 = [1,2*%i,3;%i,2,3*%i];
 l2 = ["may","the";"puffin","be";"with","you"];
index 2a00587..cee8ded 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/common_function"));
 cd(pathconvert(TMPDIR+"/common_function"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_function_api.c",pathconvert(TMPDIR+"/common_function/common_function_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_function",["common_function","common_function"],pathconvert(TMPDIR+"/common_function/common_function_api.c",%F),[],[],"",cflags);
+ilib_build("common_function",["common_function","common_function"],"common_function_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
                         
index 7944993..5d64832 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
                         
 SciErr printf_info(int _iVar);
index d6e3789..3773f64 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
              
 int get_list_info(int* _piAddress);
index 93d9387..3e01a8e 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/common_list_api"));
 cd(pathconvert(TMPDIR+"/common_list_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_list_api.c",pathconvert(TMPDIR+"/common_list_api/common_list_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_list",["common_list","common_list"],pathconvert(TMPDIR+"/common_list_api/common_list_api.c",%F),[],[],"",cflags);
+ilib_build("common_list",["common_list","common_list"],"common_list_api.c",[],"Makefile","",cflags);
 l1 = [1,2*%i,3;%i,2,3*%i];
 l2 = ["may","the";"puffin","be";"with","you"];
 l3 = int8([1,2,3]);
@@ -19,26 +19,26 @@ l4 = list(l5, list(l5,l5));
 l6 = uint16([1000,2000,3000]);
 l = list(l1,l2,l3,l6,l4,l5);
 common_list(l)
-List (6 items) -> address : 0xB2AD0010) : 
-Child 1 -> address : 0xB2AD0038
-Child 2 -> address : 0xB2AD00A8
-Child 3 -> address : 0xB2AD0128
-Child 4 -> address : 0xB2AD0140
-Child 5 -> List (2 items) -> address : 0xB2AD0158) : 
-       Child 1 -> List (3 items) -> address : 0xB2AD0170) : 
-               Child 1 -> address : 0xB2AD0188
-               Child 2 -> address : 0xB2AD01F8
-               Child 3 -> address : 0xB2AD0278
-       Child 2 -> List (2 items) -> address : 0xB2AD0290) : 
-               Child 1 -> List (3 items) -> address : 0xB2AD02A8) : 
-                       Child 1 -> address : 0xB2AD02C0
-                       Child 2 -> address : 0xB2AD0330
-                       Child 3 -> address : 0xB2AD03B0
-               Child 2 -> List (3 items) -> address : 0xB2AD03C8) : 
-                       Child 1 -> address : 0xB2AD03E0
-                       Child 2 -> address : 0xB2AD0450
-                       Child 3 -> address : 0xB2AD04D0
-Child 6 -> List (3 items) -> address : 0xB2AD04E8) : 
-       Child 1 -> address : 0xB2AD0500
-       Child 2 -> address : 0xB2AD0570
-       Child 3 -> address : 0xB2AD05F0
+List (6 items) -> address : 0xB2B3C010) : 
+Child 1 -> address : 0xB2B3C038
+Child 2 -> address : 0xB2B3C0A8
+Child 3 -> address : 0xB2B3C128
+Child 4 -> address : 0xB2B3C140
+Child 5 -> List (2 items) -> address : 0xB2B3C158) : 
+       Child 1 -> List (3 items) -> address : 0xB2B3C170) : 
+               Child 1 -> address : 0xB2B3C188
+               Child 2 -> address : 0xB2B3C1F8
+               Child 3 -> address : 0xB2B3C278
+       Child 2 -> List (2 items) -> address : 0xB2B3C290) : 
+               Child 1 -> List (3 items) -> address : 0xB2B3C2A8) : 
+                       Child 1 -> address : 0xB2B3C2C0
+                       Child 2 -> address : 0xB2B3C330
+                       Child 3 -> address : 0xB2B3C3B0
+               Child 2 -> List (3 items) -> address : 0xB2B3C3C8) : 
+                       Child 1 -> address : 0xB2B3C3E0
+                       Child 2 -> address : 0xB2B3C450
+                       Child 3 -> address : 0xB2B3C4D0
+Child 6 -> List (3 items) -> address : 0xB2B3C4E8) : 
+       Child 1 -> address : 0xB2B3C500
+       Child 2 -> address : 0xB2B3C570
+       Child 3 -> address : 0xB2B3C5F0
index 02006db..e3ccfaa 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/common_list_api"));
 cd(pathconvert(TMPDIR+"/common_list_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_list_api.c",pathconvert(TMPDIR+"/common_list_api/common_list_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_list",["common_list","common_list"],pathconvert(TMPDIR+"/common_list_api/common_list_api.c",%F),[],[],"",cflags);
+ilib_build("common_list",["common_list","common_list"],"common_list_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
              
index 4d17b6e..c1bd2c8 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
              
 static int iTab = 0;
index 7c2ec2d..f2066ca 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/common_read_api"));
 cd(pathconvert(TMPDIR+"/common_read_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_read_api.c",pathconvert(TMPDIR+"/common_read_api/common_read_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_read",["common_read","common_read"],pathconvert(TMPDIR+"/common_read_api/common_read_api.c",%F),[],[],"",cflags);
+ilib_build("common_read",["common_read","common_read"],"common_read_api.c",[],"Makefile","",cflags);
 function read_all()
 d = [1,2,3;4,5,6;7,8,9];common_read(d);
 s=poly(0,"x");p=1+s+2*s^2;p = [(p * 2),(p * s + 3);(p * 2 * s ** 2 - 6),(12 - 4 * p * (- s) ** 2)];common_read(p);
@@ -50,4 +50,4 @@ List (4)
        List (2)
                Unsigned Integer 32 bits (3 x 1)
                Strings (2 x 3)
-       Pointer : 0x095C03A0
+       Pointer : 0x08751898
index fcd81c6..6715ba2 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/common_read_api"));
 cd(pathconvert(TMPDIR+"/common_read_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/common_read_api.c",pathconvert(TMPDIR+"/common_read_api/common_read_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("common_read",["common_read","common_read"],pathconvert(TMPDIR+"/common_read_api/common_read_api.c",%F),[],[],"",cflags);
+ilib_build("common_read",["common_read","common_read"],"common_read_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
              
index 1c6a482..bc3f6d8 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 int read_double(char *fname,unsigned long fname_len)
index 016ff83..3765b5e 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/double_reading_api"));
 cd(pathconvert(TMPDIR+"/double_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/double_reading_api.c",pathconvert(TMPDIR+"/double_reading_api/double_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("double_reading",["read_double","read_double"],pathconvert(TMPDIR+"/double_reading_api/double_reading_api.c",%F),[],[],"",cflags);
+ilib_build("double_reading",["read_double","read_double"],"double_reading_api.c",[],"Makefile","",cflags);
 a = [   0 1 2 3; ..
         4 5 6 7; ..
         8 9 10 11];
index 62c7dff..a9e7d1e 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/double_reading_api"));
 cd(pathconvert(TMPDIR+"/double_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/double_reading_api.c",pathconvert(TMPDIR+"/double_reading_api/double_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("double_reading",["read_double","read_double"],pathconvert(TMPDIR+"/double_reading_api/double_reading_api.c",%F),[],[],"",cflags);
+ilib_build("double_reading",["read_double","read_double"],"double_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 a = [   0 1 2 3; ..
index edcd4e4..1342353 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 int write_double(char *fname,unsigned long fname_len)
index dc61b4d..2afacf2 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/double_writing_api"));
 cd(pathconvert(TMPDIR+"/double_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/double_writing_api.c",pathconvert(TMPDIR+"/double_writing_api/double_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("double_writing",["write_double","write_double"],pathconvert(TMPDIR+"/double_writing_api/double_writing_api.c",%F),[],[],"",cflags);
+ilib_build("double_writing",["write_double","write_double"],"double_writing_api.c",[],"Makefile","",cflags);
 a_ref = [   0 1 2 3; ..
             4 5 6 7; ..
             8 9 10 11];
index 8968937..52e7b6b 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/double_writing_api"));
 cd(pathconvert(TMPDIR+"/double_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/double_writing_api.c",pathconvert(TMPDIR+"/double_writing_api/double_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("double_writing",["write_double","write_double"],pathconvert(TMPDIR+"/double_writing_api/double_writing_api.c",%F),[],[],"",cflags);
+ilib_build("double_writing",["write_double","write_double"],"double_writing_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 a_ref = [   0 1 2 3; ..
index 7f4a1b8..f52caba 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 void* create_output(int _iCoeff, int _iSize, int _iRows, int _iCols, void* _pvDataIn);
index 5029bf7..ced6b47 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/integer_reading_api"));
 cd(pathconvert(TMPDIR+"/integer_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/integer_reading_api.c",pathconvert(TMPDIR+"/integer_reading_api/integer_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("integer_reading",["read_integer","read_integer"],pathconvert(TMPDIR+"/integer_reading_api/integer_reading_api.c",%F),[],[],"",cflags);
+ilib_build("integer_reading",["read_integer","read_integer"],"integer_reading_api.c",[],"Makefile","",cflags);
         
 a8  = int8([    1   -2  3   -4  5; ..
                 -6  7   -8  9   -10; ..
index c4c507c..f40ce9a 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/integer_reading_api"));
 cd(pathconvert(TMPDIR+"/integer_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/integer_reading_api.c",pathconvert(TMPDIR+"/integer_reading_api/integer_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("integer_reading",["read_integer","read_integer"],pathconvert(TMPDIR+"/integer_reading_api/integer_reading_api.c",%F),[],[],"",cflags);
+ilib_build("integer_reading",["read_integer","read_integer"],"integer_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
         
index c6f9096..0766367 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
              
 void* create_output(int _iCoeff, int _iSize, int _iRows, int _iCols, void* _pvDataIn);
index d77a34b..e3fe70d 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/integer_writing_api"));
 cd(pathconvert(TMPDIR+"/integer_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/integer_writing_api.c",pathconvert(TMPDIR+"/integer_writing_api/integer_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("integer_writing",["read_integer","read_integer"],pathconvert(TMPDIR+"/integer_writing_api/integer_writing_api.c",%F),[],[],"",cflags);
+ilib_build("integer_writing",["read_integer","read_integer"],"integer_writing_api.c",[],"Makefile","",cflags);
 a8  = int8([    1   -2  3   -4  5; ..
                 -6  7   -8  9   -10; ..
                 11  -12 13  -14 15]);
index ee55d2b..e436320 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/integer_writing_api"));
 cd(pathconvert(TMPDIR+"/integer_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/integer_writing_api.c",pathconvert(TMPDIR+"/integer_writing_api/integer_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("integer_writing",["read_integer","read_integer"],pathconvert(TMPDIR+"/integer_writing_api/integer_writing_api.c",%F),[],[],"",cflags);
+ilib_build("integer_writing",["read_integer","read_integer"],"integer_writing_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
              
index 82bed9c..f377933 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
              
 int list_createlist(char *fname,unsigned long fname_len)
index 53e507f..7793a8d 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/list_createlist_api"));
 cd(pathconvert(TMPDIR+"/list_createlist_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/list_createlist_api.c",pathconvert(TMPDIR+"/list_createlist_api/list_createlist_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("list_createlist",["list_createlist","list_createlist"],pathconvert(TMPDIR+"/list_createlist_api/list_createlist_api.c",%F),[],[],"",cflags);
+ilib_build("list_createlist",["list_createlist","list_createlist"],"list_createlist_api.c",[],"Makefile","",cflags);
 size_ref    = 8;
 type_ref    = ["constant","string","int16","polynomial", "sparse", "boolean", "boolean sparse", "list"];
 dim_ref     = list([3,2],[2,3],[2,3],[3,2],[3,10],[3,3],[3,10],3);
index 748e60f..7b452fb 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/list_createlist_api"));
 cd(pathconvert(TMPDIR+"/list_createlist_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/list_createlist_api.c",pathconvert(TMPDIR+"/list_createlist_api/list_createlist_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("list_createlist",["list_createlist","list_createlist"],pathconvert(TMPDIR+"/list_createlist_api/list_createlist_api.c",%F),[],[],"",cflags);
+ilib_build("list_createlist",["list_createlist","list_createlist"],"list_createlist_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
              
index 8403617..141d584 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
                         
 int read_pointer(char *fname,unsigned long fname_len)
index 2e7e0a6..466c61c 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/pointer_reading_api"));
 cd(pathconvert(TMPDIR+"/pointer_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/pointer_reading_api.c",pathconvert(TMPDIR+"/pointer_reading_api/pointer_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("pointer_reading",["read_pointer","read_pointer"],pathconvert(TMPDIR+"/pointer_reading_api/pointer_reading_api.c",%F),[],[],"",cflags);
+ilib_build("pointer_reading",["read_pointer","read_pointer"],"pointer_reading_api.c",[],"Makefile","",cflags);
                         
 b_ref = [1,2;3,4];
 a = read_pointer();
index 7ad6b6b..84dcb92 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/pointer_reading_api"));
 cd(pathconvert(TMPDIR+"/pointer_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/pointer_reading_api.c",pathconvert(TMPDIR+"/pointer_reading_api/pointer_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("pointer_reading",["read_pointer","read_pointer"],pathconvert(TMPDIR+"/pointer_reading_api/pointer_reading_api.c",%F),[],[],"",cflags);
+ilib_build("pointer_reading",["read_pointer","read_pointer"],"pointer_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
                         
index f043df4..fcc8f62 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
                         
 int read_poly(char *fname,unsigned long fname_len)
index 1607496..afb8b76 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/poly_reading_api"));
 cd(pathconvert(TMPDIR+"/poly_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/poly_reading_api.c",pathconvert(TMPDIR+"/poly_reading_api/poly_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("poly_reading",["read_poly","read_poly"],pathconvert(TMPDIR+"/poly_reading_api/poly_reading_api.c",%F),[],[],"",cflags);
+ilib_build("poly_reading",["read_poly","read_poly"],"poly_reading_api.c",[],"Makefile","",cflags);
 coeff1 = [ ..
 29*%i,22*%i,16*%i,11*%i,7*%i,30,23,17,12,8,-31*%i,-24*%i,-18*%i,-13*%i,-9*%i,32,25,19,14,10,-33*%i,-26*%i,-20*%i,-15*%i,0,34,27,21,0,0,0,-28*%i,0,0,0,36-35*%i,0,0,0,0; ..
 4*%i,2*%i,%i,22,16,5,-3,0,-23*%i,-17*%i,-6*%i,0,0,24,18,0,0,0,-25*%i,-19*%i,0,0,0,26,20,0,0,0,-27*%i,-21*%i,0,0,0,28,0,0,0,0,0,0; ..
index f73a045..9539e25 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/poly_reading_api"));
 cd(pathconvert(TMPDIR+"/poly_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/poly_reading_api.c",pathconvert(TMPDIR+"/poly_reading_api/poly_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("poly_reading",["read_poly","read_poly"],pathconvert(TMPDIR+"/poly_reading_api/poly_reading_api.c",%F),[],[],"",cflags);
+ilib_build("poly_reading",["read_poly","read_poly"],"poly_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 coeff1 = [ ..
index a5e5229..d4ac366 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
      
 int write_poly(char *fname,unsigned long fname_len)
index 0cc98f8..7de5809 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/poly_writing_api"));
 cd(pathconvert(TMPDIR+"/poly_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/poly_writing_api.c",pathconvert(TMPDIR+"/poly_writing_api/poly_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("poly_writing",["write_poly","write_poly"],pathconvert(TMPDIR+"/poly_writing_api/poly_writing_api.c",%F),[],[],"",cflags);
+ilib_build("poly_writing",["write_poly","write_poly"],"poly_writing_api.c",[],"Makefile","",cflags);
 p_ref = [2 5 18 1 -4 0 0 1 -14 0 0 4 0 0 0 0 0 0;64 1 0 0 0 0 -12 0 0 2 0 32 0 0 0 0 0 8];
 l = list();
 a = write_poly();
index 83f96b7..52928bc 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/poly_writing_api"));
 cd(pathconvert(TMPDIR+"/poly_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/poly_writing_api.c",pathconvert(TMPDIR+"/poly_writing_api/poly_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("poly_writing",["write_poly","write_poly"],pathconvert(TMPDIR+"/poly_writing_api/poly_writing_api.c",%F),[],[],"",cflags);
+ilib_build("poly_writing",["write_poly","write_poly"],"poly_writing_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 p_ref = [2 5 18 1 -4 0 0 1 -14 0 0 4 0 0 0 0 0 0;64 1 0 0 0 0 -12 0 0 2 0 32 0 0 0 0 0 8];
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.c b/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.c
new file mode 100644 (file)
index 0000000..7c65330
--- /dev/null
@@ -0,0 +1,68 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+#include "stack-c.h"
+#include "Scierror.h"
+#include "localization.h"
+#include "sciprint.h"
+#include "api_scilab.h"
+#include "MALLOC.h"
+
+             
+int read_write_boolean(char *fname,unsigned long fname_len)
+{
+    SciErr sciErr;
+    int i;
+    //first variable info : real matrix of double
+    int iRows                                  = 0;
+    int iCols                                  = 0;
+    int *piAddr                                = NULL;
+    int* piBool                                = NULL;
+
+    //check input and output arguments
+    CheckRhs(1,1);
+    CheckLhs(1,1);
+
+
+    //get variable address of the first input argument
+    sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    //get size and data from Scilab memory
+    sciErr = getMatrixOfBoolean(pvApiCtx, piAddr, &iRows, &iCols, &piBool);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    //Do something with data
+    for(i = 0 ; i < iRows * iCols ; i++)
+    {
+        piBool[i] = piBool[i] == 0 ? 1 : 0;
+    }
+
+    sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, iRows, iCols, piBool);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    LhsVar(1) = Rhs + 1;
+    return 0;
+}
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.dia.ref b/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.dia.ref
new file mode 100644 (file)
index 0000000..05c2a34
--- /dev/null
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- JVM NOT MANDATORY -->
+ilib_verbose(0);
+mkdir(pathconvert(TMPDIR+"/read_write_boolean_api"));
+cd(pathconvert(TMPDIR+"/read_write_boolean_api"));
+copyfile(SCI+"/modules/api_scilab/tests/unit_tests/read_write_boolean_api.c",pathconvert(TMPDIR+"/read_write_boolean_api/read_write_boolean_api.c",%F));
+cflags = "-I"+SCI+"/modules/localization/includes";
+ilib_build("read_write_boolean",["read_write_boolean","read_write_boolean"],"read_write_boolean_api.c",[],"Makefile","",cflags);
+a = [%t, %f, %t ; %f, %t, %f ; %t, %f, %t];
+a_ref = [%f, %t, %f ; %t, %f, %t ; %f, %t, %f];
+b = read_write_boolean(a);
+if or(b <> a_ref) then bugmes();quit;end
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.tst b/scilab/modules/api_scilab/tests/unit_tests/read_write_boolean_api.tst
new file mode 100644 (file)
index 0000000..0073010
--- /dev/null
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- JVM NOT MANDATORY -->
+ilib_verbose(0);
+mkdir(pathconvert(TMPDIR+"/read_write_boolean_api"));
+cd(pathconvert(TMPDIR+"/read_write_boolean_api"));
+copyfile(SCI+"/modules/api_scilab/tests/unit_tests/read_write_boolean_api.c",pathconvert(TMPDIR+"/read_write_boolean_api/read_write_boolean_api.c",%F));
+cflags = "-I"+SCI+"/modules/localization/includes";
+ilib_build("read_write_boolean",["read_write_boolean","read_write_boolean"],"read_write_boolean_api.c",[],"Makefile","",cflags);
+exec("loader.sce");
+
+             
+a = [%t, %f, %t ; %f, %t, %f ; %t, %f, %t];
+a_ref = [%f, %t, %f ; %t, %f, %t ; %f, %t, %f];
+b = read_write_boolean(a);
+
+if or(b <> a_ref) then pause;end
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.c b/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.c
new file mode 100644 (file)
index 0000000..12a613d
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+#include "stack-c.h"
+#include "Scierror.h"
+#include "localization.h"
+#include "sciprint.h"
+#include "api_scilab.h"
+#include "MALLOC.h"
+
+             
+int read_write_bsparse(char *fname,unsigned long fname_len)
+{
+    SciErr sciErr;
+    int i                   = 0;
+    int j                   = 0;
+    int k                   = 0;
+
+    //first variable info : real matrix of double
+    int iRows               = 0;
+    int iCols               = 0;
+    int *piAddr             = NULL;
+    int iNbItem             = 0;
+    int* piNbItemRow        = NULL;
+    int* piColPos           = NULL;
+
+    int iCol                = 0;
+    int iNewCol             = 0;
+
+    int iNewItem            = 0;
+    int* piNewRow           = NULL;
+    int* piNewCol           = NULL;
+
+    //check input and output arguments
+    CheckRhs(1,1);
+    CheckLhs(1,1);
+
+
+    //get variable address of the first input argument
+    sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    //get size and data from Scilab memory
+    sciErr = getBooleanSparseMatrix(pvApiCtx, piAddr, &iRows, &iCols, &iNbItem, &piNbItemRow, &piColPos);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    //Do something with data
+    //convert %T -> %F and %F -> %T
+
+    iNewItem = (iRows * iCols) - iNbItem;
+    piNewRow = (int*)MALLOC(sizeof(int) * iRows);
+    piNewCol = (int*)MALLOC(sizeof(int) * iNewItem);
+
+    for(i = 0 ; i < iRows ; i++)
+    {
+        piNewRow[i] = iCols - piNbItemRow[i];
+        for(j = 0 ; j < iCols ; j++)
+        {
+            int iFind = 0;
+            for(k = 0 ; k < piNbItemRow[i] ; k++)
+            {
+                if(piColPos[iCol + k] == (j + 1))
+                {
+                    iFind = 1;
+                    break;
+                }
+            }
+            if(iFind == 0)
+            {
+                piNewCol[iNewCol++] = (j + 1);
+            }
+        }
+        iCol += piNbItemRow[i];
+    }
+
+    sciErr = createBooleanSparseMatrix(pvApiCtx, Rhs + 1, iRows, iCols, iNewItem, piNewRow, piNewCol);
+    if(sciErr.iErr)
+    {
+        printError(&sciErr, 0);
+        return 0;
+    }
+
+    LhsVar(1) = Rhs + 1;
+    return 0;
+}
+        
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.dia.ref b/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.dia.ref
new file mode 100644 (file)
index 0000000..7fab238
--- /dev/null
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- JVM NOT MANDATORY -->
+ilib_verbose(0);
+mkdir(pathconvert(TMPDIR+"/read_write_bsparse_api"));
+cd(pathconvert(TMPDIR+"/read_write_bsparse_api"));
+copyfile(SCI+"/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.c",pathconvert(TMPDIR+"/read_write_bsparse_api/read_write_bsparse_api.c",%F));
+cflags = "-I"+SCI+"/modules/localization/includes";
+ilib_build("read_write_bsparse",["read_write_bsparse","read_write_bsparse"],"read_write_bsparse_api.c",[],"Makefile","",cflags);
+a = sparse([%t, %f, %t ; %f, %t, %f ; %t, %f, %t]);
+a_ref = sparse([%f, %t, %f ; %t, %f, %t ; %f, %t, %f]);
+b = read_write_bsparse(a);
+if or(b <> a_ref) then bugmes();quit;end
diff --git a/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.tst b/scilab/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.tst
new file mode 100644 (file)
index 0000000..62ca28c
--- /dev/null
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Scilab Consortium Operational Team
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- JVM NOT MANDATORY -->
+ilib_verbose(0);
+mkdir(pathconvert(TMPDIR+"/read_write_bsparse_api"));
+cd(pathconvert(TMPDIR+"/read_write_bsparse_api"));
+copyfile(SCI+"/modules/api_scilab/tests/unit_tests/read_write_bsparse_api.c",pathconvert(TMPDIR+"/read_write_bsparse_api/read_write_bsparse_api.c",%F));
+cflags = "-I"+SCI+"/modules/localization/includes";
+ilib_build("read_write_bsparse",["read_write_bsparse","read_write_bsparse"],"read_write_bsparse_api.c",[],"Makefile","",cflags);
+exec("loader.sce");
+
+             
+a = sparse([%t, %f, %t ; %f, %t, %f ; %t, %f, %t]);
+a_ref = sparse([%f, %t, %f ; %t, %f, %t ; %f, %t, %f]);
+
+b = read_write_bsparse(a);
+if or(b <> a_ref) then pause;end
+        
index 996eaee..be7b7a7 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
        
         
 int read_sparse(char *fname,unsigned long fname_len)
index 53319ef..0c33c60 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/sparse_reading_api"));
 cd(pathconvert(TMPDIR+"/sparse_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/sparse_reading_api.c",pathconvert(TMPDIR+"/sparse_reading_api/sparse_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("sparse_reading",["read_sparse","read_sparse"],pathconvert(TMPDIR+"/sparse_reading_api/sparse_reading_api.c",%F),[],[],"",cflags);
+ilib_build("sparse_reading",["read_sparse","read_sparse"],"sparse_reading_api.c",[],"Makefile","",cflags);
 sp=sparse([1,2;4,5;3,10],[1 + 2*%i,2 - 3*%i,-3 + 4*%i]);
 read_sparse(sp);
 Sparse 3 item(s)
index 9ec5477..6c0a9c4 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/sparse_reading_api"));
 cd(pathconvert(TMPDIR+"/sparse_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/sparse_reading_api.c",pathconvert(TMPDIR+"/sparse_reading_api/sparse_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("sparse_reading",["read_sparse","read_sparse"],pathconvert(TMPDIR+"/sparse_reading_api/sparse_reading_api.c",%F),[],[],"",cflags);
+ilib_build("sparse_reading",["read_sparse","read_sparse"],"sparse_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 sp=sparse([1,2;4,5;3,10],[1 + 2*%i,2 - 3*%i,-3 + 4*%i]);
index 671db10..cdd4d83 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 int write_sparse(char *fname,unsigned long fname_len)
index 9fe7649..20c2e10 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/sparse_writing_api"));
 cd(pathconvert(TMPDIR+"/sparse_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/sparse_writing_api.c",pathconvert(TMPDIR+"/sparse_writing_api/sparse_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("sparse_writing",["write_sparse","write_sparse"],pathconvert(TMPDIR+"/sparse_writing_api/sparse_writing_api.c",%F),[],[],"",cflags);
+ilib_build("sparse_writing",["write_sparse","write_sparse"],"sparse_writing_api.c",[],"Makefile","",cflags);
         
 sp_ref = sparse([1,8;2,4;2,7;3,2],[1+4*%i,2+3*%i,3+2*%i,4+%i], [3,10]);
 sp = write_sparse();
index c3a78ad..6c3f6b1 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/sparse_writing_api"));
 cd(pathconvert(TMPDIR+"/sparse_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/sparse_writing_api.c",pathconvert(TMPDIR+"/sparse_writing_api/sparse_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("sparse_writing",["write_sparse","write_sparse"],pathconvert(TMPDIR+"/sparse_writing_api/sparse_writing_api.c",%F),[],[],"",cflags);
+ilib_build("sparse_writing",["write_sparse","write_sparse"],"sparse_writing_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
 
         
index 048461d..68b25e1 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 int read_string(char *fname,unsigned long fname_len)
index 97b5e6d..a9231f8 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/string_reading_api"));
 cd(pathconvert(TMPDIR+"/string_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/string_reading_api.c",pathconvert(TMPDIR+"/string_reading_api/string_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("string_reading",["read_string","read_string"],pathconvert(TMPDIR+"/string_reading_api/string_reading_api.c",%F),[],[],"",cflags);
+ilib_build("string_reading",["read_string","read_string"],"string_reading_api.c",[],"Makefile","",cflags);
 a_ref = ["may the puffin be with you"];
 a = ["may", "the", "puffin"; "be","with","you"];
 b = read_string(a);
index 733e6e8..b00ad15 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/string_reading_api"));
 cd(pathconvert(TMPDIR+"/string_reading_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/string_reading_api.c",pathconvert(TMPDIR+"/string_reading_api/string_reading_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("string_reading",["read_string","read_string"],pathconvert(TMPDIR+"/string_reading_api/string_reading_api.c",%F),[],[],"",cflags);
+ilib_build("string_reading",["read_string","read_string"],"string_reading_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 a_ref = ["may the puffin be with you"];
index 299f954..ab8caaa 100644 (file)
@@ -15,6 +15,7 @@
 #include "localization.h"
 #include "sciprint.h"
 #include "api_scilab.h"
+#include "MALLOC.h"
 
         
 int write_string(char *fname,unsigned long fname_len)
index 20ffc0d..823efb0 100644 (file)
@@ -10,7 +10,7 @@ mkdir(pathconvert(TMPDIR+"/string_writing_api"));
 cd(pathconvert(TMPDIR+"/string_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/string_writing_api.c",pathconvert(TMPDIR+"/string_writing_api/string_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("string_writing",["write_string","write_string"],pathconvert(TMPDIR+"/string_writing_api/string_writing_api.c",%F),[],[],"",cflags);
+ilib_build("string_writing",["write_string","write_string"],"string_writing_api.c",[],"Makefile","",cflags);
 a_ref = "may the puffin be with you ";
 b = [];
 a = write_string();
index 7eaa0c7..cfecc8a 100644 (file)
@@ -11,7 +11,7 @@ mkdir(pathconvert(TMPDIR+"/string_writing_api"));
 cd(pathconvert(TMPDIR+"/string_writing_api"));
 copyfile(SCI+"/modules/api_scilab/tests/unit_tests/string_writing_api.c",pathconvert(TMPDIR+"/string_writing_api/string_writing_api.c",%F));
 cflags = "-I"+SCI+"/modules/localization/includes";
-ilib_build("string_writing",["write_string","write_string"],pathconvert(TMPDIR+"/string_writing_api/string_writing_api.c",%F),[],[],"",cflags);
+ilib_build("string_writing",["write_string","write_string"],"string_writing_api.c",[],"Makefile","",cflags);
 exec("loader.sce");
  
 a_ref = "may the puffin be with you ";
index 0acc9b5..f2b0f10 100644 (file)
@@ -504,13 +504,13 @@ sub write_scilab_code
        print FILEOUT 'cflags = "-I"+SCI+"/modules/localization/includes";'."\n";
        
        print FILEOUT 'ilib_build(';
-       print FILEOUT '"'.$tags{'Lib_name'}.'",'; # lib_name
-       print FILEOUT $table_str.',';             # table
-       print FILEOUT $cfiletmpdir.',';           # files
-       print FILEOUT '[],';                      # libs
-       print FILEOUT '[],';                      # makename
-       print FILEOUT '"",';                      # ldflags
-       print FILEOUT 'cflags);'."\n";            # cflags
+       print FILEOUT '"'.$tags{'Lib_name'}.'",';                          # lib_name
+       print FILEOUT $table_str.',';                                      # table
+       print FILEOUT '"'.basename(substr($tags{'File_gateway'},3)).'",';  # files
+       print FILEOUT '[],';                                               # libs
+       print FILEOUT '"Makefile",';                                       # makename
+       print FILEOUT '"",';                                               # ldflags
+       print FILEOUT 'cflags);'."\n";                                     # cflags
        
        print FILEOUT 'exec("loader.sce");'."\n";