#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
-#define IS_DIR_SEPARATOR(c) ((c) == DIR_SEPARATOR)
+#define IS_DIRECTORY_SEPARATOR(c) ((c) == DIR_SEPARATOR)
#else
-#define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == DIR_SEPARATOR)
+#define IS_DIRECTORY_SEPARATOR(c) ((c) == '/' || (c) == DIR_SEPARATOR)
#endif
/* Check for cross-compilation. */
return 0;
#else
return (length != 0) &&
- (IS_DIR_SEPARATOR(*name)
+ (IS_DIRECTORY_SEPARATOR(*name)
#if defined (WINNT) || defined(__DJGPP__)
|| (length > 2 && ISALPHA (name[0]) && name[1] == ':'
- && IS_DIR_SEPARATOR(name[2]))
+ && IS_DIRECTORY_SEPARATOR(name[2]))
#endif
);
#endif
/* If file_name include directory separator(s), try it first as
a path name relative to the current directory */
- for (ptr = file_name; *ptr && !IS_DIR_SEPARATOR(*ptr); ptr++)
+ for (ptr = file_name; *ptr && !IS_DIRECTORY_SEPARATOR(*ptr); ptr++)
;
if (*ptr != 0)
if (*ptr == '"')
ptr--;
- if (!IS_DIR_SEPARATOR(*ptr))
+ if (!IS_DIRECTORY_SEPARATOR(*ptr))
*++ptr = DIR_SEPARATOR;
strcpy (++ptr, file_name);