compat/regex: use the regex engine from gawk for compat
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 17 Aug 2010 09:24:38 +0000 (09:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 21:06:48 +0000 (14:06 -0700)
commitd18f76dccff1fc56221846926edb4542d88f60e0
tree080090453c3e320a7b1d017f2f668b5ba2e064b3
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9
compat/regex: use the regex engine from gawk for compat

Change the regex engine in compat to use the gawk engine from the
gawk-devel module in gawk CVS. This engine supports the REG_STARTEND
flag, which was optionally available in Git since v1.7.2-rc0~77^2~1.

The source was grabbed from cvs.savannah.gnu.org:/sources/gawk, and
these are the upstream versions of the files being included:

    regcomp.c               1.4
    regex.h                 1.3
    regex.h                 1.3
    regex_internal.c        1.3
    regex_internal.h        1.3
    regexec.c               1.3

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regcomp.c [new file with mode: 0644]
compat/regex/regex.c
compat/regex/regex.h
compat/regex/regex_internal.c [new file with mode: 0644]
compat/regex/regex_internal.h [new file with mode: 0644]
compat/regex/regexec.c [new file with mode: 0644]