Widget #include cleanup
Leonard den Ottolander
leonard at den.ottolander.nl
Mon Jul 11 19:35:32 UTC 2005
Hi Roland,
On Mon, 2005-07-11 at 10:39, Roland Illig wrote:
> > Why can't the #include's be chained?
>
> Some day wtools.h might be changed not to #include dialog.h anymore.
> Then you have to adjust the source again. So better do it now.
That is very unlikely. widget.h *totally* depends on dialog.h. Also from
the redeclaration of Dlg_head and WListbox in wtools.h it is obvious it
should have included widget.h from the beginning.
With this patch we have a situation where wtools.h includes widget.h
which includes dialog.h. A very obvious and rather unbreakable chain of
dependencies.
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
More information about the mc-devel
mailing list