]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Copy regex_internal.h from Gnulib
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Aug 2020 06:45:27 +0000 (23:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Aug 2020 06:47:01 +0000 (23:47 -0700)
Sync this file from Gnulib, thus incorporating the following
fix for a bug with regexps with 16 or more subexpressions:
* posix/regex_internal.h (struct re_backref_cache_entry):
Use bitset_word_t as the type of eps_reachable_subexps_map,
instead of unsigned short int.  This fixes a bug I introduced
to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
Remove unused member 'unused'.

posix/regex_internal.h

index e9aa74bf33bc43d0238cb596fcd8bf0b5fef9852..8c42586c4212e34887faf6231a607a42397094ab 100644 (file)
@@ -591,9 +591,8 @@ struct re_backref_cache_entry
   Idx str_idx;
   Idx subexp_from;
   Idx subexp_to;
+  bitset_word_t eps_reachable_subexps_map;
   char more;
-  char unused;
-  unsigned short int eps_reachable_subexps_map;
 };
 
 typedef struct