efl/legacy/embryo/src/bin
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 cvsignore 2004-10-15 11:52:17 +00:00
Makefile.am binary can be disabled 2010-01-15 06:06:33 +00:00
embryo_cc_amx.h fix PATH_MAX detection 2010-01-12 22:44:25 +00:00
embryo_cc_osdefs.h fix PATH_MAX detection 2010-01-12 22:44:25 +00:00
embryo_cc_prefix.c FORMATTING 2010-08-04 16:57:32 +00:00
embryo_cc_prefix.h FORMATTING 2010-08-04 16:57:32 +00:00
embryo_cc_sc.h include Evil.h for vc++ 2010-03-28 08:43:53 +00:00
embryo_cc_sc1.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc2.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc3.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc4.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc5.c Remove comparisons to NULL 2010-08-11 20:35:26 +00:00
embryo_cc_sc5.scp some more cleanup 2005-04-13 19:37:01 +00:00
embryo_cc_sc6.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc7.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_sc7.scp some more cleanup 2005-04-13 19:37:01 +00:00
embryo_cc_scexpand.c FORMATTING 2010-08-04 16:57:32 +00:00
embryo_cc_sclist.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
embryo_cc_scvars.c FORMATTING 2010-08-04 16:57:32 +00:00