From b038e440a032e59794529a89c676f5bd37e135b6 Mon Sep 17 00:00:00 2001 From: alegrand Date: Tue, 24 Feb 2009 08:44:02 +0000 Subject: [PATCH] Avoid C++ comments. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6141 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/ex.h | 2 +- include/xbt/queue.h | 2 +- include/xbt/sysdep.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 5763ec90ec..e3a8d14c49 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -413,7 +413,7 @@ extern void __xbt_ex_terminate_default(xbt_ex_t *e); xbt_backtrace_current( (xbt_ex_t *) &(_throw_ctx->ctx_ex) ); \ DO_THROW(_throw_ctx->ctx_ex); \ } while (0) -// __xbt_ex_ctx()->ctx_ex.used = backtrace((void**)__xbt_ex_ctx()->ctx_ex.bt,XBT_BACKTRACE_SIZE); +/* __xbt_ex_ctx()->ctx_ex.used = backtrace((void**)__xbt_ex_ctx()->ctx_ex.bt,XBT_BACKTRACE_SIZE); */ /** @brief Builds and throws an exception with a string taking no arguments @hideinitializer */ diff --git a/include/xbt/queue.h b/include/xbt/queue.h index 764539ed81..136ac0411b 100644 --- a/include/xbt/queue.h +++ b/include/xbt/queue.h @@ -12,7 +12,7 @@ #define _XBT_QUEUE_H #include "xbt/misc.h" /* SG_BEGIN_DECL */ -//#include "xbt/function_types.h" +/* #include "xbt/function_types.h" */ SG_BEGIN_DECL() diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 2a0c78bad5..0d515ca07d 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -60,7 +60,7 @@ static XBT_INLINE char *xbt_strdup(const char *s) { @hideinitializer */ static XBT_INLINE void *xbt_malloc(unsigned int n){ void *res; -// if (n==0) xbt_die("malloc(0) is not portable"); +/* if (n==0) xbt_die("malloc(0) is not portable"); */ res=malloc(n); if (!res) xbt_die(bprintf("Memory allocation of %d bytes failed",n)); @@ -71,7 +71,7 @@ static XBT_INLINE void *xbt_malloc(unsigned int n){ @hideinitializer */ static XBT_INLINE void *xbt_malloc0(unsigned int n) { void *res; -// if (n==0) xbt_die("calloc(0) is not portable"); +/* if (n==0) xbt_die("calloc(0) is not portable"); */ res=calloc(n,1); if (!res) xbt_die(bprintf("Memory callocation of %d bytes failed",n)); @@ -82,7 +82,7 @@ static XBT_INLINE void *xbt_malloc0(unsigned int n) { @hideinitializer */ static XBT_INLINE void *xbt_realloc(void*p,unsigned int s){ void *res=res; -// if (s==0) xbt_die("realloc(0) is not portable"); +/* if (s==0) xbt_die("realloc(0) is not portable"); */ if (s) { if (p) { res=realloc(p,s); -- 2.20.1