Identation
This commit is contained in:
10
mpc.c
10
mpc.c
@@ -2893,9 +2893,9 @@ mpc_ast_t *mpc_ast_traverse_next(mpc_ast_trav_t **trav) {
|
|||||||
case mpc_ast_trav_order_post:
|
case mpc_ast_trav_order_post:
|
||||||
ret = (*trav)->curr_node;
|
ret = (*trav)->curr_node;
|
||||||
|
|
||||||
/* Move up tree to the parent If the parent doesn't have any more
|
/* Move up tree to the parent If the parent doesn't have any more nodes,
|
||||||
* nodes, then this is the current node. If it does, move down to
|
* then this is the current node. If it does, move down to its left most
|
||||||
* its left most child. Also, free the previous traversal node */
|
* child. Also, free the previous traversal node */
|
||||||
to_free = *trav;
|
to_free = *trav;
|
||||||
*trav = (*trav)->parent;
|
*trav = (*trav)->parent;
|
||||||
free(to_free);
|
free(to_free);
|
||||||
@@ -2911,8 +2911,8 @@ mpc_ast_t *mpc_ast_traverse_next(mpc_ast_trav_t **trav) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If there are still more children, find the leftmost child from
|
/* If there are still more children, find the leftmost child from this
|
||||||
* this node */
|
* node */
|
||||||
while((*trav)->curr_node->children_num > 0) {
|
while((*trav)->curr_node->children_num > 0) {
|
||||||
n_trav = malloc(sizeof(mpc_ast_trav_t));
|
n_trav = malloc(sizeof(mpc_ast_trav_t));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user