char *uwustr_get(UwUVMValue vm_value)
{
- vm_value.type->print(vm_value.data);
+ return uwuvm_print_value(vm_value);
}
-static void *uwustr_copy(void *data)
+static void *uwustr_clone(void *data)
{
return strdup(data);
}
}
UwUVMType uwustr_type = {
- .copy = &uwustr_copy,
- .delete = &free,
+ .clone = &uwustr_clone,
+ .delet = &free,
.print = &uwustr_print,
};