From: Enlightenment S. <no-...@en...> - 2009-11-23 19:51:06
|
Log: Better path for modules and move variables to beginning of block Author: sachiel Date: 2009-11-23 11:50:54 -0800 (Mon, 23 Nov 2009) New Revision: 43934 Modified: trunk/edje/src/lib/edje_module.c Modified: trunk/edje/src/lib/edje_module.c =================================================================== --- trunk/edje/src/lib/edje_module.c 2009-11-23 18:47:31 UTC (rev 43933) +++ trunk/edje/src/lib/edje_module.c 2009-11-23 19:50:54 UTC (rev 43934) @@ -83,6 +83,10 @@ void _edje_module_init(void) { + unsigned int i; + Eina_Array_Iterator it; + Eina_Module *m; + _edje_modules_log_dom = eina_log_domain_register("edje_module", LOG_COLOR); if (_edje_modules_log_dom < 0) @@ -93,7 +97,7 @@ _registered_modules = eina_hash_string_small_new(NULL); _available_modules = eina_module_list_get(_available_modules, - PACKAGE_LIB_DIR "/lib/edje", 0, NULL, NULL); + PACKAGE_LIB_DIR "/edje", 0, NULL, NULL); if (!_available_modules) { @@ -101,10 +105,6 @@ return; } - unsigned int i; - Eina_Array_Iterator it; - Eina_Module *m; - EINA_ARRAY_ITER_NEXT(_available_modules, i, m, it) { const char *name; |