Subject: Re: multiple inclusion protection for kernel files
To: None <christos@zoulas.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 12/04/2005 11:29:37
In article <20051203215935.3D7C7564FA@rebar.astron.com>
christos@zoulas.com wrote:
> 1. For files that get installed in /usr/include:
> All the code in the include file is bracketed by:
>
> #ifndef _[<DIR>_...]<FILENAME>_H_
> #define _[<DIR>_...]<FILENAME>_H_
> .... code ....
> #endif /* _[<DIR>_...]<FILENAME>_H_ */
Some files under include/machine/ use _MACHINE_FOO_H_
but others use own ${MACHINE} names, like _HP300_FOO_H_.
Which is better?
---
Izumi Tsutsui