Lines Matching refs:new
60 WINDOW *new; in dupwin() local
69 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) in dupwin()
72 (void) memcpy(new, win, sizeof (WINDOW)); in dupwin()
76 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL) in dupwin()
81 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
87 free((char *)new->_firstch); in dupwin()
89 free((char *)new); in dupwin()
93 if (_image(new) == ERR) { in dupwin()
106 newcp = new->_y; in dupwin()
139 (void) memcpy((char *)new->_firstch, (char *)win->_firstch, in dupwin()
142 new->_flags |= _WINCHANGED; in dupwin()
143 new->_ndescs = 0; in dupwin()
149 new->_padwin = new->_parent = (WINDOW *) NULL; in dupwin()
150 new->_pary = new->_parx = -1; in dupwin()
152 new->_index = win->_index; in dupwin()
153 new->_nbyte = win->_nbyte; in dupwin()
154 new->_insmode = win->_insmode; in dupwin()
155 (void) memcpy((char *)new->_waitc, (char *)win->_waitc, in dupwin()
158 return (new); in dupwin()