efl/legacy/ecore/src/lib/ecore
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 Sssh 2004-03-29 21:11:30 +00:00
Ecore.h ecore_thread_pool -> ecore_thread_local 2010-08-18 08:56:44 +00:00
Ecore_Getopt.h Ecore_Getopt: Fix attributions 2010-08-13 15:34:25 +00:00
Makefile.am Move Ecore.h (and associated headers) to own dir. 2010-07-09 06:23:19 +00:00
ecore.c From: Mike McCormack <mj.mccormack@samsung.com> 2010-08-14 11:19:03 +00:00
ecore_anim.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_app.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_events.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_exe.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_exe_win32.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_exe_wince.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_getopt.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_glib.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_idle_enterer.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_idle_exiter.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_idler.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_job.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_main.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_pipe.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_poll.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_private.h From: Mike McCormack <mj.mccormack@samsung.com> 2010-08-14 11:19:03 +00:00
ecore_signal.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_thread.c ecore_thread_pool -> ecore_thread_local 2010-08-18 08:56:44 +00:00
ecore_time.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_timer.c FORMATTING 2010-08-04 16:57:32 +00:00