From 058d954e80f83c26deb209008f11d87a5b59418e Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 30 Dec 2021 16:02:10 +0100 Subject: Unify value types --- api/nil.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'api/nil.c') diff --git a/api/nil.c b/api/nil.c index bbd1eb8..b6304e0 100644 --- a/api/nil.c +++ b/api/nil.c @@ -4,13 +4,8 @@ UwUVMValue uwunil_create() { return (UwUVMValue) { - .type = VT_NAT, - .value = { - .nat_value = { - .type = &uwunil_type, - .data = NULL, - } - } + .type = &uwunil_type, + .data = NULL, }; } @@ -30,7 +25,7 @@ static char *uwunil_print(void *data) return strdup(""); } -UwUVMNativeType uwunil_type = { +UwUVMType uwunil_type = { .copy = &uwunil_copy, .delete = &uwunil_delete, .print = &uwunil_print, -- cgit v1.2.3