mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Remove use of INTDEF/INTUSE in stdio-common
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* Internal function for converting integers to ASCII.
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2002, 2003, 2004, 2007
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1994-2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Torbjorn Granlund <tege@matematik.su.se>
|
||||
and Ulrich Drepper <drepper@gnu.org>.
|
||||
@@ -160,27 +159,13 @@ const struct base_table_t _itoa_base_table[] attribute_hidden =
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Lower-case digits. */
|
||||
extern const char _itoa_lower_digits[];
|
||||
extern const char _itoa_lower_digits_internal[] attribute_hidden;
|
||||
/* Upper-case digits. */
|
||||
extern const char _itoa_upper_digits[];
|
||||
extern const char _itoa_upper_digits_internal[] attribute_hidden;
|
||||
|
||||
|
||||
char *
|
||||
_itoa_word (_ITOA_WORD_TYPE value, char *buflim,
|
||||
unsigned int base, int upper_case)
|
||||
{
|
||||
const char *digits = (upper_case
|
||||
#if !defined NOT_IN_libc || defined IS_IN_rtld
|
||||
? INTUSE(_itoa_upper_digits)
|
||||
: INTUSE(_itoa_lower_digits)
|
||||
#else
|
||||
? _itoa_upper_digits
|
||||
: _itoa_lower_digits
|
||||
#endif
|
||||
);
|
||||
: _itoa_lower_digits);
|
||||
|
||||
switch (base)
|
||||
{
|
||||
@@ -213,8 +198,8 @@ _itoa (value, buflim, base, upper_case)
|
||||
int upper_case;
|
||||
{
|
||||
const char *digits = (upper_case
|
||||
? INTUSE(_itoa_upper_digits)
|
||||
: INTUSE(_itoa_lower_digits));
|
||||
? _itoa_upper_digits
|
||||
: _itoa_lower_digits);
|
||||
const struct base_table_t *brec = &_itoa_base_table[base - 2];
|
||||
|
||||
switch (base)
|
||||
|
||||
Reference in New Issue
Block a user