* device/lib/gbz80/printf.c,
authormaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 2 Sep 2004 13:56:05 +0000 (13:56 +0000)
committermaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 2 Sep 2004 13:56:05 +0000 (13:56 +0000)
* 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
device/lib/gbz80/printf.c
device/lib/z80/printf.c

index 3690abd183902d300a31978858b25788906bf3b8..bae869368e4e8476d9c8b7f59444a87d3e1ee673 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * device/lib/gbz80/printf.c,
+       * device/lib/z80/printf.c: removed define for NULL
+
 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
 
        * as/xa51/xa_link.c,
index 370a4e42173dd31a38abcf55d7917885a2c7c04e..ddfb020f5fbe33a05b3c865c883f1bd102bb7976 100644 (file)
@@ -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) {
index 8f61bbae3ed55315d7d4b0308ea615681fe97efc..a81b4e80cd5924f900f48bb7df8ca26bc0e397fc 100644 (file)
@@ -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) {