Revert "compat: add strtok_r()"
This reverts commit 78457bc0ccc1af8b9eb776a0b17986ebd50442bc.
commit 28c5d9e ("vcs-svn: drop string_pool") previously removed the only call-site for strtok_r. So let's get rid of the compat implementation as well.
Conflicts:
Makefile
config.mak.in
configure.ac
---
I just noticed that we have an unused compat-implementation of strtok_r, so here's a patch to get rid of it.
Makefile | 6 ------ compat/strtok_r.c | 61 ------------------------------------------------------- configure.ac | 6 ------ git-compat-util.h | 5 ----- 4 files changed, 78 deletions(-) delete mode 100644 compat/strtok_r.c
Makefile +0 -6
@@ -98,8 +98,6 @@ all:: # # Define NO_MKSTEMPS if you don't have mkstemps in the C library. # -# Define NO_STRTOK_R if you don't have strtok_r in the C library. -# # Define NO_FNMATCH if you don't have fnmatch in the C library. # # Define NO_FNMATCH_CASEFOLD if your fnmatch function doesn't have the
@@ -1202,10 +1200,6 @@ endif ifdef NO_STRTOULL COMPAT_CFLAGS += -DNO_STRTOULL endif -ifdef NO_STRTOK_R - COMPAT_CFLAGS += -DNO_STRTOK_R - COMPAT_OBJS += compat/strtok_r.o -endif ifdef NO_FNMATCH COMPAT_CFLAGS += -Icompat/fnmatch COMPAT_CFLAGS += -DNO_FNMATCH
compat/strtok_r.c deleted +0 -61
61 lines not on this page · raw message
configure.ac +0 -6
@@ -901,12 +901,6 @@ GIT_CHECK_FUNC(strcasestr, [NO_STRCASESTR=YesPlease]) GIT_CONF_SUBST([NO_STRCASESTR]) # -# Define NO_STRTOK_R if you don't have strtok_r -GIT_CHECK_FUNC(strtok_r, -[NO_STRTOK_R=], -[NO_STRTOK_R=YesPlease]) -GIT_CONF_SUBST([NO_STRTOK_R]) -# # Define NO_FNMATCH if you don't have fnmatch GIT_CHECK_FUNC(fnmatch, [NO_FNMATCH=],
git-compat-util.h +0 -5
@@ -408,11 +408,6 @@ extern uintmax_t gitstrtoumax(const char *, char **, int);extern intmax_t gitstrtoimax (const char *,char **,int );#endif -#ifdef NO_STRTOK_R -#define strtok_r gitstrtok_r -extern char *gitstrtok_r (char *s,const char *delim,char **save_ptr); -#endif -#ifdef NO_HSTRERROR #define hstrerror githstrerrorextern const char *githstrerror (int herror);
Signature · 1 line
1.8.0.msysgit.0.3.gd0186ec
Quoted 6 lines · Erik Faye-Lund
This reverts commit
78457bc0ccc1af8b9eb776a0b17986ebd50442bc.commit 28c5d9e ("vcs-svn: drop
string_pool") previously removed the only call-site forstrtok_r. So let's get rid of the compat implementation as well.
Quoted 9 lines
Conflicts:
Makefile
config.mak.in
configure.ac
---I just noticed that we have an unused compat-implementation of
strtok_r, so here's a patch to get rid of it.
Ugh, I forgot this part:
config.mak.uname +0 -2
@@ -321,7 +321,6 @@ ifeq ($(uname_S),Windows) NO_UNSETENV = YesPlease NO_STRCASESTR = YesPlease NO_STRLCPY = YesPlease - NO_STRTOK_R = YesPlease NO_FNMATCH = YesPlease NO_MEMMEM = YesPlease # NEEDS_LIBICONV = YesPlease
@@ -476,7 +475,6 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_UNSETENV = YesPlease NO_STRCASESTR = YesPlease NO_STRLCPY = YesPlease - NO_STRTOK_R = YesPlease NO_FNMATCH = YesPlease NO_MEMMEM = YesPlease NEEDS_LIBICONV = YesPlease
Jonathan Nieder
Reviewed-byHi Erik,
Quoted 5 lines · Erik Faye-Lund
This reverts commit
78457bc0ccc1af8b9eb776a0b17986ebd50442bc.commit 28c5d9e ("vcs-svn: drop
string_pool") previously removed the only call-site forstrtok_r. So let's get rid of the compat implementation as well.
Yes, good idea. Sorry I didn't take care of this at the time.
Quoted 4 lines
Conflicts:
Makefile
config.mak.in
configure.ac
Since the conflicts were straightforward, I'd drop this or replace it with a quick description of any surprising choices made in resolving them.
Thanks. With the fixup from your reply squashed in,
Care to tie the loose end on this one, with a sign-off?
Quoted 1 line · Junio C Hamano
Care to tie the loose end on this one, with a sign-off?
Yes, I'll get right to it, sorry for the delay!