Lines Matching defs:orig
40 SCR *orig,
47 CALLOC_RET(orig, sp, SCR *, 1, sizeof(SCR));
67 if (orig == NULL) {
71 if (orig->alt_name != NULL &&
72 (sp->alt_name = strdup(orig->alt_name)) == NULL)
76 if (F_ISSET(orig, SC_AT_SET)) {
78 sp->at_lbuf = orig->at_lbuf;
82 sp->searchdir = orig->searchdir == NOTSET ? NOTSET : FORWARD;
83 if (orig->re != NULL && (sp->re =
84 v_wstrdup(sp, orig->re, orig->re_len)) == NULL)
86 sp->re_len = orig->re_len;
87 if (orig->subre != NULL && (sp->subre =
88 v_wstrdup(sp, orig->subre, orig->subre_len)) == NULL)
90 sp->subre_len = orig->subre_len;
91 if (orig->repl != NULL && (sp->repl =
92 v_wstrdup(sp, orig->repl, orig->repl_len)) == NULL)
94 sp->repl_len = orig->repl_len;
95 if (orig->newl_len) {
96 len = orig->newl_len * sizeof(size_t);
99 mem: msgq(orig, M_SYSERR, NULL);
102 sp->newl_len = orig->newl_len;
103 sp->newl_cnt = orig->newl_cnt;
104 memcpy(sp->newl, orig->newl, len);
107 if (opts_copy(orig, sp))
110 F_SET(sp, F_ISSET(orig, SC_EX | SC_VI));
113 if (ex_screen_copy(orig, sp)) /* Ex. */
115 if (v_screen_copy(orig, sp)) /* Vi. */
118 conv_init(orig, sp); /* XXX */