Hi Przemek,

> Anyhow as I know the life the problem will return so please change
> gtcrs.h[1244] to:
>       ioBase->mButtons = tigetnum( ( char * ) "btns" );
> to pacify it. I do not have enough energy to fight with it ;-)

??? Ok. My age is 58 (without so match energy, just advisees), we need here a 
compromised solution. 

Thanks.
István 

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Przemyslaw Czerpak
Sent: 2009. november 19. 22:09
To: Harbour Project Main Developer List.
Subject: Re: RE: RE: [Harbour] SF.net SVN: harbour-project:[12941] trunk/harbour

On Thu, 19 Nov 2009, Bisz István wrote:

Hi,

> Do you think that we should forward these to the Fedora(or gcc) developers?

Rather to Fedora or NCURSES developers. It's not GCC related problem.

in ncurses tigetnum is declared as:
   #undef  NCURSES_CONST
   #define NCURSES_CONST const
   [...]
   extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);

in PDCURSES (DJGPP):
   int tigetnum(const char *);

in NET BSD curses:
   int tgetnum(const char *);

In some very old curses versions it was declared as:
   int tigetnum(char *);
but in most of cases this declaration was fixed long time ago though
AFAIR SunOS still uses the wrong declaration. It should be 'const char *'.

For some reasons in the recent FC the wrong declaration was reactivated.
Probably some mistake in [n]curses build or configuration process but
I do not have any FC installed to check it. Or maybe some developer
make it compatible with some old curses documentation without understanding
what he really does (such declaration forbids using literal constants as
parameter).
I do not believe that internally new [n]curses begins to change this
parameter and I do not plan to introduce some hacks with writable
strings though in fact the man who changed declaration in FC forces
such modification but in my opinion it's only typo or side effect of
not enough knowledge.
Anyhow as I know the life the problem will return so please change
gtcrs.h[1244] to:
      ioBase->mButtons = tigetnum( ( char * ) "btns" );
to pacify it. I do not have enough energy to fight with it ;-)

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to