WIP: Construction itérative de l'arbre. _append() et _set() dans iterate_node() (cleaning +)
This commit is contained in:
parent
d9745c0f6e
commit
aa5ca0711f
|
@ -90,21 +90,18 @@ create_model (void)
|
||||||
item_0 = O->children;
|
item_0 = O->children;
|
||||||
|
|
||||||
while (item_0->label) {
|
while (item_0->label) {
|
||||||
printf("item_0 = %s\n", item_0->label);
|
|
||||||
iterate_node(model, &iter_0, item_0, NULL);
|
iterate_node(model, &iter_0, item_0, NULL);
|
||||||
|
|
||||||
if (item_0->children) {
|
if (item_0->children) {
|
||||||
item_1 = item_0->children;
|
item_1 = item_0->children;
|
||||||
|
|
||||||
while (item_1->label) {
|
while (item_1->label) {
|
||||||
printf("[case item1 %s]\n",item_1->label);
|
|
||||||
iterate_node(model, &iter_1, item_1, &iter_0);
|
iterate_node(model, &iter_1, item_1, &iter_0);
|
||||||
|
|
||||||
if (item_1->children) {
|
if (item_1->children) {
|
||||||
item_2 = item_1->children;
|
item_2 = item_1->children;
|
||||||
|
|
||||||
while (item_2->label) {
|
while (item_2->label) {
|
||||||
printf("[case item2 %s]\n",item_2->label);
|
|
||||||
iterate_node(model, &iter_2, item_2, &iter_1);
|
iterate_node(model, &iter_2, item_2, &iter_1);
|
||||||
item_2++;
|
item_2++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue