Compilation : rename splitpath to allow the use of Link-Time Optimization 82/16882/3
Clément DAVID [Thu, 23 Jul 2015 08:41:50 +0000 (10:41 +0200)]
Change-Id: Ic5843b3eda49f4cac0e8e091cb23bec8561f1054

scilab/modules/completion/src/c/getfilesdictionary.c

index f3cf0b1..4061f73 100644 (file)
@@ -21,7 +21,7 @@
 #include "machine.h"
 #include "isdir.h"
 /*--------------------------------------------------------------------------*/
-static void splitpath(char *composite,  char *path,  char *fname);
+static void mysplitpath(char *composite,  char *path,  char *fname);
 static char **addPath(char **dictionary, int sizearray, char *path);
 static char **addDirSeparator(char **dictionary, int sizearray, char *path);
 /*--------------------------------------------------------------------------*/
@@ -47,7 +47,7 @@ char **getfilesdictionary(char *somechars, int *sizearray, BOOL fullpath)
         char *pathextended = NULL;
 
 
-        splitpath(somechars, pathname, filename);
+        mysplitpath(somechars, pathname, filename);
 
         if ( strcmp(pathname, "") == 0 )
         {
@@ -112,7 +112,7 @@ char **getfilesdictionary(char *somechars, int *sizearray, BOOL fullpath)
     return dictionary;
 }
 /*--------------------------------------------------------------------------*/
-static void splitpath(char *composite,  char *path,  char *fname)
+static void mysplitpath(char *composite,  char *path,  char *fname)
 {
     if (composite && path && fname)
     {