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

Re: Two more Aptitude enquiries



Christian Perrier <bubulle@debian.org> wrote:
>>From the sources:

> static void show_version()
> {
>   printf(_("%s %s compiled at %s %s\n"),
> 	   PACKAGE, VERSION, __DATE__, __TIME__);
> #ifdef __GNUC__
>   printf(_("Compiler: g++ %s\n"), __VERSION__);
> #endif
> #ifdef NCURSES_VERSION
>   printf(_("\nNCurses version: %s\n"), NCURSES_VERSION);
> #else
>   printf(_("\nCurses version: %s\n"), curses_version());
> #endif
>   printf(_("libsigc++ version: %s\n"), SIGC_VERSION);
> }

That's a little more than redundant: curses_version() is from the library,
while NCURSES_VERSION is from the headers.  The latter should be used
where it is available (and has been for quite a while).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Reply to: