Lines Matching refs:op
45 struct option *op; in set() local
261 for (op = options; op < &options[vi_NOPTS]; op++) in set()
262 if (eq(op->oname, cp) || op->oabbrev && eq(op->oabbrev, cp)) in set()
264 if (op->oname == 0) in set()
273 propt(op); in set()
277 if (op->otype == ONOFF) { in set()
278 op->ovalue = 1 - no; in set()
279 if (op == &options[vi_PROMPT]) in set()
285 gettext("Option %s is not a toggle"), op->oname); in set()
293 op->oname); in set()
294 switch (op->otype) { in set()
300 op->ovalue = getnum(); in set()
303 if (op == &options[vi_WINDOW]) { in set()
324 if (op->otype == OTERM) { in set()
343 CP(op->osvalue, optname); in set()
344 op->odefault = 1; in set()
398 struct option *op = options; in prall() local
400 for (; rows; rows--, op++) { in prall()
401 propt(op); in prall()
403 propt(&op[incr]); in prall()
404 if (&op[2*incr] < &options[vi_NOPTS]) { in prall()
406 propt(&op[2 * incr]); in prall()
415 struct option *op; in propts() local
417 for (op = options; op < &options[vi_NOPTS]; op++) { in propts()
418 if (op == &options[vi_TTYTYPE]) in propts()
420 switch (op->otype) { in propts()
424 if (op->ovalue == op->odefault) in propts()
429 if (op->odefault == 0) in propts()
433 propt(op); in propts()
441 propt(struct option *op) in propt() argument
445 name = (unsigned char *)op->oname; in propt()
447 switch (op->otype) { in propt()
450 viprintf("%s%s", op->ovalue ? "" : "no", name); in propt()
454 viprintf("%s=%d", name, op->ovalue); in propt()
459 viprintf("%s=%s", name, op->osvalue); in propt()