diff options
Diffstat (limited to 'src/misc/vec/vecVec.h')
-rw-r--r-- | src/misc/vec/vecVec.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/misc/vec/vecVec.h b/src/misc/vec/vecVec.h index f72bd93c..e0f18983 100644 --- a/src/misc/vec/vecVec.h +++ b/src/misc/vec/vecVec.h @@ -597,17 +597,19 @@ static inline void Vec_VecSort( Vec_Vec_t * p, int fReverse ) SeeAlso [] ***********************************************************************/ -static inline void Vec_VecPrintInt( Vec_Vec_t * p ) +static inline void Vec_VecPrintInt( Vec_Vec_t * p, int fSkipSingles ) { int i, k, Entry; - printf( "Integers by level" ); Vec_VecForEachEntryInt( p, Entry, i, k ) { + if ( Vec_VecLevelSize(p, i) == 1 ) + break; if ( k == 0 ) - printf( "\n%3d : ", i ); - printf( "%6d ", Entry ); + printf( " %4d : {", i ); + printf( " %d", Entry ); + if ( k == Vec_VecLevelSize(p, i) - 1 ) + printf( " }\n" ); } - printf( "\n" ); } |