forked from enlightenment/efl
Fix init checks so that there is no more seg fault.
All that stuff should be cleaned, though. SVN revision: 45780
This commit is contained in:
parent
921587e70b
commit
e2fe3d0f59
|
@ -196,7 +196,8 @@ main(int argc, char **argv)
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
edje_init();
|
if (!edje_init())
|
||||||
|
exit(-1);
|
||||||
|
|
||||||
edje_file = mem_alloc(SZ(Edje_File));
|
edje_file = mem_alloc(SZ(Edje_File));
|
||||||
edje_file->compiler = strdup("edje_cc");
|
edje_file->compiler = strdup("edje_cc");
|
||||||
|
|
|
@ -58,7 +58,8 @@ main(int argc, char **argv)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
eina_init();
|
if (!eina_init())
|
||||||
|
exit(-1);
|
||||||
_edje_cc_log_dom = eina_log_domain_register("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR);
|
_edje_cc_log_dom = eina_log_domain_register("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR);
|
||||||
if(_edje_cc_log_dom < 0)
|
if(_edje_cc_log_dom < 0)
|
||||||
{
|
{
|
||||||
|
@ -89,15 +90,15 @@ main(int argc, char **argv)
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
edje_init();
|
if (!edje_init())
|
||||||
eet_init();
|
exit(-1);
|
||||||
source_edd();
|
source_edd();
|
||||||
|
|
||||||
if (!decomp()) return -1;
|
if (!decomp()) return -1;
|
||||||
output();
|
output();
|
||||||
|
|
||||||
eet_close(ef);
|
eet_close(ef);
|
||||||
eet_shutdown();
|
edje_shutdown();
|
||||||
eina_log_domain_unregister(_edje_cc_log_dom);
|
eina_log_domain_unregister(_edje_cc_log_dom);
|
||||||
_edje_cc_log_dom = -1;
|
_edje_cc_log_dom = -1;
|
||||||
eina_shutdown();
|
eina_shutdown();
|
||||||
|
|
Loading…
Reference in New Issue