summaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2020-12-08 18:15:27 +0000
committerJoseph Myers <joseph@codesourcery.com>2020-12-08 18:15:27 +0000
commit224b419d1e750e3e9ced5c57774bb2bdd5292e28 (patch)
tree270809a5e89155afa1990475bcff36a5d7ae6f24 /wcsmbs
parent4d3a77c73594c3704992f8d5b779c8be053cff35 (diff)
downloadglibc-224b419d1e750e3e9ced5c57774bb2bdd5292e28.tar.gz
Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases
The functions strtoimax, strtoumax, wcstoimax, wcstoumax currently have three implementations each (wordsize-32, wordsize-64 and dummy implementation in stdlib/ using #error), defining the functions as thin wrappers round corresponding *_internal functions. Simplify the code by changing them into aliases of functions such as strtol and wcstoull. This is more consistent with how e.g. imaxdiv is handled. Tested for x86_64 and x86.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcstoll.c1
-rw-r--r--wcsmbs/wcstoull.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/wcsmbs/wcstoll.c b/wcsmbs/wcstoll.c
index 9f5ea00ef6..2871db8884 100644
--- a/wcsmbs/wcstoll.c
+++ b/wcsmbs/wcstoll.c
@@ -22,3 +22,4 @@
#include "wcstol.c"
weak_alias (wcstoll, wcstoq)
+weak_alias (wcstoll, wcstoimax)
diff --git a/wcsmbs/wcstoull.c b/wcsmbs/wcstoull.c
index 7ba8ebde83..b9080302f3 100644
--- a/wcsmbs/wcstoull.c
+++ b/wcsmbs/wcstoull.c
@@ -22,3 +22,4 @@
#include "wcstoul.c"
weak_alias (wcstoull, wcstouq)
+weak_alias (wcstoull, wcstoumax)