X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.c;h=d1c1655792cabac455ddba5faba9ca1b0d209e53;hp=3fe6c3f17af72acf303c95c4cbe040550578f2a3;hb=9bd48d16d68944f3a1e9366fe8c6f3c6d985bf56;hpb=1c837573a87e0d375768e990a28d1b2706dbaf43 diff --git a/src/context.c b/src/context.c index 3fe6c3f..d1c1655 100644 --- a/src/context.c +++ b/src/context.c @@ -66,7 +66,8 @@ PSI_Context *PSI_ContextInit(PSI_Context *C, PSI_ContextOps *ops, PSI_ContextErr for (predef_type = &psi_predef_types[0]; predef_type->type_tag; ++predef_type) { decl_type *type = init_decl_type(predef_type->type_tag, predef_type->type_name); - decl_typedef *def = init_decl_typedef(predef_type->alias, type); + decl_var *var = init_decl_var(predef_type->alias, 0, 0); /* FIXME: indirection */ + decl_arg *def = init_decl_arg(type, var); T.defs = add_decl_typedef(T.defs, def); }