From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 273D4386EC0E; Tue, 29 Mar 2022 20:26:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 273D4386EC0E 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: bcd44d015161c83e28f606c7eacf3f15acd1176a X-Git-Newrev: 96f9c2a577cb97c0115148794f799393daa98a07 Message-Id: <20220329202601.273D4386EC0E@sourceware.org> Date: Tue, 29 Mar 2022 20:26:01 +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: Tue, 29 Mar 2022 20:26:01 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=96f9c2a577cb97c0115148794f799393daa98a07 commit 96f9c2a577cb97c0115148794f799393daa98a07 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