Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] move categories dictionary declaration to interface file
authorschnorr <Lucas.Schnorr@imag.fr>
Thu, 5 Apr 2012 08:58:23 +0000 (10:58 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Thu, 5 Apr 2012 12:03:05 +0000 (14:03 +0200)
src/instr/instr_config.c
src/instr/instr_interface.c

index c9de3a3..e4f1114 100644 (file)
@@ -40,8 +40,6 @@ static int trace_disable_destroy;
 static int trace_configured = 0;
 static int trace_active = 0;
 
 static int trace_configured = 0;
 static int trace_active = 0;
 
-xbt_dict_t created_categories; //declared in instr_interface.c
-
 static void TRACE_getopts(void)
 {
   trace_enabled = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING);
 static void TRACE_getopts(void)
 {
   trace_enabled = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING);
index 3f4cc07..5532a6b 100644 (file)
@@ -19,6 +19,7 @@ typedef enum {
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
 
+xbt_dict_t created_categories = NULL;
 /** \ingroup TRACE_category
  *  \brief Declare a new category with a random color.
  *
 /** \ingroup TRACE_category
  *  \brief Declare a new category with a random color.
  *