Broken view.h

Pavel Roskin proski at gnu.org
Mon Jul 30 21:31:57 UTC 2001


Hi, Steef!

> A small bug entered the code of mc-2001-07-29-14.tar.gz snapshot
> in src/view.h line 146:

Already fixed.  Sorry for inconvenience.

>   int view_ok_to_quit (WView *view);
>
> should be either within the
>   #ifdef HAVE_X
>   #ifdef WANT_WIDGETS
> contruct at line 155 or between the
>   #ifdef WANT_WIDGETS

The later is better.  Otherwise "gcc -Wmissing-declarations" would report
that view_ok_to_quit has no declaration while compiling the text edition.

In the long run, all those WANT_WIDGETS should go away.  Including full
headers should not harm anyone.

-- 
Regards,
Pavel Roskin





More information about the mc-devel mailing list