This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]