ruby-changes:46316
From: rhe <ko1@a...>
Date: Fri, 21 Apr 2017 15:03:18 +0900 (JST)
Subject: [ruby-changes:46316] rhe:r58430 (trunk): Remove missing/strtol.c
rhe 2017-04-21 15:03:12 +0900 (Fri, 21 Apr 2017) New Revision: 58430 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58430 Log: 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. Removed files: trunk/missing/strtol.c Modified files: trunk/LEGAL trunk/common.mk trunk/include/ruby/missing.h trunk/win32/Makefile.sub Index: missing/strtol.c =================================================================== --- missing/strtol.c (revision 58429) +++ missing/strtol.c (nonexistent) @@ -1,27 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/missing/strtol.c#L0 -/* 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; -} Property changes on: missing/strtol.c ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: common.mk =================================================================== --- common.mk (revision 58429) +++ common.mk (revision 58430) @@ -804,8 +804,6 @@ strerror.$(OBJEXT): {$(VPATH)}strerror.c https://github.com/ruby/ruby/blob/trunk/common.mk#L804 strlcat.$(OBJEXT): {$(VPATH)}strlcat.c strlcpy.$(OBJEXT): {$(VPATH)}strlcpy.c strstr.$(OBJEXT): {$(VPATH)}strstr.c -strtod.$(OBJEXT): {$(VPATH)}strtod.c -strtol.$(OBJEXT): {$(VPATH)}strtol.c nt.$(OBJEXT): {$(VPATH)}nt.c ia64.$(OBJEXT): {$(VPATH)}ia64.s $(CC) $(CFLAGS) -c $< Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 58429) +++ win32/Makefile.sub (revision 58430) @@ -750,9 +750,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L750 #define HAVE_STRFTIME 1 #define HAVE_STRCHR 1 #define HAVE_STRSTR 1 -#define HAVE_STRTOD 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 #define HAVE_ISNAN 1 #define HAVE_FINITE 1 Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 58429) +++ include/ruby/missing.h (revision 58430) @@ -214,12 +214,6 @@ RUBY_EXTERN char *strerror(int); https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L214 RUBY_EXTERN char *strstr(const char *, const char *); #endif -/* -#ifndef HAVE_STRTOL -RUBY_EXTERN long strtol(const char *, char **, int); -#endif -*/ - #ifndef HAVE_STRLCPY RUBY_EXTERN size_t strlcpy(char *, const char*, size_t); #endif Index: LEGAL =================================================================== --- LEGAL (revision 58429) +++ LEGAL (revision 58430) @@ -417,7 +417,6 @@ missing/memmove.c: https://github.com/ruby/ruby/blob/trunk/LEGAL#L417 missing/strchr.c: missing/strerror.c: missing/strstr.c: -missing/strtol.c: missing/tgamma.c: ext/date/date_strftime.c: ext/digest/sha1/sha1.[ch]: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/