Changed priorities of destructors so atexit will be called before open files
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
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
.export _open
|
||||
.destructor closeallfiles, 17
|
||||
.destructor closeallfiles, 5
|
||||
|
||||
.import SETLFS, OPEN, CLOSE
|
||||
.import addysp, popax
|
||||
@@ -100,7 +100,7 @@ parmok: jsr popax ; Get flags
|
||||
|
||||
; 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
|
||||
|
||||
Reference in New Issue
Block a user