Re: tigetstr() usage in init_xterm_support()
- From: Pavel Roskin <proski gnu org>
- To: Pavel Tsekov <ptsekov gmx net>
- Cc: mc-devel gnome org
- Subject: Re: tigetstr() usage in init_xterm_support()
- Date: Thu, 04 May 2006 11:59:36 -0400
Hello, Pavel!
On Thu, 2006-05-04 at 16:41 +0200, Pavel Tsekov wrote:
> init_xterm_support() uses tigetstr() to retrieve the xterm mouse
> sequnce
> from the terminfo database. Unfortunately, the prototype for
> tigetstr() is
> missing which is fatal for 64-bit builds of MC as the compiler assumes
> that
> tigetstr() returns int (32 bits) instead of pointer to char (64 bits).
> Now,
> the obvious solution is to include term.h which holds the prototype
> for
> tigetstr(), but unfortunately this doesn't work very well as term.h
> defines
> a series of macros which pollute the namespace badly i.e. lines,
> buttons,
> etc...
Please consider moving init_xterm_support() outside main.c, so that the
namespace pollution doesn't affect other code.
--
Regards,
Pavel Roskin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]