public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] ctype: Remove internal lower/toupper alias
Date: Fri,  3 Jun 2022 14:02:22 +0000 (GMT)	[thread overview]
Message-ID: <20220603140222.DC9953850866@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8c66fed53c0f9837d94ef9c5f2f2ea34ccc05a71

commit 8c66fed53c0f9837d94ef9c5f2f2ea34ccc05a71
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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


             reply	other threads:[~2022-06-03 14:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 14:02 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:16 Adhemerval Zanella
2022-06-09 13:13 Adhemerval Zanella
2022-05-13 14:16 Adhemerval Zanella
2022-05-12 19:29 Adhemerval Zanella
2022-05-10 18:20 Adhemerval Zanella
2022-04-29 14:00 Adhemerval Zanella
2022-04-04 12:50 Adhemerval Zanella
2022-03-31 19:02 Adhemerval Zanella
2022-03-29 20:26 Adhemerval Zanella
2022-03-16 18:03 Adhemerval Zanella
2022-03-15 18:41 Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220603140222.DC9953850866@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).