| 2778 | } |
| 2779 | |
| 2780 | static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source) |
| 2781 | { |
| 2782 | size_t i = 0; |
| 2783 | dest->itext_keys = 0; |
| 2784 | dest->itext_langtags = 0; |
| 2785 | dest->itext_transkeys = 0; |
| 2786 | dest->itext_strings = 0; |
| 2787 | dest->itext_num = 0; |
| 2788 | for(i = 0; i < source->itext_num; i++) |
| 2789 | { |
| 2790 | CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i], |
| 2791 | source->itext_transkeys[i], source->itext_strings[i])); |
| 2792 | } |
| 2793 | return 0; |
| 2794 | } |
| 2795 | |
| 2796 | void lodepng_clear_itext(LodePNGInfo* info) |
| 2797 | { |
no test coverage detected