From 9e74c2b26f4c25c54b82c6b1148ec7973d72ffd2 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 16 Nov 2002 19:38:37 +0000 Subject: [PATCH] Make close() fastcall git-svn-id: svn://svn.cc65.org/cc65/trunk@1530 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/fcntl.h | 2 +- libsrc/atari/close.s | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5