| 2813 | } |
| 2814 | |
| 2815 | static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source) |
| 2816 | { |
| 2817 | size_t i = 0; |
| 2818 | dest->itext_keys = 0; |
| 2819 | dest->itext_langtags = 0; |
| 2820 | dest->itext_transkeys = 0; |
| 2821 | dest->itext_strings = 0; |
| 2822 | dest->itext_num = 0; |
| 2823 | for(i = 0; i < source->itext_num; i++) |
| 2824 | { |
| 2825 | CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i], |
| 2826 | source->itext_transkeys[i], source->itext_strings[i])); |
| 2827 | } |
| 2828 | return 0; |
| 2829 | } |
| 2830 | |
| 2831 | void lodepng_clear_itext(LodePNGInfo* info) |
| 2832 | { |
no test coverage detected