efl/legacy/ethumb/src/bin
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
..
Makefile.am fix build of ethumbd client. 2010-02-11 21:05:31 +00:00
ethumb.c fix library compilation on Windows (it should be cleaned, though) 2009-11-01 21:55:15 +00:00
ethumbd.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ethumbd_child.c Fix nasty cenourette. 2010-07-01 19:54:47 +00:00
ethumbd_client.c fix llvm/clang and gcc errors. 2010-03-02 00:34:40 +00:00
ethumbd_private.h Added support to creating animated thumbnails from videos. 2009-07-13 19:38:17 +00:00