Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
XBT_RUNNING_CTX_INITIALIZER: don't list all element of bt[] in initializer.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)
They'll be implicitly initialized to NULL, and the initializer is now
independent of XBT_BACKTRACE_SIZE.

include/xbt/ex.h

index 446dfc9..77b1967 100644 (file)
@@ -305,7 +305,7 @@ typedef struct {
 #define XBT_RUNNING_CTX_INITIALIZER \
     { NULL, 0, { /* content */ NULL, unknown_error, 0, \
                  /* throw point*/ 0,NULL, NULL,0, NULL, 0, NULL,\
 #define XBT_RUNNING_CTX_INITIALIZER \
     { NULL, 0, { /* content */ NULL, unknown_error, 0, \
                  /* throw point*/ 0,NULL, NULL,0, NULL, 0, NULL,\
-                 /* backtrace */ 0,NULL,{NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL} } }
+                 /* backtrace */ 0, NULL, /* bt[] */ } }
 #define XBT_RUNNING_CTX_INITIALIZE(ctx) \
     do { \
         (ctx)->ctx_mctx          = NULL; \
 #define XBT_RUNNING_CTX_INITIALIZE(ctx) \
     do { \
         (ctx)->ctx_mctx          = NULL; \