projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
An improved (?) version
[libfirm]
/
testprograms
/
identify_types.c
diff --git
a/testprograms/identify_types.c
b/testprograms/identify_types.c
index
ab3fce5
..
0a1b706
100644
(file)
--- 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");
printf("\nCreating type information for IDENTIFY_TYPES ...\n");
- compare_types_func = compare_names;
+
/** init library */
/** 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");
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");
*/
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");
printf("use xvcg to view this graph:\n");
printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");