-Subproject commit 1753198efbf0afa6d21a05cd37b3fdba9e862bb1
+Subproject commit dfdf1ccbc6577c55fe4754c4a59a02a1571d2964
gwi->gwion->type[et_array] = t_array;
gwi_class_xtor(gwi, NULL, array_dtor);
t_array->nspc->offset += SZ_INT*2;
-// GWI_BB(gwi_item_ini(gwi, "@internal", "@array"))
-// GWI_BB(gwi_item_end(gwi, 0, num, 0))
-// GWI_BB(gwi_item_ini(gwi, "@internal", "@ctor_data"))
-// GWI_BB(gwi_item_end(gwi, 0, num, 0))
GWI_BB(gwi_fptr_ini(gwi, "A", "map_t:[A]"))
GWI_BB(gwi_func_arg(gwi, "T", "elem"))
const Type t_event = gwi_class_ini(gwi, "Event", "Object");
gwi_class_xtor(gwi, event_ctor, event_dtor);
gwi->gwion->type[et_event] = t_event; // use func
-
- GWI_BB(gwi_item_ini(gwi, "@internal", "@shreds"))
- GWI_BB(gwi_item_end(gwi, ae_flag_none, num, 0))
+ t_event->nspc->offset += SZ_INT;
GWI_BB(gwi_func_ini(gwi, "void", "signal"))
GWI_BB(gwi_func_end(gwi, event_signal, ae_flag_none))
GWI_BB(gwi_func_ini(gwi, "void", "broadcast"))
const Type t_ptr = gwi_struct_ini(gwi, "Ptr:[A]");
gwi->gwion->type[et_ptr] = t_ptr;
GWI_BB(gwi_gack(gwi, t_ptr, gack_ptr))
- GWI_BB(gwi_item_ini(gwi, "@internal", "@val"))
- GWI_BB(gwi_item_end(gwi, 0, num, 0))
+ t_ptr->nspc->offset += SZ_INT;
GWI_BB(gwi_class_end(gwi))
GWI_BB(gwi_oper_ini(gwi, "Ptr", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_ptr_scan))
set_tflag(t_foreach, tflag_infer);
gwinote(gwi, "a pointer to the referenced variable.");
- GWI_BB(gwi_item_ini(gwi, "@internal", "val"))
- GWI_BB(gwi_item_end(gwi, ae_flag_none, num, 0))
+ t_foreach->nspc->offset += SZ_INT;
GWI_BB(gwi_struct_end(gwi))
const Type t_shred = gwi_class_ini(gwi, "Shred", NULL);
gwi_class_xtor(gwi, NULL, shred_dtor);
- gwi_item_ini(gwi, "@internal", "@me");
- GWI_BB(gwi_item_end(gwi, ae_flag_const, num, 0))
+ t_shred->nspc->offset += SZ_INT;
gwi_item_ini(gwi, "int", "cancel");
GWI_BB((o_shred_cancel = gwi_item_end(gwi, ae_flag_const, num, 0)))
const Type t_fork = gwi_class_ini(gwi, "Fork", "Shred");
gwi_class_xtor(gwi, NULL, fork_dtor);
gwi->gwion->type[et_fork] = t_fork;
+ o_fork_thread = t_fork->nspc->offset;
+ t_fork->nspc->offset += SZ_INT;
+ o_fork_cond = t_fork->nspc->offset;
+ t_fork->nspc->offset += SZ_INT;
+ o_fork_mutex = t_fork->nspc->offset;
+ t_fork->nspc->offset += SZ_INT;
- gwi_item_ini(gwi, "@internal", "@thread");
- GWI_BB((o_fork_thread = gwi_item_end(gwi, ae_flag_const, num, 0)))
- gwi_item_ini(gwi, "@internal", "@cond");
- GWI_BB((o_fork_cond = gwi_item_end(gwi, ae_flag_const, num, 0)))
- gwi_item_ini(gwi, "@internal", "@mutex");
- GWI_BB((o_fork_mutex = gwi_item_end(gwi, ae_flag_const, num, 0)))
gwi_item_ini(gwi, "int", "is_done");
GWI_BB((o_fork_done = gwi_item_end(gwi, ae_flag_const, num, 0)))
gwi_item_ini(gwi, "Event", "ev");
gwi->gwion->type[et_string] = t_string; // use func
gwi_class_xtor(gwi, string_ctor, string_dtor);
GWI_BB(gwi_gack(gwi, t_string, gack_string))
-
- gwi_item_ini(gwi, "@internal", "@data");
- GWI_BB(gwi_item_end(gwi, ae_flag_const, num, 0))
+ t_string->nspc->offset += SZ_INT;
gwi_func_ini(gwi, "int", "size");
GWI_BB(gwi_func_end(gwi, string_len, ae_flag_none))
const Type t_ugen = gwi_class_ini(gwi, "UGen", NULL);
gwi_class_xtor(gwi, ugen_ctor, ugen_dtor);
gwi->gwion->type[et_ugen] = t_ugen; // use func
-
- GWI_BB(gwi_item_ini(gwi, "@internal", "@ugen"))
- GWI_BB(gwi_item_end(gwi, ae_flag_none, num, 0))
+ t_ugen->nspc->offset += SZ_INT;
GWI_BB(gwi_func_ini(gwi, "UGen", "chan"))
GWI_BB(gwi_func_arg(gwi, "int", "arg0"))
const Type t_vararg = gwi_class_ini(gwi, "Vararg", "Object");
gwi_class_xtor(gwi, NULL, vararg_dtor);
gwi_gack(gwi, t_vararg, gack_vararg);
- GWI_BB(gwi_item_ini(gwi, "@internal", "@data"))
- GWI_BB(gwi_item_end(gwi, ae_flag_none, num, 0))
+ t_vararg->nspc->offset += SZ_INT;
GWI_BB(gwi_item_ini(gwi, "int", "@inLoop"))
GWI_BB(gwi_item_end(gwi, ae_flag_none, num, 0))
GWI_BB(gwi_item_ini(gwi, "int", "@len"))