diff --git a/Makefile b/Makefile index 45c6f6c..d0c0d02 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ CC = gcc -OPT = -Wall -g -O3 -DDEBUG_LEVEL=0 -DMUST_ABORT=0 +OPT = -Wall -g -pg -DDEBUG_LEVEL=0 -DMUST_ABORT=0 libbubulles.a: bubulles.o edges.o ar r $@ $? diff --git a/bubulles.h b/bubulles.h index 361585a..bfda0e1 100644 --- a/bubulles.h +++ b/bubulles.h @@ -4,7 +4,7 @@ /* --------------------------------------------------------------------- */ -#define LIBBB_VERSION 62 +#define LIBBB_VERSION 63 #define SZ_BUBULLE_TEXT 81 /* arbitrary value */ diff --git a/tbb.c b/tbb.c index f6b8aec..51ef39f 100644 --- a/tbb.c +++ b/tbb.c @@ -6,7 +6,7 @@ #include #include - +#include #include "bubulles.h" #include "edges.h" @@ -27,19 +27,20 @@ print_edgelist_desc(list, 0); foo = push_an_edge(list, 13, 37); fprintf(stderr, " push edge -> %d\n", foo); foo = push_an_edge(list, 24, 36); +fprintf(stderr, " push edge -> %d\n", foo); -foo = print_the_edges(list, 0); +foo = print_the_edges(stdout, list, 0); for (idx=0; idx %d\n", e0, e1, foo); + fprintf(stderr, "push %d (%d, %d) -> %d\n", idx, e0, e1, foo); break; } } -foo = print_the_edges(list, 0); +foo = print_the_edges(stdout, list, 0); puts(""); foo = free_edgelist(list, 0); fprintf(stderr, " free list -> %d\n", foo); @@ -59,7 +60,7 @@ int e0, e1; fprintf(stderr, "============== %s %7d ===========\n", __func__, k); -list = alloc_edgelist("BIG!", k, 0); +list = alloc_edgelist("gloubigoulba", k, 0); if (NULL == list) { fprintf(stderr, "%s: epic fail\n", __func__); abort(); @@ -75,7 +76,7 @@ for (idx=0; idx %d\n", __func__, foo); @@ -189,6 +190,8 @@ fprintf(stderr, "*** Bubulles Testing %s %s\n\n", __DATE__, __TIME__); bubulles_version(0); +srand(getpid()); /* INIT RANDOM */ + #if (0) test_alloc_free(5); test_push_pop(20000); @@ -197,9 +200,9 @@ foo = test_peek_poke(5000); fprintf(stderr, "test peek/poke -> %d\n", foo); #endif -foo = essai_des_edges_A(25); -fprintf(stderr, "test A des edges -> %d\n", foo); -foo = essai_des_edges_B(10000); +// XXX foo = essai_des_edges_A(25); +// XXX fprintf(stderr, "test A des edges -> %d\n", foo); +foo = essai_des_edges_B(5000); fprintf(stderr, "test B des edges -> %d\n", foo); return 0;