| 768 | } |
| 769 | |
| 770 | xode xode_dup_frompool(xode_pool p, xode x) |
| 771 | { |
| 772 | xode x2; |
| 773 | |
| 774 | if(x == NULL) |
| 775 | return NULL; |
| 776 | |
| 777 | x2 = xode_new_frompool(p, xode_get_name(x)); |
| 778 | |
| 779 | if (xode_has_attribs(x)) |
| 780 | xode_insert_node(x2, xode_get_firstattrib(x)); |
| 781 | if (xode_has_children(x)) |
| 782 | xode_insert_node(x2, xode_get_firstchild(x)); |
| 783 | |
| 784 | return x2; |
| 785 | } |
| 786 | |
| 787 | xode xode_wrap(xode x,const char *wrapper) |
| 788 | { |
nothing calls this directly
no test coverage detected