X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4e0b0a957106c8c55b7aa24f118ed5862e98064d..1ad493ce814e21256c030c4fa05c743c835da8a7:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 62bd71a812..814a62c405 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -4,12 +4,10 @@ /* no system header should be loaded out of this file so that we have only */ /* one file to check when porting to another OS */ -/* Authors: Martin Quinson */ -/* Copyright (C) 2004 the OURAGAN project. */ +/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - under the terms of the license (GNU LGPL) which comes with this package. */ - + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef _XBT_SYSDEP_H #define _XBT_SYSDEP_H @@ -34,7 +32,7 @@ BEGIN_DECL :(NULL)) #define xbt_malloc(n) (malloc(n) ?: (xbt_die("memory allocation error"),NULL)) #define xbt_malloc0(n) (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL)) -#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:xbt_die("memory allocation error"),NULL) \ +#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:(xbt_die("memory allocation error"),NULL)) \ : xbt_malloc(s)) \ : (p? (free(p),NULL) \ : NULL)) @@ -74,8 +72,7 @@ BEGIN_DECL # define _XBT_INLINE #endif - -void xbt_abort(void) _XBT_GNUC_NORETURN; +END_DECL #include "xbt/error.h" /* needed for xbt_die */