efl/legacy/ecore/src/lib/ecore_con
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 Quiet. 2005-07-29 16:41:05 +00:00
Ecore_Con.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_con.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_con_ares.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_con_info.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_con_local.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_con_private.h fix cert support, split functions for client/server 2010-07-28 18:25:46 +00:00
ecore_con_ssl.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_con_url.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00