Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This change corrects the definition of the macro
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 28 Nov 2007 15:59:18 +0000 (15:59 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 28 Nov 2007 15:59:18 +0000 (15:59 +0000)
XBT_LOG_NEW_ROOT_SUBCATEGORY. Indeed, Ansi C (Visual C++ compiler standard language) doesn't allow to initialize a structure during
its declaration with non constant values (OK Martin, I definitively correct the trouble for the other platforms)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5079 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/log.h

index 0d5cc24..df5cbcb 100644 (file)
@@ -99,7 +99,7 @@ typedef enum {
  * XBT_LOG_NEW_CATEGORY */
 #define XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \
     XBT_EXPORT_NO_IMPORT(s_xbt_log_category_t) _XBT_LOGV(catName) = {       \
  * XBT_LOG_NEW_CATEGORY */
 #define XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \
     XBT_EXPORT_NO_IMPORT(s_xbt_log_category_t) _XBT_LOGV(catName) = {       \
-        &_XBT_LOGV(parent),                             \
+        NULL,                             \
         NULL /* firstChild */,                          \
        NULL /* nextSibling */,                         \
         #catName,                                       \
         NULL /* firstChild */,                          \
        NULL /* nextSibling */,                         \
         #catName,                                       \