From: cedric Date: Tue, 20 Dec 2011 11:00:59 +0000 (+0000) Subject: eina: reorder init as eina_error need eina_stringshare. X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca3d52e3a0073252d6ca509cef0637164a82e172;p=profile%2Fivi%2Feina.git eina: reorder init as eina_error need eina_stringshare. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@66383 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/eina_main.c b/src/lib/eina_main.c index 8727f83..e987c06 100644 --- a/src/lib/eina_main.c +++ b/src/lib/eina_main.c @@ -161,6 +161,7 @@ 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(stringshare), S(error), S(safety_checks), S(magic_string), @@ -171,7 +172,6 @@ static const struct eina_desc_setup _eina_desc_setup[] = { S(mempool), S(list), S(binshare), - S(stringshare), S(ustringshare), S(matrixsparse), S(convert), @@ -236,8 +236,8 @@ eina_init(void) _mt_enabled = 1; mtrace(); } -#endif - +#endif + if (!eina_log_init()) { fprintf(stderr, "Could not initialize eina logging system.\n"); @@ -304,7 +304,7 @@ eina_shutdown(void) muntrace(); _mt_enabled = 0; } -#endif +#endif } return _eina_main_count;