add xl_get_nodes and xl_get_path
This commit is contained in:
parent
515032d92a
commit
e8f00f4111
3 changed files with 93 additions and 2 deletions
|
|
@ -57,12 +57,17 @@ int main(int argc, char** argv) {
|
|||
n = h->pre;
|
||||
if(n != NULL) {
|
||||
while(n != NULL) {
|
||||
recursive(h, n, INDENT);
|
||||
// recursive(h, n, INDENT);
|
||||
n = n->next;
|
||||
}
|
||||
}
|
||||
|
||||
if(h->root != NULL) recursive(h, h->root, INDENT);
|
||||
// if(h->root != NULL) recursive(h, h->root, INDENT);
|
||||
|
||||
xl_node_t** r = xl_get_path(h->root, "book.title");
|
||||
int j;
|
||||
for(j = 0; r[j] != NULL; j++) recursive(h, r[j], INDENT);
|
||||
free(r);
|
||||
} else {
|
||||
int j;
|
||||
for(j = 0; j < INDENT; j++) printf(" ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue