[PATCH] Optimize also UTF-8 mb chars in regexs, a small optimization for regexec.c
Ulrich Drepper
drepper@redhat.com
Tue Nov 18 07:25:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> 2003-11-17 Jakub Jelinek <jakub@redhat.com>
>
> * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
> well.
> * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
> followed by dup operator is expected to be optimized.
>
> * posix/regexec.c (check_node_accept_bytes): Move nrules and j
> variables to the block where they are only used, initialize
> nrules only immediately before using it.
I've applied the patch. Thanks,
- --
â§ Ulrich Drepper â§ Red Hat, Inc. â§ 444 Castro St â§ Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/uclF2ijCOnn/RHQRAr1kAJ9n7bkBUWIHjzIkd7F3TFbklG+SwQCgiOV/
MNc8a5hpPBalNzflLLhDXd4=
=Gwct
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list