Lines Matching defs:chcount

143 	int		chcount, flag_eof;
182 chcount = 0; flag_eof = 0;
199 _wd_getwc(&chcount, iop)))
201 if (_wd_ungetwc(&chcount, inchar, iop) == WEOF)
210 _wd_getwc(&chcount, iop)))
212 if (_wd_ungetwc(&chcount, inchar, iop)
217 if ((inchar = _wd_getwc(&chcount, iop)) == ch)
219 if (_wd_ungetwc(&chcount, inchar, iop) != WEOF) {
227 while (isspace(inchar = locgetc(chcount)))
229 if (locungetc(chcount, inchar) == EOF)
239 locgetc(chcount)))
241 if (locungetc(chcount, inchar) == EOF)
245 if ((inchar = locgetc(chcount)) == ch)
247 if (locungetc(chcount, inchar) != EOF) {
498 _wd_getwc(&chcount, iop)))
500 if (_wd_ungetwc(&chcount, inchar, iop) == WEOF)
515 while (isspace(inchar = locgetc(chcount)))
517 if (locungetc(chcount, inchar) == EOF)
535 size = wstring(&chcount, &flag_eof, stow,
538 size = string(&chcount, &flag_eof, stow,
544 size = wbrstring(&chcount, &flag_eof, stow,
550 size = brstring(&chcount, &flag_eof, stow,
555 size = string(&chcount, &flag_eof, stow,
565 *va_arg(args.ap, char *) = (char)chcount;
567 *va_arg(args.ap, short *) = (short)chcount;
569 *va_arg(args.ap, long *) = (long)chcount;
572 (long long) chcount;
574 *va_arg(args.ap, int *) = (int)chcount;
579 size = number(&chcount, &flag_eof, stow, (int)ch,
600 number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
727 (*chcount) += nread; /* Count characters read. */
728 c = locgetc((*chcount));
729 if (locungetc((*chcount), c) == EOF)
735 switch (c = locgetc((*chcount))) {
742 if ((c = locgetc((*chcount))) != '0')
752 if (((inchar = locgetc((*chcount))) == 'x') ||
754 lookahead = readchar(iop, chcount);
759 (void) locungetc((*chcount), lookahead);
768 (void) locungetc((*chcount), lookahead);
769 (void) locungetc((*chcount), inchar);
773 (void) locungetc((*chcount), inchar); /* Put it back. */
778 for (; --len >= 0; *np++ = (char)c, c = locgetc((*chcount))) {
818 if (locungetc((*chcount), c) == EOF)
825 /* can be pushed back on the input stream by locungetc((*chcount),) */
828 readchar(FILE *iop, int *chcount)
834 inchar = locgetc((*chcount));
839 (*chcount) += 1;
845 string(int *chcount, int *flag_eof, int stow, int type, int len, char *tab,
856 while ((ch = locgetc((*chcount))) != EOF &&
859 while ((ch = locgetc((*chcount))) != EOF &&
871 (*chcount) -= 1;
872 } else if (len > 0 && locungetc((*chcount), ch) == EOF)
976 wstring(int *chcount, int *flag_eof, int stow, int type,
988 while (((wch = _wd_getwc(chcount, iop)) != WEOF) &&
998 (*chcount) -= 1;
1000 if (len > 0 && _wd_ungetwc(chcount, wch, iop) == WEOF)
1012 wstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop,
1025 (*chcount) += _scrwidth((wchar_t)wch);
1034 (*chcount) -= 1;
1049 _wd_getwc(int *chcount, FILE *iop)
1057 (*chcount)++;
1068 (*chcount)++;
1074 _wd_ungetwc(int *chcount, wchar_t wc, FILE *iop)
1088 (*chcount)--;
1096 (*chcount)--;
1122 wbrstring(int *chcount, int *flag_eof, int stow, int type,
1151 (*chcount)++;
1153 (*chcount) += _scrwidth(wch);
1186 brstring(int *chcount, int *flag_eof, int stow, int type,
1209 (*chcount)++;