From: cuz Date: Sat, 16 Nov 2002 19:38:37 +0000 (+0000) Subject: Make close() fastcall X-Git-Tag: V2.12.0~2102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e74c2b26f4c25c54b82c6b1148ec7973d72ffd2;p=cc65 Make close() fastcall git-svn-id: svn://svn.cc65.org/cc65/trunk@1530 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/fcntl.h b/include/fcntl.h index 4853fd1df..ff09f6f96 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -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 */ diff --git a/libsrc/atari/close.s b/libsrc/atari/close.s index 777143593..23d80360d 100644 --- a/libsrc/atari/close.s +++ b/libsrc/atari/close.s @@ -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