bug-gnulib
[Top][All Lists]
Advanced

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

gnulib regex module updated to (nearly) match latest libc regex


From: Paul Eggert
Subject: gnulib regex module updated to (nearly) match latest libc regex
Date: Thu, 07 Jul 2005 01:18:34 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

James Youngman <address@hidden> writes:

> On Sun, Jul 03, 2005 at 10:11:23PM -0700, Paul Eggert wrote:
>> Thanks.  I'd prefer simply replacing regex.c with the glibc version,
>> rather than try to maintain two different regex modules.  Would it be
>> easy to modify your patch to do that?
>
> I have done so; it is attached.

Thanks.  I looked at that, but it appears to be an older version of
glibc.  I'd rather use the latest version in CVS.  Also, regex.m4 needs
to be synced with what the C code actually needs.

I installed the attached patch instead; does it work for you?  This
is a pretty big change, so we should test it as well as we can.

2005-07-07  Paul Eggert  <address@hidden>

        * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
        regex_internal.c, regexec.c.
        Add regex_internal.h too, but as a comment, since the libc version
        is currently broken in gnulib mode.
        * modules/regex (Files): Add lib/regex_internal.c,
        lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
        (Depends-on): Add extensions.
        (Makefile.am): Remove lib_SOURCES; now done by m4 code.
        * lib/regex.c, lib/regex.h: Sync from libc.
        * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h, 
lib/regexec.c:
        New files, synced from libc, except that regex_internal.h
        currently has a small porting fix.
        * m4/regex.m4: Adjust to new libc regex implementation.
        (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
        all the .c and .h parts of (the new) regex.
        Quote the m4 stuff better.
        Check for RE_ICASE bug of old gnulib.
        Check for REG_STARTEND of recent libc.
        Rename local variables from jm_* to gl_*.
        Quote operand of "test -f".
        Say "recent enough" version of libc, not "version 2".
        (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
        prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
        Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
        Remove check for btowc, isascii.
        Require AM_LANGINFO_CODESET.

Attachment: gnulib-glibc-regex.patch.gz
Description: gzipped gnulib patch to adopt current glibc regex


reply via email to

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