efl/legacy/ecore/src/lib/ecore_evas
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
..
.cvsignore Silence. 2005-10-23 08:35:24 +00:00
Ecore_Evas.h FORMATTING 2010-08-04 16:57:32 +00:00
Makefile.am Move Ecore.h (and associated headers) to own dir. 2010-07-09 06:23:19 +00:00
ecore_evas.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_buffer.c Remove useless if statement. Regardless if count is greater than 1, we 2010-07-19 18:16:56 +00:00
ecore_evas_cocoa.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_directfb.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_fb.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_private.h FORMATTING 2010-08-04 16:57:32 +00:00
ecore_evas_sdl.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_util.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_evas_win32.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_wince.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_evas_x.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00