first successful implementation of class instantion methods
This commit is contained in:
24
lib/prim.c
24
lib/prim.c
@ -784,7 +784,7 @@ static hcl_pfrc_t pf_va_context (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
||||
static hcl_pfrc_t pf_va_count (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
||||
{
|
||||
hcl_context_t* ctx;
|
||||
hcl_ooi_t tmpr_mask, va, fixed_nargs, nrvars, nlvars, nvaargs;
|
||||
hcl_ooi_t attr_mask, va, fixed_nargs, nrvars, nlvars, nvaargs;
|
||||
|
||||
if (nargs >= 1)
|
||||
{
|
||||
@ -800,12 +800,12 @@ static hcl_pfrc_t pf_va_count (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
||||
ctx = hcl->active_context;
|
||||
}
|
||||
|
||||
tmpr_mask = HCL_OOP_TO_SMOOI(ctx->tmpr_mask);
|
||||
attr_mask = HCL_OOP_TO_SMOOI(ctx->attr_mask);
|
||||
|
||||
va = GET_BLKTMPR_MASK_VA(tmpr_mask);
|
||||
fixed_nargs = GET_BLKTMPR_MASK_NARGS(tmpr_mask);
|
||||
nrvars = GET_BLKTMPR_MASK_NRVARS(tmpr_mask);
|
||||
nlvars = GET_BLKTMPR_MASK_NLVARS(tmpr_mask);
|
||||
va = GET_BLK_MASK_VA(attr_mask);
|
||||
fixed_nargs = GET_BLK_MASK_NARGS(attr_mask);
|
||||
nrvars = GET_BLK_MASK_NRVARS(attr_mask);
|
||||
nlvars = GET_BLK_MASK_NLVARS(attr_mask);
|
||||
|
||||
/*if (!va) TODO: need this check?
|
||||
{
|
||||
@ -820,7 +820,7 @@ static hcl_pfrc_t pf_va_get (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
||||
{
|
||||
hcl_oop_t ret;
|
||||
hcl_context_t* ctx;
|
||||
hcl_ooi_t tmpr_mask, va, fixed_nargs, nrvars, nlvars, nvaargs;
|
||||
hcl_ooi_t attr_mask, va, fixed_nargs, nrvars, nlvars, nvaargs;
|
||||
hcl_oow_t index;
|
||||
|
||||
if (nargs >= 2)
|
||||
@ -836,12 +836,12 @@ static hcl_pfrc_t pf_va_get (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
||||
{
|
||||
ctx = hcl->active_context;
|
||||
}
|
||||
tmpr_mask = HCL_OOP_TO_SMOOI(ctx->tmpr_mask);
|
||||
attr_mask = HCL_OOP_TO_SMOOI(ctx->attr_mask);
|
||||
|
||||
va = GET_BLKTMPR_MASK_VA(tmpr_mask);
|
||||
fixed_nargs = GET_BLKTMPR_MASK_NARGS(tmpr_mask);
|
||||
nrvars = GET_BLKTMPR_MASK_NRVARS(tmpr_mask);
|
||||
nlvars = GET_BLKTMPR_MASK_NLVARS(tmpr_mask);
|
||||
va = GET_BLK_MASK_VA(attr_mask);
|
||||
fixed_nargs = GET_BLK_MASK_NARGS(attr_mask);
|
||||
nrvars = GET_BLK_MASK_NRVARS(attr_mask);
|
||||
nlvars = GET_BLK_MASK_NLVARS(attr_mask);
|
||||
|
||||
if (hcl_inttooow(hcl, HCL_STACK_GETARG(hcl, nargs, 0), &index) == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user