]> git.sur5r.net Git - cc65/blob - libsrc/common/_printf.h
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / common / _printf.h
1 /*
2  * _printf.h
3  *
4  * (C) Copyright 1998 Ullrich von Bassewitz (uz@cc65.org)
5  *
6  */
7
8
9
10 #ifndef __PRINTF_H
11 #define __PRINTF_H
12
13
14
15 /* Forward */
16 struct outdesc;
17
18 /* Type of the function that is called to output data */
19 typedef void (*outfunc) (struct outdesc* desc, const char* buf, unsigned count);
20
21
22
23 /* Control structure passed to the low level worker function.
24  * Beware: This function will access the structure on the assembly level,
25  * so check this when altering the structure.
26  */
27 struct outdesc {
28     int         ccount;         /* Character counter */
29     outfunc     fout;           /* Routine used to output data */
30     void*       ptr;            /* Data internal to print routine */
31     unsigned    uns;            /* Data internal to print routine */
32 };
33
34
35
36 /* Internal formatting routine */
37 void __fastcall__ _printf (struct outdesc* d, const char* format, va_list ap);
38
39
40
41 /* End of _printf.h */
42 #endif
43
44
45