svn commit: r225093 - in user/gabor/tre-integration:
contrib/tre/lib include
Gabor Kovesdan
gabor at FreeBSD.org
Wed Aug 24 23:41:03 UTC 2011
On 2011.08.23. 5:44, Andrey Chernov wrote:
> On Mon, Aug 22, 2011 at 11:19:20PM +0000, Gabor Kovesdan wrote:
>> Modified: user/gabor/tre-integration/include/regex.h
>> ==============================================================================
>> --- user/gabor/tre-integration/include/regex.h Mon Aug 22 23:15:15 2011 (r225092)
>> +++ user/gabor/tre-integration/include/regex.h Mon Aug 22 23:19:20 2011 (r225093)
>> @@ -110,6 +110,7 @@ typedef enum {
>> #define REG_PEND (REG_UNGREEDY<< 1)
>> #define REG_GNU (REG_PEND<< 1)
>> #define REG_WORD (REG_GNU<< 1)
>> +#define _REG_HEUR (REG_WORD<< 1)
> Not a good place. Next extension flag from TRE author or POSIX will break
> binary compatibility badly. It will be better to put it to the end of a
> word instead or don't use this field at all (converting to another
> internal function argument etc.), which is much safer.
Thanks for reviewing my changes and commenting!
This change was a semi-temporary solution. I'm wondering whether I
should remove the underscore and consider it a normal knob as it may be
useful outside TRE, however I cannot think of any concrete case. What do
you exactly mean by end of a word? Still, binary compatibility will
break if a new POSIX flag will be introduced because TRE already defines
some extra flags. I'm not quite sure which is the best solution.
Probably, I'll clean up my patches once I'm done and hopefully the TRE
author will be interested in integrating my changes so I'll discuss
these with him.
Gabor
More information about the svn-src-user
mailing list