eina: don't init subcomponents inside eina_debug
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 15 Jun 2018 20:40:23 +0000 (16:40 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 19 Jun 2018 21:47:51 +0000 (06:47 +0900)
this should be done in a single location to avoid dependency conflicts
and make the code easier to read

Differential Revision: https://phab.enlightenment.org/D6301

src/lib/eina/eina_debug.c
src/lib/eina/eina_main.c

index 9dd1a09..4ffb8d1 100644 (file)
@@ -711,9 +711,6 @@ eina_debug_init(void)
      }
    // mark as initted
    _inited = EINA_TRUE;
-   eina_module_init();
-   eina_mempool_init();
-   eina_list_init();
    // For Windows support GetModuleFileName can be used
    // set up thread things
    eina_spinlock_new(&_eina_debug_lock);
index 8591878..3aa7e24 100644 (file)
@@ -170,6 +170,9 @@ struct eina_desc_setup
 static const struct eina_desc_setup _eina_desc_setup[] = {
 #define S(x) {# x, eina_ ## x ## _init, eina_ ## x ## _shutdown}
    /* log is a special case as it needs printf */
+   S(module),
+   S(mempool),
+   S(list),
    S(debug),
    S(evlog),
    S(stringshare),
@@ -180,9 +183,6 @@ static const struct eina_desc_setup _eina_desc_setup[] = {
    S(accessor),
    S(inarray),
    S(array),
-   S(module),
-   S(mempool),
-   S(list),
    S(binshare),
    S(ustringshare),
    S(matrixsparse),