]> git.ipfire.org Git - thirdparty/glibc.git/commit - posix/regcomp.c
[BZ #544]
authorUlrich Drepper <drepper@redhat.com>
Thu, 18 Nov 2004 23:57:34 +0000 (23:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 18 Nov 2004 23:57:34 +0000 (23:57 +0000)
commitc06a6956a40a878fdbe319e4688196e7c990bf7a
treefee7b24f6276363e8b1f0e977231b413f9eb2fbf
parent1b1d36792e9d9c4ad9a67ad8bfc1a3be8f2104c1
[BZ #544]

Update.
2004-11-18  Jakub Jelinek  <jakub@redhat.com>

[BZ #544]
* posix/regex.h (RE_NO_SUB): New define.
* posix/regex_internal.h (OP_DELETED_SUBEXP): New.
(re_dfa_t): Add subexp_map.
* posix/regcomp.c (struct subexp_optimize): New type.
(optimize_subexps): New routine.
(re_compile_internal): Call it.
(re_compile_pattern): Set preg->no_sub to 1 if RE_NO_SUB.
(free_dfa_content): Free subexp_map.
(calc_inveclosure, calc_eclosure): Skip OP_DELETED_SUBEXP
nodes.
* posix/regexec.c (re_search_internal): If subexp_map
is not NULL, duplicate registers as needed.
* posix/Makefile: Add rules to build and run tst-regex2.
* posix/tst-regex2.c: New test.
* posix/rxspencer/tests: Fix last two tests (\0 -> \1).
Add some new tests for nested subexpressions.
ChangeLog
posix/Makefile
posix/regcomp.c
posix/regex.h
posix/regex_internal.h
posix/regexec.c
posix/rxspencer/tests
posix/tst-regex2.c [new file with mode: 0644]
stdio-common/vfprintf.c