tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] style(5): No struct typedefs
[paragraph-length-line damage repaired manually]
> What about something like <sys/typedefs/whatever.h> and
> <sys/impl/whatever_impl.h>? The type definitions go into the former
> header file, [...]
Well, I don't like the "typedefs" name, because as I see it the divide
you're sketching here (which I support, in general) is the divide
between interface and implementation, and in some cases the interface
is more than just the typedefs. Some structs have their struct
definition, or some of it (regex_t is an example), as part of their
advertised interface, and many have #defines as well.
But I'd rather see the division done with (what I see as) an inaccurate
name than see the division not done.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index