summaryrefslogtreecommitdiff
path: root/data/grep/regcomp.diff
blob: f4922f80db962743b23b35f10a05754495058c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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) \