Enlightenment CVS committal
Author : vacuum
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
main.c
Log Message:
Error handling.
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- main.c 10 May 2004 11:06:41 -0000 1.7
+++ main.c 5 Jul 2004 01:10:30 -0000 1.8
@@ -17,9 +17,20 @@
int
main(int argc, char **argv)
{
- ecore_init();
- ecore_x_init(NULL);
- ecore_config_init("engage");
+ if((ecore_init()) == 0) {
+ exit(0);
+ }
+
+ if((ecore_x_init(NULL)) == 0) {
+ ecore_shutdown();
+ exit(0);
+ }
+
+ if((ecore_config_init("engage")) == ECORE_CONFIG_ERR_FAIL) {
+ ecore_x_shutdown();
+ ecore_shutdown();
+ exit(0);
+ }
ecore_app_args_set(argc, (const char **) argv);
if (od_config_init() != ECORE_CONFIG_PARSE_CONTINUE) {
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs