efl/legacy/ecore/src/lib/ecore_x/xlib
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 ignore 2008-08-14 17:57:32 +00:00
Makefile.am Fix inline functions 2010-08-18 21:27:40 +00:00
ecore_x.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_x_atoms.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_composite.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_cursor.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_damage.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_dnd.c Add some missing UNUSED macros. 2010-08-19 14:29:05 +00:00
ecore_x_dpms.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_drawable.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_e.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_error.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_events.c Fix 'suggest braces around empty body if statement'. 2010-08-18 16:28:36 +00:00
ecore_x_fixes.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_gc.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_icccm.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_image.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_x_mwm.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_netwm.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_pixmap.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_private.h re-uncrustify 2010-08-02 17:47:49 +00:00
ecore_x_randr.c Fix inline functions 2010-08-18 21:27:40 +00:00
ecore_x_randr.h Fix inline functions 2010-08-18 21:27:40 +00:00
ecore_x_randr_11.c Fix inline functions 2010-08-18 21:27:40 +00:00
ecore_x_randr_12.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_x_randr_13.c Fix inline functions 2010-08-18 21:27:40 +00:00
ecore_x_region.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_screensaver.c Remove blank line & fix formatting of function params. 2010-08-19 14:41:24 +00:00
ecore_x_selection.c Add missing UNUSED. 2010-08-19 14:33:49 +00:00
ecore_x_sync.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_test.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_window.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_x_window_prop.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_window_shape.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_x_xi2.c Don't return int in functions returning Eina_Bool 2010-08-16 12:03:49 +00:00
ecore_x_xinerama.c FORMATTING 2010-08-04 16:57:32 +00:00