Subject: Style question
To: None <tech-kern@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: tech-kern
Date: 08/12/1997 18:56:32
Not a technical question, but a question about kernel source code
style... which is correct?
#ifdef __NetBSD__
/* NetBSD stuff */
#else /* !__NetBSD__ */
/* other stuff */
#endif /* __NetBSD__ */
or
#ifdef __NetBSD__
/* NetBSD stuff */
#else /* __NetBSD__ */
/* other stuff */
#endif /* __NetBSD__ */
or one the various other combinations of __NetBSD__ and !__NetBSD__?
What about:
#ifdef __NetBSD__
/* NetBSD stuff */
#endif /* what goes here? */
and
#ifndef __NetBSD__
/* NetBSD stuff */
#endif /* what goes here? */
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@bga.com | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++