changes for actubent - not compiling!
FossilOrigin-Name: adf99bdc2ee784a4acf4066b90c33fb1e6124e8c49c255d3fd5011bb33852d52
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
#include "mavl.h"
|
||||
|
||||
void *mavl_replace(struct mavl *t,void *data){
|
||||
union mavldata *mavl_replace(struct mavl *t,union mavldata *data){
|
||||
struct mavlnode * node = mavl_get_node(t,data);
|
||||
if (node){
|
||||
t->del(node->data);
|
||||
return node->data=data;
|
||||
t->del(&node->data);
|
||||
node->data=*data;
|
||||
return &node->data;
|
||||
}
|
||||
return mavl_add(t,data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user