author | Arjen Laarhoven <arjen@yaph.org> | |
Sun, 7 Sep 2008 18:45:37 +0000 (20:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Sep 2008 20:36:40 +0000 (13:36 -0700) | ||
commit | 3632cfc2487afc41c7c9e939a9d357daca3e5d67 | |
tree | a0e56de2ab6f56753406c47baf8ec8bd79e91cb5 | tree | snapshot |
parent | 971e628384fea14e9c0bf96e1c69b97df6ec540e | commit | diff |
Use compatibility regex library for OSX/Darwin
The standard libc regex library on OSX does not support alternation
in POSIX Basic Regular Expression mode. This breaks the diff.funcname
functionality on OSX.
To fix this, we use the GNU regex library which is already present in
the compat/ diretory for the MinGW port. However, simply adding compat/
to the COMPAT_CFLAGS variable causes a conflict between the system
fnmatch.h and the one present in compat/. To remedy this, move the
regex and fnmatch functionality to their own subdirectories in compat/
so they can be included seperately.
Signed-off-by: Arjen Laarhoven <arjen@yaph.org>
Tested-by: Mike Ralphson <mike@abacus.co.uk> (AIX)
Tested-by: Johannes Sixt <johannes.sixt@telecom.at> (MinGW)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The standard libc regex library on OSX does not support alternation
in POSIX Basic Regular Expression mode. This breaks the diff.funcname
functionality on OSX.
To fix this, we use the GNU regex library which is already present in
the compat/ diretory for the MinGW port. However, simply adding compat/
to the COMPAT_CFLAGS variable causes a conflict between the system
fnmatch.h and the one present in compat/. To remedy this, move the
regex and fnmatch functionality to their own subdirectories in compat/
so they can be included seperately.
Signed-off-by: Arjen Laarhoven <arjen@yaph.org>
Tested-by: Mike Ralphson <mike@abacus.co.uk> (AIX)
Tested-by: Johannes Sixt <johannes.sixt@telecom.at> (MinGW)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
compat/fnmatch.c | [deleted file] | blob | history |
compat/fnmatch.h | [deleted file] | blob | history |
compat/fnmatch/fnmatch.c | [new file with mode: 0644] | blob |
compat/fnmatch/fnmatch.h | [new file with mode: 0644] | blob |
compat/regex.c | [deleted file] | blob | history |
compat/regex.h | [deleted file] | blob | history |
compat/regex/regex.c | [new file with mode: 0644] | blob |
compat/regex/regex.h | [new file with mode: 0644] | blob |
t/t4018-diff-funcname.sh | diff | blob | history |