Re: fixincludes needed on linux?

Kev (klmitch@mit.edu)
Fri, 16 Oct 1998 18:22:41 EDT


> > Attached are unified diffs of the results.
> > Based on the 2.0.35 kernel.
> >
> > Summary: OS and machine names need to be surrounded with "__"
> > and "#endif" directives ought not have labels.
>
> #endif lines can have labels after then (they are ignored by the
> preprocessor). This is very useful to document where these blocks of
> conditional code end, especially if they are pages long and there are
> many nested #if's. Leave them in.

no, you're wrong, #endif's should not have labels after them. Comments
are allowed, however.

-- 
Kevin L. Mitchell <klmitch@mit.edu>
-------------------------  -. .---- --.. ..- -..-  --------------------------
http://web.mit.edu/klmitch/www/              (PGP5 keys availiable from here)
   DSS Key ID ED0DB34E: D9BF 0E74 FDCB 43F5 C597  878F 9455 EC24 ED0D B34E
   DH  Key ID 2A2C31D4: 1A77 4BA5 9E32 14AE 87DA  9FEC 7106 FC62 2A2C 31D4

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/