]> git.sur5r.net Git - cc65/commitdiff
Made _afailed() and uncompress() be fastcall functions.
authorGreg King <gregdk@users.sf.net>
Fri, 13 Mar 2015 11:35:47 +0000 (07:35 -0400)
committerGreg King <gregdk@users.sf.net>
Fri, 13 Mar 2015 11:35:47 +0000 (07:35 -0400)
include/assert.h
include/zlib.h
libsrc/cbm/cbm_load.c
libsrc/common/_afailed.c
libsrc/dbg/dbgdump.s
libsrc/zlib/uncompress.c

index ceabd2482c3bde4c49ed277d9cad3c2eb59757a4..504964dc2d04e07441e3e23d3c33803c11959b11 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000, Ullrich von Bassewitz                                      */
+/* (C) 1998-2015, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -42,7 +42,7 @@
 #ifdef NDEBUG
 #  define assert(expr)
 #else
-extern void __cdecl__ _afailed (const char*, unsigned);
+extern void __fastcall__ _afailed (const char*, unsigned);
 #  define assert(expr)  ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
 #endif
 
index 971095cd30ee56d945eb02574114d155a45503f9..8fa6a2bd12c7c035e545e7a04f7e79e0a3fd6bbb 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */\r
 /*                                                                           */\r
 /*                                                                           */\r
-/* (C) 2000-2001 Piotr Fusik <fox@scene.pl>                                  */\r
+/* (C) 2000-2015 Piotr Fusik <fox@scene.pl>                                  */\r
 /*                                                                           */\r
 /* This file is based on the zlib.h from 'zlib' general purpose compression  */\r
 /* library, version 1.1.3, (C) 1995-1998 Jean-loup Gailly and Mark Adler.    */\r
@@ -83,8 +83,8 @@ unsigned __fastcall__ inflatemem (char* dest, const char* source);
 */\r
 \r
 \r
-int __cdecl__ uncompress (char* dest, unsigned* destLen,\r
-                          const char* source, unsigned sourceLen);\r
+int __fastcall__ uncompress (char* dest, unsigned* destLen,\r
+                             const char* source, unsigned sourceLen);\r
 /*\r
    Original zlib description:\r
 \r
index eba864fcc1dccc3d74e5f3d0853e11064ff90f7b..c1c6f568af57b69f1f748652706e52b8bedc9eaa 100644 (file)
@@ -1,9 +1,9 @@
 /*
 ** Marc 'BlackJack' Rintsch, 06.03.2001
 **
-** unsigned int __cdecl__ cbm_load(const char* name,
-**                                 unsigned char device,
-**                                 const unsigned char* data);
+** unsigned int __fastcall__ cbm_load(const char* name,
+**                                    unsigned char device,
+**                                    const unsigned char* data);
 */
 
 #include <cbm.h>
index 4e56b93f23987e0affa6c7b1c54b023fdada10ea..7c6df4a2c10f1ef7d4649cf045520385ba228111 100644 (file)
@@ -1,7 +1,8 @@
 /*
 ** _afailed.c
 **
-** Ullrich von Bassewitz, 06.06.1998
+** 1998-06-06, Ullrich von Bassewitz
+** 2015-03-13, Greg King
 */
 
 
@@ -11,7 +12,7 @@
 
 
 
-void _afailed (char* file, unsigned line)
+void __fastcall__ _afailed (char* file, unsigned line)
 {
     fprintf (stderr, "ASSERTION FAILED IN %s(%u)\n", file, line);
     exit (2);
index b2045872fadc19f14f0f32b1ace162bafe8ec31f..8ab646d21386b64b1e5302cf433527fe663a92ac 100644 (file)
@@ -1,7 +1,7 @@
 ;
 ; Ullrich von Bassewitz, 11.08.1998
 ;
-; char* DbgMemDump (unsigend Addr, char* Buf, unsigned char Length);
+; char* __cdecl__ DbgMemDump (unsigend Addr, char* Buf, unsigned char Length);
 ;
 
         .export         _DbgMemDump
index 7810eb4f8a6b0c7b8b48763d6e53b081bb80397c..4e449a3ef7e3e3843b51d7e180c7760aacfb4182 100644 (file)
@@ -6,8 +6,8 @@
 
 #include <zlib.h>
 
-int uncompress (char* dest, unsigned* destLen,
-                const char* source, unsigned sourceLen)
+int __fastcall__ uncompress (char* dest, unsigned* destLen,
+                             const char* source, unsigned sourceLen)
 {
         unsigned len;
         unsigned char* ptr;