1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00

Make close() fastcall

git-svn-id: svn://svn.cc65.org/cc65/trunk@1530 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-11-16 19:38:37 +00:00
parent 70bc177714
commit 9e74c2b26f
2 changed files with 1 additions and 2 deletions

View File

@ -58,7 +58,7 @@ typedef long int off_t;
/* Functions */
int open (const char* name, int flags, ...); /* May take a mode argument */
int close (int fd);
int __fastcall__ close (int fd);
int write (int fd, const void* buf, unsigned count);
int read (int fd, void* buf, unsigned count);
int mkdir (const char* name, ...); /* May take a mode argument */

View File

@ -10,7 +10,6 @@
.import fdtoiocb_down,__inviocb
.proc _close
jsr popax
jsr fdtoiocb_down ; get iocb index into X and decr. usage count
bmi inverr
bne ok ; not last one -> don't close yet