> On Jul 12, 2023, at 5:25 AM, Mouse <mo...@rodents-montreal.org> wrote: > > [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, Yah, I don't like it either, but.. :-) > 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. Sort of. <sys/typedefs/vnode.h> // contains the "vnode_t" opaque type definition <sys/impl/vnode_impl.h> // contains the guts of "struct vnode" and the other implementation details <sys/mount.h> // Contains some of the file system interfaces, some of which use vnode_t <sys/vnode.h> // Contains the vnode interfaces, which definitely use vnode_t The latter if the two would each include <sys/typedefs/vnode.h>. Feel free to pick a better name, but that's the idea. -- thorpej
- Re: [PATCH] style(5): No struct typedefs Mouse
- Re: [PATCH] style(5): No struct typedefs Johnny Billquist
- Re: [PATCH] style(5): No struct typedefs Johnny Billquist
- Re: [PATCH] style(5): No struct typedefs Mouse
- Re: [PATCH] style(5): No struct typedefs Jason Thorpe
- Re: [PATCH] style(5): No struct typedefs Taylor R Campbell
- Re: [PATCH] style(5): No struct typedefs Jason Thorpe
- Re: [PATCH] style(5): No struct typedefs Robert Elz
- Re: [PATCH] style(5): No struct typedef... Jason Thorpe
- Re: [PATCH] style(5): No struct ty... Mouse
- Re: [PATCH] style(5): No struct ty... Jason Thorpe
- Re: [PATCH] style(5): No struct ty... Mouse
- Re: [PATCH] style(5): No struct ty... Taylor R Campbell
- Re: [PATCH] style(5): No struct ty... Johnny Billquist
- Re: [PATCH] style(5): No struct ty... Martin Husemann
- Re: [PATCH] style(5): No struct ty... Johnny Billquist
- Re: [PATCH] style(5): No struct ty... Martin Husemann
- Re: [PATCH] style(5): No struct ty... Jason Thorpe
- Re: [PATCH] style(5): No struct ty... Brook Milligan
- RE: [PATCH] style(5): No struct ty... Terry Moore
- Re: [PATCH] style(5): No struct ty... Taylor R Campbell