summaryrefslogtreecommitdiff
path: root/src/lib/evas/file/evas_module.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-07-01 20:25:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-07-01 20:25:04 +0900
commit64d54ed96484fddb4ca80b6044a5b0976d8c5c6d (patch)
treeecd0dbc004918d2cb3e621bd13b8fb1c81998a04 /src/lib/evas/file/evas_module.c
parentae63d023dd968d7d8f607d0ae2a69a87eae7be24 (diff)
fix tabe/whitespace format issues in evas module
Diffstat (limited to '')
-rw-r--r--src/lib/evas/file/evas_module.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 52de350851..7d23d45963 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -37,10 +37,10 @@ _evas_module_append(Eina_List *list, char *path)
37{ 37{
38 if (path) 38 if (path)
39 { 39 {
40 if (evas_file_path_exists(path)) 40 if (evas_file_path_exists(path))
41 list = eina_list_append(list, path); 41 list = eina_list_append(list, path);
42 else 42 else
43 free(path); 43 free(path);
44 } 44 }
45 return list; 45 return list;
46} 46}
@@ -95,18 +95,18 @@ evas_module_paths_init(void)
95 path = PACKAGE_LIB_DIR "/evas/modules"; 95 path = PACKAGE_LIB_DIR "/evas/modules";
96 if (!eina_list_search_unsorted(evas_module_paths, (Eina_Compare_Cb) strcmp, path)) 96 if (!eina_list_search_unsorted(evas_module_paths, (Eina_Compare_Cb) strcmp, path))
97 { 97 {
98 path = strdup(path); 98 path = strdup(path);
99 if (path) 99 if (path)
100 evas_module_paths = _evas_module_append(evas_module_paths, path); 100 evas_module_paths = _evas_module_append(evas_module_paths, path);
101 } 101 }
102#endif 102#endif
103} 103}
104 104
105#define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \ 105#define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \
106 Eina_Bool evas_##Tn##_##Name##_init(void); \ 106 Eina_Bool evas_##Tn##_##Name##_init(void); \
107 void evas_##Tn##_##Name##_shutdown(void); 107 void evas_##Tn##_##Name##_shutdown(void);
108 108
109#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name) \ 109#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name) \
110 { evas_##Tn##_##Name##_init, evas_##Tn##_##Name##_shutdown } 110 { evas_##Tn##_##Name##_init, evas_##Tn##_##Name##_shutdown }
111 111
112#if !EVAS_MODULE_NO_ENGINES 112#if !EVAS_MODULE_NO_ENGINES
@@ -300,8 +300,8 @@ evas_module_register(const Evas_Module_Api *module, Evas_Module_Type type)
300 300
301 if (type == EVAS_MODULE_TYPE_ENGINE) 301 if (type == EVAS_MODULE_TYPE_ENGINE)
302 { 302 {
303 eina_array_push(evas_engines, em); 303 eina_array_push(evas_engines, em);
304 em->id_engine = eina_array_count(evas_engines); 304 em->id_engine = eina_array_count(evas_engines);
305 } 305 }
306 306
307 eina_hash_direct_add(evas_modules[type], module->name, em); 307 eina_hash_direct_add(evas_modules[type], module->name, em);
@@ -368,7 +368,7 @@ evas_module_engine_list(void)
368 eina_iterator_free(it); 368 eina_iterator_free(it);
369 } 369 }
370 } 370 }
371 371
372 EINA_ARRAY_ITER_NEXT(evas_engines, i, em, iterator) 372 EINA_ARRAY_ITER_NEXT(evas_engines, i, em, iterator)
373 { 373 {
374 EINA_LIST_FOREACH(r, ll, s2) 374 EINA_LIST_FOREACH(r, ll, s2)
@@ -456,23 +456,23 @@ evas_module_find_type(Evas_Module_Type type, const char *name)
456 456
457 if (!evas_file_path_is_file(buffer)) continue; 457 if (!evas_file_path_is_file(buffer)) continue;
458 458
459 en = eina_module_new(buffer); 459 en = eina_module_new(buffer);
460 if (!en) continue; 460 if (!en) continue;
461 461
462 if (!eina_module_load(en)) 462 if (!eina_module_load(en))
463 { 463 {
464 eina_module_free(en); 464 eina_module_free(en);
465 continue; 465 continue;
466 } 466 }
467 467
468 em = eina_hash_find(evas_modules[type], name); 468 em = eina_hash_find(evas_modules[type], name);
469 if (em) 469 if (em)
470 { 470 {
471 eina_evas_modules = eina_list_append(eina_evas_modules, en); 471 eina_evas_modules = eina_list_append(eina_evas_modules, en);
472 return em; 472 return em;
473 } 473 }
474 474
475 eina_module_free(en); 475 eina_module_free(en);
476 } 476 }
477 477
478 return NULL; 478 return NULL;
@@ -561,9 +561,9 @@ evas_module_clean(void)
561 561
562 if (noclean == -1) 562 if (noclean == -1)
563 { 563 {
564 if (getenv("EVAS_NOCLEAN")) 564 if (getenv("EVAS_NOCLEAN"))
565 noclean = 1; 565 noclean = 1;
566 else 566 else
567 noclean = 0; 567 noclean = 0;
568 } 568 }
569 if (noclean == 1) return; 569 if (noclean == 1) return;
@@ -640,14 +640,14 @@ _evas_module_engine_inherit(Evas_Func *funcs, char *name)
640 em = evas_module_find_type(EVAS_MODULE_TYPE_ENGINE, name); 640 em = evas_module_find_type(EVAS_MODULE_TYPE_ENGINE, name);
641 if (em) 641 if (em)
642 { 642 {
643 if (evas_module_load(em)) 643 if (evas_module_load(em))
644 { 644 {
645 /* FIXME: no way to unref */ 645 /* FIXME: no way to unref */
646 evas_module_ref(em); 646 evas_module_ref(em);
647 evas_module_use(em); 647 evas_module_use(em);
648 *funcs = *((Evas_Func *)(em->functions)); 648 *funcs = *((Evas_Func *)(em->functions));
649 return 1; 649 return 1;
650 } 650 }
651 } 651 }
652 return 0; 652 return 0;
653} 653}