Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149434
b: refs/heads/master
c: 27af1da
h: refs/heads/master
v: v3
  • Loading branch information
figo.zhang authored and Jiri Kosina committed Jun 12, 2009
1 parent 7c6975f commit 8b2c7b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19f594600110377ec4037fdf7fb93a25ec516212
refs/heads/master: 27af1da4b58675d5c6bacf9b7de9c2746687d272
8 changes: 4 additions & 4 deletions trunk/Documentation/rbtree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ Example:
}

/* Add new node and rebalance tree. */
rb_link_node(data->node, parent, new);
rb_insert_color(data->node, root);
rb_link_node(&data->node, parent, new);
rb_insert_color(&data->node, root);

return TRUE;
}
Expand All @@ -146,10 +146,10 @@ To remove an existing node from a tree, call:

Example:

struct mytype *data = mysearch(mytree, "walrus");
struct mytype *data = mysearch(&mytree, "walrus");

if (data) {
rb_erase(data->node, mytree);
rb_erase(&data->node, &mytree);
myfree(data);
}

Expand Down

0 comments on commit 8b2c7b4

Please sign in to comment.