Home
last modified time | relevance | path

Searched refs:nstops (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.bin/unexpand/
H A Dunexpand.c47 static int nstops; variable
62 nstops = 1; in main()
109 limit = nstops == 1 ? INT_MAX : tabstops[nstops - 1] - 1; in tabify()
118 if (nstops == 1) { in tabify()
123 for (n = 0; n < nstops && in tabify()
126 if (n < nstops - 1 && tabstops[n] - 1 < limit) { in tabify()
135 if (nstops == 1) { in tabify()
145 for (n = 0; n < nstops && tabstops[n] - 1 < ocol; n++) in tabify()
147 while (ocol < dcol && n < nstops && ocol < limit) { in tabify()
197 nstops = 0; in getstops()
[all …]
/freebsd/usr.bin/expand/
H A Dexpand.c44 static int nstops; variable
100 if (nstops == 0) { in main()
107 if (nstops == 1) { in main()
114 for (n = 0; n < nstops; n++) in main()
117 if (n == nstops) { in main()
159 nstops = 0; in getstops()
166 if (nstops > 0 && i <= tabstops[nstops-1]) in getstops()
168 if (nstops == sizeof(tabstops) / sizeof(*tabstops)) in getstops()
170 tabstops[nstops++] = i; in getstops()
/freebsd/usr.bin/tabs/
H A Dtabs.c80 long cols, i, inc, j, margin, nstops, stops[NSTOPS]; in main() local
88 nstops = -1; in main()
127 for (j = nstops = 0; j < NSTOPS && in main()
129 stops[nstops++] = formats[i].stops[j]; in main()
134 if (nstops != -1) in main()
136 gettabs(arg, stops, &nstops); in main()
166 if (nstops >= 0) { in main()
169 for (i = 1; i < nstops; i++) { in main()
197 gettabs(char *arg, long stops[], long *nstops) in gettabs() argument
202 for (last = *nstops = 0, tok = strtok(arg, ","); tok != NULL; in gettabs()
[all …]