aboutsummaryrefslogtreecommitdiff
path: root/api/nil.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 16:02:10 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 16:02:10 +0100
commit058d954e80f83c26deb209008f11d87a5b59418e (patch)
treeef7b5a95cfd1dbdba71041e1f0608d551adfa360 /api/nil.c
parent3ba311b0afdf9cc62d630687d171bee0b6435e4a (diff)
downloaduwu-lang-058d954e80f83c26deb209008f11d87a5b59418e.tar.xz
Unify value types
Diffstat (limited to 'api/nil.c')
-rw-r--r--api/nil.c11
1 files changed, 3 insertions, 8 deletions
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,