corrected option handling
This commit is contained in:
parent
7d8efdeda0
commit
f2c28f0f96
@ -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…
x
Reference in New Issue
Block a user