Hi,
as some of you might know, I'm currently working on Ruby bindings for
EFL (ecore, evas, edje atm).

One problem I found is that Ruby's garbage collector doesn't work too
well with our $lib_shutdown() functions, which makes ecore/evas spank me
badly :)

In my case, these warning messages can be safely ignored, Ruby users
shouldn't see them.

I guess the most simple way to do this is with the attached patch.

Comments? If nobody objects, I'll put this in CVS in a few days (and
I'll do the same to evas, too).

-- 
Regards,
Tilman
Index: ecore.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore.c,v
retrieving revision 1.6
diff -u -r1.6 ecore.c
--- ecore.c     4 Apr 2004 17:08:25 -0000       1.6
+++ ecore.c     6 Jul 2004 20:19:45 -0000
@@ -73,6 +73,13 @@
 void
 _ecore_magic_fail(void *d, Ecore_Magic m, Ecore_Magic req_m, const char *fname)
 {
+   if (!d)
+     if (getenv("ECORE_ERROR_IGNORE_NULL")) return;
+   else if (m == ECORE_MAGIC_NONE)
+     if getenv("ECORE_ERROR_IGNORE_FREED") return;
+   else if (m != req_m)
+     if getenv("ECORE_ERROR_IGNORE_WRONG_TYPE") return;
+
    fprintf(stderr, 
           "\n"
           "*** ECORE ERROR: Ecore Magic Check Failed!!!\n"

Reply via email to