bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about some fields in regex's re_pattern_buffer


From: Paolo Bonzini
Subject: Re: Question about some fields in regex's re_pattern_buffer
Date: Sun, 15 Aug 2010 09:45:09 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 08/14/2010 02:48 PM, Bruno Haible wrote:
>  re_set_registers is not documented; there's a note about this. I'd be
>  happy to write some documentation for that. There's also the technique
>  of re-using a registers data structure by NOT re_compile_fastmap, but
>  using the fastmap member of the struct directly. Finally, there's the
>  problem of the non-thread-safety of RE_NO_SUB which Paolo mentioned;
>  again, I can document that if we're not going to solve it immediately.
I can't comment on this. Paolo?

The non-thread-safety isn't only for RE_NO_SUB, but for all syntax options. RE_NO_SUB makes it worse only because it is _not_ a syntax option, but a setting to provide improved matching speed.

I think RE_NO_SUB should be documented, and a not on non-thread-safety of re_set_syntax_options should be added.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]