* src/SDCCval.c (checkConstantRange): added
[fw/sdcc] / support / Util / MySystem.c
index 307149bd267c26ca27b716f30111c3ebff0e8bce..004a2f7c38f627358f380365c792e49773f5d0b2 100644 (file)
@@ -45,9 +45,9 @@ set *binPathSet = NULL; /* set of binary paths */
  */
 
 static void
-split_command(const char *cmd_line, char **command, char **params)
+split_command(const unsigned char *cmd_line, char **command, char **params)
 {
-  const char *p, *cmd_start;
+  const unsigned char *p, *cmd_start;
   char delim;
   char *str;
   unsigned len;
@@ -238,23 +238,18 @@ merge_command(const char *command, const char *params)
   /* allocate extra space for 2x'"', ' ' and '\0' */
   char *cmd_line = (char *)Safe_alloc(strlen(command) + strlen(params) + 4);
   sprintf(cmd_line, "\"%s\" %s", command, params);
-
   return cmd_line;
 }
 
 
 /*!
- * check if the path is absolute
+ * check if the path is relative or absolute (if contains the dir separator)
  */
 
 static int
 has_path(const char *path)
 {
   if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
-#ifdef _WIN32
-    /* try *nix dir separator on WIN32 */
-    if (strrchr(path, UNIX_DIR_SEPARATOR_CHAR) == NULL)
-#endif
       return 0;
 
   return 1;