~ubuntu-branches/debian/sid/ncurses/sid-200908151531

« back to all changes in this revision

Viewing changes to ncurses/base/lib_winch.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-05 21:34:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105213400-7d9r3jj2ngz18k24
Tags: 5.7-1
* Merging upstream version 5.7.
* Updating soname and sodepver to 5.7 in rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include <curses.priv.h>
41
41
 
42
 
MODULE_ID("$Id: lib_winch.c,v 1.6 2008/11/16 00:19:59 juergen Exp $")
 
42
MODULE_ID("$Id: lib_winch.c,v 1.5 2001/06/02 23:42:08 skimo Exp $")
43
43
 
44
44
NCURSES_EXPORT(chtype)
45
45
winch(WINDOW *win)
46
46
{
47
47
    T((T_CALLED("winch(%p)"), win));
48
48
    if (win != 0) {
49
 
        returnChtype(CharOf(win->_line[win->_cury].text[win->_curx]) |
50
 
                     AttrOf(win->_line[win->_cury].text[win->_curx]));
 
49
        returnChar(CharOf(win->_line[win->_cury].text[win->_curx]) |
 
50
                   AttrOf(win->_line[win->_cury].text[win->_curx]));
51
51
    } else {
52
 
        returnChtype(0);
 
52
        returnChar(0);
53
53
    }
54
54
}