size optimization
[compress.git] / fprintf.h
index 053620efa57cb46257cc9942d80907f5f47a818e..8c2bb0bb2f81ad971c921be5098ba0473685e205 100644 (file)
--- a/fprintf.h
+++ b/fprintf.h
@@ -1,10 +1,13 @@
 #ifndef __FPRINTF_H__
 #define __FPRINTF_H__
 
-#include <stddef.h>
-#include <stdio.h>
+int fdprintf (int fd, const char *fmt, ...);
 
-size_t _fprintf (FILE *fid, const char *fmt, ...);
+extern int _fdout;
+extern int _fderr;
+
+#define PRINTOUT(fmt...) fdprintf (_fdout, fmt)
+#define PRINTERR(fmt...) fdprintf (_fderr, fmt)
 
 #endif /* __FPRINTF_H__ */