From ae61e126ee8e8200e87f285d9c410eb377505578 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 30 Apr 2022 11:35:20 +0100 Subject: win32: clarify documentation of is_relative_path() --- win32/mingw.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/win32/mingw.c b/win32/mingw.c index 2de07122e..063a0c546 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -2117,10 +2117,15 @@ int has_path(const char *file) has_dos_drive_prefix(file); } -/* Test whether a path is relative to a known location (usually the +/* + * Test whether a path is relative to a known location (usually the * current working directory or a symlink). On Unix this is a path - * that doesn't start with a slash but on Windows we also need to - * exclude paths that start with a backslash or a drive letter. */ + * that doesn't start with a slash but on Windows it also includes + * paths that don't start with a backslash or a drive letter. + * + * Paths of the form /dir/file or c:dir/file aren't relative by this + * definition. + */ int is_relative_path(const char *path) { return !is_dir_sep(path[0]) && !has_dos_drive_prefix(path); -- cgit v1.2.3-55-g6feb