]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/_printf.h
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / _printf.h
index d4d5ed60797576abe0fcbc3d89a8251e8f02e908..03869747835e6d1b5faab22a83373273f72bf64b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * _printf.h
  *
- * (C) Copyright 1998 Ullrich von Bassewitz (uz@ibb.schwaben.com)
+ * (C) Copyright 1998 Ullrich von Bassewitz (uz@cc65.org)
  *
  */
 
 struct outdesc;
 
 /* Type of the function that is called to output data */
-typedef void (*outfunc) (struct outdesc* desc, char* buf, unsigned count);
+typedef void (*outfunc) (struct outdesc* desc, const char* buf, unsigned count);
 
 
 
+/* Control structure passed to the low level worker function.
+ * Beware: This function will access the structure on the assembly level,
+ * so check this when altering the structure.
+ */
 struct outdesc {
-    outfunc            fout;           /* Routine used to output data */
     int                ccount;         /* Character counter */
+    outfunc            fout;           /* Routine used to output data */
     void*      ptr;            /* Data internal to print routine */
     unsigned   uns;            /* Data internal to print routine */
 };
@@ -30,7 +34,7 @@ struct outdesc {
 
 
 /* Internal formatting routine */
-int _printf (struct outdesc* d, char* format, va_list ap);
+void __fastcall__ _printf (struct outdesc* d, const char* format, va_list ap);