efl/legacy/ecore/src/lib/ecore_config
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. 2004-10-23 14:27:10 +00:00
Ecore_Config.h add constness; formatting 2008-06-08 12:38:56 +00:00
Makefile.am Move Ecore.h (and associated headers) to own dir. 2010-07-09 06:23:19 +00:00
ecore_config.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_config_db.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_config_extra.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_config_ipc.h kwo's ecore cleanup patch 2005-03-02 07:06:44 +00:00
ecore_config_ipc_ecore.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_config_ipc_main.c Apply memset-calloc.cocci 2010-08-13 12:53:08 +00:00
ecore_config_private.h Patch from Mathieu Taillefumier 2010-01-07 00:30:05 +00:00
ecore_config_storage.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_config_util.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_config_util.h Cleanup of lib from Morten Nilsen - thanks 2005-12-30 20:10:01 +00:00