Re: [Patch] Rewrite regex matchers

2013-09-02 Thread Tim Shen
On Fri, Aug 30, 2013 at 10:04 PM, Tim Shen wrote: > I didn't use any tool to check that, but adjust it by hand. It > shouldn't break anything, but I'll test it again before committing. Tested under -m32, -m64 and debug mode and committed. -- Tim Shen

Re: [Patch] Rewrite regex matchers

2013-08-31 Thread Paolo Carlini
Hi, > wrote: >> Other than the test case (breaks on mingw32 target) this is looking >very sweet. > >Could you please show some details? I suppose he referred to the char/wchar_t split which I described... Thanks! Paolo

Re: [Patch] Rewrite regex matchers

2013-08-30 Thread Tim Shen
On Fri, Aug 30, 2013 at 9:26 AM, Paolo Carlini wrote: > Hi, > > On 08/30/2013 02:05 PM, Tim Shen wrote: >> >> + const _TraitsT&_M_traits; >> + _FlagT _M_flags; >> + bool _M_is_non_matching; >> + std::

Re: [Patch] Rewrite regex matchers

2013-08-30 Thread Jan-Benedict Glaw
On Fri, 2013-08-30 15:36:03 +0200, Jakub Jelinek wrote: > On Fri, Aug 30, 2013 at 03:26:59PM +0200, Paolo Carlini wrote: > > On 08/30/2013 02:05 PM, Tim Shen wrote: > > >+ const _TraitsT&_M_traits; > > >+ _FlagT _M_flags; > > >+ bool

Re: [Patch] Rewrite regex matchers

2013-08-30 Thread Jakub Jelinek
On Fri, Aug 30, 2013 at 03:26:59PM +0200, Paolo Carlini wrote: > Hi, > > On 08/30/2013 02:05 PM, Tim Shen wrote: > >+ const _TraitsT&_M_traits; > >+ _FlagT _M_flags; > >+ bool _M_is_non_matching; > >+

Re: [Patch] Rewrite regex matchers

2013-08-30 Thread Paolo Carlini
Hi, On 08/30/2013 02:05 PM, Tim Shen wrote: + const _TraitsT&_M_traits; + _FlagT _M_flags; + bool _M_is_non_matching; + std::set<_CharT> _M_char_set; + std::set> _M_range_set;

Re: [Patch] Rewrite regex matchers

2013-08-30 Thread Paolo Carlini
.. the testcase is not Ok. We want separate tests for char and wchar_t, in separate subdirs with the names 'char' and 'wchar_t'. In this way, the framework automatically helps us and doesn't try to run the latter for targets which don't have wchar_t. Eg, testsuite/21_strings is completely stru

[Patch] Rewrite regex matchers

2013-08-30 Thread Tim Shen
Rewrite matchers using structs instead of closures. It's more clear and easy to maintain now. Tested under -m32, -m64 and debug mode. Thanks! -- Tim Shen matchers.patch Description: Binary data