2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
* 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:
Vladimir Prus
2002-04-10 08:43:22 +00:00
parent eb8d854e01
commit e47fac5252
2 changed files with 12 additions and 4 deletions

View File

@@ -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 );
}
/*

View File

@@ -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 );
}
/*