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:
@@ -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 ] )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user