author | Jonathan Nieder <jrnieder@gmail.com> | |
Fri, 13 Aug 2010 23:59:40 +0000 (18:59 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Aug 2010 02:35:38 +0000 (19:35 -0700) | ||
commit | 78457bc0ccc1af8b9eb776a0b17986ebd50442bc | |
tree | 4db7155097fa10d0e56656c6afeef36cd4ec5c61 | tree | snapshot |
parent | 6ad263ce7afc6c21c3ada1691f4772993b8ae46b | commit | diff |
compat: add strtok_r()
Windows does not have strtok_r (and while it does have an identical
strtok_s, but it is not obvious how to use it). Grab an
implementation from glibc.
The svn-fe tool uses strtok_r to parse paths.
Acked-by: Johannes Sixt <j6t@kdbg.org>
Helped-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Windows does not have strtok_r (and while it does have an identical
strtok_s, but it is not obvious how to use it). Grab an
implementation from glibc.
The svn-fe tool uses strtok_r to parse paths.
Acked-by: Johannes Sixt <j6t@kdbg.org>
Helped-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
compat/strtok_r.c | [new file with mode: 0644] | blob |
config.mak.in | diff | blob | history | |
configure.ac | diff | blob | history | |
git-compat-util.h | diff | blob | history |