bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib regex problem


From: Jim Meyering
Subject: Re: gnulib regex problem
Date: Fri, 17 Mar 2006 12:51:03 +0100

Paul Eggert <address@hidden> wrote:
...
> 2006-03-16  Paul Eggert  <address@hidden>
>
>       * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
>       Typedef to long int, not to off_, as POSIX will likely change
>       in that direction.
>
>       * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
>       no longer needs it.  Instead, check that regoff_t is as least
>       as wide as ptrdiff_t.
>
>       Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
>       so that our regex.h stays compatible with the installed regex.
>       This is helpful for installers who configure --without-included-regex.
>       Problem reported by Emanuele Giaquinta.

I needed this additional change.
Applied in both gnulib and coreutils:

2006-03-17  Jim Meyering  <address@hidden>

        * regex.m4 (gl_REGEX): Fix typo in last change:
        s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.

Index: m4/regex.m4
===================================================================
RCS file: /fetish/cu/m4/regex.m4,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -u -r1.43 -r1.44
--- m4/regex.m4 17 Mar 2006 07:33:06 -0000      1.43
+++ m4/regex.m4 17 Mar 2006 10:07:28 -0000      1.44
@@ -1,4 +1,4 @@
-#serial 32
+#serial 33
 
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 # 2006 Free Software Foundation, Inc.
@@ -116,7 +116,7 @@ AC_DEFUN([gl_REGEX],
   esac
 
   if test $ac_use_included_regex = yes; then
-    AC_DEFINE([_REGEX_WIDE_OFFSETS], 1,
+    AC_DEFINE([_REGEX_LARGE_OFFSETS], 1,
       [Define if you want regoff_t to be at least as wide POSIX requires.])
     AC_DEFINE([re_syntax_options], [rpl_re_syntax_options],
       [Define to rpl_re_syntax_options if the replacement should be used.])




reply via email to

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