1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-26 13:18:31 +00:00

Added assembler include function for _scanf

git-svn-id: svn://svn.cc65.org/cc65/trunk@3304 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-11-27 14:45:49 +00:00
parent 7cf5f27ec6
commit dbb003c9ac
3 changed files with 144 additions and 57 deletions
+3 -4
View File
@@ -21,13 +21,12 @@ typedef int __fastcall__ (*ungetfunc) (int c, void* data);
/* Control structure passed to the low level worker function.
* Beware: The low level functions will access the structure on the assembly
* level, so check this when altering the structure.
* Beware: This structure is mirrored in the _scanf.inc assembler include
* file, so check this when altering the structure.
*/
struct scanfdata {
getfunc get; /* Pointer to input routine */
ungetfunc unget; /* Pointer to pushback routine */
unsigned ccount; /* Number of chars read */
/* Fields used outside of _scanf */
void* data; /* Caller data */
@@ -36,7 +35,7 @@ struct scanfdata {
/* Internal scanning routine */
int _scanf (struct scanfdata* d, const char* format, va_list ap);
int __fastcall__ _scanf (struct scanfdata* d, const char* format, va_list ap);