/* Copyright (c) 1979 Regents of the University of California */
register struct option
*op
;
if (cp
< &optname
[ONMSZ
- 2])
} while (isalpha(peekchar()));
if (cp
[0] == 'n' && cp
[1] == 'o') {
for (op
= options
; op
< &options
[NOPTS
]; op
++)
if (eq(op
->oname
, cp
) || op
->oabbrev
&& eq(op
->oabbrev
, cp
))
serror("%s: No such option@- 'set all' gives all option values", cp
);
if (op
->otype
== ONOFF
) {
serror("Option %s is not a toggle", op
->oname
);
serror("Missing =@in assignment to option %s", op
->oname
);
if (!isdigit(peekchar()))
error("Digits required@after = when assigning numeric option");
if (cp
>= &optname
[ONMSZ
])
error("String too long@in option assignment");
if (op
->otype
== OTERM
) {
error("Can't change type of terminal from within open/visual");
CP(op
->osvalue
, optname
);
return (iswhite(peekchar()) || endcmd(peekchar()));
register int incr
= (NOPTS
+ 2) / 3;
register int rows
= incr
;
register struct option
*op
= options
;
for (; rows
; rows
--, op
++) {
if (&op
[2*incr
] < &options
[NOPTS
]) {
register struct option
*op
;
for (op
= options
; op
< &options
[NOPTS
]; op
++) {
if (op
== &options
[TERM
])
if (op
== &options
[TTYTYPE
])
if (op
->ovalue
== op
->odefault
)
register struct option
*op
;
printf("%s%s", op
->ovalue
? "" : "no", name
);
printf("%s=%d", name
, op
->ovalue
);
printf("%s=%s", name
, op
->osvalue
);