static bool trace_configured = false;
static bool trace_active = false;
+static type_t rootType = nullptr; /* the root type */
+
instr_fmt_type_t instr_fmt_type = instr_fmt_paje;
static void TRACE_getopts()
/* destroy all data structures of tracing (and free) */
PJ_container_free_all();
- PJ_type_free_all();
+ recursiveDestroyType (PJ_type_get_root());
PJ_container_release();
- PJ_type_release();
+ rootType = nullptr;
xbt_dict_free(&user_link_variables);
xbt_dict_free(&user_host_variables);
type = nullptr;
}
-static void recursiveDestroyType (type_t type)
+void recursiveDestroyType (type_t type)
{
XBT_DEBUG("recursiveDestroyType %s", type->name);
xbt_dict_cursor_t cursor = nullptr;
PJ_type_free(type);
}
-void PJ_type_free_all ()
-{
- recursiveDestroyType (PJ_type_get_root());
- rootType = nullptr;
-}
-
type_t PJ_type_get (const char *name, type_t father)
{
type_t ret = PJ_type_get_or_null (name, father);
XBT_PRIVATE type_t PJ_type_state_new (const char *name, type_t father);
XBT_PUBLIC(type_t) PJ_type_get (const char *name, const type_t father);
XBT_PUBLIC(type_t) PJ_type_get_or_null (const char *name, type_t father);
-void PJ_type_free_all ();
-XBT_PRIVATE XBT_PRIVATE void PJ_type_free (type_t type);
+XBT_PRIVATE XBT_PRIVATE void PJ_type_free (type_t type);
+
+/* instr_config.c */
+XBT_PRIVATE void recursiveDestroyType (type_t type);
/* instr_paje_values.c */
XBT_PUBLIC(val_t) PJ_value_new (const char *name, const char *color, type_t father);