[V8 MDL] How to use mdlAvlTree_initExtended ?

Hi,
I have to support an old project based on pure MDL. This code uses AVL Tree API even if not fully documented.

I need to change the simpler tree key with a more complex one and this is why I should replace mdlAvlTree_init with mdlAvlTree_initExtended.
But no documentation and no examples exist about mdlAvlTree_initExtended.

I just find the api signature below but the use of blockSize and signature arguments is not clear.


AvlTree *mdlAvlTree_initExtended
(
int keyType,
int (*compareFunc)(),
int blockSize,
int signature
);

I did few tests, setting blockSize argument to my key size (or even more) , but my code aborts with a "System fault 5" after the second mdlAvlTree_insertNode.

Did anybody ever use this function ? If so, can anybody explain how to use mdlAvlTree_initExtended or post an example ?

Thanks,

Marco

Parents Reply Children
No Data