mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
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:
parent
a214ccff92
commit
a9990fbcf3
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
.export _open, closedirect, freebuffer
|
.export _open, closedirect, freebuffer
|
||||||
.export __filetype, __auxtype
|
.export __filetype, __auxtype
|
||||||
.destructor closeallfiles, 17
|
.destructor closeallfiles, 5
|
||||||
|
|
||||||
.import pushname, popname
|
.import pushname, popname
|
||||||
.import iobuf_alloc, iobuf_free
|
.import iobuf_alloc, iobuf_free
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
.include "fd.inc"
|
.include "fd.inc"
|
||||||
|
|
||||||
.export _open
|
.export _open
|
||||||
.destructor closeallfiles, 17
|
.destructor closeallfiles, 5
|
||||||
|
|
||||||
.import _close
|
.import _close
|
||||||
.import clriocb
|
.import clriocb
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
.export _open
|
.export _open
|
||||||
.destructor closeallfiles, 17
|
.destructor closeallfiles, 5
|
||||||
|
|
||||||
.import SETLFS, OPEN, CLOSE
|
.import SETLFS, OPEN, CLOSE
|
||||||
.import addysp, popax
|
.import addysp, popax
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
.export _atexit
|
.export _atexit
|
||||||
.destructor doatexit, 5
|
.destructor doatexit, 17
|
||||||
.import callax
|
.import callax
|
||||||
|
|
||||||
.include "errno.inc"
|
.include "errno.inc"
|
||||||
|
Loading…
Reference in New Issue
Block a user