Lines Matching refs:mode
74 static void printout(register Wc_t *wp, register char *name,register int mode) in printout() argument
76 if (mode&WC_LINES) in printout()
78 if (mode&WC_WORDS) in printout()
80 if (mode&WC_CHARS) in printout()
82 if (mode&WC_LONGEST) in printout()
93 register int mode=0, n; in b_wc() local
105 mode |= WC_CHARS; in b_wc()
108 mode |= WC_LINES; in b_wc()
111 mode |= WC_LONGEST; in b_wc()
115 mode |= WC_NOUTF8; in b_wc()
119 mode |= WC_MBYTE; in b_wc()
122 mode |= WC_QUIET; in b_wc()
125 mode |= WC_WORDS; in b_wc()
139 if (mode&WC_MBYTE) in b_wc()
141 if (mode&WC_CHARS) in b_wc()
144 mode &= ~WC_MBYTE; in b_wc()
145 mode |= WC_CHARS; in b_wc()
147 if (!(mode&(WC_WORDS|WC_CHARS|WC_LINES|WC_MBYTE|WC_LONGEST))) in b_wc()
148 mode |= (WC_WORDS|WC_CHARS|WC_LINES); in b_wc()
149 if (!(wp = wc_init(mode))) in b_wc()
165 if (!(mode&(WC_WORDS|WC_LINES|WC_MBYTE|WC_LONGEST)) && fstat(sffileno(fp),&statb)>=0 in b_wc()
178 printout(wp,cp,mode); in b_wc()
185 printout(wp,"total",mode); in b_wc()