add toolboxes.xml (only to prepare toolboxes management)
Allan Cornet [Thu, 24 May 2007 18:30:48 +0000 (18:30 +0000)]
scilab/etc/toolboxes.xml [new file with mode: 0644]
scilab/modules/core/src/c/getmodules.c

diff --git a/scilab/etc/toolboxes.xml b/scilab/etc/toolboxes.xml
new file mode 100644 (file)
index 0000000..01d3718
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE toolboxes SYSTEM "../modules/toolboxes_management/xml/toolboxes.dtd">\r
+<!-- =================== -->\r
+<!--\r
+ Toolboxes list for Scilab\r
+ @author Allan CORNET\r
+ @date INRIA 2007\r
+ ===================\r
+ Don't touch if you do not know what you are doing\r
+ activate="1" toolboxe will be launched ( or not "0")\r
+ -->\r
+<!-- =================== -->\r
+<toolboxes users="all">\r
+<toolboxes name="toolboxe_skeleton" path="$SCILAB/contrib/toolboxe_skeleton" activate="0"/>\r
+<!-- comments -->\r
+</toolboxes>\r
\ No newline at end of file
index 7072631..42531b2 100644 (file)
@@ -189,11 +189,8 @@ static BOOL AppendModules(char *xmlfilename)
                                        {
                                                if ( VerifyModule(name) )
                                                {
-                                                       if (indice==0){
-                                                               ScilabModules->ModuleList=(char**)MALLOC(sizeof(char*)*(indice+1)); 
-                                                       } else {
-                                                               ScilabModules->ModuleList=(char**)REALLOC(ScilabModules->ModuleList,sizeof(char*)*(indice+1));
-                                                       }
+                                                       if (indice==0) ScilabModules->ModuleList=(char**)MALLOC(sizeof(char*)*(indice+1)); 
+                                                       else ScilabModules->ModuleList=(char**)REALLOC(ScilabModules->ModuleList,sizeof(char*)*(indice+1));
 
                                                        ScilabModules->numberofModules=indice+1;