Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 59ac912ef8457e32c54b99e2cadcfbb8e442b1b3 |
|---|---|
| Date: | 2008-11-14 15:13:33 |
| User: | stephan |
| Comment: | removed a now-bogus log message |
Changes
Changes to src/c11n.c
| Old (086c5ad92b49d852) | New (3f5f0b4866c0cdf1) | |||
|---|---|---|---|---|
| 1 | /** | 1 | /** | |
| 2 | This the main implementation file for the c11n core library. Some | 2 | This the main implementation file for the c11n core library. Some | |
| 3 | maintenance notes: | 3 | maintenance notes: | |
| 4 | 4 | |||
| 5 | - NO dependency on any code from the c11n_io API is allowed. | 5 | - NO dependency on any code from the c11n_io API is allowed. | |
| 748 hidden lines | ||||
| 754 | } | 754 | } | |
| 755 | 755 | |||
| 756 | c11n_node * c11n_node_children_search( c11n_node * p, c11n_node_predicate_f f, void const * fArg ) | 756 | c11n_node * c11n_node_children_search( c11n_node * p, c11n_node_predicate_f f, void const * fArg ) | |
| 757 | { | 757 | { | |
| 758 | if( ! p || !f ) return 0; | 758 | if( ! p || !f ) return 0; | |
| 759 | C11N_LOG(C11N_LOG_FIXME)("This is untested code! If it works for you, remove this line!"); | < | ||
| 760 | c11n_node_iter it = c11n_node_children_iter(p); | 759 | c11n_node_iter it = c11n_node_children_iter(p); | |
| 761 | while( c11n_node_iter_isvalid(&it) ) | 760 | while( c11n_node_iter_isvalid(&it) ) | |
| 762 | { | 761 | { | |
| 763 | if( f( it.node, fArg ) ) return it.node; | 762 | if( f( it.node, fArg ) ) return it.node; | |
| 764 | else if( ! c11n_node_iter_next(&it) ) break; | 763 | else if( ! c11n_node_iter_next(&it) ) break; | |
| 766 | return 0; | 765 | return 0; | |
| 767 | } | 766 | } | |
| 768 | c11n_node const * c11n_node_children_search_c( c11n_node const * p, c11n_node_predicate_f f, void const * fArg ) | 767 | c11n_node const * c11n_node_children_search_c( c11n_node const * p, c11n_node_predicate_f f, void const * fArg ) | |
| 769 | { | 768 | { | |
| 770 | if( ! p || !f ) return 0; | 769 | if( ! p || !f ) return 0; | |
| 771 | C11N_LOG(C11N_LOG_FIXME)("This is untested code! If it works for you, remove this line!"); | < | ||
| 772 | c11n_node_iter_c it = c11n_node_children_iter_c(p); | 770 | c11n_node_iter_c it = c11n_node_children_iter_c(p); | |
| 773 | while( c11n_node_iter_isvalid_c(&it) ) | 771 | while( c11n_node_iter_isvalid_c(&it) ) | |
| 774 | { | 772 | { | |
| 775 | if( f( it.node, fArg ) ) return it.node; | 773 | if( f( it.node, fArg ) ) return it.node; | |
| 776 | else if( ! c11n_node_iter_next_c(&it) ) break; | 774 | else if( ! c11n_node_iter_next_c(&it) ) break; | |
| 725 hidden lines | ||||
| 1502 | #undef C11N_MARSHALLER_INIT | 1500 | #undef C11N_MARSHALLER_INIT | |
| 1503 | #undef C11N_MARSHALLER_API_DEFAULT | 1501 | #undef C11N_MARSHALLER_API_DEFAULT | |
| 1504 | #ifdef __cplusplus | 1502 | #ifdef __cplusplus | |
| 1505 | } /* extern "C" */ | 1503 | } /* extern "C" */ | |
| 1506 | #endif | 1504 | #endif | |