summaryrefslogtreecommitdiff
path: root/data/grep/regcomp.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
committerJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
commitd699a01fabaa04a1aad60f6ca5777f82ee24839a (patch)
tree1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/grep/regcomp.diff
parent8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff)
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/grep/regcomp.diff')
-rw-r--r--data/grep/regcomp.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/grep/regcomp.diff b/data/grep/regcomp.diff
new file mode 100644
index 000000000..f4922f80d
--- /dev/null
+++ b/data/grep/regcomp.diff
@@ -0,0 +1,19 @@
+diff -ru grep-2.5/lib/regex.c grep-2.5+iPhone/lib/regex.c
+--- grep-2.5/lib/regex.c 2001-04-02 18:04:45.000000000 +0000
++++ grep-2.5+iPhone/lib/regex.c 2008-04-05 05:18:34.000000000 +0000
+@@ -80,13 +80,13 @@
+ # define PUT_CHAR(c) putchar (c)
+ #endif /* MBS_SUPPORT */
+
+-#ifdef _LIBC
+-/* We have to keep the namespace clean. */
+ # define regfree(preg) __regfree (preg)
+ # define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef)
+ # define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags)
+ # define regerror(errcode, preg, errbuf, errbuf_size) \
+ __regerror(errcode, preg, errbuf, errbuf_size)
++#ifdef _LIBC
++/* We have to keep the namespace clean. */
+ # define re_set_registers(bu, re, nu, st, en) \
+ __re_set_registers (bu, re, nu, st, en)
+ # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \