From 8c90fa035653fa1b56ed3fb59aae9220646d0cd4 Mon Sep 17 00:00:00 2001 From: tTh Date: Tue, 13 Nov 2018 13:20:35 +0100 Subject: [PATCH] ready for the next step ? --- .gitignore | 5 +++++ bubulles.h | 5 +++-- tbb.c | 8 +++++--- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..627be9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ + +*.o + +tbb + diff --git a/bubulles.h b/bubulles.h index 92901a4..8b1fd0e 100644 --- a/bubulles.h +++ b/bubulles.h @@ -4,10 +4,11 @@ /* --------------------------------------------------------------------- */ -#define LIBBB_VERSION 40 +#define LIBBB_VERSION 48 #define SZ_BUBULLE_TEXT 51 /* arbitrary value */ +/* a 3d space coordinate */ typedef struct { double x, y, z; unsigned long reserved; @@ -54,7 +55,7 @@ int niceprint_bubulle(Bubulle *what, int unused); int bubulles_to_data(char *fname, char *title, BBList *bbl, int k); /* --------------------------------------------------------------------- */ - +/* sometime we want to look at the bounding box */ typedef struct { double minX, minY, minZ; double maxX, maxY, maxZ; diff --git a/tbb.c b/tbb.c index ecef4d3..1ed9251 100644 --- a/tbb.c +++ b/tbb.c @@ -101,11 +101,13 @@ int main(int argc, char *argv[]) { int foo; +printf("*** Bubulles Testing -- %s %s\n", __DATE__, __TIME__); + bubulles_version(0); -// test_alloc_free(5); -// test_push_pop(2000); -// test_cleanfill_my_bublist(999); +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);