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

Joel Brobecker brobecker@adacore.com
Tue Dec 11 01:54:00 GMT 2012


> But GDB (IMO fortunately) already uses everywhere properly NULL vs. 0.
[...]
> I have added a new rule for the coding style for it.

So, just to be certain, this also includes testing for NULL, right?
Code like...

        first = strstr (big, small);
        if (first)

... should be written instead:

        if (first != NULL)

?

-- 
Joel



More information about the Gdb-patches mailing list