On Wed, 9 Sep 2009, Ivan Briano wrote:

On Wed, Sep 9, 2009 at 11:13 AM, Vincent Torri<vto...@univ-evry.fr> wrote:


On Wed, 9 Sep 2009, Enlightenment SVN wrote:

Modified: trunk/eina/src/include/eina_inlist.h
===================================================================
--- trunk/eina/src/include/eina_inlist.h        2009-09-09 10:44:25 UTC
(rev 42365)
+++ trunk/eina/src/include/eina_inlist.h        2009-09-09 14:05:31 UTC
(rev 42366)
@@ -52,7 +52,7 @@

#define EINA_INLIST Eina_Inlist __in_list
#define EINA_INLIST_GET(Inlist) (&((Inlist)->__in_list))
-#define EINA_INLIST_CONTAINER_GET(ptr, type) ((type *) ((Eina_Inlist *)
ptr - offsetof(type, __in_list)))
+#define EINA_INLIST_CONTAINER_GET(ptr, type) ((type *) ((char *) ptr -
offsetof(type, __in_list)))

Iirc, i have already said that offsetof does not exist on Windows CE


That macro was already there, I just fixed the cast to get the right address.
I don't think it's used anywhere so it can be replaced by the macros below.

yes. That makes me think that i'm wondering why someone asked me if that function exists or not on win ce.

Also, I don't know if it is important or not, but on OpenSolaris with suncc,
char is a signed type (-128...127)


And char *?

it's a signed pointer of course ! :) kidding. Forget my remark, there is no dereferencement

Vincent
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to