efl/legacy/ecore/src/lib/ecore_file
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 fileinteraction and monitoring 2005-02-20 12:17:07 +00:00
Ecore_File.h FORMATTING 2010-08-04 16:57:32 +00:00
Makefile.am Move Ecore.h (and associated headers) to own dir. 2010-07-09 06:23:19 +00:00
ecore_file.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_file_download.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
ecore_file_monitor.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_file_monitor_inotify.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_file_monitor_poll.c From: Joerg Sonnenberger <joerg@britannica.bec.de> 2010-08-15 02:59:32 +00:00
ecore_file_monitor_win32.c fix returned type of callbacks 2010-06-26 15:35:30 +00:00
ecore_file_path.c FORMATTING 2010-08-04 16:57:32 +00:00
ecore_file_private.h * eina: rename ecore_file_ls_iterator to eina_file_ls. 2010-07-02 17:23:05 +00:00