projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d65196
)
fixed config stuff
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 22 Mar 2006 14:37:01 +0000
(14:37 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 22 Mar 2006 14:37:01 +0000
(14:37 +0000)
replaced malloc by xmalloc
ir/be/beraextern.c
patch
|
blob
|
history
diff --git
a/ir/be/beraextern.c
b/ir/be/beraextern.c
index
8a9d45e
..
d8ce8df
100644
(file)
--- a/
ir/be/beraextern.c
+++ b/
ir/be/beraextern.c
@@
-58,10
+58,11
@@
alloc ::= node-nr reg-nr .
#include "config.h"
#endif
-#ifdef WIN32
-#include <malloc.h>
-#else
-#include <alloca.h>
+#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
+#endif
+#ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
#endif
#include <stdio.h>
@@
-497,7
+498,7
@@
static void extract_vars_of_cls(be_raext_env_t *raenv) {
int count = 0;
var_info_t *vi;
- raenv->cls_vars = malloc(set_count(raenv->vars) * sizeof(*raenv->cls_vars));
+ raenv->cls_vars =
x
malloc(set_count(raenv->vars) * sizeof(*raenv->cls_vars));
assert(raenv->cls_vars);
set_foreach(raenv->vars, vi)