bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find (and friends) bug?


From: Miles Bader
Subject: Re: find (and friends) bug?
Date: 04 Mar 2002 17:29:38 +0900

Tom Lord <address@hidden> writes:
> Um, could you elaborate?  Or point to an elaboration?

I found a copy by looking in:

   http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/posix/?cvsroot=glibc

[regex.c, regcomp.c, regexec.c, ... etc]

I note one thing that's going to make emacs really happy:

   int
   re_search_2 (bufp, string1, length1, string2, length2, start, range, regs,
                stop)
       struct re_pattern_buffer *bufp;
       const char *string1, *string2;
       int length1, length2, start, range, stop;
       struct re_registers *regs;
   {
     int len, ret;
     char *str = re_malloc (char, length1 + length2);
     memcpy (str, string1, length1);
     memcpy (str + length1, string2, length2);
     len = (length1 + length2 < stop) ? length1 + length2 : stop;
     ret = re_search (bufp, str, len, start, range, regs);
     re_free (str);
     return ret;
   }

Eek!

-Miles
-- 
80% of success is just showing up.  --Woody Allen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]