are closed on exit, so atexit handlers may close the files themselves or
whatever is necessary for a clean shutdown.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4939
b7a2c559-68d2-44c3-8de9-
860c34a00d81
.export _open, closedirect, freebuffer
.export __filetype, __auxtype
- .destructor closeallfiles, 17
+ .destructor closeallfiles, 5
.import pushname, popname
.import iobuf_alloc, iobuf_free
.include "fd.inc"
.export _open
- .destructor closeallfiles, 17
+ .destructor closeallfiles, 5
.import _close
.import clriocb
.export _open
- .destructor closeallfiles, 17
+ .destructor closeallfiles, 5
.import SETLFS, OPEN, CLOSE
.import addysp, popax
; Error entry. Sets _errno, clears _oserror, returns -1
-seterrno:
+seterrno:
jmp __directerrno
; Error entry: Close the file and exit. OS error code is in A on entry
;
.export _atexit
- .destructor doatexit, 5
+ .destructor doatexit, 17
.import callax
.include "errno.inc"