[newlib-cygwin] Cygwin: drop unused isabspath_u and iswabspath macros

Corinna Vinschen corinna@sourceware.org
Thu Nov 11 10:03:31 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=eaf0725486773106d87e28a0cc81205e58544880

commit eaf0725486773106d87e28a0cc81205e58544880
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Nov 10 21:08:11 2021 +0100

    Cygwin: drop unused isabspath_u and iswabspath macros
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/winsup.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index abdef3526..f6fea6313 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -139,18 +139,6 @@ extern int cygserver_running;
 #undef issep
 #define issep(ch) (strchr (" \t\n\r", (ch)) != NULL)
 
-/* Every path beginning with / or \, as well as every path being X:
-   or starting with X:/ or X:\ */
-#define isabspath_u(p) \
-  ((p)->Length && \
-   (iswdirsep ((p)->Buffer[0]) || \
-    ((p)->Length > sizeof (WCHAR) && iswalpha ((p)->Buffer[0]) \
-    && (p)->Buffer[1] == L':' && \
-    ((p)->Length == 2 * sizeof (WCHAR) || iswdirsep ((p)->Buffer[2])))))
-
-#define iswabspath(p) \
-  (iswdirsep (*(p)) || (iswalpha (*(p)) && (p)[1] == L':' && (!(p)[2] || iswdirsep ((p)[2]))))
-
 #define isabspath(p) \
   (isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':' && (!(p)[2] || isdirsep ((p)[2]))))


More information about the Cygwin-cvs mailing list