From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: regex.c: emacs & glibc (and xemacs, and grep and ...) Date: Mon, 8 Apr 2002 12:22:19 -0700 (PDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200204081922.g38JMJ015422@shade.twinsun.com> References: <200204041924.g34JOt718874@rum.cs.yale.edu> <200204050125.g351PMp27017@shade.twinsun.com> <200204051448.g35EmgJ23043@rum.cs.yale.edu> <200204052341.g35NfjV19236@aztec.santafe.edu> <200204081626.g38GQfa10456@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018293889 25274 127.0.0.1 (8 Apr 2002 19:24:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2002 19:24:49 +0000 (UTC) Cc: rms@gnu.org, sds@gnu.org, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16uekz-0006ZX-00 for ; Mon, 08 Apr 2002 21:24:49 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16uezT-00046r-00 for ; Mon, 08 Apr 2002 21:39:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16uekc-0008BS-00; Mon, 08 Apr 2002 15:24:26 -0400 Original-Received: from alcor.twinsun.com ([198.147.65.9]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ueia-000844-00; Mon, 08 Apr 2002 15:22:20 -0400 Original-Received: from shade.twinsun.com ([192.54.239.27]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g38JMJIh032740; Mon, 8 Apr 2002 12:22:19 -0700 (PDT) Original-Received: (eggert@localhost) by shade.twinsun.com (8.11.6+Sun/8.11.6) id g38JMJ015422; Mon, 8 Apr 2002 12:22:19 -0700 (PDT) Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-Reply-To: <200204081626.g38GQfa10456@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2472 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2472 > From: "Stefan Monnier" > Date: Mon, 08 Apr 2002 12:26:41 -0400 > > > Would you like to merge some of these versions of regex? > > I'll try and check out GNU grep. Thanks. Could you please look at the latest CVS versions: http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/lib/regex.c http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/lib/regex.h http://savannah.gnu.org/cgi-bin/viewcvs/grep/grep/lib/posix/regex.h Please also look at the latest sources in fileutils. This integrates all the changes that I know of that occur in textutils, shellutils, and diffutils. It is quite close to what was in glibc before the recent major change to glibc. ftp://alpha.gnu.org/gnu/fetish/fileutils-4.1.8.tar.gz libiberty has a copy of regex.c that renames all external routines with an "x" prefix so they do not collide with the native regex routines or with other components regex routines. This sounds like useful functionality, though I think it should be enabled only if the user defines a configuration macro. libiberty may have other changes; I don't know. I don't know why the GCC and GDB versions of libiberty regex differ so greatly. It appears to me that the GDB versions are newer, but I suppose there could be useful changes in the GCC version too. http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/libiberty/regex.c?cvsroot=src http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/include/xregex.h?cvsroot=src http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/include/xregex2.h?cvsroot=src http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/include/xregex.h http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/include/xregex2.h http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/libiberty/regex.c There are probably other versions of regex.c floating around, but I think these are the major ones outside Emacs and glibc 2.2.