/* make a new node as following tree: new_node | node1__ \ node2  */
static struct finsh_node * make_sys_node(uint8_t type, struct finsh_node *node1, struct finsh_node *node2)
/* make a new node as following tree: new_node | node1__ \ node2  */
static struct finsh_node * make_sys_node(uint8_t type, struct finsh_node *node1, struct finsh_node *node2)
{
    struct finsh_node* node;
    node = finsh_node_allocate(type);
    if ((node1 != NULL) && (node != NULL))
    {
        finsh_node_child(node) = node1;
        finsh_node_sibling(node1) = node2;
    }
    else finsh_error_set(FINSH_ERROR_NULL_NODE);
    return node;
}