2000-05-28 13:40:48 +00:00
|
|
|
/*
|
|
|
|
* _printf.h
|
|
|
|
*
|
2001-03-03 12:04:01 +00:00
|
|
|
* (C) Copyright 1998 Ullrich von Bassewitz (uz@cc65.org)
|
2000-05-28 13:40:48 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __PRINTF_H
|
|
|
|
#define __PRINTF_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Forward */
|
|
|
|
struct outdesc;
|
|
|
|
|
|
|
|
/* Type of the function that is called to output data */
|
2000-08-14 22:16:40 +00:00
|
|
|
typedef void (*outfunc) (struct outdesc* desc, const char* buf, unsigned count);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2000-11-30 23:04:24 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
2000-05-28 13:40:48 +00:00
|
|
|
struct outdesc {
|
2013-05-09 11:56:54 +00:00
|
|
|
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 */
|
2000-05-28 13:40:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Internal formatting routine */
|
2009-09-26 19:20:51 +00:00
|
|
|
void __fastcall__ _printf (struct outdesc* d, const char* format, va_list ap);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* End of _printf.h */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|