|
1 | 1 | #define TOKEN_CAT_(X, Y) X##Y |
2 | 2 | #define TOKEN_CAT(X, Y) TOKEN_CAT_(X, Y) |
3 | 3 |
|
4 | | -#define DONE_NODE(id) { id [label="Done.", style=filled, fillcolor=green, shape=box, color=green, fontcolor=white]; } |
| 4 | +#define COLOR_GREEN "#008000" |
| 5 | + |
| 6 | +#define DONE_NODE(id) { id [label="Done.", style=filled, fillcolor=COLOR_GREEN, shape=box, color=COLOR_GREEN, fontcolor=white]; } |
5 | 7 | #define ILL_FORMED_NODE(id) { id [label="The program is ill-formed.", shape=box, style=filled, color=red, fontcolor=white]; } |
6 | 8 | #define RECURSE_SUBOBJECT_NODE(id) { id [label="Partially recurse.", shape=box, style=filled, color=lightblue, fontcolor=black]} |
7 | 9 | #define RECURSE_NODE(id) { id [label="Recurse.", shape=box, style=filled, color=blue, fontcolor=white]} |
8 | | -#define YES_NODE(id, text) { id [label=text, shape=box, color=green, fontcolor=black]; } |
| 10 | +#define YES_NODE(id, text) { id [label=text, shape=box, color=COLOR_GREEN, fontcolor=black]; } |
9 | 11 | #define NO_NODE(id, text) { id [label=text, shape=box, color=red, fontcolor=black]; } |
10 | 12 |
|
11 | 13 | #define NEW_DONE() { DONE_NODE(TOKEN_CAT(__local_done_, __COUNTER__)); } |
|
0 commit comments