A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the SD_READY (all dependencies are satisfied and task is
[simgrid.git]
/
include
/
xbt
/
sysdep.h
diff --git
a/include/xbt/sysdep.h
b/include/xbt/sysdep.h
index
7ae2aee
..
efba50f
100644
(file)
--- a/
include/xbt/sysdep.h
+++ b/
include/xbt/sysdep.h
@@
-1,9
+1,9
@@
-/* $Id$ */
/* xbt/sysdep.h -- all system dependency */
/* no system header should be loaded out of this file so that we have only */
/* one file to check when porting to another OS */
/* xbt/sysdep.h -- all system dependency */
/* no system header should be loaded out of this file so that we have only */
/* one file to check when porting to another OS */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
+ * 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. */
/* 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. */
@@
-48,7
+48,7
@@
XBT_PUBLIC(char *) bprintf(const char *fmt, ...) _XBT_GNUC_PRINTF(1, 2);
#if defined(__GNUC__) || defined(DOXYGEN)
/** @brief Like strdup, but xbt_die() on error */
#if defined(__GNUC__) || defined(DOXYGEN)
/** @brief Like strdup, but xbt_die() on error */
-
static XBT_INLINE
char *xbt_strdup(const char *s)
+
static inline __attribute__((always_inline))
char *xbt_strdup(const char *s)
{
char *res = NULL;
if (s) {
{
char *res = NULL;
if (s) {
@@
-63,7
+63,7
@@
XBT_PUBLIC(void) xbt_backtrace_display_current(void);
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */
-static
XBT_INLINE
void *xbt_malloc(unsigned int n)
+static
inline __attribute__((always_inline))
void *xbt_malloc(unsigned int n)
{
void *res;
/* if (n==0) {
{
void *res;
/* if (n==0) {
@@
-79,7
+79,7
@@
static XBT_INLINE void *xbt_malloc(unsigned int 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(unsigned int n)
+static
inline __attribute__((always_inline))
void *xbt_malloc0(unsigned int n)
{
void *res;
//if (n==0) xbt_die("calloc(0) is not portable");
{
void *res;
//if (n==0) xbt_die("calloc(0) is not portable");
@@
-91,7
+91,7
@@
static XBT_INLINE void *xbt_malloc0(unsigned int 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, unsigned int s)
+static
inline __attribute__((always_inline))
void *xbt_realloc(void *p, unsigned int s)
{
void *res = res;
//if (s==0) xbt_die("realloc(0) is not portable");
{
void *res = res;
//if (s==0) xbt_die("realloc(0) is not portable");