From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id CA8313888C44; Thu, 31 Mar 2022 19:02:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA8313888C44 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] ctype: Remove internal lower/toupper alias X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 137ed38ae5de66be50ad6d00f3011bc0f08b4d2b X-Git-Newrev: 59848228df3ed6a231cc6b3dc37f8f1410f367f6 Message-Id: <20220331190257.CA8313888C44@sourceware.org> Date: Thu, 31 Mar 2022 19:02:57 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2022 19:02:57 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=59848228df3ed6a231cc6b3dc37f8f1410f367f6 commit 59848228df3ed6a231cc6b3dc37f8f1410f367f6 Author: Adhemerval Zanella Date: Mon Mar 14 10:51:23 2022 -0300 ctype: Remove internal lower/toupper alias Diff: --- ctype/ctype.c | 8 ++++---- include/ctype.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ctype/ctype.c b/ctype/ctype.c index 423c0a5186..81385e0e8e 100644 --- a/ctype/ctype.c +++ b/ctype/ctype.c @@ -41,15 +41,15 @@ func (isxdigit, _ISxdigit) ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128) int -tolower (int c) +__tolower (int c) { return c >= -128 && c < 256 ? __ctype_tolower[c] : c; } -libc_hidden_def (tolower) +weak_alias (__tolower, tolower) int -toupper (int c) +__toupper (int c) { return c >= -128 && c < 256 ? __ctype_toupper[c] : c; } -libc_hidden_def (toupper) +weak_alias (__toupper, toupper) diff --git a/include/ctype.h b/include/ctype.h index 493a6f80ce..ac6db790b7 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -11,9 +11,6 @@ libc_hidden_proto (__ctype_init) So defeat macro expansion with parens for this declaration. */ extern int (__isctype) (int __c, int __mask); -libc_hidden_proto (tolower) -libc_hidden_proto (toupper) - # if IS_IN (libc) /* These accessors are used by the optimized macros to find the