Re: [PATCH] Use NULL instead of integer 0 in security/selinux/

From: Paul Jackson
Date: Fri Jul 09 2004 - 18:54:11 EST


Eric wrote:
>
> Does this mean constructs like:
> ``if (pointer)'' and ``if (!pointer)'' are also outlawed.
>
> And do we then need to initialize static pointers to NULL instead
> of letting them be implicitly 0.
>
> Is doing memset(&(struct with_embeded_pointers), 0, sizeof(struct))
> also wrong?

I suspect not. Up to Linus. This is all about writing code that
doesn't bite.

Since mostly it's us humans doing the writing, this is more a human
engineering problem than a pure mathematics problem such as Dijkstra
or Wirth were closer to addressing.

Let someone with demonstrated good taste dictate the style choices
that lead to short, sweat, but seldom screwy code.

It's all arbitrary as hell. The proof is in the pudding.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/