X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fidentify_types.c;h=0a1b706bd00f43f77b29ce2aa58d12548a9fdf9f;hb=67b6304bf1b2df3cefa9f39151ed7436e64c48dd;hp=ab3fce5db3d52ac774bfe38e8d79556dffbe0b1a;hpb=ebd1b08076803c148cb6d26715322685c0030497;p=libfirm diff --git a/testprograms/identify_types.c b/testprograms/identify_types.c index ab3fce5db..0a1b706bd 100644 --- a/testprograms/identify_types.c +++ b/testprograms/identify_types.c @@ -28,10 +28,18 @@ int main(int argc, char **argv) printf("\nCreating type information for IDENTIFY_TYPES ...\n"); - compare_types_func = compare_names; + /** init library */ - init_firm (NULL); + firm_parameter_t params; + type_identify_if_t params2; + memset (¶ms, 0, sizeof(params)); + params.size = sizeof(params); + params2.cmp = compare_names; + params2.hash = NULL; + params.ti_if = ¶ms2; + init_firm(¶ms); + i1 = new_id_from_str("type1"); i2 = new_id_from_str("type2"); @@ -54,7 +62,7 @@ int main(int argc, char **argv) */ printf("Done building the graph. Dumping it.\n"); - dump_all_types(); + dump_all_types(0); printf("use xvcg to view this graph:\n"); printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");