Annotation of researchv10no/ncurses/screen/s.delwin.c, revision 1.1.1.1

1.1       root        1: &h50675
                      2: &s 00004/00001/00020
                      3: &d D 1.2 87/10/22 09:22:25 bin 2 1
                      4: &c Bug fix to free windows in curses.
                      5: &e
                      6: &s 00021/00000/00000
                      7: &d D 1.1 87/10/22 09:17:54 bin 1 0
                      8: &c date and time created 87/10/22 09:17:54 by bin
                      9: &e
                     10: &u
                     11: &U
                     12: &t
                     13: &T
                     14: &I 1
                     15: /*      %M%     %I%     %G%             */
                     16: &D 2
                     17: 
                     18: &E 2
                     19: # include      "curses.ext"
                     20: /*     @(#) delwin.c: 1.1 10/15/83     (1.2    4/7/82) */
                     21: 
                     22: /*
                     23:  *     This routine deletes a _window and releases it back to the system.
                     24:  *
                     25:  * 1/26/81 (Berkeley) @(#)delwin.c     1.1
                     26:  */
                     27: delwin(win)
                     28: reg WINDOW     *win; {
                     29: 
                     30:        reg int i;
                     31: 
                     32:        if (!(win->_flags & _SUBWIN))
                     33:                for (i = 0; i < win->_maxy && win->_y[i]; i++)
                     34:                        cfree((char *) win->_y[i]);
                     35: &I 2
                     36: /* FIX START */
                     37:        cfree((char *)win->_firstch);
                     38:        cfree((char *)win->_lastch);
                     39: /* FIX END */
                     40: &E 2
                     41:        cfree((char *) win->_y);
                     42:        cfree((char *) win);
                     43: }
                     44: &E 1

unix.superglobalmegacorp.com

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