efl/legacy/eina/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
..
.cvsignore Add benchmark support. 2008-08-06 15:54:56 +00:00
Ecore_Data.h uncrustify eina. 2010-07-28 02:37:05 +00:00
Evas_Data.h uncrustify eina. 2010-07-28 02:37:05 +00:00
Makefile.am Add ustr tests. 2010-08-02 09:43:51 +00:00
ecore_hash.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_list.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_sheap.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_strings.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_bench.h * eina: Add first version of a Quad Tree data type. 2010-04-29 17:21:14 +00:00
eina_bench_array.c * eina: fix eina array threadsafe version. 2010-08-11 14:32:30 +00:00
eina_bench_convert.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_hash.c implement threadsafety for arrays, alter all eina internal array usage to (hopefully) be threadsafe 2010-08-10 03:26:15 +00:00
eina_bench_mempool.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_quad.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_rectangle_pool.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_sort.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_stringshare.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_bench_stringshare_e17.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_suite.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_suite.h Add ustr tests. 2010-08-02 09:43:51 +00:00
eina_test_accessor.c * eina: fix eina array threadsafe version. 2010-08-11 14:32:30 +00:00
eina_test_array.c * eina: fix structure content to be more futur proof and reduce 2010-08-19 12:02:28 +00:00
eina_test_benchmark.c * eina: fix eina array threadsafe version. 2010-08-11 14:32:30 +00:00
eina_test_binshare.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_convert.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_counter.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_error.c make it compile on Windows 2010-07-13 13:08:14 +00:00
eina_test_file.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_fp.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_hash.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_inlist.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_iterator.c * eina: fix eina array threadsafe version. 2010-08-11 14:32:30 +00:00
eina_test_lalloc.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_list.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_log.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_magic.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_main.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_matrixsparse.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_mempool.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_module.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_module_dummy.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_quadtree.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_rbtree.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_rectangle.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_str.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_strbuf.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_stringshare.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_tiler.c uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_test_ustr.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_test_ustringshare.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
evas_hash.c FORMATTING 2010-08-04 16:57:32 +00:00
evas_list.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
evas_mempool.c FORMATTING 2010-08-04 16:57:32 +00:00
evas_mempool.h FORMATTING 2010-08-04 16:57:32 +00:00
evas_object_list.c FORMATTING 2010-08-04 16:57:32 +00:00
evas_stringshare.c FORMATTING 2010-08-04 16:57:32 +00:00
strlog Add real life test from E17 use. 2008-09-16 14:06:14 +00:00