| 535 | } |
| 536 | |
| 537 | int map_first( map_t map, map_iterator_t * it) |
| 538 | { |
| 539 | if( map == NULL || it == NULL ) |
| 540 | return -1; |
| 541 | |
| 542 | it->map = map; |
| 543 | |
| 544 | it->node = map->avl_root; |
| 545 | |
| 546 | if( it->node ) |
| 547 | { |
| 548 | while( it->node->avl_link[0] ) |
| 549 | it->node = it->node->avl_link[0]; |
| 550 | } |
| 551 | |
| 552 | return 0; |
| 553 | } |
| 554 | |
| 555 | |
| 556 | int map_last( map_t map, map_iterator_t * it) |
no outgoing calls
no test coverage detected