Displaying 3 results from an estimated 3 matches for "safe_malloc_add_4op_".
Did you mean:
safe_malloc_add_2op_
2007 Sep 11
2
include/share/alloc.h
...d or not. It also results in a bunch of warning messages like:
../../include/share/alloc.h:51: warning: 'safe_calloc_' defined but not used
../../include/share/alloc.h:68: warning: 'safe_malloc_add_3op_' defined but not used
../../include/share/alloc.h:79: warning: 'safe_malloc_add_4op_' defined but not used
../../include/share/alloc.h:115: warning: 'safe_malloc_mul_3op_' defined but not used
../../include/share/alloc.h:128: warning: 'safe_malloc_mul2add_' defined but not used
../../include/share/alloc.h:138: warning: 'safe_malloc_muladd2_'...
2007 Sep 11
0
include/share/alloc.h
...bunch of warning messages like:
>
> ../../include/share/alloc.h:51: warning: 'safe_calloc_' defined
> but not used
> ../../include/share/alloc.h:68: warning: 'safe_malloc_add_3op_'
> defined but not used
> ../../include/share/alloc.h:79: warning: 'safe_malloc_add_4op_'
> defined but not used
> ../../include/share/alloc.h:115: warning: 'safe_malloc_mul_3op_'
> defined but not used
> ../../include/share/alloc.h:128: warning: 'safe_malloc_mul2add_'
> defined but not used
> ../../include/share/alloc.h:138: warning: &...
2012 Jun 24
3
Patch for cross compilation with MinGW32
...mpiles, and both result
in functional programs.
kind regards,
Christoph Terasa
-------------- next part --------------
diff --git include/share/alloc.h include/share/alloc.h
index 7aa17f7..3f2f2c7 100644
--- include/share/alloc.h
+++ include/share/alloc.h
@@ -110,7 +110,14 @@ static inline void *safe_malloc_add_4op_(size_t size1, size_t size2, size_t size
return safe_malloc_(size4);
}
-void *safe_malloc_mul_2op_(size_t size1, size_t size2) ;
+static inline void *safe_malloc_mul_2op_(size_t size1, size_t size2)
+{
+ if(!size1 || !size2)
+ return malloc(1); /* malloc(0) is undefined; FLAC src convention is...