]> git.ipfire.org Git - thirdparty/glibc.git/commit
Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases
authorJoseph Myers <joseph@codesourcery.com>
Tue, 8 Dec 2020 18:15:27 +0000 (18:15 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 8 Dec 2020 18:15:27 +0000 (18:15 +0000)
commit224b419d1e750e3e9ced5c57774bb2bdd5292e28
tree270809a5e89155afa1990475bcff36a5d7ae6f24
parent4d3a77c73594c3704992f8d5b779c8be053cff35
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.
22 files changed:
include/inttypes.h
stdlib/Makefile
stdlib/strtoimax.c [deleted file]
stdlib/strtoll.c
stdlib/strtoull.c
stdlib/strtoumax.c [deleted file]
stdlib/wcstoimax.c [deleted file]
stdlib/wcstoumax.c [deleted file]
sysdeps/wordsize-32/strtoimax.c [deleted file]
sysdeps/wordsize-32/strtoumax.c [deleted file]
sysdeps/wordsize-32/wcstoimax.c [deleted file]
sysdeps/wordsize-32/wcstoumax.c [deleted file]
sysdeps/wordsize-64/strtoimax.c [deleted file]
sysdeps/wordsize-64/strtol.c
sysdeps/wordsize-64/strtoul.c
sysdeps/wordsize-64/strtoumax.c [deleted file]
sysdeps/wordsize-64/wcstoimax.c [deleted file]
sysdeps/wordsize-64/wcstol.c
sysdeps/wordsize-64/wcstoul.c
sysdeps/wordsize-64/wcstoumax.c [deleted file]
wcsmbs/wcstoll.c
wcsmbs/wcstoull.c