Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] declaring dictionary where it is allocated
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:45:07 +0000 (16:45 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:45:07 +0000 (16:45 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9197 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/instr_config.c
src/instr/instr_interface.c
src/instr/instr_private.h

index e09e8d5..3fb5dbf 100644 (file)
@@ -28,7 +28,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_config, instr, "Configuration");
 static int trace_configured = 0;
 static int trace_active = 0;
 
 static int trace_configured = 0;
 static int trace_active = 0;
 
-extern xbt_dict_t created_categories; //declared in instr_interface.c
+xbt_dict_t created_categories; //declared in instr_interface.c
 
 int TRACE_start()
 {
 
 int TRACE_start()
 {
index 7dc439d..0deeafe 100644 (file)
@@ -12,8 +12,6 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
 
-xbt_dict_t created_categories;
-
 void TRACE_category(const char *category)
 {
   TRACE_category_with_color (category, NULL);
 void TRACE_category(const char *category)
 {
   TRACE_category_with_color (category, NULL);
index 051fb32..bd0869d 100644 (file)
@@ -18,6 +18,8 @@
 #include "simdag/private.h"
 #include "simix/private.h"
 
 #include "simdag/private.h"
 #include "simix/private.h"
 
+extern xbt_dict_t created_categories;
+
 /* from paje.c */
 void TRACE_paje_create_header(void);
 void TRACE_paje_start(void);
 /* from paje.c */
 void TRACE_paje_create_header(void);
 void TRACE_paje_start(void);