Make use of the new common __directerrno and __mappederrno function.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4720 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
.export _close
|
||||
|
||||
.import closedirect, freebuffer
|
||||
.import errnoexit, oserrexit
|
||||
.import return0
|
||||
|
||||
.include "errno.inc"
|
||||
.include "filedes.inc"
|
||||
|
||||
_close:
|
||||
@@ -34,8 +34,8 @@ zerofd: lda #$00
|
||||
; Return success
|
||||
jmp return0
|
||||
|
||||
; Return errno
|
||||
errno: jmp errnoexit
|
||||
; Set __errno
|
||||
errno: jmp __directerrno
|
||||
|
||||
; Return oserror
|
||||
oserr: jmp oserrexit
|
||||
; Set __oserror
|
||||
oserr: jmp __mappederrno
|
||||
|
||||
Reference in New Issue
Block a user