Use structs
git-svn-id: svn://svn.cc65.org/cc65/trunk@2707 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
;
|
||||
|
||||
.export __filetab
|
||||
|
||||
|
||||
.include "stdio.inc"
|
||||
.include "fcntl.inc"
|
||||
.include "_file.inc"
|
||||
@@ -27,12 +27,12 @@ __filetab:
|
||||
; Standard file descriptors
|
||||
|
||||
_stdin:
|
||||
.word __filetab + (STDIN_FILENO * _FILE_size)
|
||||
.word __filetab + (STDIN_FILENO * .sizeof(_FILE))
|
||||
|
||||
_stdout:
|
||||
.word __filetab + (STDOUT_FILENO * _FILE_size)
|
||||
.word __filetab + (STDOUT_FILENO * .sizeof(_FILE))
|
||||
|
||||
_stderr:
|
||||
.word __filetab + (STDERR_FILENO * _FILE_size)
|
||||
.word __filetab + (STDERR_FILENO * .sizeof(_FILE))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user