Lines Matching refs:cnt_orig
314 size_t cnt_orig;
322 cnt_orig = 1;
324 for (cnt_orig = 1, t = p + 1;
325 t <= TMAP && t->lno == lno; ++cnt_orig, ++t);
327 HANDLE_WEIRDNESS(cnt_orig);
331 if (vs_deleteln(sp, cnt_orig))
335 memmove(p, p + cnt_orig, (((TMAP - p) - cnt_orig) + 1) * sizeof(SMAP));
338 for (t = TMAP - cnt_orig; p <= t; ++p)
342 for (p = TMAP - cnt_orig;;) {
362 size_t cnt_orig, cnt, coff;
373 cnt_orig = vs_screens(sp, lno, NULL);
374 HANDLE_WEIRDNESS(cnt_orig);
381 if (cnt_orig > cnt)
382 cnt_orig = cnt;
386 if (vs_insertln(sp, cnt_orig))
390 memmove(p + cnt_orig, p, (((TMAP - p) - cnt_orig) + 1) * sizeof(SMAP));
393 for (t = p + cnt_orig; t <= TMAP; ++t)
397 for (cnt = 1, t = p; cnt <= cnt_orig; ++t, ++cnt) {
416 size_t cnt_orig, cnt_new, cnt, diff;
426 cnt_orig = cnt_new = 1;
428 for (cnt_orig = 0,
429 t = p; t <= TMAP && t->lno == lno; ++cnt_orig, ++t);
433 HANDLE_WEIRDNESS(cnt_orig);
435 if (cnt_orig == cnt_new) {
444 if (cnt_orig < cnt_new) {
446 diff = cnt_new - cnt_orig;
477 diff = cnt_orig - cnt_new;