Use in-house macro `ISALPHA` instead of `isalpha`; ref #4950

parent 88635500
...@@ -284,7 +284,7 @@ mrb_file_is_absolute_path(const char *path) ...@@ -284,7 +284,7 @@ mrb_file_is_absolute_path(const char *path)
{ {
#ifdef _WIN32 #ifdef _WIN32
#define IS_PATHSEP(x) (x == '/' || x == '\\') #define IS_PATHSEP(x) (x == '/' || x == '\\')
if (isalpha(path[0])) if (ISALPHA(path[0]))
return (strlen(path) > 2 && path[1] == ':' && IS_PATHSEP(path[2])); return (strlen(path) > 2 && path[1] == ':' && IS_PATHSEP(path[2]));
else else
return (IS_PATHSEP(path[0]) && IS_PATHSEP(path[1])); return (IS_PATHSEP(path[0]) && IS_PATHSEP(path[1]));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment