corrected option handling
This commit is contained in:
parent
cbcde9a311
commit
86b6fe60ea
2 changed files with 3 additions and 2 deletions
|
@ -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 = ';';
|
||||||
|
|
|
@ -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[])() = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue