2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

Boost Jam cleanup - removed defective header parsing code seemingly intended for stripping trailing newline characters from read lines. This code has never done anything since it was originally added so there seems no reason to 'fix' it to do what it 'seems to have been intended to do'.

[SVN r79674]
This commit is contained in:
Jurko Gospodnetić
2012-07-22 16:05:58 +00:00
parent fde452f38f
commit 64494521bf

View File

@@ -147,16 +147,6 @@ LIST * headers1( LIST * l, OBJECT * file, int rec, regexp * re[] )
while ( fgets( buf, sizeof( buf ), f ) )
{
int size = strlen( buf );
/* Remove trailing \r and \n, if any. */
while ( ( size > 0 ) &&
( buf[ size - 1 ] == '\n' ) &&
( buf[ size - 1 ] == '\r' ) )
{
buf[ size - 1 ] = '\0';
--size;
}
for ( i = 0; i < rec; ++i )
if ( regexec( re[ i ], buf ) && re[ i ]->startp[ 1 ] )
{