ANN m_bool check_class_def(const Env, const Class_Def);
ANN Type check_exp_call1(const Env env, Exp_Call *const exp);
+ANN m_bool scan0_prim_def(const Env env, const Prim_Def pdef);
#endif
#include "gwi.h"
#include "array.h"
#include "gack.h"
+#include "traverse.h"
static GACK(gack_prim) {
for(m_uint i = 0; i < t->actual_size; i++) {
return t;
}
-// actually we should make a Prim_Def
-// and either execute and free it already
-// or add it to the current ast
-
-ANN m_bool scan0_prim_def(const Env env, const Prim_Def pdef);
-
-//ANN Type gwi_primitive(const Gwi gwi, const m_str name, const m_uint size, const ae_flag flag) {
ANN m_bool gwi_primitive(const Gwi gwi, const m_str name, const m_uint size, const ae_flag flag) {
const Env env = gwi->gwion->env;
const Prim_Def pdef = new_prim_def(gwi->gwion->mp, insert_symbol(gwi->gwion->st, name), size, gwi->loc, flag);
+ if(gwi->gwion->data->cdoc)lint_prim_def(gwi->lint, pdef);
if(!env->class_def || !tflag(env->class_def, tflag_tmpl)) {
const m_bool ret = scan0_prim_def(gwi->gwion->env, pdef);
free_prim_def(gwi->gwion->mp, pdef);