efl/legacy/efreet/src/tests
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
..
compare Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
data Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
.cvsignore Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
Makefile.am same PACKAGE_DIR as data subdir 2010-03-13 19:05:23 +00:00
ef_cache.c FORMATTING 2010-08-04 16:57:32 +00:00
ef_data_dirs.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ef_desktop.c Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
ef_icon_theme.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ef_ini.c Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
ef_locale.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ef_menu.c FORMATTING 2010-08-04 16:57:32 +00:00
ef_mime.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ef_test.h Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
ef_utils.c FORMATTING 2010-08-04 16:57:32 +00:00
efreet_spec_test.c Eet cache for efreet desktop 2010-03-01 18:16:32 +00:00
efreet_suite.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
efreet_suite.h add unit test and coverage framework, and trivial tests 2010-03-01 21:05:17 +00:00
efreet_test_efreet.c add unit test and coverage framework, and trivial tests 2010-03-01 21:05:17 +00:00
efreet_test_efreet_cache.c efreet_util_init gone 2010-03-27 19:58:02 +00:00
main.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00