about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/Makefile3
-rw-r--r--stdio-common/_itoa.c6
-rw-r--r--stdio-common/itoa-digits.c26
3 files changed, 30 insertions, 5 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 362c77c24f..409e64a91c 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -25,7 +25,8 @@ headers	:= bits/stdio_lim.h printf.h
 
 routines	:=							      \
 	ctermid cuserid							      \
-	vfprintf vprintf printf_fp reg-printf printf-prs _itoa printf_fphex   \
+	_itoa itoa-digits						      \
+	vfprintf vprintf printf_fp reg-printf printf-prs printf_fphex	      \
 	printf_size fprintf printf snprintf sprintf asprintf dprintf	      \
 	vfscanf 							      \
 	fscanf scanf sscanf						      \
diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c
index 91bc8a83d0..e5705d54b2 100644
--- a/stdio-common/_itoa.c
+++ b/stdio-common/_itoa.c
@@ -157,11 +157,9 @@ static const struct base_table_t base_table[] =
 };
 
 /* Lower-case digits.  */
-const char _itoa_lower_digits[]
-	= "0123456789abcdefghijklmnopqrstuvwxyz";
+extern const char _itoa_lower_digits[];
 /* Upper-case digits.  */
-const char _itoa_upper_digits[]
-	= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+extern const char _itoa_upper_digits[];
 
 
 char *
diff --git a/stdio-common/itoa-digits.c b/stdio-common/itoa-digits.c
new file mode 100644
index 0000000000..b475bbca42
--- /dev/null
+++ b/stdio-common/itoa-digits.c
@@ -0,0 +1,26 @@
+/* Digits.
+   Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* Lower-case digits.  */
+const char _itoa_lower_digits[]
+	= "0123456789abcdefghijklmnopqrstuvwxyz";
+/* Upper-case digits.  */
+const char _itoa_upper_digits[]
+	= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+