]> git.sur5r.net Git - cc65/blob - libsrc/common/_scanf.h
Just removed some trailing spaces.
[cc65] / libsrc / common / _scanf.h
1 /*
2 ** _scanf.h
3 **
4 ** (c) Copyright 2004, Ullrich von Bassewitz <uz@cc65.org>
5 **
6 */
7
8
9
10 #ifndef __SCANF_H
11 #define __SCANF_H
12
13
14
15 /* Type of the function that is called to input data. The function will
16 ** return EOF if no more data is available.
17 */
18 typedef int __fastcall__ (*getfunc) (void* data);
19
20 /* Type of the function that is called to put back unused data */
21 typedef int __fastcall__ (*ungetfunc) (int c, void* data);
22
23
24
25 /* Control structure passed to the low level worker function.
26 ** Beware: This structure is mirrored in the _scanf.inc assembler include
27 ** file, so check this when altering the structure.
28 */
29 struct scanfdata {
30     getfunc     get;    /* Pointer to input routine */
31     ungetfunc   unget;  /* Pointer to pushback routine */
32     void*       data;   /* Pointer to struct. used outside of _scanf() */
33 };
34
35
36
37 /* Internal scanning routine */
38 int __fastcall__ _scanf (const struct scanfdata* d, const char* format, va_list ap);
39
40
41
42 /* End of _scanf.h */
43 #endif
44
45
46