projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed INLIEN before global functions
[libfirm]
/
ir
/
ir
/
irprog.c
diff --git
a/ir/ir/irprog.c
b/ir/ir/irprog.c
index
1429817
..
fdbcfb6
100644
(file)
--- a/
ir/ir/irprog.c
+++ b/
ir/ir/irprog.c
@@
-60,10
+60,10
@@
INLINE void remove_irp_type_from_list (type *typ) {
ir_prog *new_ir_prog (void) {
ir_prog *res;
ir_prog *new_ir_prog (void) {
ir_prog *res;
- res =
(ir_prog *) xmalloc (sizeof(ir_prog
));
- memset(res, 0, sizeof(res));
+ res =
xmalloc (sizeof(*res
));
+ memset(res, 0, sizeof(
*
res));
irp = res;
irp = res;
- /* res->obst =
(struct obstack *) xmalloc (sizeof (struct obstack
)); */
+ /* res->obst =
xmalloc (sizeof(*res->obst
)); */
res->graphs = NEW_ARR_F (ir_graph *, 0);
res->pseudo_graphs = NEW_ARR_F (ir_graph *, 0);
res->types = NEW_ARR_F (type *, 0);
res->graphs = NEW_ARR_F (ir_graph *, 0);
res->pseudo_graphs = NEW_ARR_F (ir_graph *, 0);
res->types = NEW_ARR_F (type *, 0);