Skip to content

Commit

Permalink
Remove missing/strtol.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rhenium committed Apr 21, 2017
1 parent 16ffd47 commit 70c9bb4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 39 deletions.
1 change: 0 additions & 1 deletion LEGAL
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ missing/memmove.c:
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]:
Expand Down
2 changes: 0 additions & 2 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,6 @@ strerror.$(OBJEXT): {$(VPATH)}strerror.c
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 $<
Expand Down
6 changes: 0 additions & 6 deletions include/ruby/missing.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ RUBY_EXTERN char *strerror(int);
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
Expand Down
27 changes: 0 additions & 27 deletions missing/strtol.c

This file was deleted.

3 changes: 0 additions & 3 deletions win32/Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#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
Expand Down

0 comments on commit 70c9bb4

Please sign in to comment.