AVLTree
view release on metacpan or search on metacpan
MODULE = AVLTree PACKAGE = AVLTree
void
new ( class, cmp_fn )
char* class
SV* cmp_fn
PROTOTYPE: $$
PREINIT:
AVLTree* tree;
AVLTrav* trav;
PPCODE:
{
SV* self;
HV* hash = newHV();
TRACEME("Registering callback for comparison");
if(callback == (SV*)NULL)
callback = newSVsv(cmp_fn);
else
SvSetSV(callback, cmp_fn);
( run in 1.397 second using v1.01-cache-2.11-cpan-71847e10f99 )