[BACK]Return to addbytes.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libcurses

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libcurses/addbytes.c between version 1.66 and 1.67

version 1.66, 2022/11/07 21:18:49 version 1.67, 2022/12/12 21:14:15
Line 118  _cursesi_waddbytes(WINDOW *win, const ch
Line 118  _cursesi_waddbytes(WINDOW *win, const ch
         int             *py = &win->cury, *px = &win->curx, err;          int             *py = &win->cury, *px = &win->curx, err;
         __LINE          *lp;          __LINE          *lp;
 #ifdef HAVE_WCHAR  #ifdef HAVE_WCHAR
         int             n;          int             n, width;
         cchar_t         cc;          cchar_t         cc;
         wchar_t         wc;          wchar_t         wc;
         mbstate_t       st;          mbstate_t       st;
Line 177  _cursesi_waddbytes(WINDOW *win, const ch
Line 177  _cursesi_waddbytes(WINDOW *win, const ch
                 cc.attributes = attr;                  cc.attributes = attr;
                 err = _cursesi_addwchar(win, &lp, py, px, &cc, char_interp);                  err = _cursesi_addwchar(win, &lp, py, px, &cc, char_interp);
                 bytes += n;                  bytes += n;
                 count -= wcwidth(wc);  
                   width = wcwidth(wc);
                   if (width < 0)
                           width = 1;
                   count -= width;
 #endif  #endif
         }          }
   

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

CVSweb <webmaster@jp.NetBSD.org>