corrected option handling
This commit is contained in:
parent
cbcde9a311
commit
86b6fe60ea
|
@ -41,6 +41,7 @@ statement(register struct node **pnd;)
|
|||
Roption = options['R'];
|
||||
nd = dot2leaf(Option);
|
||||
nd->nd_symb = 'R';
|
||||
nd->nd_INT = Roption;
|
||||
*pnd = nd =
|
||||
dot2node(Link, nd, NULLNODE);
|
||||
nd->nd_symb = ';';
|
||||
|
|
|
@ -630,10 +630,10 @@ STATIC
|
|||
WalkOption(nd)
|
||||
struct node *nd;
|
||||
{
|
||||
/* Toggle option indicated by node "nd"
|
||||
/* Set option indicated by node "nd"
|
||||
*/
|
||||
|
||||
options[nd->nd_symb] = ! options[nd->nd_symb];
|
||||
options[nd->nd_symb] = nd->nd_INT;
|
||||
}
|
||||
|
||||
int (*WalkTable[])() = {
|
||||
|
|
Loading…
Reference in a new issue