aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser.c2
-rw-r--r--parser.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index c3129f6..101f3e3 100644
--- a/parser.c
+++ b/parser.c
@@ -152,7 +152,7 @@ struct PResult parse_buffer(buffer_t *buffer)
goto error;
}
- return (struct PResult){nodes, usable};
+ return (struct PResult){nodes, usable, loops};
error:
if (nodes)
free(nodes);
diff --git a/parser.h b/parser.h
index 2b01850..1b3718e 100644
--- a/parser.h
+++ b/parser.h
@@ -24,6 +24,7 @@ struct PResult
{
node_t *nodes;
size_t size;
+ size_t labels;
};
char *ast_to_str(node_t *ast, size_t size);