diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 16:02:10 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 16:02:10 +0100 |
commit | 058d954e80f83c26deb209008f11d87a5b59418e (patch) | |
tree | ef7b5a95cfd1dbdba71041e1f0608d551adfa360 /api/nil.c | |
parent | 3ba311b0afdf9cc62d630687d171bee0b6435e4a (diff) | |
download | uwu-lang-058d954e80f83c26deb209008f11d87a5b59418e.tar.xz |
Unify value types
Diffstat (limited to 'api/nil.c')
-rw-r--r-- | api/nil.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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, |