diff --git a/bubulles.c b/bubulles.c index cea23c1..873c940 100644 --- a/bubulles.c +++ b/bubulles.c @@ -227,10 +227,12 @@ fprintf(stderr, "*** %s : array at %p, sz %d\n", __func__, ar, bbl->size); #endif for (idx=0; idxfidx; idx++) { - fprintf(fp, "%11.6f %11.6f %11.6f", + fprintf(fp, "%12.6f %12.6f %12.6f", ar[idx].p.x, ar[idx].p.y, ar[idx].p.z); - if (flags & 0x01) fprintf(fp, " %11.6f", ar[idx].d); if (flags & 0x02) fprintf(fp, " %6d", ar[idx].gray); + if (flags & 0x01) fprintf(fp, " %12.6f", ar[idx].d); + if (flags & 0x02) fprintf(fp, " %6d", ar[idx].gray); + fputs("\n", fp); } fflush(fp); diff --git a/bubulles.h b/bubulles.h index 8b1fd0e..960bee1 100644 --- a/bubulles.h +++ b/bubulles.h @@ -4,7 +4,7 @@ /* --------------------------------------------------------------------- */ -#define LIBBB_VERSION 48 +#define LIBBB_VERSION 49 #define SZ_BUBULLE_TEXT 51 /* arbitrary value */ diff --git a/tbb.c b/tbb.c index bda1c8e..97f8bfa 100644 --- a/tbb.c +++ b/tbb.c @@ -106,6 +106,8 @@ printf("peek 3 -> %7d\n", foo); foo = niceprint_bubulle(&bubulle, 0); printf("niceprint -> %7d\n", foo); +free_bubulles(bublist, 0); + return 0; } /* --------------------------------------------------------------------- */ @@ -122,7 +124,10 @@ test_alloc_free(5); test_push_pop(2000); test_cleanfill_my_bublist(999); +/* foo = test_peek_poke(5000); fprintf(stderr, "test peek/poke -> %d\n", foo); +*/ + return 0; }