mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
224b419d1e
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.
18 lines
499 B
C
18 lines
499 B
C
/* We have to irritate the compiler a bit. */
|
|
#define __strtoll_internal __strtoll_internal_XXX
|
|
#define strtoll strtoll_XXX
|
|
#define strtoq strtoq_XXX
|
|
|
|
#include <stdlib/strtol.c>
|
|
|
|
#undef __strtoll_internal
|
|
#undef strtoll
|
|
#undef strtoq
|
|
strong_alias (__strtol_internal, __strtoll_internal)
|
|
libc_hidden_ver (__strtol_internal, __strtoll_internal)
|
|
weak_alias (strtol, strtoll)
|
|
libc_hidden_ver (strtol, strtoll)
|
|
weak_alias (strtol, strtoq)
|
|
libc_hidden_ver (strtol, strtoq)
|
|
weak_alias (strtol, strtoimax)
|