[PATCH] simplify some regex code

Paolo Bonzini bonzini@gnu.org
Sat Dec 13 23:35:00 GMT 2003


This patch simplifies some conditionals by passing a token type directly to
the functions.

Tested against the sed regression test suite.

Paolo

2003-12-13 Paolo Bonzini <bonzini@gnu.org>
        * posix/regexec.c (find_subexp_node, check_arrival,
        check_arrival_add_next_nodes, check_arrival_expand_ecl,
        check_arrival_expand_ecl_sub, expand_bkref_cache):
        Rename the FL_OPEN parameter to TYPE, which is either
        OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex-fl_open-cleanup.patch
Type: application/octet-stream
Size: 7702 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20031213/93be5609/attachment.obj>


More information about the Libc-alpha mailing list