projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing "hashvector_next"
[rrq/rrqmisc.git]
/
tests
/
vectortests.c
diff --git
a/tests/vectortests.c
b/tests/vectortests.c
index f85f7ccf8dd7940e25180f686ecc0f07bfc70796..b596cfb4cc3813bd7b509d9815b1ad991166fa2a 100644
(file)
--- a/
tests/vectortests.c
+++ b/
tests/vectortests.c
@@
-6,12
+6,7
@@
#include <string.h>
#include <vector.h>
#include <string.h>
#include <vector.h>
-static int LINE;
-
-#define max(a,b) ((a>b)?a:b)
-#define OUT(...) { \
- fprintf( stderr, __VA_ARGS__ ); \
-}
+#define OUT(...) fprintf( stderr, __VA_ARGS__ )
// dump an item; return 0 to stop
static void itemdump(const vector_index index,const void *slot) {
// dump an item; return 0 to stop
static void itemdump(const vector_index index,const void *slot) {
@@
-214,7
+209,7
@@
int main(int argc,char **argv) {
// vector_index start,
// int (*itemfn)(vector_index,void *item,void *data),
// void *data);
// vector_index start,
// int (*itemfn)(vector_index,void *item,void *data),
// void *data);
- OUT( "showing
all slots
\n" );
+ OUT( "showing
slots from 4 to 12
\n" );
vector_iterate( &v2, 4, itemiter, 0 );
// void *vector_bsearch(vector *pv,vector_index *index,const void *key,
vector_iterate( &v2, 4, itemiter, 0 );
// void *vector_bsearch(vector *pv,vector_index *index,const void *key,