Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_test.c
Log Message:
- Make the ewl_init() and ewl_shutdown() routines return 0 on failure
and > 0 on success. shutdown returns the number of times init has been
called for which no shutdown has been called
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- ewl_test.c 28 Jun 2004 05:19:23 -0000 1.64
+++ ewl_test.c 9 Jul 2004 13:24:50 -0000 1.65
@@ -114,7 +114,10 @@
heap_start = sbrk(0);
- ewl_init(&argc, argv);
+ if (!ewl_init(&argc, argv)) {
+ fprintf(stderr, "Could not init ewl. Exiting...\n");
+ return 1;
+ }
heap_end = sbrk(0);
printf("HEAP SIZE:\t%u bytes\n", heap_end - heap_start);
-------------------------------------------------------
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