bug-ncurses
[Top][All Lists]
Advanced

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

Re: Issues while building ncurses 6.2 using Visual Studio


From: Anonymous Maarten
Subject: Re: Issues while building ncurses 6.2 using Visual Studio
Date: Thu, 2 Apr 2020 18:17:23 +0200

Hello again!

For lib_gen.c, I think that can only be solved by providing an alternate
means of generating the file which interprets the header files directly
without using the C preprocessor output (not simple).

Can you tell me what the output should look like?

Currently, the functions in lib_gen.c look like:
NCURSES_EXPORT(int) addch (const chtype z)
{
T((T_CALLED("addch(%s)"), _tracechtype2(0,z)));
returnCode(waddch(stdscr,(z)));
}


Visual C, using current master, transform these functions into:
(with #undef NCURSES_NOMACROS)
int __cdecl waddch(stdscr,(const chtype z))
{
;
return waddch(stdscr,(z));
}

Which is indeed an infinite recursive function.

With my change, this becomes:
(with #define NCURSES_NOMACROS)
int __cdecl addch (const chtype z)
{
;
return waddch(stdscr,(z));
}

I don't think this is an infinite recursive function.
What do you think?

Kind regards
Maarten
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]