projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- removed some constant ARR_LEN's
[libfirm]
/
ir
/
ir
/
irop.c
diff --git
a/ir/ir/irop.c
b/ir/ir/irop.c
index
c9ea42c
..
a95fcb0
100644
(file)
--- a/
ir/ir/irop.c
+++ b/
ir/ir/irop.c
@@
-23,9
+23,7
@@
* @author Christian Schaefer, Goetz Lindenmaier, Michael Beck
* @version $Id$
*/
* @author Christian Schaefer, Goetz Lindenmaier, Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#ifdef HAVE_STRING_H
# include <string.h>
#ifdef HAVE_STRING_H
# include <string.h>
@@
-235,10
+233,7
@@
new_ir_op(unsigned code, const char *name, op_pin_state p,
unsigned flags, op_arity opar, int op_index, size_t attr_size,
const ir_op_ops *ops)
{
unsigned flags, op_arity opar, int op_index, size_t attr_size,
const ir_op_ops *ops)
{
- ir_op *res;
-
- res = (ir_op *)xmalloc(sizeof(*res));
- memset(res, 0, sizeof(*res));
+ ir_op *res = XMALLOCZ(ir_op);
res->code = code;
res->name = new_id_from_chars(name, strlen(name));
res->code = code;
res->name = new_id_from_chars(name, strlen(name));