bug-ncurses
[Top][All Lists]
Advanced

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

Re: Corrections for 20020901


From: Thomas Dickey
Subject: Re: Corrections for 20020901
Date: Wed, 4 Sep 2002 05:28:17 -0400
User-agent: Mutt/1.2.5i

On Tue, Sep 03, 2002 at 06:04:00AM +0200, Philippe Blain wrote:
> >From Philippe Blain, Bordeaux, FRANCE.
> My old computer: P133 - 8,4 Go - 32 Mo Red Hat Linux 7.0
> 
> To maintainers of 'ncurses'.(and to Mr Dickey)
> Subject: Corrections for ncurses-5.2-20020901+
> 
> Here are some problems I found :
> 
> ----------------------------------------------------------------------------
> ----
> File : ncurses/tinfo/comp_err.c
> Function _nc_set_type() :
> 
> Here, good correction was :
> if (termtype == 0) termtype = typeMalloc(char, MAX_NAME_SIZE + 1);

ok.
 
> ----------------------------------------------------------------------------
> ----
> File : ncurses/base/lib_screen.c
> 
> Function : getwin()
> Missing :
>     ........
> ==> nwin->_notimeout = tmp._notimeout;
> ==> nwin->_idcok = tmp._idcok;
> ==> nwin->_idlok = tmp._idlok;
>     ........

maybe (strictly speaking yes - but ncurses doesn't implement per-window
idcok/idlok)
 
> ----------------------------------------------------------------------------
> ----
> File : ncurses/base/lib_screen.c
> Function : putwin()
> 
> Change chtype to NCURSES_CH_T,
>  push 'len' out of the for(...) loop :
>     ........
> ==> len = (win->_maxx + 1);
>     for (n = 0; n <= win->_maxy; n++) {
> ==>     if (fwrite(win->_line[n].text, sizeof(NCURSES_CH_T), len, filep) !=
> len
>         || ferror(filep))
>           returnCode(code);
>     }

ok
 
> ----------------------------------------------------------------------------
> ----
> File : ncurses/base/lib_window.c
> 
> Function : dupwin()
> Missing :
>     ........
> ==> nwin->_notimeout = win->._notimeout;
> ==> nwin->_idcok = win->._idcok;
> ==> nwin->_idlok = win->._idlok;
>     ........
> 
> ----------------------------------------------------------------------------
> ----
> File : ncurses/base/lib_tparm.c
> 
> No need to conserve the not-inlined function 'really_get_space()'.
> Incorporate directly in the inlined 'get_space()' for speed.

ok.
 
> Function parse_format() :
> 
> Assignement of width and prec (precision) are inverted.
> ['width' contains the true precision value, and 'prec' the true width value]
> No consequences, because maximum is returned in 'len'.

ok.
 
> Function tparam_internal() [lines 394 to 473]:
> According to the text :
>     * ...............................  We will only accept string parameters
>     * if they appear as a %l or %s format following an explicit parameter
>     * reference (e.g., %p2%s).  .................................

will see (I will have to read it closely)

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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