Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
7ba34091
Commit
7ba34091
authored
Jan 16, 2011
by
Brad Hards
Committed by
Rusty Russell
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rbtree: spelling fixes
parent
a028f23e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ccan/rbtree/rbtree.c
ccan/rbtree/rbtree.c
+4
-4
No files found.
ccan/rbtree/rbtree.c
View file @
7ba34091
...
...
@@ -48,9 +48,9 @@ static int tree_destructor(trbt_tree_t *tree)
}
/* traverse the tree and remove the node destructor then delete it.
we dont want to use the existing destructor for the node
we don
'
t want to use the existing destructor for the node
since that will remove the nodes one by one from the tree.
since the entire tree will be completely destroyed we dont care
since the entire tree will be completely destroyed we don
'
t care
if it is inconsistent or unbalanced while freeing the
individual nodes
*/
...
...
@@ -489,7 +489,7 @@ delete_node(trbt_node_t *node)
Once the delete of the node is finished, we remove this dummy
node, which is simple to do since it is guaranteed that it will
still not have any children after the delete operation.
This is because we dont represent the leaf-nodes as actual nodes
This is because we don
'
t represent the leaf-nodes as actual nodes
in this implementation.
*/
if
(
!
child
)
{
...
...
@@ -528,7 +528,7 @@ delete_node(trbt_node_t *node)
This is simple since this dummy node originally had no children
and we are guaranteed that it will also not have any children
after the node has been deleted and any possible rotations
have occured.
have occur
r
ed.
The only special case is if this was the last node of the tree
in which case we have to reset the root to NULL as well.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment