-Subproject commit d85f0930b632be859189dae9ca42829458052016
+Subproject commit f2f84ac0731632c4b03de9535b169ca483d03113
if(stmt->xid) {
union_allocdata(emit->gwion->mp, stmt);
Type_Decl *type_decl = new_type_decl(emit->gwion->mp,
- new_id_list(emit->gwion->mp, stmt->xid, loc_cpy(emit->gwion->mp, stmt_self(stmt)->pos)),
- stmt->flag);
+ new_id_list(emit->gwion->mp, stmt->xid, loc_cpy(emit->gwion->mp, stmt_self(stmt)->pos)));
+ type_decl->flag = stmt->flag;
const Var_Decl var_decl = new_var_decl(emit->gwion->mp, stmt->xid, NULL, loc_cpy(emit->gwion->mp, stmt_self(stmt)->pos));
const Var_Decl_List var_decl_list = new_var_decl_list(emit->gwion->mp, var_decl, NULL);
const Exp exp = new_exp_decl(emit->gwion->mp, type_decl, var_decl_list);
dl_var_set(gwi->gwion->mp, v, flag | ae_flag_builtin);
v->var.addr = (void*)addr;
if(gwi->gwion->env->class_def && GET_FLAG(gwi->gwion->env->class_def, template)) {
- Type_Decl *type_decl = new_type_decl(gwi->gwion->mp, v->t.xid, flag);
+ Type_Decl *type_decl = new_type_decl(gwi->gwion->mp, v->t.xid);
+ type_decl->flag = flag;
const Var_Decl var_decl = new_var_decl(gwi->gwion->mp, v->var.xid, v->var.array, loc_cpy(gwi->gwion->mp, gwi->loc));
const Var_Decl_List var_decl_list = new_var_decl_list(gwi->gwion->mp, var_decl, NULL);
const Exp exp = new_exp_decl(gwi->gwion->mp, type_decl, var_decl_list);
m_uint i = 0;
DECL_OO(m_str, type_name, = get_type_name(env, s, i++))
DECL_OO(ID_List, id, = str2list(env, type_name, depth))
- Type_Decl* td = new_type_decl(env->gwion->mp, id, 0);
+ Type_Decl* td = new_type_decl(env->gwion->mp, id);
Type_List tmp = NULL;
if(!td) {
free_id_list(env->gwion->mp, id);
const Env env = gwi->gwion->env;
m_uint array_depth;
DECL_OO(const ID_List, type_path, = str2list(env, name, &array_depth))
- Type_Decl* type_decl = new_type_decl(env->gwion->mp, type_path, 0);
+ Type_Decl* type_decl = new_type_decl(env->gwion->mp, type_path);
if(!type_decl) {
free_id_list(env->gwion->mp, type_path);
return NULL;
const Arg_List args = make_dll_arg_list(gwi, dl_fun);
flag |= ae_flag_builtin;
if(!(type_path = str2list(env, dl_fun->type, &array_depth)) ||
- !(type_decl = new_type_decl(env->gwion->mp, type_path, 0)))
+ !(type_decl = new_type_decl(env->gwion->mp, type_path)))
GWI_ERR_O(_(" ... during fptr import '%s' (type)."), dl_fun->name);
struct Func_Base_ *base = new_func_base(env->gwion->mp, type_decl, insert_symbol(env->gwion->st, dl_fun->name), args);
return new_stmt_fptr(env->gwion->mp, base, flag);
array = new_array_sub(env->gwion->mp, NULL);
array->depth = array_depth;
}
- type_decl = new_type_decl(env->gwion->mp, id_list, 0);
+ type_decl = new_type_decl(env->gwion->mp, id_list);
const Var_Decl var_decl = new_var_decl(env->gwion->mp,
insert_symbol(env->gwion->st, name), array, loc_cpy(env->gwion->mp, gwi->loc));
const Var_Decl_List var_decl_list = new_var_decl_list(env->gwion->mp, var_decl, NULL);
id = prepend_id_list(env->gwion->mp, (Symbol)vector_at(&v, i - 1), id, new_loc(env->gwion->mp, __LINE__));
vector_release(&v);
assert(id);
- Type_Decl* td = new_type_decl(env->gwion->mp, id, 0);
+ Type_Decl* td = new_type_decl(env->gwion->mp, id);
return new_type_list(env->gwion->mp, td, NULL);
}
-~~ 1 + 2 ~~ i;
\ No newline at end of file
+` 1 + 2 ` i;
\ No newline at end of file
Type t_array_ext;
CHECK_OB((t_array_ext = gwi_mk_type(gwi, "ArrayExt", SZ_INT, NULL)))
CHECK_BB(gwi_class_ini(gwi, t_array_ext, NULL, NULL))
- Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "float"), GWI_LOC), 0);
+ Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "float"), GWI_LOC));
Exp e = new_exp_prim_int(gwi->gwion->st->p, 1, GWI_LOC);
Array_Sub array = new_array_sub(gwi->gwion->st->p, e);
add_type_decl_array(td, array);
Type t_ev ;
CHECK_OB((t_ev = gwi_mk_type(gwi, "Ev", SZ_INT , NULL)))
CHECK_BB(gwi_class_ini(gwi, t_ev, ev_ctor, NULL))
- Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "Event"), GWI_LOC), 0);
+ Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "Event"), GWI_LOC));
CHECK_BB(gwi_class_ext(gwi, td))
CHECK_BB(gwi_class_end(gwi))
return GW_OK;
CHECK_BB(gwi_tmpl_ini(gwi, 2, types))
CHECK_BB(gwi_class_ini(gwi, t_pair_ext, NULL, NULL))
CHECK_BB(gwi_tmpl_end(gwi))
- Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "Pair"), GWI_LOC), 0);
- Type_Decl* td0 = new_type_decl(gwi->gwion->st->p ,new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "A"), GWI_LOC), 0);
- Type_Decl* td1 = new_type_decl(gwi->gwion->st->p ,new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "B"), GWI_LOC), 0);
+ Type_Decl* td = new_type_decl(gwi->gwion->st->p, new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "Pair"), GWI_LOC));
+ Type_Decl* td0 = new_type_decl(gwi->gwion->st->p ,new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "A"), GWI_LOC));
+ Type_Decl* td1 = new_type_decl(gwi->gwion->st->p ,new_id_list(gwi->gwion->st->p, insert_symbol(gwi->gwion->st, "B"), GWI_LOC));
Type_List tl1 = new_type_list(gwi->gwion->st->p, td1, NULL);
Type_List tl0 = new_type_list(gwi->gwion->st->p,td0, tl1);
td->types = tl0;
-<<<~~ new int[2] ~~ i>>>;
+<<<` new int[2] ` i>>>;
<<<i>>>;
\ No newline at end of file
-Subproject commit 5972a5f02aeece3745389531c3eed06aa1cee33b
+Subproject commit 106fc5bb87ddb51c9ce44714f23383b78c339ce7