From: cuz Date: Wed, 29 Oct 2003 21:59:19 +0000 (+0000) Subject: Make qsort __fastcall__ X-Git-Tag: V2.12.0~1211 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c04edfaaacff2670c2e143d4bbc2ca0c61d87c5;p=cc65 Make qsort __fastcall__ git-svn-id: svn://svn.cc65.org/cc65/trunk@2585 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/stdlib.h b/include/stdlib.h index d4a9ef7cc..6f96f2bad 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -89,8 +89,8 @@ void* __fastcall__ bsearch (const void* key, const void* base, size_t n, div_t __fastcall__ div (int numer, int denom); void __fastcall__ exit (int ret); char* __fastcall__ getenv (const char* name); -void qsort (void* base, size_t count, size_t size, - int (*compare) (const void*, const void*)); +void __fastcall__ qsort (void* base, size_t count, size_t size, + int (*compare) (const void*, const void*)); int system (const char* s); /* Non-ANSI functions */ diff --git a/libsrc/common/qsort.c b/libsrc/common/qsort.c index 88da4b28a..0cdfeb82c 100644 --- a/libsrc/common/qsort.c +++ b/libsrc/common/qsort.c @@ -53,8 +53,8 @@ static void QuickSort (void* Base, int Lo, int Hi, size_t Size, -void qsort (void* base, size_t nmemb, size_t size, - int (*compare)(const void*, const void*)) +void __fastcall__ qsort (void* base, size_t nmemb, size_t size, + int (*compare)(const void*, const void*)) /* Quicksort implementation */ { if (nmemb > 1) {