enlightenment/src
Lucas De Marchi 63f07459a0 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 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
preload Update precache for Ecore_File function declaration changes (int to 2010-06-10 15:12:46 +00:00
.cvsignore
Makefile.am speed up e17's login - reduce disk IO wait. 2006-10-22 10:03:59 +00:00