bug-glibc
[Top][All Lists]
Advanced

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

Re: textutils-2.0.18 - undefined __unbounded in regex.c


From: Jim Meyering
Subject: Re: textutils-2.0.18 - undefined __unbounded in regex.c
Date: Sun, 02 Dec 2001 18:46:05 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu)

Hi,

Would you please change regex.c along these lines?

        * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
        __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.

Thanks,
Jim

--- posix/regex.c.~5~   Tue Nov 27 18:59:17 2001
+++ posix/regex.c       Sun Dec  2 18:37:49 2001
@@ -112,6 +112,13 @@
 #  define gettext_noop(String) String
 # endif
 
+/* Support for bounded pointers.  */
+# ifndef __BOUNDED_POINTERS__
+#  define __bounded      /* nothing */
+#  define __unbounded    /* nothing */
+#  define __ptrvalue     /* nothing */
+# endif
+
 /* The `emacs' switch turns on certain matching commands
    that make sense only in Emacs. */
 # ifdef emacs

"Uwe H. Steinfeld" <address@hidden> wrote:
> some systems do not #define __unbounded (e.g. Cygwin).
> I suggest to add the following patch to lib/regex.c
>
> Uwe
>
> --- ../textutils-2.0.18/lib/regex.c Wed Nov 28 07:57:52 2001
> +++ ./lib/regex.c Sun Dec  2 15:05:46 2001
> @@ -28,6 +28,10 @@
>  #undef _GNU_SOURCE
>  #define _GNU_SOURCE
>  
> +#ifndef __unbounded
> +# define __unbounded       /* NOTHING */
> +#endif
> +
>  #ifdef HAVE_CONFIG_H
>  # include <config.h>
>  #endif



reply via email to

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