efl/legacy/ecore/src/lib
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
ecore_cocoa FORMATTING 2010-08-04 16:57:32 +00:00
ecore_con Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_config Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_directfb FORMATTING 2010-08-04 16:57:32 +00:00
ecore_evas Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_fb Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_file Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_imf * eina: fix eina array threadsafe version. 2010-08-11 14:32:30 +00:00
ecore_imf_evas FORMATTING 2010-08-04 16:57:32 +00:00
ecore_input FORMATTING 2010-08-04 16:57:32 +00:00
ecore_input_evas FORMATTING 2010-08-04 16:57:32 +00:00
ecore_ipc FORMATTING 2010-08-04 16:57:32 +00:00
ecore_sdl FORMATTING 2010-08-04 16:57:32 +00:00
ecore_win32 Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_wince FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
.cvsignore Fixed a couple of debs in e17/libs, added and updated a couple of .cvsignores. 2003-11-13 12:30:50 +00:00
Makefile.am more quartz -> cocoa renaming 2010-03-27 18:28:50 +00:00