From 76bbc48b992d09bfb4504d0abbd476a6bd169b5d Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 29 Oct 2003 21:51:59 +0000 Subject: [PATCH] Make bsearch __fastcall__ git-svn-id: svn://svn.cc65.org/cc65/trunk@2584 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/stdlib.h | 4 ++-- libsrc/common/bsearch.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index 7242557fe..d4a9ef7cc 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -84,8 +84,8 @@ long __fastcall__ labs (long val); int __fastcall__ atoi (const char* s); long __fastcall__ atol (const char* s); int __fastcall__ atexit (void (*exitfunc) (void)); -void* bsearch (const void* key, const void* base, size_t n, - size_t size, int (*cmp) (const void*, const void*)); +void* __fastcall__ bsearch (const void* key, const void* base, size_t n, + size_t size, int (*cmp) (const void*, const void*)); div_t __fastcall__ div (int numer, int denom); void __fastcall__ exit (int ret); char* __fastcall__ getenv (const char* name); diff --git a/libsrc/common/bsearch.c b/libsrc/common/bsearch.c index 1d3ef2597..bc609be2c 100644 --- a/libsrc/common/bsearch.c +++ b/libsrc/common/bsearch.c @@ -10,8 +10,8 @@ -void* bsearch (const void* key, const void* base, size_t n, size_t size, - int (*cmp) (const void*, const void*)) +void* __fastcall__ bsearch (const void* key, const void* base, size_t n, + size_t size, int (*cmp) (const void*, const void*)) { int current; int result; -- 2.39.5