Go to file
Lucas De Marchi d98f684bad 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
images fix more binary files 2008-08-17 23:28:31 +00:00
m4 people really need to stop making batch commits without checking to see if they've broken something. 2010-07-16 20:57:51 +00:00
po adding portuguese translations 2010-08-13 11:41:21 +00:00
src Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
AUTHORS Add morlenxus to AUTHORS for his work on the new net module. 2007-02-12 21:25:28 +00:00
COPYING fix the copying license to 2009-01-13 13:00:45 +00:00
COPYING-PLAIN Added Net Module. 2006-02-19 18:23:14 +00:00
ChangeLog Added Net Module. 2006-02-19 18:23:14 +00:00
INSTALL Added Net Module. 2006-02-19 18:23:14 +00:00
Makefile.am EMODULES: Fix & Unify autofoo stuff everywhere, fix dist tarballs support, add ability to create dist tarball of all modules. 2009-08-03 14:49:56 +00:00
NEWS Added Net Module. 2006-02-19 18:23:14 +00:00
README Added Net Module. 2006-02-19 18:23:14 +00:00
TODO Some additional trapping and a config_updated hook to reset the timer. 2007-02-11 15:47:42 +00:00
autogen.sh No need to create the .pot file all the time 2007-11-12 03:51:31 +00:00
configure.ac Enable silent rules if possible. 2009-10-09 21:15:12 +00:00
e-module-net.edc EMODULES: Fix & Unify autofoo stuff everywhere, fix dist tarballs support, add ability to create dist tarball of all modules. 2009-08-03 14:49:56 +00:00
e_modules-net.spec.in Sat May 27 18:41:24 2006 Michael Jennings (mej) 2006-05-27 23:40:43 +00:00
module.desktop.in adding portuguese translations 2010-08-13 11:41:21 +00:00
net.edc Moved emodules to fontconfig. 2009-04-25 11:05:00 +00:00

README