Lines Matching defs:sp

43 	SCR *sp,
74 * message. If sp is NULL, ignore the special cases and put the
77 if (sp == NULL) {
84 gp = sp->gp;
87 if (F_ISSET(sp, SC_VI) && !O_ISSET(sp, O_VERBOSE)) {
94 if (!O_ISSET(sp, O_VERBOSE))
99 if (F_ISSET(sp, SC_EX_SILENT))
123 retry: FREE_SPACE(sp, bp, blen);
128 GET_SPACE_GOTOC(sp, bp, blen, nlen);
141 p = msg_cat(sp, "020|Error: ", &len);
154 sp != NULL && gp != NULL && gp->if_name != NULL) {
158 CHAR2INT(sp, gp->if_name, strlen(gp->if_name) + 1, wp, wlen);
160 len = snprintf(mp, REM, "%s", KEY_NAME(sp, *wp));
174 fmt = msg_cat(sp, fmt, NULL);
339 if (sp != NULL)
340 (void)ex_fflush(sp);
342 gp->scr_msg(sp, mt, bp, mlen);
350 FREE_SPACE(sp, bp, blen);
363 SCR *sp,
372 msgq(sp, mtype, "%s", fmt);
375 INT2CHAR(sp, str, STRLEN(str) + 1, nstr, nlen);
376 msgq_str(sp, mtype, nstr, fmt);
387 SCR *sp,
396 msgq(sp, mtype, "%s", fmt);
401 p = msg_print(sp, str, &nf);
403 msgq(sp, mtype, fmt, p);
405 FREE_SPACE(sp, p, 0);
429 mod_rpt(SCR *sp)
453 if (F_ISSET(sp, SC_EX_SILENT))
457 sp->rptlchange = OOBLNO;
476 rptval = O_VAL(sp, O_REPORT);
478 total += sp->rptlines[cnt];
481 if (total <= rptval && sp->rptlines[L_YANKED] < rptval) {
483 sp->rptlines[cnt] = 0;
488 GET_SPACE_GOTOC(sp, bp, blen, sizeof(action) * MAXNUM + 1);
491 if (sp->rptlines[cnt] != 0) {
500 (u_long)sp->rptlines[cnt]);
503 t = msg_cat(sp,
504 lines[sp->rptlines[cnt] == 1 ? 0 : 1], &len);
510 t = msg_cat(sp, *ap, &len);
514 sp->rptlines[cnt] = 0;
521 (void)ex_fflush(sp);
522 sp->gp->scr_msg(sp, M_INFO, bp, tlen);
524 FREE_SPACE(sp, bp, blen);
540 SCR *sp,
553 len = strlen(sp->frp->name);
554 GET_SPACE_GOTOC(sp, bp, blen, len * MAX_CHARACTER_COLUMNS + 128);
559 CHAR2INT(sp, sp->frp->name, len + 1, wp, wlen);
563 len = KEY_LEN(sp, *wp);
564 memcpy(p, KEY_NAME(sp, *wp), len);
572 if (F_ISSET(sp, SC_STATUS_CNT) && sp->argv != NULL) {
573 for (cnt = 0, ap = sp->argv; *ap != NULL; ++ap, ++cnt);
576 msg_cat(sp, "317|%d files to edit", NULL), cnt);
581 F_CLR(sp, SC_STATUS_CNT);
592 if (F_ISSET(sp->frp, FR_NEWFILE)) {
593 F_CLR(sp->frp, FR_NEWFILE);
594 t = msg_cat(sp, "021|new file", &len);
599 if (F_ISSET(sp->frp, FR_NAMECHANGE)) {
600 t = msg_cat(sp, "022|name changed", &len);
609 if (F_ISSET(sp->ep, F_MODIFIED))
610 t = msg_cat(sp, "023|modified", &len);
612 t = msg_cat(sp, "024|unmodified", &len);
617 if (F_ISSET(sp->frp, FR_UNLOCKED)) {
622 t = msg_cat(sp, "025|UNLOCKED", &len);
627 if (O_ISSET(sp, O_READONLY)) {
632 t = msg_cat(sp, "026|readonly", &len);
642 if (db_last(sp, &last))
645 t = msg_cat(sp, "028|empty file", &len);
649 t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len);
655 t = msg_cat(sp, "029|line %lu", &len);
682 if (LF_ISSET(MSTAT_TRUNCATE) && len > sp->cols) {
683 for (; s < np && (*s != '/' || (p - s) > sp->cols - 3); ++s);
685 s = p - (sp->cols - 5);
695 (void)ex_fflush(sp);
697 sp->gp->scr_msg(sp, M_INFO, s, len);
699 FREE_SPACE(sp, bp, blen);
712 SCR *sp,
732 msgq(sp, M_SYSERR, NULL);
738 msgq(sp, M_SYSERR, NULL);
756 msgq_str(sp, M_ERR, p,
759 msgq_str(sp, M_SYSERR, p, "%s");
765 msg_close(sp->gp);
766 sp->gp->catd = catd;
792 SCR *sp,
798 return (msg_cat(sp, "268|confirm? [ynq]", lenp));
800 return (msg_cat(sp, "269|Press any key to continue: ", lenp));
802 return (msg_cat(sp,
806 return (msg_cat(sp, "161|Press Enter to continue: ", lenp));
808 return (msg_cat(sp, "275| cont?", lenp));
810 return (msg_cat(sp,
830 SCR *sp,
847 gp = sp == NULL ? NULL : sp->gp;
868 SCR *sp,
880 CHAR2INT5(sp, EXP(sp)->ibcw, (char *)s, strlen(s) + 1, wp, wlen);
889 retry: if (sp == NULL)
892 FREE_SPACE(sp, bp, blen);
896 if (sp == NULL) {
900 GET_SPACE_GOTOC(sp, bp, blen, nlen);
907 for (t = KEY_NAME(sp, *wp); *t != '\0' && p < ep; *p++ = *t++);