efl/legacy/eina/src/include
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 .cvsignore. 2008-07-30 13:09:03 +00:00
Eina.h Eina: implement the macro eina_binshare_add. 2010-07-27 09:41:34 +00:00
Makefile.am Eina: Moved the private headers to src/lib where they belong. 2010-08-19 08:30:01 +00:00
eina_accessor.h * eina: fix structure content to be more futur proof and reduce 2010-08-19 12:02:28 +00:00
eina_array.h * eina: fix structure content to be more futur proof and reduce 2010-08-19 12:02:28 +00:00
eina_benchmark.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_binshare.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_config.h.in * eina: remove configure option for rwlock as it is not used anymore. 2010-08-16 15:36:17 +00:00
eina_convert.h * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_counter.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_cpu.h uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_error.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_file.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_fp.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_hamster.h minor fixes 2009-12-25 16:22:13 +00:00
eina_hash.h * eina: remove thread safe data type for now. They will be back ! 2010-08-16 09:32:09 +00:00
eina_inline_array.x some doc fixes 2010-08-17 06:58:26 +00:00
eina_inline_f8p24.x explicit cast 2010-04-10 23:23:26 +00:00
eina_inline_f16p16.x explicit cast 2010-04-10 23:23:26 +00:00
eina_inline_f32p32.x constants should be unsigned 2010-02-12 07:27:27 +00:00
eina_inline_fp.x * eina: fix rounding issue with different size of fixed point. 2010-04-16 14:32:18 +00:00
eina_inline_hash.x constness++ 2009-03-20 01:00:04 +00:00
eina_inline_list.x do not declare inlined functions in the source file, 2010-05-28 19:03:26 +00:00
eina_inline_log.x eina log level utilities. 2010-02-09 01:43:58 +00:00
eina_inline_mempool.x API BREAK: fix Eina API so that it is more consistent with the other EFL 2009-06-24 16:56:49 +00:00
eina_inline_rbtree.x BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_inline_rectangle.x eina gets lots of gcc attributes to its api. 2008-12-26 13:17:51 +00:00
eina_inline_str.x * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_inline_stringshare.x Eina: Add Eina_UStringshare and Eina_Binshare. 2010-07-27 08:55:23 +00:00
eina_inline_tiler.x * eina: Don't variable name that could shadow math symbols. 2010-03-01 13:50:35 +00:00
eina_inline_trash.x cast. c++ doesn't like the implied void * -> struct * cast. 2009-07-16 03:04:56 +00:00
eina_inline_ustringshare.x some doc fixes 2010-08-17 06:58:26 +00:00
eina_inlist.h formatting. ok - maybe we can have a debate on it, but its better than 2010-08-16 06:14:19 +00:00
eina_iterator.h * eina: fix structure content to be more futur proof and reduce 2010-08-19 12:02:28 +00:00
eina_lalloc.h uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_list.h * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_log.h some doc fixes 2010-08-17 06:58:26 +00:00
eina_magic.h * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_main.h some doc fixes 2010-08-17 06:58:26 +00:00
eina_matrixsparse.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_mempool.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_module.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_quadtree.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_rbtree.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_rectangle.h * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_safety_checks.h Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eina_str.h * eina: attempt to improve a little bit more the header. 2010-08-16 15:02:37 +00:00
eina_strbuf.h some doc fixes 2010-08-17 06:58:26 +00:00
eina_stringshare.h Eina: Fixed usage of EINA_CONST, the lack of EINA_PURE and EINA_WARN_UNUSED_RESULT and formatting in the following headers: 2010-08-15 09:01:16 +00:00
eina_tiler.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_trash.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_types.h BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE! 2010-08-13 06:36:33 +00:00
eina_unicode.h formatting 2010-08-17 05:22:10 +00:00
eina_ustrbuf.h some doc fixes 2010-08-17 06:58:26 +00:00
eina_ustringshare.h Eina: Fixed usage of EINA_CONST, the lack of EINA_PURE and EINA_WARN_UNUSED_RESULT and formatting in the following headers: 2010-08-15 09:01:16 +00:00