efl/legacy/ecore/src/lib/ecore_x
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
..
xcb init/shutdown ecore in ecore_x_init 2010-08-05 13:50:47 +00:00
xlib Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
.cvsignore Some client message and ICCCM related functions. 2004-09-21 19:18:45 +00:00
Ecore_X.h from t_unix <- add none enum for randr 2010-08-19 08:25:34 +00:00
Ecore_X_Atoms.h FORMATTING 2010-08-04 16:57:32 +00:00
Ecore_X_Cursor.h re-uncrustify 2010-08-02 17:47:49 +00:00
Makefile.am Move Ecore.h (and associated headers) to own dir. 2010-07-09 06:23:19 +00:00
ecore_x_atoms_decl.h re-uncrustify 2010-08-02 17:47:49 +00:00