root / trunk / data / grep / regcomp.diff

Revision 199, 0.8 kB (checked in by saurik, 8 months ago)

Drastic, sweeping modifications to support iPhone 1.2.0/2.0.

  • lib/regex.c

    diff -ru grep-2.5/lib/regex.c grep-2.5+iPhone/lib/regex.c
    old new  
    8080# define PUT_CHAR(c) putchar (c) 
    8181#endif /* MBS_SUPPORT */ 
    8282 
    83 #ifdef _LIBC 
    84 /* We have to keep the namespace clean.  */ 
    8583# define regfree(preg) __regfree (preg) 
    8684# define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef) 
    8785# define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags) 
    8886# define regerror(errcode, preg, errbuf, errbuf_size) \ 
    8987        __regerror(errcode, preg, errbuf, errbuf_size) 
     88#ifdef _LIBC 
     89/* We have to keep the namespace clean.  */ 
    9090# define re_set_registers(bu, re, nu, st, en) \ 
    9191        __re_set_registers (bu, re, nu, st, en) 
    9292# define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ 
Note: See TracBrowser for help on using the browser.