summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d0c7a85)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5233
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
}
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */
}
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */
-static XBT_INLINE void *xbt_malloc(int n){
+static XBT_INLINE void *xbt_malloc(unsigned int n){
void *res=malloc(n);
if (!res)
xbt_die(bprintf("Memory allocation of %d bytes failed",n));
void *res=malloc(n);
if (!res)
xbt_die(bprintf("Memory allocation of %d bytes failed",n));
/** @brief like malloc, but xbt_die() on error and memset data to 0
@hideinitializer */
/** @brief like malloc, but xbt_die() on error and memset data to 0
@hideinitializer */
-static XBT_INLINE void *xbt_malloc0(int n) {
+static XBT_INLINE void *xbt_malloc0(unsigned int n) {
void *res=calloc(n,1);
if (!res)
xbt_die(bprintf("Memory callocation of %d bytes failed",n));
void *res=calloc(n,1);
if (!res)
xbt_die(bprintf("Memory callocation of %d bytes failed",n));
/** @brief like realloc, but xbt_die() on error
@hideinitializer */
/** @brief like realloc, but xbt_die() on error
@hideinitializer */
-static XBT_INLINE void *xbt_realloc(void*p,int s){
+static XBT_INLINE void *xbt_realloc(void*p,unsigned int s){
void *res=res;
if (s) {
if (p) {
void *res=res;
if (s) {
if (p) {