bug-gnulib
[Top][All Lists]
Advanced

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

Re: regex problems


From: Paul Eggert
Subject: Re: regex problems
Date: Sat, 20 Aug 2005 20:33:20 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Sam Steingold <address@hidden> writes:

> Would you please also consider the 2 patches in
> <http://article.gmane.org/gmane.comp.lib.gnulib.bugs:3996>

OK, I installed the first patch, as follows:

2005-08-20  Paul Eggert  <address@hidden>

        * config/srclist.txt: Add glibc bug 1226.
        * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
        since some compilers warn about it otherwise.

--- config/srclist.txt  21 Aug 2005 00:43:34 -0000      1.76
+++ config/srclist.txt  21 Aug 2005 03:30:38 -0000
@@ -111,6 +111,7 @@ $LIBCSRC/posix/regex.c                      lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1215
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1218
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1220
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1226
 #$LIBCSRC/posix/regex_internal.c               lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1054
--- lib/regex_internal.c        20 Aug 2005 07:42:15 -0000      1.4
+++ lib/regex_internal.c        21 Aug 2005 03:30:38 -0000
@@ -34,7 +34,7 @@ static re_dfastate_t *create_cd_newstate
                                          const re_node_set *nodes,
                                          unsigned int context,
                                          unsigned int hash) internal_function;
-static unsigned int inline calc_state_hash (const re_node_set *nodes,
+static inline unsigned int calc_state_hash (const re_node_set *nodes,
                                            unsigned int context) 
internal_function;
 
 /* Functions for string operation.  */
@@ -1353,7 +1353,7 @@ re_dfa_add_node (re_dfa_t *dfa, re_token
   return dfa->nodes_len++;
 }
 
-static unsigned int inline
+static inline unsigned int
 internal_function
 calc_state_hash (const re_node_set *nodes, unsigned int context)
 {




reply via email to

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