mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Fixes.
* lists.c (list_print): Do not output trailing whitespace. This change
is intended to make writing tests easier.
[SVN r13425]
This commit is contained in:
@@ -172,8 +172,12 @@ LIST * list_pop_front( LIST *l )
|
||||
void
|
||||
list_print( LIST *l )
|
||||
{
|
||||
for( ; l; l = list_next( l ) )
|
||||
printf( "%s ", l->string );
|
||||
LIST *p = 0;
|
||||
for( ; l; p = l, l = list_next( l ) )
|
||||
if ( p )
|
||||
printf( "%s ", p->string );
|
||||
if ( p )
|
||||
printf( "%s", p->string );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -172,8 +172,12 @@ LIST * list_pop_front( LIST *l )
|
||||
void
|
||||
list_print( LIST *l )
|
||||
{
|
||||
for( ; l; l = list_next( l ) )
|
||||
printf( "%s ", l->string );
|
||||
LIST *p = 0;
|
||||
for( ; l; p = l, l = list_next( l ) )
|
||||
if ( p )
|
||||
printf( "%s ", p->string );
|
||||
if ( p )
|
||||
printf( "%s", p->string );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user