]> git.sur5r.net Git - cc65/commitdiff
New strtoimax and strtoumax standard functions as aliases for strtol/strtoul.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 17 Sep 2009 18:37:42 +0000 (18:37 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 17 Sep 2009 18:37:42 +0000 (18:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4182 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/Makefile
libsrc/common/strtoimax.s [new file with mode: 0644]
libsrc/common/strtoumax.s [new file with mode: 0644]

index 0ef066888206601ed656bc6d3af0efaa1b200285..48e0bffc17e7c2e098311c80b0b55837b6139000 100644 (file)
@@ -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 (file)
index 0000000..10c0d42
--- /dev/null
@@ -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 (file)
index 0000000..c59d51c
--- /dev/null
@@ -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
+