From d01546640b508333db98c5308cf63f937583bdf2 Mon Sep 17 00:00:00 2001 From: maartenbrock Date: Thu, 2 Sep 2004 13:56:05 +0000 Subject: [PATCH] * device/lib/gbz80/printf.c, * device/lib/z80/printf.c: removed define for NULL git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3472 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ device/lib/gbz80/printf.c | 7 ++----- device/lib/z80/printf.c | 7 ++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3690abd1..bae86936 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-02 Maarten Brock + + * device/lib/gbz80/printf.c, + * device/lib/z80/printf.c: removed define for NULL + 2004-09-02 Maarten Brock * as/xa51/xa_link.c, diff --git a/device/lib/gbz80/printf.c b/device/lib/gbz80/printf.c index 370a4e42..ddfb020f 100644 --- a/device/lib/gbz80/printf.c +++ b/device/lib/gbz80/printf.c @@ -7,10 +7,7 @@ #define STATIC -/* PENDING */ -#define NULL 0 - -STATIC void _printn(unsigned u, unsigned base, char issigned, void (*emitter)(char, void *), void *pData) +static void _printn(unsigned u, unsigned base, char issigned, void (*emitter)(char, void *), void *pData) { const char *_hex = "0123456789ABCDEF"; if (issigned && ((int)u < 0)) { @@ -50,7 +47,7 @@ STATIC void _printf(const char *format, void (*emitter)(char, void *), void *pDa _printn(u, 16, 0, emitter, pData); break; } - case 's': + case 's': { char *s = va_arg(va, char *); while (*s) { diff --git a/device/lib/z80/printf.c b/device/lib/z80/printf.c index 8f61bbae..a81b4e80 100644 --- a/device/lib/z80/printf.c +++ b/device/lib/z80/printf.c @@ -7,10 +7,7 @@ #define STATIC -/* PENDING */ -#define NULL 0 - -STATIC void _printn(unsigned u, unsigned base, char issigned, volatile void (*emitter)(char, void *), void *pData) +static void _printn(unsigned u, unsigned base, char issigned, volatile void (*emitter)(char, void *), void *pData) { const char *_hex = "0123456789ABCDEF"; if (issigned && ((int)u < 0)) { @@ -50,7 +47,7 @@ STATIC void _printf(const char *format, volatile void (*emitter)(char, void *), _printn(u, 16, 0, emitter, pData); break; } - case 's': + case 's': { char *s = va_arg(va, char *); while (*s) { -- 2.30.2