aboutsummaryrefslogtreecommitdiff
path: root/interpreter/graphs.h
diff options
context:
space:
mode:
authorCamil Staps2016-09-24 14:12:05 +0200
committerCamil Staps2016-09-24 14:12:05 +0200
commit4981e0caf24b3906200e4af12593f4e10a17c699 (patch)
treeab24637a480c5a1c3147b8a2dc9d63d8b90fe566 /interpreter/graphs.h
parentFix format strings (diff)
Fix issue with overwritten references
Diffstat (limited to 'interpreter/graphs.h')
-rw-r--r--interpreter/graphs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/interpreter/graphs.h b/interpreter/graphs.h
index fcb314e..0cebe9e 100644
--- a/interpreter/graphs.h
+++ b/interpreter/graphs.h
@@ -10,6 +10,8 @@ typedef enum {
NODE_LIST,
NODE_TUPLE,
NODE_APP,
+
+ NODE_REDIRECT /* Redirect to another node */
} node_kind;
struct node {
@@ -22,6 +24,8 @@ struct node {
void use_node(struct node* node, unsigned int count);
void free_node(struct node* node, unsigned int count, unsigned free_first);
+void remove_redirects(struct node *node);
+
void cpy_expression_to_node(struct node* dst, expression* src);
void cpy_node_to_expression(expression* dst, struct node* src);