#include "vg_stdint.h"
#include "vg_io.h"
+#include "vg_log.h"
/*
* Anderson tree implementation with extensions:
for( int i=0; i<lvl; i++ )
{
- vg_log( " " );
+ vg_info( " " );
}
p_show( data );
- vg_log( " (%d) \n", t );
+ vg_info( " (%d) \n", t );
aatree_show_r( tree, ptnode->right, lvl+1, p_show );
}
for( int i=0; i<ptnode->level; i++ )
{
- vg_log( " " );
+ vg_info( " " );
}
p_show( data );
- vg_log( " (%d) \n", t );
+ vg_info( " (%d) \n", t );
aatree_show( tree, ptnode->right, p_show );
}
aatree_show_counts( tree, ptnode->left, lvl+1, ln, err, p_show, show );
- if( show ) vg_log( "%03d| ", *ln );
+ if( show ) vg_info( "%03d| ", *ln );
*ln = *ln +1;
if( show )
if( !aatree_verify( tree, t ) )
{
if( show )
- vg_log( "error\n" );
+ vg_info( "error\n" );
*err = 1;
}