corrected option handling

This commit is contained in:
ceriel 1987-08-20 13:12:43 +00:00
parent cbcde9a311
commit 86b6fe60ea
2 changed files with 3 additions and 2 deletions

View file

@ -41,6 +41,7 @@ statement(register struct node **pnd;)
Roption = options['R']; Roption = options['R'];
nd = dot2leaf(Option); nd = dot2leaf(Option);
nd->nd_symb = 'R'; nd->nd_symb = 'R';
nd->nd_INT = Roption;
*pnd = nd = *pnd = nd =
dot2node(Link, nd, NULLNODE); dot2node(Link, nd, NULLNODE);
nd->nd_symb = ';'; nd->nd_symb = ';';

View file

@ -630,10 +630,10 @@ STATIC
WalkOption(nd) WalkOption(nd)
struct node *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[])() = { int (*WalkTable[])() = {