UwUVMValue uwunil_create()
{
return (UwUVMValue) {
- .type = VT_NAT,
- .value = {
- .nat_value = {
- .type = &uwunil_type,
- .data = NULL,
- }
- }
+ .type = &uwunil_type,
+ .data = NULL,
};
}
-static void *uwunil_copy(void *data)
+static void *uwunil_clone(void *data)
{
return data;
}
-static void uwunil_delete(void *data)
+static void uwunil_delet(void *data)
{
(void) data;
}
return strdup("");
}
-UwUVMNativeType uwunil_type = {
- .copy = &uwunil_copy,
- .delete = &uwunil_delete,
- .print = &uwunil_print,
+UwUVMType uwunil_type = {
+ .clone = &uwunil_clone,
+ .delet = &uwunil_delet,
+ .print = &uwunil_print,
};