ready for the next step ?

This commit is contained in:
tTh 2018-11-13 13:20:35 +01:00
parent 6dfe77cfea
commit 8c90fa0356
3 changed files with 13 additions and 5 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.o
tbb

View File

@ -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;

8
tbb.c
View File

@ -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);