summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/node.c b/node.c
index 8c3517f..8b0814a 100644
--- a/node.c
+++ b/node.c
@@ -223,6 +223,18 @@ node_new_print (ast_type_spec_t *type_spec,
}
node_t *
+node_new_to_string (ast_type_spec_t *type_spec,
+ node_t *pred,
+ ast_t *ast)
+{
+ node_t *node = node_new (NODE_TO_STRING, pred, ast);
+
+ node->to_string.type_spec = type_spec;
+
+ return node;
+}
+
+node_t *
node_new_call (node_t *pred,
ast_t *ast)
{