Lines Matching refs:scd
143 struct stateful_cd *scd; in iconv_open() local
158 scd = malloc(sizeof *scd); in iconv_open()
159 if (!scd) return (iconv_t)-1; in iconv_open()
160 scd->base_cd = cd; in iconv_open()
161 scd->state = 0; in iconv_open()
162 cd = (iconv_t)scd; in iconv_open()
230 struct stateful_cd *scd=0; in iconv() local
232 scd = (void *)cd; in iconv()
233 cd = scd->base_cd; in iconv()
300 if (!scd->state) { in iconv()
303 scd->state = type==UCS2 in iconv()
309 type = scd->state; in iconv()
313 if (!scd->state) { in iconv()
316 scd->state = c==0xfffe0000 ? UTF_32LE : UTF_32BE; in iconv()
320 type = scd->state; in iconv()
372 case 'B': scd->state=0; continue; in iconv()
373 case 'J': scd->state=1; continue; in iconv()
374 case 'I': scd->state=4; continue; in iconv()
375 case 128+'@': scd->state=2; continue; in iconv()
376 case 128+'B': scd->state=3; continue; in iconv()
380 switch (scd->state) { in iconv()