1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "private.h"
- #include <assert.h>
- #define MAGIC_NUMBER 0x12345678
- void
- lub_bintree_iterator_init(lub_bintree_iterator_t * this,
- lub_bintree_t * tree, const void *clientnode)
- {
- if (clientnode != NULL) {
- this->tree = tree;
- this->key.magic = MAGIC_NUMBER;
-
- this->tree->getkeyFn(clientnode, &this->key);
-
- assert(this->key.magic == MAGIC_NUMBER);
- }
- }
|