Lines Matching defs:control

37 "[c:control?Print control characters in hat (^G) and octal form.]"
66 "[v:literal?Print control characters in C-style form.]"
142 } control;
554 if (pp->control.cur >= pp->control.end)
556 if (n > pp->control.siz)
558 pp->control.siz = roundof(n, 1024);
559 if (!(pp->control.buf = newof(pp->control.buf, char, pp->control.siz, 0)))
562 if ((z = sfrd(fp, pp->control.buf, n, dp)) <= 0)
564 pp->control.cur = pp->control.buf;
565 pp->control.end = pp->control.buf + z;
567 while (pp->control.cur < pp->control.end && s < e)
569 if ((c = mbsize(pp->control.cur)) > 1)
574 *s++ = *pp->control.cur++;
578 c = ccmapchr(pp->control.map, *pp->control.cur);
580 *s++ = *pp->control.cur++;
585 pp->control.cur++;
604 if (pp->control.cur >= pp->control.end)
606 if (n > pp->control.siz)
608 pp->control.siz = roundof(n, 1024);
609 if (!(pp->control.buf = newof(pp->control.buf, char, pp->control.siz, 0)))
612 if ((z = sfrd(fp, pp->control.buf, n, dp)) <= 0)
614 pp->control.cur = pp->control.buf;
615 pp->control.end = pp->control.buf + z;
617 while (pp->control.cur < pp->control.end && s < e)
619 if ((c = mbsize(pp->control.cur)) > 1)
624 *s++ = *pp->control.cur++;
628 c = *pp->control.cur++;
631 t = fmtquote(pp->control.cur - 1, NiL, NiL, 1, 0);
634 pp->control.cur--;
668 pp->control.disc = &pp->disc;
669 pp->control.disc->readf = c_read;
670 pp->control.map = ccmap(CC_NATIVE, CC_ASCII);
770 pp->control.disc = &pp->disc;
771 pp->control.disc->readf = v_read;
876 if (pp->control.disc && !sfdisc(fp, pp->control.disc))
877 error(2, "cannot push control character discipline");
914 if (pp->control.buf)
915 free(pp->control.buf);