mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Fix up C++-isms in C code.
[SVN r21239]
This commit is contained in:
@@ -32,22 +32,24 @@ LIST *regex_transform( PARSE *parse, FRAME *frame )
|
||||
|
||||
|
||||
/* Result is cached and intentionally never freed */
|
||||
regexp *re = regex_compile( pattern->string );
|
||||
|
||||
for(; l; l = l->next)
|
||||
{
|
||||
if( regexec( re, l->string ) )
|
||||
regexp *re = regex_compile( pattern->string );
|
||||
|
||||
for(; l; l = l->next)
|
||||
{
|
||||
if (re->startp[1])
|
||||
if( regexec( re, l->string ) )
|
||||
{
|
||||
string_append_range( buf, re->startp[1], re->endp[1] );
|
||||
result = list_new( result, newstr( buf->value ) );
|
||||
string_truncate( buf, 0 );
|
||||
if (re->startp[1])
|
||||
{
|
||||
string_append_range( buf, re->startp[1], re->endp[1] );
|
||||
result = list_new( result, newstr( buf->value ) );
|
||||
string_truncate( buf, 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
string_free( buf );
|
||||
}
|
||||
string_free( buf );
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user