diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 22:34:35 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-23 21:52:44 +0100 |
| commit | ab037159286a3241244a6b3e7d1033e3940aa944 (patch) | |
| tree | a11b3b207c8afa559ffdbe337971f860b8ee1c56 /lib/command.h | |
| parent | 0bf5b1cbe3812e748d459fa4c4fb6596e072e7bd (diff) | |
lib: parser: track matching FORK_TKN & JOIN_TKN
This associates pairs of FORK and JOIN tokens, so the merge function can
identify where a subgraph begins and ends.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index dd940f0d57..b71142fdce 100644 --- a/lib/command.h +++ b/lib/command.h @@ -203,6 +203,8 @@ struct cmd_token char *desc; // token description long long min, max; // for ranges char *arg; // user input that matches this token + + struct graph_node *forkjoin; // paired FORK/JOIN for JOIN/FORK }; /* Structure of command element. */ |
