ultoa: this one escaped the pruning
authorAlan Cox <alan@etchedpixels.co.uk>
Thu, 20 Nov 2014 23:35:55 +0000 (23:35 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Thu, 20 Nov 2014 23:35:55 +0000 (23:35 +0000)
Noted by Will Sowerbutts

Library/libs/Makefile
Library/libs/ultoa.c [deleted file]

index 0dbcec6..18f9d90 100644 (file)
@@ -2,8 +2,8 @@ CC = sdcc
 ASM = sdasz80
 AR = sdar
 LINKER = sdldz80
-CC_OPT = -mz80 -c --opt-code-size --std-c99 --max-allocs-per-node 2000000 -I../include
-#CC_OPT = -mz80 --std-c99 -c --opt-code-size --max-allocs-per-node 20000 -I../include
+#CC_OPT = -mz80 -c --opt-code-size --std-c99 --max-allocs-per-node 2000000 -I../include
+CC_OPT = -mz80 --std-c99 -c --opt-code-size --max-allocs-per-node 20000 -I../include
 #--oldralloc
 ASM_OPT = -l -o -s
 LINKER_OPT = -m -i -o
@@ -29,7 +29,7 @@ SRC_C += setvbuf.c sleep.c sprintf.c stat.c stdio0.c strcasecmp.c
 SRC_C += strdup.c stricmp.c strncasecmp.c
 SRC_C += strnicmp.c strsep.c
 SRC_C += strtod.c strtol.c system.c time.c tmpnam.c ttyname.c
-SRC_C += tzset.c ultoa.c ungetc.c utent.c utsname.c
+SRC_C += tzset.c ungetc.c utent.c utsname.c
 SRC_C += vfprintf.c vprintf.c wait.c xitoa.c
 SRC_C += gethostname.c sysconf.c confstr.c memccpy.c getpass.c
 # tty layer
diff --git a/Library/libs/ultoa.c b/Library/libs/ultoa.c
deleted file mode 100644 (file)
index 52ffa28..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/* numeric/string conversions package
- */
-
-#include "stdlib.h"
-
-/**************************** ultoa.c ****************************/
-char *ultoa(unsigned long value, char *strP, int radix)
-{
-       char hex = 'A';
-
-       if (radix < 0) {
-               hex = 'a';
-               radix = -radix;
-       }
-       return __longtoa(value, strP, radix, 0, hex);
-}