summaryrefslogtreecommitdiff
path: root/lib/grammar_sandbox.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 23:40:07 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-24 02:52:07 +0100
commitb285cf4b74312d94e8c21647205b905926af7dd8 (patch)
treee1646f50e053950cb6d4a0aa6d2823022bf53995 /lib/grammar_sandbox.c
parent14152706b42699d5665cd5291637730841e41b94 (diff)
grammar_sandbox: detab
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/grammar_sandbox.c')
-rw-r--r--lib/grammar_sandbox.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c
index f92c78de55..315bd4d59c 100644
--- a/lib/grammar_sandbox.c
+++ b/lib/grammar_sandbox.c
@@ -42,8 +42,8 @@ void
pretty_print_graph (struct vty *vty, struct graph_node *, int, int, struct graph_node **, size_t);
static void
pretty_print_dot (FILE *ofd, unsigned opts, struct graph_node *start,
- struct graph_node **stack, size_t stackpos,
- struct graph_node **visited, size_t *visitpos);
+ struct graph_node **stack, size_t stackpos,
+ struct graph_node **visited, size_t *visitpos);
void
init_cmdgraph (struct vty *, struct graph **);
@@ -258,8 +258,8 @@ DEFUN (grammar_test_dot,
fprintf(ofd, "digraph {\n graph [ rankdir = LR ];\n node [ fontname = \"Fira Mono\", fontsize = 9 ];\n\n");
pretty_print_dot (ofd, 0,
- vector_slot (nodegraph->nodes, 0),
- stack, 0, visited, &vpos);
+ vector_slot (nodegraph->nodes, 0),
+ stack, 0, visited, &vpos);
fprintf(ofd, "}\n");
fclose(ofd);
return CMD_SUCCESS;
@@ -348,7 +348,7 @@ size_t tokennames_max = array_size(tokennames);
*/
void
pretty_print_graph (struct vty *vty, struct graph_node *start, int level,
- int desc, struct graph_node **stack, size_t stackpos)
+ int desc, struct graph_node **stack, size_t stackpos)
{
// print this node
char tokennum[32];
@@ -404,8 +404,8 @@ pretty_print_graph (struct vty *vty, struct graph_node *start, int level,
static void
pretty_print_dot (FILE *ofd, unsigned opts, struct graph_node *start,
- struct graph_node **stack, size_t stackpos,
- struct graph_node **visited, size_t *visitpos)
+ struct graph_node **stack, size_t stackpos,
+ struct graph_node **visited, size_t *visitpos)
{
// print this node
char tokennum[32];
@@ -454,19 +454,19 @@ pretty_print_dot (FILE *ofd, unsigned opts, struct graph_node *start,
// if this node is a vararg, just print *
if (adj == start) {
fprintf(ofd, " n%016llx -> n%016llx;\n",
- (unsigned long long)start,
- (unsigned long long)start);
+ (unsigned long long)start,
+ (unsigned long long)start);
} else if (((struct cmd_token *)adj->data)->type == END_TKN) {
- //struct cmd_token *et = adj->data;
+ //struct cmd_token *et = adj->data;
fprintf(ofd, " n%016llx -> end%016llx;\n",
- (unsigned long long)start,
- (unsigned long long)adj);
- fprintf(ofd, " end%016llx [ shape=box, label=<end>, style = filled, fillcolor = \"#ffddaa\" ];\n",
- (unsigned long long)adj);
+ (unsigned long long)start,
+ (unsigned long long)adj);
+ fprintf(ofd, " end%016llx [ shape=box, label=<end>, style = filled, fillcolor = \"#ffddaa\" ];\n",
+ (unsigned long long)adj);
} else {
fprintf(ofd, " n%016llx -> n%016llx;\n",
- (unsigned long long)start,
- (unsigned long long)adj);
+ (unsigned long long)start,
+ (unsigned long long)adj);
size_t k;
for (k = 0; k < stackpos; k++)
if (stack[k] == adj)