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
Kirby Kuehl <vacuum@technotronic.com> pointed out some portability
issues. These should now be fixed.
----------------------------------------------------------------------
SVN revision: 10983
Ran reformat-code on the tree.
Also merged in Azundris' Escreen patch. It's disabled by default for
the moment pending further testing, but you can enable it manually by
defining ESCREEN.
SVN revision: 6202
Changed occurances of "noenc" to the correct keyword, "none." Thanks
to Laurence J. Lane <ljlane@debian.org> for pointing this one out
also.
SVN revision: 6131
I think Ted made the right call for the wrong reason. I'm adding the
fallback value for CONFIG_BUFF so that people using the older libast
will be able to use 0.9.2. I'd like to get 0.9.2 out the door soon,
but libast 0.5 is far from ready. :-)
SVN revision: 5967