Home
last modified time | relevance | path

Searched refs:tabstops (Results 1 – 4 of 4) sorted by relevance

/minix/usr.bin/unexpand/
H A Dunexpand.c62 static size_t *tabstops; variable
106 tabstops = erealloc(tabstops, maxstops); in main()
108 if (nstops && tabstops[nstops - 1] >= (size_t)i) in main()
112 tab, tabstops[nstops - 1]); in main()
113 tabstops[nstops++] = i; in main()
125 fprintf(stderr, "%lu %zu\n", i, tabstops[i]); in main()
157 for (n = 0; tabstops[n] - 1 < dcol && in tabify()
160 if (n < nstops - 1 && tabstops[n] - 1 < limit) { in tabify()
161 dcol = tabstops[n]; in tabify()
179 while (tabstops[n] <= dcol && ocol < dcol && in tabify()
[all …]
/minix/usr.bin/expand/
H A Dexpand.c55 size_t tabstops[100]; variable
111 } while (((column - 1) % tabstops[0]) in main()
112 != (tabstops[0] - 1)); in main()
116 if (tabstops[n] > column) in main()
123 while (column < tabstops[n]) { in main()
163 if (nstops > 0 && (size_t)i <= tabstops[nstops-1]) in getstops()
165 if (nstops == sizeof(tabstops) / sizeof(tabstops[0]) - 1) in getstops()
167 tabstops[nstops++] = i; in getstops()
/minix/external/bsd/less/dist/
H A Doptfunc.c609 extern int tabstops[];
627 if (n > tabstops[i-1])
628 tabstops[i++] = n;
636 tabdefault = tabstops[ntabstops-1] - tabstops[ntabstops-2];
646 sprintf(msg+strlen(msg), "%d", tabstops[i]);
H A Dline.c28 public int tabstops[TABSTOP_MAX] = { 0 }; /* Custom tabstops */ variable
676 if (ntabstops < 2 || to_tab >= tabstops[ntabstops-1])
678 ((to_tab - tabstops[ntabstops-1]) % tabdefault);
682 if (to_tab >= tabstops[i])
684 to_tab = tabstops[i+1] - to_tab;