#include <_PDCLIB_encoding.h>
static bool latin1toc32(
- char32_t **restrict p_outbuf,
- size_t *restrict p_outsz,
- const char **restrict p_inbuf,
- size_t *restrict p_insz,
- mbstate_t *restrict p_ps
+ char32_t *restrict *restrict p_outbuf,
+ size_t *restrict p_outsz,
+ const char *restrict *restrict p_inbuf,
+ size_t *restrict p_insz,
+ mbstate_t *restrict p_ps
)
{
while(*p_outsz && *p_insz) {
}
static bool c32tolatin1(
- char **restrict p_outbuf,
- size_t *restrict p_outsz,
- const char32_t **restrict p_inbuf,
- size_t *restrict p_insz,
- mbstate_t *restrict p_ps
+ char *restrict *restrict p_outbuf,
+ size_t *restrict p_outsz,
+ const char32_t *restrict *restrict p_inbuf,
+ size_t *restrict p_insz,
+ mbstate_t *restrict p_ps
)
{
while(*p_outsz && *p_insz) {
return true;
}
-_PDCLIB_charcodec_t _PDCLIB_latin1_codec = {
+struct _PDCLIB_charcodec _PDCLIB_latin1_codec = {
.__mbstoc32s = latin1toc32,
.__c32stombs = c32tolatin1,
+ .__mb_max = 1,
};
#endif