ANN static inline Type array_base_simple(Type t) {
return t->array_depth ? t->info->base_type : t;
}
-ANN m_bool type_ref(Type) __attribute__((pure));
+ANN bool type_ref(Type) __attribute__((pure));
ANN Type actual_type(const struct Gwion_ *gwion, const Type t);
ANN static inline m_uint env_push_type(const Env env, const Type type) {
return env_push(env, type, type->nspc);
return op_check(env, &opi);
}
-ANN m_bool type_ref(Type t) {
+ANN bool type_ref(Type t) {
do {
- if (tflag(t, tflag_empty)) return GW_OK;
+ if (tflag(t, tflag_empty)) return true;
if (tflag(t, tflag_typedef) && tflag(t, tflag_cdef)) {
if (t->info->cdef->base.ext && t->info->cdef->base.ext->array) {
if (!t->info->cdef->base.ext->array->exp)
- return GW_OK;
+ return true;
else {
const Type type = t->info->parent->info->base_type;
- if (tflag(type, tflag_empty)) return GW_OK;
+ if (tflag(type, tflag_empty)) return true;
}
}
}
} while ((t = t->info->parent));
- return 0;
+ return false;
}
ANN m_uint get_depth(const Type type) {