* lib/regex_internal.h (re_sub_match_top_t): Remove unused member
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 31 Aug 2005 18:08:34 +0000 (18:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 31 Aug 2005 18:08:34 +0000 (18:08 +0000)
next_last_offset.
(struct re_dfa_t): Remove unused member states_alloc.
* lib/regcomp.c (init_dfa): Don't initialize unused members.
* config/srclist.txt: Add glibc bug 1273.

config/ChangeLog
config/srclist.txt
lib/ChangeLog
lib/regcomp.c
lib/regex_internal.h

index 0c8cb68..1fce8ca 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * srclist.txt: Add glibc bug 1273.
+
 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        * srclist.txt: Add glibc bugs 1241, 1245.
index 1f31dba..f7e9fad 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.88 2005-08-26 21:47:51 eggert Exp $
+# $Id: srclist.txt,v 1.89 2005-08-31 18:08:34 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -102,6 +102,7 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1237
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1240
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1241
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1273
 #$LIBCSRC/posix/regcomp.c              lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1238
@@ -132,6 +133,7 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1241
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1245
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1248
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1273
 #$LIBCSRC/posix/regex_internal.h               lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1216
index 5d57371..5b19a88 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * regex_internal.h (re_sub_match_top_t): Remove unused member
+       next_last_offset.
+       (struct re_dfa_t): Remove unused member states_alloc.
+       * regcomp.c (init_dfa): Don't initialize unused members.
+
 2005-08-31  Bruno Haible  <bruno@clisp.org>
 
        * strstr.c: Include <stddef.h>, for NULL.
index 28e677b..ed71051 100644 (file)
@@ -811,8 +811,6 @@ init_dfa (re_dfa_t *dfa, int pat_len)
   dfa->nodes_alloc = pat_len + 1;
   dfa->nodes = re_malloc (re_token_t, dfa->nodes_alloc);
 
-  dfa->states_alloc = pat_len + 1;
-
   /*  table_size = 2 ^ ceil(log pat_len) */
   for (table_size = 1; table_size > 0; table_size <<= 1)
     if (table_size > pat_len)
index cadafdd..2aba16a 100644 (file)
@@ -529,7 +529,6 @@ typedef struct
 {
   int str_idx;
   int node;
-  int next_last_offset;
   state_array_t *path;
   int alasts; /* Allocation size of LASTS.  */
   int nlasts; /* The number of LASTS.  */
@@ -620,7 +619,6 @@ struct re_dfa_t
 
   /* number of subexpressions `re_nsub' is in regex_t.  */
   unsigned int state_hash_mask;
-  int states_alloc;
   int init_node;
   int nbackref; /* The number of backreference in this dfa.  */