]> git.lizzy.rs Git - uwu-lang.git/blobdiff - api/nil.c
Unify value types
[uwu-lang.git] / api / nil.c
index bbd1eb82534488cc8db5b9a6159fc82da269cbd9..b6304e013a9f63dc2030014c89895baadcc20c13 100644 (file)
--- 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,