From 75068a652891a3ee32fa4025c10557501d44f950 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 17 Sep 2009 18:37:42 +0000 Subject: [PATCH] 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 --- libsrc/common/Makefile | 2 ++ libsrc/common/strtoimax.s | 9 +++++++++ libsrc/common/strtoumax.s | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 libsrc/common/strtoimax.s create mode 100644 libsrc/common/strtoumax.s 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 + -- 2.39.5