[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lib_bkgd.c demands WINDOW._bkgd
From: |
Thomas Dickey |
Subject: |
Re: lib_bkgd.c demands WINDOW._bkgd |
Date: |
Thu, 20 Dec 2001 19:05:55 -0500 |
User-agent: |
Mutt/1.2.5i |
On Fri, Dec 21, 2001 at 12:28:43AM +0100, Robert Joop wrote:
> [ncurses 5.2 patch 20011218]
>
> the compiler tells me
>
> ../ncurses/./base/lib_bkgd.c: In function `wbkgrndset':
> ../ncurses/./base/lib_bkgd.c:75: structure has no member named `_bkgd'
>
> the line reads
>
> win->_bkgd = ((tmp == EOF) ? ' ' : (chtype) tmp) | AttrOf(wch);
>
> win is a WINDOW *, i've found
>
> include/curses.h:typedef struct _win_st WINDOW;
> include/curses.h:struct _win_st
>
> but struct _win_st doesn't contain any _bkgd member, the compiler is of
> course right.
> it contains a _bkgrnd member, but it's of an incompatible type.
but it does - one of the changes I made for 20011218 is to have both _bkgd
and _bkgrnd in the same structure. I'm attaching a copy (gzip'd) of the
corresponding curses.h for comparison.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
curses.h.gz
Description: application/gunzip