Lines Matching refs:old
717 conjure_template(tdesc_t *old, int newselfid)
721 new->t_name = old->t_name ? xstrdup(old->t_name) : NULL;
722 new->t_type = old->t_type;
723 new->t_size = old->t_size;
725 new->t_flags = old->t_flags;
732 conjure_intrinsic(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
734 tdesc_t *new = conjure_template(old, newselfid);
737 bcopy(old->t_intr, new->t_intr, sizeof (intr_t));
743 conjure_plain(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
745 tdesc_t *new = conjure_template(old, newselfid);
747 (void) remap_node(&new->t_tdesc, old->t_tdesc, old->t_id, new, mcd);
753 conjure_function(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
755 tdesc_t *new = conjure_template(old, newselfid);
757 fndef_t *ofn = old->t_fndef;
760 (void) remap_node(&nfn->fn_ret, ofn->fn_ret, old->t_id, new, mcd);
769 (void) remap_node(&nfn->fn_args[i], ofn->fn_args[i], old->t_id,
779 conjure_array(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
781 tdesc_t *new = conjure_template(old, newselfid);
783 ardef_t *oar = old->t_ardef;
785 (void) remap_node(&nar->ad_contents, oar->ad_contents, old->t_id, new,
787 (void) remap_node(&nar->ad_idxtype, oar->ad_idxtype, old->t_id, new,
798 conjure_su(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
800 tdesc_t *new = conjure_template(old, newselfid);
803 for (omem = old->t_members, nmemp = &new->t_members;
810 old->t_id, new, mcd);
819 conjure_enum(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
821 tdesc_t *new = conjure_template(old, newselfid);
824 for (oel = old->t_emem, nelp = &new->t_emem;
837 conjure_forward(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
839 tdesc_t *new = conjure_template(old, newselfid);
848 conjure_assert(tdesc_t *old, int newselfid, merge_cb_data_t *mcd)
855 conjure_iidesc(iidesc_t *old, merge_cb_data_t *mcd)
857 iidesc_t *new = iidesc_dup(old);
860 (void) remap_node(&new->ii_dtype, old->ii_dtype, -1, NULL, mcd);
862 (void) remap_node(&new->ii_args[i], old->ii_args[i], -1, NULL,