eterm/src
Lucas De Marchi 3f375e63e2 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 Initial import of Eterm 0.8.9 sources 1999-08-17 23:01:18 +00:00
.indent.pro Sun Apr 7 21:15:09 2002 Michael Jennings (mej) 2002-04-08 02:16:09 +00:00
Makefile.am Fri Aug 18 13:41:14 2006 Michael Jennings (mej) 2006-08-18 17:41:19 +00:00
actions.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
actions.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
buttons.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
buttons.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
command.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
command.h Thu Nov 12 22:11:49 2009 Michael Jennings (mej) 2009-11-13 06:11:52 +00:00
defaultfont.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
defaultfont.h Mon Apr 18 16:00:22 2005 Michael Jennings (mej) 2005-04-18 20:01:59 +00:00
draw.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
draw.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
e.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
e.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
encoding.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
encoding.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
eterm_debug.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
eterm_utmp.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
events.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
events.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
feature.h do not redefine _GNU_SOURCE if configure already set it up for us 2009-08-20 18:38:38 +00:00
font.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
font.h Sun Oct 25 13:52:40 2009 Michael Jennings (mej) 2009-10-25 20:53:47 +00:00
gdb.scr Thu Aug 31 23:02:10 PDT 2000 Michael Jennings <mej@eterm.org> 2000-09-01 05:46:04 +00:00
grkelot.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
grkelot.h Initial import of Eterm 0.8.9 sources 1999-08-17 23:01:18 +00:00
icon.h Mon Oct 27 21:39:29 2003 Michael Jennings (mej) 2003-10-28 02:42:53 +00:00
libscream.c Thu Nov 12 22:11:49 2009 Michael Jennings (mej) 2009-11-13 06:11:52 +00:00
main.c Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
menus.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
menus.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
misc.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
misc.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
mmx_cmod.S Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
options.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
options.h Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
pixmap.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
pixmap.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
profile.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
scream.h * use clear-text commands to screen (^A:other i/o ^A^A etc.); this should 2005-05-12 13:09:28 +00:00
screamcfg.h Fri May 19 16:46:02 2006 Michael Jennings (mej) 2006-05-19 20:45:42 +00:00
screen.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
screen.h Eliminate use of Xmu. 2010-08-10 18:08:44 +00:00
script.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
script.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
scrollbar.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
scrollbar.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
sse2_cmod.c Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
startup.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
startup.h Eliminate use of Xmu. 2010-08-10 18:08:44 +00:00
system.c Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
system.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
term.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
term.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
timer.c Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
timer.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00
utmp.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
windows.c Convert (hopefully) all comparisons to NULL 2010-08-21 13:52:25 +00:00
windows.h Tue Jan 6 01:08:47 2009 Michael Jennings (mej) 2009-01-06 09:08:48 +00:00