summaryrefslogtreecommitdiff
path: root/src/locale/iconv_close.c
AgeCommit message (Collapse)AuthorLines
2017-11-10add iconv framework for decoding stateful encodingsRich Felker-0/+2
assuming pointers obtained from malloc have some nonzero alignment, repurpose the low bit of iconv_t as an indicator that the descriptor is a stateless value representing the source and destination character encodings.
2017-11-10move iconv_close to its own translation unitRich Felker-0/+6
this is in preparation to support stateful conversion descriptors, which are necessarily allocated and thus must be freed in iconv_close. putting it in a separate TU will avoid pulling in free if iconv_close is not referenced.