projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
88e1d04
)
uses xmalloc() now
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 28 Nov 2005 12:34:49 +0000
(12:34 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 28 Nov 2005 12:34:49 +0000
(12:34 +0000)
[r6987]
ir/tv/strcalc.c
patch
|
blob
|
history
diff --git
a/ir/tv/strcalc.c
b/ir/tv/strcalc.c
index
d682979
..
4bf5542
100644
(file)
--- a/
ir/tv/strcalc.c
+++ b/
ir/tv/strcalc.c
@@
-32,6
+32,7
@@
#include <limits.h> /* definition of LONG_MIN, used in sc_get_val_from_long */
#include "strcalc.h"
#include <limits.h> /* definition of LONG_MIN, used in sc_get_val_from_long */
#include "strcalc.h"
+#include "xmalloc.h"
/*
* local definitions and macros
/*
* local definitions and macros
@@
-1600,8
+1601,8
@@
void init_strcalc(int precision)
calc_buffer_size = (precision / 2);
max_value_size = (precision / 4);
calc_buffer_size = (precision / 2);
max_value_size = (precision / 4);
- calc_buffer = malloc(calc_buffer_size+1 * sizeof(char));
- output_buffer = malloc(bit_pattern_size+1 * sizeof(char));
+ calc_buffer =
x
malloc(calc_buffer_size+1 * sizeof(char));
+ output_buffer =
x
malloc(bit_pattern_size+1 * sizeof(char));
if (calc_buffer == NULL || output_buffer == NULL) {
assert(0 && "malloc failed");
if (calc_buffer == NULL || output_buffer == NULL) {
assert(0 && "malloc failed");