diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 16:53:37 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-12-30 16:53:37 +0100 |
commit | 4c52777ca9e52edd0bff76168d886de9757ea457 (patch) | |
tree | 385c548fbae43f4b4764a1c32d5babe60c84aa4d /api/bool.c | |
parent | 058d954e80f83c26deb209008f11d87a5b59418e (diff) | |
download | uwu-lang-4c52777ca9e52edd0bff76168d886de9757ea457.tar.xz |
Add :ref module and refactor type handling
Diffstat (limited to 'api/bool.c')
-rw-r--r-- | api/bool.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ bool uwubool_get(UwUVMValue vm_value) return true; } -static void *uwubool_copy(void *data) +static void *uwubool_clone(void *data) { bool *copy = malloc(sizeof(*copy)); *copy = *(bool *) data; @@ -38,7 +38,7 @@ static char *uwubool_print(void *data) } UwUVMType uwubool_type = { - .copy = &uwubool_copy, - .delete = &free, + .clone = &uwubool_clone, + .delet = &free, .print = &uwubool_print, }; |