efl/legacy/eet/src/lib
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 ignore 2008-08-06 04:58:43 +00:00
Eet.h formatting - as agreed. return on line before func and each param on a 2010-08-20 02:22:51 +00:00
Eet_private.h FORMATTING 2010-08-04 16:57:32 +00:00
Makefile.am moved eet.h to its own dir - pkgconfig handles all the right stuff. 2010-07-08 03:05:00 +00:00
eet_cipher.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_connection.c FORMATTING 2010-08-04 16:57:32 +00:00
eet_data.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_dictionary.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_image.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_lib.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_node.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
eet_utils.c FORMATTING 2010-08-04 16:57:32 +00:00