X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/945609a7a65edb913de4858b2baf9663014d3974..45dc3d9574981c40ef85d15884c368b5cfda2634:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 6c2df2fe14..333d7220b6 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -4,22 +4,17 @@ /* 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 -#include /* Included directly for speed */ - -#include /* FIXME: remove */ -#include /* FIXME: remove */ +#include #include - + #include "xbt/misc.h" BEGIN_DECL #if 0 @@ -34,7 +29,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)) @@ -63,7 +58,7 @@ BEGIN_DECL #endif /* !__GNUC__ */ -/* inline and __FUNCTION__ are only in GCC when -ansi is of */ +/* inline and __FUNCTION__ are only in GCC when -ansi is off */ #if defined(__GNUC__) && ! defined(__STRICT_ANSI__) @@ -74,16 +69,8 @@ BEGIN_DECL # define _XBT_INLINE #endif - -void xbt_abort(void) _XBT_GNUC_NORETURN; - -/* FIXME: This is a very good candidate to rewrite (along with a proper string stuff) - but I'm too lazy right now, so copy the definition */ -long int strtol(const char *nptr, char **endptr, int base); -double strtod(const char *nptr, char **endptr); -int atoi(const char *nptr); - -END_DECL +END_DECL + #include "xbt/error.h" /* needed for xbt_die */ #endif /* _XBT_SYSDEP_H */