- Timestamp:
- 2010-08-12T22:44:56Z (14 years ago)
- Branches:
- master
- Children:
- 91d6e91
- Parents:
- be7a180
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/xmltree.c
rbe7a180 rb46769d 550 550 } 551 551 552 /* Same, but at the beginning. */ 553 void xt_insert_child( struct xt_node *parent, struct xt_node *child ) 554 { 555 struct xt_node *node, *last; 556 557 for( node = child; node; node = node->next ) 558 { 559 if( node->parent != NULL ) 560 { 561 /* ERROR CONDITION: They seem to have a parent already??? */ 562 } 563 564 node->parent = parent; 565 last = node; 566 } 567 568 last->next = parent->children; 569 parent->children = child; 570 } 571 552 572 void xt_add_attr( struct xt_node *node, const char *key, const char *value ) 553 573 { -
lib/xmltree.h
rbe7a180 rb46769d 92 92 struct xt_node *xt_new_node( char *name, const char *text, struct xt_node *children ); 93 93 void xt_add_child( struct xt_node *parent, struct xt_node *child ); 94 void xt_insert_child( struct xt_node *parent, struct xt_node *child ); 94 95 void xt_add_attr( struct xt_node *node, const char *key, const char *value ); 95 96 int xt_remove_attr( struct xt_node *node, const char *key );
Note: See TracChangeset
for help on using the changeset viewer.