/* Definition of struct _FILE */
struct _FILE {
- char f_fd;
- char f_flags;
+ char f_fd;
+ char f_flags;
+ unsigned char f_pushback;
};
/* File table. Beware: FOPEN_MAX is hardcoded in the ASM files! */
-extern FILE _filetab [FOPEN_MAX];
+extern FILE _filetab[FOPEN_MAX];
/* Flags field */
#define _FCLOSED 0x00
.data
__filetab:
- .byte 0, _FOPEN ; stdin
- .byte 1, _FOPEN ; stdout
- .byte 2, _FOPEN ; stderr
+ .byte 0, _FOPEN, 0 ; stdin
+ .byte 1, _FOPEN, 0 ; stdout
+ .byte 2, _FOPEN, 0 ; stderr
.repeat FOPEN_MAX - 3
- .byte 0, _FCLOSED ; free slot
+ .byte 0, _FCLOSED, 0 ; free slot
.endrepeat