Function report |
Source Code:lib\radix-tree.c |
Create Date:2022-07-28 06:12:59 |
| Last Modify:2022-05-21 10:04:37 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:adix_tree_shrink - shrink radix tree to minimum height*@root radix tree root
Proto:static inline bool radix_tree_shrink(struct xarray *root)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xarray * | root |
| 480 | bool shrunk = false |
| 482 | cycle |
| 483 | node = Dependency order vs. p above. (xa_head) |
| 486 | If Not radix_tree_is_internal_node(node) Then Break |
| 488 | node = entry_to_node(node) |
| 494 | If count != 1 Then Break |
| 496 | child = Dependency order vs. p above. (slots[0]) |
| 497 | If Not child Then Break |
| 508 | If radix_tree_is_internal_node(child) Then NULL at top of tree = NULL |
| 540 | count = 0 |
| 541 | If Not radix_tree_is_internal_node(child) Then |
| 542 | slots[0] = RADIX_TREE_RETRY |
| 546 | radix_tree_node_free(node) |
| 547 | shrunk = true |
| 550 | Return shrunk |
| Name | Describe |
|---|---|
| delete_node |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |