From: jordan@hack_attack Date: Sun, 2 Oct 2016 19:20:31 +0000 (-0700) Subject: vdats now record the odat that creates them X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=commitdiff_plain;h=37f4eaa177b0c48838c1da6726adc94134e96b0d vdats now record the odat that creates them --- diff --git a/src/apc/ir.c b/src/apc/ir.c index 67a6aaf..de021cc 100644 --- a/src/apc/ir.c +++ b/src/apc/ir.c @@ -220,13 +220,16 @@ insert_set struct set* curr_setp; struct ref* prev_refp; struct ref* curr_refp; + struct vdat* curr_vdatp; curr_odatp = curr_set_odatp; //allocated at insert_set_label, preserved in global space curr_cdatp = curr_cdat(); curr_setp = curr_set(); prev_refp = prev_ref(); curr_refp = alloc_ref(); + curr_vdatp = curr_vdat(); + curr_vdatp->creator = curr_set_odatp; curr_setp->cdat_idx = curr_cdatp->idx; //does a set need its class idx? memmove(curr_setp->name, curr_odatp->name, 32); @@ -362,18 +365,22 @@ insert_ele() uint64_t ref_id; struct cdat* curr_cdatp; struct odat* curr_odatp; + struct vdat* curr_vdatp; struct set* curr_setp; struct ele* curr_elep; struct ref* curr_refp; struct ref* prev_refp; + curr_cdatp = curr_cdat(); curr_odatp = curr_odat(); //malloced @ insert_ele_label + curr_vdatp = curr_vdat(); curr_setp = curr_set(); curr_elep = curr_ele(); curr_refp = alloc_ref(); prev_refp = prev_ref(); + curr_vdatp->creator = curr_odatp; /* Populate ele in cdat */ curr_elep->cdat_idx = curr_cdatp->idx; curr_setp->num_ele++;