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