efl/legacy/emotion/src
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
..
bin Fix for Ecore Api changes wrt Eina_Bool. 2010-07-20 22:02:31 +00:00
edje_external * edje: fix edje external module to be consistent with the rest of the efl. 2010-08-18 16:57:19 +00:00
lib Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
modules Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
.cvsignore ignores 2004-10-25 03:23:14 +00:00
Makefile.am Initial support for Emotion as Edje EXTERNAL. 2010-04-01 03:59:39 +00:00