Commit bd690078 authored by Duncan White's avatar Duncan White

k&r -> ansi + ONE BUG FIX - lengths of il3 and il4 were length(il2):-)

parent 57bbe5f5
......@@ -5,7 +5,7 @@
intlist int1, int2, int3;
test_intlist()
void test_intlist( void )
{
int1 = intlist_nil();
int2 = intlist_cons( 11, int1 );
......@@ -22,7 +22,7 @@ test_intlist()
}
test_illist()
void test_illist( void )
{
illist il1, il2, il3, il4;
......@@ -34,13 +34,13 @@ test_illist()
printf( "illists:\n" );
printf( "\n il1: len %d, ", length(il1) ); print_illist( stdout, il1 );
printf( "\n il2: len %d, ", length(il2) ); print_illist( stdout, il2 );
printf( "\n il3: len %d, ", length(il2) ); print_illist( stdout, il3 );
printf( "\n il4: len %d, ", length(il2) ); print_illist( stdout, il4 );
printf( "\n il3: len %d, ", length(il3) ); print_illist( stdout, il3 );
printf( "\n il4: len %d, ", length(il4) ); print_illist( stdout, il4 );
printf( "\n\n" );
}
test_idtree()
void test_idtree( void )
{
idtree id1, id2, id3, id4, id5, id6;
......@@ -62,10 +62,11 @@ test_idtree()
}
main()
int main( void )
{
init_cx();
test_intlist();
test_illist();
test_idtree();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment