From 71302269e94ca34e213e3c0913a61f836fab2fe2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 20 Nov 2014 23:35:55 +0000 Subject: [PATCH] ultoa: this one escaped the pruning Noted by Will Sowerbutts --- Library/libs/Makefile | 6 +++--- Library/libs/ultoa.c | 16 ---------------- 2 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 Library/libs/ultoa.c diff --git a/Library/libs/Makefile b/Library/libs/Makefile index 0dbcec60..18f9d90c 100644 --- a/Library/libs/Makefile +++ b/Library/libs/Makefile @@ -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 index 52ffa28c..00000000 --- a/Library/libs/ultoa.c +++ /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); -} -- 2.34.1