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