mbf 77 maint/gnulib/lib/mbfile.h mbfile_multi_getc (struct mbchar *mbc, struct mbfile_multi *mbf) mbf 83 maint/gnulib/lib/mbfile.h if (mbf->eof_seen) mbf 87 maint/gnulib/lib/mbfile.h if (mbf->have_pushback) mbf 89 maint/gnulib/lib/mbfile.h mb_copy (mbc, &mbf->pushback); mbf 90 maint/gnulib/lib/mbfile.h mbf->have_pushback = false; mbf 95 maint/gnulib/lib/mbfile.h if (mbf->bufcount == 0) mbf 97 maint/gnulib/lib/mbfile.h int c = getc (mbf->fp); mbf 100 maint/gnulib/lib/mbfile.h mbf->eof_seen = true; mbf 103 maint/gnulib/lib/mbfile.h mbf->buf[0] = (unsigned char) c; mbf 104 maint/gnulib/lib/mbfile.h mbf->bufcount++; mbf 108 maint/gnulib/lib/mbfile.h if (mbf->bufcount == 1 && mbsinit (&mbf->state) && is_basic (mbf->buf[0])) mbf 113 maint/gnulib/lib/mbfile.h mbc->wc = mbc->buf[0] = mbf->buf[0]; mbf 117 maint/gnulib/lib/mbfile.h mbf->bufcount = 0; mbf 136 maint/gnulib/lib/mbfile.h mbstate_t backup_state = mbf->state; mbf 138 maint/gnulib/lib/mbfile.h bytes = mbrtowc (&mbc->wc, &mbf->buf[0], mbf->bufcount, &mbf->state); mbf 151 maint/gnulib/lib/mbfile.h mbf->state = backup_state; mbf 152 maint/gnulib/lib/mbfile.h if (mbf->bufcount == MBCHAR_BUF_SIZE) mbf 163 maint/gnulib/lib/mbfile.h int c = getc (mbf->fp); mbf 167 maint/gnulib/lib/mbfile.h mbf->eof_seen = true; mbf 168 maint/gnulib/lib/mbfile.h bytes = mbf->bufcount; mbf 172 maint/gnulib/lib/mbfile.h mbf->buf[mbf->bufcount] = (unsigned char) c; mbf 173 maint/gnulib/lib/mbfile.h mbf->bufcount++; mbf 182 maint/gnulib/lib/mbfile.h assert (mbf->buf[0] == '\0'); mbf 192 maint/gnulib/lib/mbfile.h memcpy (&mbc->buf[0], &mbf->buf[0], bytes); mbf 195 maint/gnulib/lib/mbfile.h mbf->bufcount -= bytes; mbf 196 maint/gnulib/lib/mbfile.h if (mbf->bufcount > 0) mbf 199 maint/gnulib/lib/mbfile.h unsigned int count = mbf->bufcount; mbf 200 maint/gnulib/lib/mbfile.h char *p = &mbf->buf[0]; mbf 220 maint/gnulib/lib/mbfile.h mbfile_multi_ungetc (const struct mbchar *mbc, struct mbfile_multi *mbf) mbf 222 maint/gnulib/lib/mbfile.h mb_copy (&mbf->pushback, mbc); mbf 223 maint/gnulib/lib/mbfile.h mbf->have_pushback = true; mbf 230 maint/gnulib/lib/mbfile.h #define mbf_init(mbf, stream) \ mbf 231 maint/gnulib/lib/mbfile.h ((mbf).fp = (stream), \ mbf 232 maint/gnulib/lib/mbfile.h (mbf).eof_seen = false, \ mbf 233 maint/gnulib/lib/mbfile.h (mbf).have_pushback = false, \ mbf 234 maint/gnulib/lib/mbfile.h memset (&(mbf).state, '\0', sizeof (mbstate_t)), \ mbf 235 maint/gnulib/lib/mbfile.h (mbf).bufcount = 0) mbf 237 maint/gnulib/lib/mbfile.h #define mbf_getc(mbc, mbf) mbfile_multi_getc (&(mbc), &(mbf)) mbf 239 maint/gnulib/lib/mbfile.h #define mbf_ungetc(mbc, mbf) mbfile_multi_ungetc (&(mbc), &(mbf))