summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-21 06:03:12 (GMT)
committerrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-21 06:03:12 (GMT)
commit70c9bb4b81d06783121782cc54fde7ac80b72ba4 (patch)
tree2859048ad859b82be3390023de5242f9e66c1c48 /missing
parent16ffd476399df9259d3496ec5aa15b2f2c4006ed (diff)
Remove missing/strtol.c
It is never used. We don't need it anyway as it's part of C89 which is our current minimum requirement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/strtol.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/missing/strtol.c b/missing/strtol.c
deleted file mode 100644
index 87bd731..0000000
--- a/missing/strtol.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* public domain rewrite of strtol(3) */
-
-#include "ruby/missing.h"
-#include <ctype.h>
-
-long
-strtol(const char *nptr, char **endptr, int base)
-{
- long result;
- const char *p = nptr;
-
- while (isspace(*p)) {
- p++;
- }
- if (*p == '-') {
- p++;
- result = -strtoul(p, endptr, base);
- }
- else {
- if (*p == '+') p++;
- result = strtoul(p, endptr, base);
- }
- if (endptr != 0 && *endptr == p) {
- *endptr = (char *)nptr;
- }
- return result;
-}