From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id C34CC3858402; Thu, 11 Nov 2021 10:03:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C34CC3858402 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_3-branch] Cygwin: drop unused isabspath_u and iswabspath macros X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/cygwin-3_3-branch X-Git-Oldrev: 7c902b3c90823f2990d320046a5dc806a0e247bd X-Git-Newrev: 8539c39172674a6a1a332008cd28d7579772f818 Message-Id: <20211111100316.C34CC3858402@sourceware.org> Date: Thu, 11 Nov 2021 10:03:16 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2021 10:03:16 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8539c39172674a6a1a332008cd28d7579772f818 commit 8539c39172674a6a1a332008cd28d7579772f818 Author: Corinna Vinschen Date: Wed Nov 10 21:08:11 2021 +0100 Cygwin: drop unused isabspath_u and iswabspath macros Signed-off-by: Corinna Vinschen 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]))))