Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



On Tue, 20 Dec 2005, David Laight wrote:
One subtle difference is that you can specify
   struct fred;
many times (eg in different heaader files), but that there can only be one
   typedef struct fred fred_t;
So using the latter in fuction prototypes may require the inclusion of
more baggage.

I don't see how this is "baggage", really - two lines further you'll probably access the struct anyways, and need the full definition then. OTOH, pulling in TRT from the start may be less confusing - try compiling our header files and see how many errors you get because the baggage is hidden...


 - Hubert



Home | Main Index | Thread Index | Old Index