[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot compile regex.c from textutils 2.0.18 on Solaris 8
From: |
Jim Meyering |
Subject: |
Re: Cannot compile regex.c from textutils 2.0.18 on Solaris 8 |
Date: |
Wed, 05 Dec 2001 11:02:11 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) |
Blair Zajac <address@hidden> wrote:
...
> In file included from regex.c:635:
> regex.c: In function `byte_re_match_2_internal':
> regex.c:6109: syntax error before `ptr'
> regex.c:6109: `ptr' undeclared (first use in this function)
Thanks for the report.
Here's a fix:
[!__BOUNDED_POINTERS__]: Define away __bounded, __unbounded, and __ptrvalue.
=============================================================================
Index: lib/regex.c
===================================================================
RCS file: /fetish/textutils/lib/regex.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -p -u -r1.75 -r1.76
--- lib/regex.c 2001/11/27 21:34:15 1.75
+++ lib/regex.c 2001/12/02 17:46:54 1.76
@@ -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