Subject: Re: CVS commit: src/sys
To: None <source-changes@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: source-changes
Date: 04/17/2006 17:47:09
"Perry E. Metzger" <perry@piermont.com> writes:

> christos@astron.com (Christos Zoulas) writes:
>> Simon Burge  <simonb@wasabisystems.com> wrote:
>>>
>>>Should these names have io_ prefixes?  The current names are a bit
>>>"generic", and could cause issues in code that includes <sys/iostat.h>.
>>>
>> They should. Let's do it.
>
> Er, we live in an age of modern compilers -- the namespace inside
> structs is struct specific. Why do struct members need prefixes like
> io_?

Aside from the macro-related reasons, it can also act
as a check against getting one's structs mixed up.

-- 
let p = List.map (fun c k _-> k (print_char c))
in List.fold_right (fun f a _ -> f a) (List.map2
(fun f g k -> f (g k) ()) (p ['J';'d';'D';'v';'s'])
(p ['e';' ';'a';'i';'\n'])) ignore ()