From 4c52777ca9e52edd0bff76168d886de9757ea457 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 30 Dec 2021 16:53:37 +0100 Subject: Add :ref module and refactor type handling --- api/bool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/bool.c') diff --git a/api/bool.c b/api/bool.c index 4cbc3f3..768ae2f 100644 --- a/api/bool.c +++ b/api/bool.c @@ -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, }; -- cgit v1.2.3