Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/tools/ctf/cvt/merge.c
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | equiv_array(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) | ||||
return (1); | return (1); | ||||
} | } | ||||
static int | static int | ||||
equiv_su(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) | equiv_su(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) | ||||
{ | { | ||||
mlist_t *ml1 = stdp->t_members, *ml2 = ttdp->t_members; | mlist_t *ml1 = stdp->t_members, *ml2 = ttdp->t_members; | ||||
mlist_t *olm1 = NULL; | |||||
while (ml1 && ml2) { | while (ml1 && ml2) { | ||||
if (ml1->ml_offset != ml2->ml_offset || | if (ml1->ml_offset != ml2->ml_offset || | ||||
strcmp(ml1->ml_name, ml2->ml_name) != 0 || | strcmp(ml1->ml_name, ml2->ml_name) != 0 || | ||||
ml1->ml_size != ml2->ml_size || | ml1->ml_size != ml2->ml_size || | ||||
!equiv_node(ml1->ml_type, ml2->ml_type, ed)) | !equiv_node(ml1->ml_type, ml2->ml_type, ed)) | ||||
return (0); | return (0); | ||||
olm1 = ml1; | |||||
ml1 = ml1->ml_next; | ml1 = ml1->ml_next; | ||||
ml2 = ml2->ml_next; | ml2 = ml2->ml_next; | ||||
} | } | ||||
if (ml1 || ml2) | if (ml1 || ml2) | ||||
return (0); | return (0); | ||||
return (1); | return (1); | ||||
▲ Show 20 Lines • Show All 832 Lines • Show Last 20 Lines |