* device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
[fw/sdcc] / device / lib / z80 / printf.c
index 8f61bbae3ed55315d7d4b0308ea615681fe97efc..65c25b9732de3f67423291f52d37a502d49ea267 100644 (file)
@@ -1,5 +1,5 @@
 /** Simple printf implementation
-    Again a stub - will use the std one later...
+    This stub has been replaced by the std printf_large / sprintf / vprintf
 */
 
 #include <stdarg.h>
@@ -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) {