aboutsummaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
commit3272b5d83d2e2167eed24748557df88bd66584ee (patch)
tree6b8f1574f6d6a44e11b74903516286f6249cb0b7 /node.c
parenta298cb75c4f586b83b304c7dc66cb555693ea1b8 (diff)
There's actually a chance that, correctly stringified, this will work
Diffstat (limited to 'node.c')
-rw-r--r--node.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/node.c b/node.c
index b20c38e..f34061c 100644
--- a/node.c
+++ b/node.c
@@ -66,7 +66,7 @@ static void write_spaces(int num, FILE *f) {
for (int i = 0; i < num; i++) fputc(' ', f);
}
-static const char* node_type_string(enum node_type type) {
+const char* node_type_string(enum node_type type) {
switch (type) {
case N_LIST: return "N_LIST"; break;
case N_LIST_END: return "N_LIST_END"; break;
@@ -79,6 +79,7 @@ static const char* node_type_string(enum node_type type) {
case N_IF: return "N_IF"; break;
case N_WHILE: return "N_WHILE"; break;
case N_RETURN: return "N_RETURN"; break;
+ case N_RETURNV: return "N_RETURNV"; break;
case N_BINOP: return "N_BINOP"; break;
case N_UNOP: return "N_UNOP"; break;
case N_CALL: return "N_CALL"; break;
@@ -86,7 +87,7 @@ static const char* node_type_string(enum node_type type) {
}
}
-static const char* oper_string(enum operator oper) {
+const char* oper_string(enum operator oper) {
switch (oper) {
case OP_ADD: return "OP_ADD";
case OP_SUB: return "OP_SUB";