Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-16 Thread Albin Tonnerre
On Mon, 16 Aug 2010 15:22 -0700, Michael Jennings wrote : > On Monday, 16 August 2010, at 19:15:02 (-0300), > Lucas De Marchi wrote: > > > 6) i = a == NULL;=> i = !a; > > 7) i = a != NULL;=> i = !!a; > > > > Those four are valid also for while loops. > > >

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-16 Thread The Rasterman
On Mon, 16 Aug 2010 19:15:02 -0300 Lucas De Marchi said: > On Mon, Aug 16, 2010 at 9:48 AM, Carsten Haitzler > wrote: > >> Raster, k-s, others, what do you think? Can I apply for the other ones? > > checking - this is a patch to go > >  if (x == NULL) -> if (!x) > > right? (and the inverse). > >

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-16 Thread Michael Jennings
On Monday, 16 August 2010, at 19:15:02 (-0300), Lucas De Marchi wrote: > 6) i = a == NULL;=> i = !a; > 7) i = a != NULL;=> i = !!a; > > Those four are valid also for while loops. > >Eina_Bool func(char *a) >{ > 8)return a == NULL;=>

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-16 Thread Lucas De Marchi
On Mon, Aug 16, 2010 at 9:48 AM, Carsten Haitzler wrote: >> Raster, k-s, others, what do you think? Can I apply for the other ones? > checking - this is a patch to go >  if (x == NULL) -> if (!x) > right? (and the inverse). >  if (x != NULL)  -> if (x) > > right? right. What about these others?

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-16 Thread The Rasterman
On Thu, 12 Aug 2010 08:21:10 -0300 Lucas De Marchi said: > On Wed, Aug 11, 2010 at 6:36 PM, Michael Jennings wrote: > > I'm all for consistency, and this is certainly a great tool for > > producing that consistency, but shouldn't a concensus be reached > > amongst the developers for stylistic pe

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-13 Thread Kim Woelders
On Fri, 13 Aug 2010 19:08:46 +0200, Lucas De Marchi wrote: > On Thu, Aug 12, 2010 at 6:08 PM, Kim Woelders wrote: >>> >> If this causes trouble just forget about it. In any case, please don't >> introduce bugs :) >> > > Kim, i've committed the change in E16. But it went with a bogus log > mess

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-13 Thread Lucas De Marchi
On Thu, Aug 12, 2010 at 6:08 PM, Kim Woelders wrote: >> > If this causes trouble just forget about it. In any case, please don't > introduce bugs :) > Kim, i've committed the change in E16. But it went with a bogus log message. The reason why it can have false negatives is that I don't have the f

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Kim Woelders
On Thu, 12 Aug 2010 20:09:20 +0200, Lucas De Marchi wrote: > On Thu, Aug 12, 2010 at 2:47 PM, Kim Woelders wrote: >> I think we are in the personal taste department here, so it's probably >> dangerous just to change this all over. > > I took embryo as the first victim because it has examples o

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Lucas De Marchi
On Thu, Aug 12, 2010 at 2:47 PM, Kim Woelders wrote: > I think we are in the personal taste department here, so it's probably > dangerous just to change this all over. I took embryo as the first victim because it has examples of most of the cases. I would really like to apply the changes universa

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Kim Woelders
On Thu, 12 Aug 2010 13:21:10 +0200, Lucas De Marchi wrote: > On Wed, Aug 11, 2010 at 6:36 PM, Michael Jennings wrote: >> I'm all for consistency, and this is certainly a great tool for >> producing that consistency, but shouldn't a concensus be reached >> amongst the developers for stylistic p

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Lucas De Marchi
On Thu, Aug 12, 2010 at 9:20 AM, Vincent Torri wrote: > On Thu, 12 Aug 2010, Lucas De Marchi wrote: >> On Wed, Aug 11, 2010 at 6:36 PM, Michael Jennings wrote: > "EFL style" ? Where is it described ? Good time to start writing what we know by asking each other on irc / mailing list. Lucas De

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Vincent Torri
On Thu, 12 Aug 2010, Lucas De Marchi wrote: > On Wed, Aug 11, 2010 at 6:36 PM, Michael Jennings wrote: >> I'm all for consistency, and this is certainly a great tool for >> producing that consistency, but shouldn't a concensus be reached >> amongst the developers for stylistic personal preferen

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-12 Thread Lucas De Marchi
On Wed, Aug 11, 2010 at 6:36 PM, Michael Jennings wrote: > I'm all for consistency, and this is certainly a great tool for > producing that consistency, but shouldn't a concensus be reached > amongst the developers for stylistic personal preference changes as > opposed to actual algorithmic correc

Re: [E-devel] E SVN: lucas IN trunk/embryo/src: bin lib

2010-08-11 Thread Michael Jennings
On Wednesday, 11 August 2010, at 13:35:26 (-0700), Enlightenment SVN wrote: > Log: > Remove comparisons to NULL > > Rather than using "== NULL" or "!= NULL", use expression or !expression > where > possible. > > Patch automatically generated by coccinelle from badnull.cocci and >