From: uz Date: Thu, 17 Sep 2009 18:37:42 +0000 (+0000) Subject: New strtoimax and strtoumax standard functions as aliases for strtol/strtoul. X-Git-Tag: V2.13.0rc1~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75068a652891a3ee32fa4025c10557501d44f950;p=cc65 New strtoimax and strtoumax standard functions as aliases for strtol/strtoul. git-svn-id: svn://svn.cc65.org/cc65/trunk@4182 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index 0ef066888..48e0bffc1 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -72,9 +72,11 @@ C_OBJS = _afailed.o \ rewind.o \ sleep.o \ strftime.o \ + strtoimax.o \ strtok.o \ strtol.o \ strtoul.o \ + strtoumax.o \ strxfrm.o \ system.o \ timezone.o diff --git a/libsrc/common/strtoimax.s b/libsrc/common/strtoimax.s new file mode 100644 index 000000000..10c0d428c --- /dev/null +++ b/libsrc/common/strtoimax.s @@ -0,0 +1,9 @@ +; +; Ullrich von Bassewitz, 2009-09-17 +; +; intmax_t __fastcall__ strtoimax (const char* nptr, char** endptr, int base); +; + + .import _strtol + .export _strtoimax = _strtol + diff --git a/libsrc/common/strtoumax.s b/libsrc/common/strtoumax.s new file mode 100644 index 000000000..c59d51c3c --- /dev/null +++ b/libsrc/common/strtoumax.s @@ -0,0 +1,9 @@ +; +; Ullrich von Bassewitz, 2009-09-17 +; +; uintmax_t __fastcall__ strtoumax (const char* nptr, char** endptr, int base); +; + + .import _strtoul + .export _strtoumax = _strtoul +