forked from enlightenment/efl
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 |
||
---|---|---|
.. | ||
.cvsignore | ||
Makefile.am | ||
embryo_cc_amx.h | ||
embryo_cc_osdefs.h | ||
embryo_cc_prefix.c | ||
embryo_cc_prefix.h | ||
embryo_cc_sc.h | ||
embryo_cc_sc1.c | ||
embryo_cc_sc2.c | ||
embryo_cc_sc3.c | ||
embryo_cc_sc4.c | ||
embryo_cc_sc5.c | ||
embryo_cc_sc5.scp | ||
embryo_cc_sc6.c | ||
embryo_cc_sc7.c | ||
embryo_cc_sc7.scp | ||
embryo_cc_scexpand.c | ||
embryo_cc_sclist.c | ||
embryo_cc_scvars.c |