| 2 | #include <string.h> |
| 3 | |
| 4 | tir_json *tir_node(tir_context *c, tir_kind kind) { |
| 5 | tir_json *node = tir_alloc(c, 1, sizeof(*node)); |
| 6 | if (node) |
| 7 | node->kind = kind; |
| 8 | return node; |
| 9 | } |
| 10 | tir_json *tir_null(tir_context *c) { |
| 11 | return tir_node(c, TIR_NULL); |
| 12 | } |
no test coverage detected