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 class objects and C types for the As -> NetZone transition
[simgrid.git]
/
include
/
xbt
/
sysdep.h
diff --git
a/include/xbt/sysdep.h
b/include/xbt/sysdep.h
index
682e1e2
..
82f2c24
100644
(file)
--- a/
include/xbt/sysdep.h
+++ b/
include/xbt/sysdep.h
@@
-17,12
+17,12
@@
#include "simgrid_config.h"
#include "simgrid_config.h"
-SG_BEGIN_DECL()
-
#include <string.h>
#include <stdlib.h>
#include <stdarg.h> /* va_list */
#include <string.h>
#include <stdlib.h>
#include <stdarg.h> /* va_list */
+SG_BEGIN_DECL()
+
/* They live in asserts.h, but need to be declared before this module.
double declaration to cut dependency cycle */
/**
/* They live in asserts.h, but need to be declared before this module.
double declaration to cut dependency cycle */
/**
@@
-37,11
+37,9
@@
XBT_PUBLIC(void) XBT_ATTRIB_NORETURN xbt_abort(void);
* @brief Kill the program with an error message
* \param ... a format string and its arguments
*
* @brief Kill the program with an error message
* \param ... a format string and its arguments
*
- * Things are so messed up that the only thing to do now, is to stop the
- * program.
+ * Things are so messed up that the only thing to do now, is to stop the program.
*
*
- * The message is handled by a CRITICAL logging request, and may consist of a
- * format string with arguments.
+ * The message is handled by a CRITICAL logging request, and may consist of a format string with arguments.
*/
#define xbt_die(...) \
do { \
*/
#define xbt_die(...) \
do { \
@@
-62,10
+60,6
@@
XBT_LOG_EXTERNAL_CATEGORY(xbt);
* @{
*/
* @{
*/
-#if defined(_MSC_VER) && !defined(strdup)
-# define strdup _strdup /* POSIX name is not ANSI complient blabla */
-#endif
-
/** @brief Like strdup, but xbt_die() on error */
static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) {
char *res = NULL;
/** @brief Like strdup, but xbt_die() on error */
static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) {
char *res = NULL;
@@
-77,7
+71,7
@@
static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) {
return res;
}
return res;
}
-XBT_PUBLIC(void) xbt_backtrace_display_current(
void
);
+XBT_PUBLIC(void) xbt_backtrace_display_current();
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */
/** @brief Like malloc, but xbt_die() on error
@hideinitializer */