Annotation of coherent/g/usr/lib/ncurses/lib_deleteln.c, revision 1.1

1.1     ! root        1: /*********************************************************************
        !             2: *                         COPYRIGHT NOTICE                           *
        !             3: **********************************************************************
        !             4: *        This software is copyright (C) 1982 by Pavel Curtis         *
        !             5: *                                                                    *
        !             6: *        Permission is granted to reproduce and distribute           *
        !             7: *        this file by any means so long as no fee is charged         *
        !             8: *        above a nominal handling fee and so long as this            *
        !             9: *        notice is always included in the copies.                    *
        !            10: *                                                                    *
        !            11: *        Other rights are reserved except as explicitly granted      *
        !            12: *        by written permission of the author.                        *
        !            13: *                Pavel Curtis                                        *
        !            14: *                Computer Science Dept.                              *
        !            15: *                405 Upson Hall                                      *
        !            16: *                Cornell University                                  *
        !            17: *                Ithaca, NY 14853                                    *
        !            18: *                                                                    *
        !            19: *                Ph- (607) 256-4934                                  *
        !            20: *                                                                    *
        !            21: *                Pavel.Cornell@Udel-Relay   (ARPAnet)                *
        !            22: *                decvax!cornell!pavel       (UUCPnet)                *
        !            23: *********************************************************************/
        !            24: 
        !            25: /*
        !            26: **     lib_deleteln.c
        !            27: **
        !            28: **     The routine wdeleteln().
        !            29: **
        !            30: ** $Log:       RCS/lib_deleteln.v $
        !            31:  * Revision 2.2  91/04/20  18:15:44  munk
        !            32:  * Usage of register variables
        !            33:  *
        !            34:  * Revision 2.1  82/10/25  14:46:55  pavel
        !            35:  * Added Copyright Notice
        !            36:  * 
        !            37:  * Revision 2.0  82/10/25  13:44:03  pavel
        !            38:  * Beta-one Test Release
        !            39:  * 
        !            40: **
        !            41: */
        !            42: 
        !            43: #ifdef RCSHDR
        !            44: static char RCSid[] =
        !            45:        "$Header:   RCS/lib_deleteln.v  Revision 2.2  91/04/20  18:15:44  munk   Exp$";
        !            46: #endif
        !            47: 
        !            48: #include "curses.h"
        !            49: #include "curses.priv.h"
        !            50: 
        !            51: 
        !            52: wdeleteln(win)
        !            53: register WINDOW        *win;
        !            54: {
        !            55:        chtype          *end, *temp;
        !            56:        register int    y;
        !            57: 
        !            58: #ifdef TRACE
        !            59:        if (_tracing)
        !            60:            _tracef("wdeleteln(%o) called", win);
        !            61: #endif
        !            62: 
        !            63:        temp = win->_line[win->_cury];
        !            64: 
        !            65:        for (y = win->_cury; y < win->_regbottom; y++)
        !            66:        {
        !            67:            win->_line[y] = win->_line[y+1];
        !            68: 
        !            69:            win->_firstchar[y] = 0;
        !            70:            win->_lastchar[y] = win->_maxx;
        !            71:            win->_numchngd[y] = win->_maxx;
        !            72:        }
        !            73: 
        !            74:        win->_line[win->_regbottom] = temp;
        !            75: 
        !            76:        for (end = &(temp[win->_maxx]); temp <= end; )
        !            77:            *temp++ = ' ' | win->_attrs;
        !            78: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.