[doc patch] coding style: 0 vs. NULL + [patch] Code cleanup: skip.c

Jan Kratochvil jan.kratochvil@redhat.com
Tue Dec 11 06:51:00 GMT 2012


On Tue, 11 Dec 2012 07:06:41 +0100, Jan Kratochvil wrote:
> OK         if (first)
> not great  if (!first)
> OK         if (first == NULL)
> OK         if (first != NULL)
> BAD        if (first == 0)
> BAD        if (first != 0)

BTW c++ -Wzero-as-null-pointer-constant warns only about the last two cases.


Jan



More information about the Gdb-patches mailing list