Subversion Repositories PlanixRsrch.SVN

Compare Revisions

Ignore whitespace Rev 469 → Rev 470

/trunk/libmavl/mavliter_seek.c
43,11 → 43,10
if (rc==0){
i->stack[i->stack_ptr++] = i->cur->s[1];
return i->cur;
return mavlnode_dataptr(i->cur);
}
if (rc<0){
printf("Going left\n");
if (i->cur->s[0]){
/* push s[1] branch */
58,13 → 57,18
i->cur = i->cur->s[0];
}
else
return 0;
else {
return mavlnode_dataptr(i->cur);
}
}
else {
printf("Going right\n");
return NULL;
i->cur=i->cur->s[1];
if (i->cur->s[1]){
i->cur=i->cur->s[1];
}
else {
mavliter_next(i);
return mavlnode_dataptr(i->cur);
}
}
}
return NULL;