mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: drop unused isabspath_u and iswabspath macros
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
576ace1f2f
commit
eaf0725486
@ -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]))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user