efl/legacy
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
..
ecore Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
edje Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eeze doxy update 2010-08-21 03:45:58 +00:00
efreet Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eio eina-0 is no more, check for the right package name 2010-08-16 20:20:57 +00:00
embryo Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
emotion Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ethumb Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
evas Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
evil Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00