Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-18 Thread Albin Tonnerre
On Thu, May 07, 2009 at 10:53:06AM -0300, Gustavo Sverzut Barbieri wrote : > On Thu, May 7, 2009 at 5:31 AM, Albin Tonnerre > wrote: > > On Fri, May 01, 2009 at 08:43:01AM -0300, Gustavo Sverzut Barbieri wrote : > >> On Fri, May 1, 2009 at 8:34 AM, Albin Tonnerre > >> wrote: > >> > On Fri, May

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-07 Thread Gustavo Sverzut Barbieri
On Thu, May 7, 2009 at 5:31 AM, Albin Tonnerre wrote: > On Fri, May 01, 2009 at 08:43:01AM -0300, Gustavo Sverzut Barbieri wrote : >> On Fri, May 1, 2009 at 8:34 AM, Albin Tonnerre >> wrote: >> > On Fri, May 01, 2009 at 01:18:38PM +0200, Vincent Torri wrote : > > >> >> On Fri, 1 May 2009, Gustav

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-07 Thread Albin Tonnerre
On Fri, May 01, 2009 at 08:43:01AM -0300, Gustavo Sverzut Barbieri wrote : > On Fri, May 1, 2009 at 8:34 AM, Albin Tonnerre > wrote: > > On Fri, May 01, 2009 at 01:18:38PM +0200, Vincent Torri wrote : > >> On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: > >> > On Thu, Apr 30, 2009 at 9:13

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Peter Wehrfritz
Gustavo Sverzut Barbieri schrieb: > On Fri, May 1, 2009 at 8:18 AM, Vincent Torri wrote: > >> On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: >> >> >>> On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler >>> wrote: >>> On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbi

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Gustavo Sverzut Barbieri
On Fri, May 1, 2009 at 8:34 AM, Albin Tonnerre wrote: > On Fri, May 01, 2009 at 01:18:38PM +0200, Vincent Torri wrote : > > >> On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: > >> > On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler >> > wrote: >> > The only problem I see and I already talked

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Albin Tonnerre
On Fri, May 01, 2009 at 01:18:38PM +0200, Vincent Torri wrote : > On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: > > On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler > > wrote: > > The only problem I see and I already talked to Albin about it is on > > weird compilers without offsetof()

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Gustavo Sverzut Barbieri
On Fri, May 1, 2009 at 8:18 AM, Vincent Torri wrote: > > > On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: > >> On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler >> wrote: >>> >>> On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbieri >>> said: >>> On Thu, Apr 30, 2009 at 10:11 AM,

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Vincent Torri
On Fri, 1 May 2009, Gustavo Sverzut Barbieri wrote: > On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler > wrote: >> On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbieri >> said: >> >>> On Thu, Apr 30, 2009 at 10:11 AM, Albin Tonnerre >>> wrote: Hello, While playing with

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Gustavo Sverzut Barbieri
On Thu, Apr 30, 2009 at 9:13 PM, Carsten Haitzler wrote: > On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbieri > said: > >> On Thu, Apr 30, 2009 at 10:11 AM, Albin Tonnerre >> wrote: >> > Hello, >> > >> > While playing with Eina_Inlist, I noticed that given a pointer to an >> > Eina_Inli

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-05-01 Thread Albin Tonnerre
On Fri, May 01, 2009 at 10:13:09AM +1000, Carsten Haitzler wrote : > On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbieri > said: > > On Thu, Apr 30, 2009 at 10:11 AM, Albin Tonnerre > > wrote: > > > Hello, > > > While playing with Eina_Inlist, I noticed that given a pointer to an > > >

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-04-30 Thread The Rasterman
On Thu, 30 Apr 2009 18:02:45 -0300 Gustavo Sverzut Barbieri said: > On Thu, Apr 30, 2009 at 10:11 AM, Albin Tonnerre > wrote: > > Hello, > > > > While playing with Eina_Inlist, I noticed that given a pointer to an > > Eina_Inlist, one can't easily get a pointer to the structure containing it. >

Re: [E-devel] Accessing the structure containing an Eina_Inlist

2009-04-30 Thread Gustavo Sverzut Barbieri
On Thu, Apr 30, 2009 at 10:11 AM, Albin Tonnerre wrote: > Hello, > > While playing with Eina_Inlist, I noticed that given a pointer to an > Eina_Inlist, one can't easily get a pointer to the structure containing it. > The only option now is to put the Eina_Inlist first in the structure, and > then

[E-devel] Accessing the structure containing an Eina_Inlist

2009-04-30 Thread Albin Tonnerre
Hello, While playing with Eina_Inlist, I noticed that given a pointer to an Eina_Inlist, one can't easily get a pointer to the structure containing it. The only option now is to put the Eina_Inlist first in the structure, and then cast this structure to an Eina_Inlist, which is far from optimal. I