* Side Effects:
* - a node is linked to the dictionary tree
*/
-static void
+static rb_dictionary_element *
rb_dictionary_link(rb_dictionary *dict,
rb_dictionary_element *delem)
{
dict->count--;
rb_free(delem);
+ delem = dict->root;
}
}
+
+ return delem;
}
/*
delem->key = key;
delem->data = data;
- rb_dictionary_link(dict, delem);
-
- return delem;
+ return rb_dictionary_link(dict, delem);
}
/*