From: uz Date: Tue, 15 Sep 2009 21:01:20 +0000 (+0000) Subject: Make system() fastcall like most other library functions. X-Git-Tag: V2.13.0rc1~78 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96637a8c35a10b60a759f50b9be2401f993ab0ca;p=cc65 Make system() fastcall like most other library functions. git-svn-id: svn://svn.cc65.org/cc65/trunk@4178 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/stdlib.h b/include/stdlib.h index 68f7fd9bf..a58d29c87 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -114,8 +114,8 @@ char* __fastcall__ getenv (const char* name); void __fastcall__ qsort (void* base, size_t count, size_t size, int (*compare) (const void*, const void*)); long __fastcall__ strtol (const char* nptr, char** endptr, int base); -unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base); -int system (const char* s); +unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base); +int __fastcall__ system (const char* s); /* Non-ANSI functions */ void __fastcall__ _swap (void* p, void* q, size_t size); diff --git a/libsrc/common/system.c b/libsrc/common/system.c index c6bfb667c..6626ace87 100644 --- a/libsrc/common/system.c +++ b/libsrc/common/system.c @@ -8,7 +8,7 @@ #include #include -int system (const char* s) +int __fastcall__ system (const char* s) { if (s == NULL) { return 0; /* no shell */