Lines Matching refs:win

55 	WINDOW	*win;
63 if ((win = (WINDOW *) malloc(sizeof (WINDOW))) == NULL)
65 if ((win->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == NULL)
68 if ((_y16update) && ((win->_y16 = (_ochtype **)
73 if ((win->_firstch = (short *) malloc(2 * nlines * sizeof (short)))
76 if ((_y16update) && (win->_y16 != NULL))
77 free((char *) win->_y16);
80 free((char *) win->_y);
82 free((char *) win);
90 win->_lastch = win->_firstch + nlines;
92 win->_cury = win->_curx = 0;
94 win->_maxy = (short) nlines;
96 win->_maxx = (short) ncols;
98 win->_begy = (short) begy;
100 win->_begx = (short) begx;
101 win->_clear = (((begy + SP->Yabove + begx) == 0) &&
103 win->_leave = win->_scroll = win->_use_idl = win->_use_keypad =
104 win->_notimeout = win->_immed = win->_sync = FALSE;
105 win->_use_idc = TRUE;
106 win->_ndescs = win->_tmarg = 0;
107 win->_bmarg = nlines - 1;
108 win->_bkgd = _BLNKCHAR;
109 win->_delay = win->_parx = win->_pary = -1;
110 win->_attrs = A_NORMAL;
111 win->_flags = _WINCHANGED;
112 win->_parent = win->_padwin = (WINDOW *) NULL;
113 (void) memset((char *) win->_firstch, 0, (nlines * sizeof (short)));
115 short *lastch = win->_lastch,
124 win->_insmode = FALSE;
125 win->_index = 0;
126 win->_nbyte = -1;
130 fprintf(outf, "MAKENEW: win->_clear = %d\n", win->_clear);
131 fprintf(outf, "MAKENEW: win->_flags = %0.2o\n", win->_flags);
132 fprintf(outf, "MAKENEW: win->_maxy = %d\n", win->_maxy);
133 fprintf(outf, "MAKENEW: win->_maxx = %d\n", win->_maxx);
134 fprintf(outf, "MAKENEW: win->_begy = %d\n", win->_begy);
135 fprintf(outf, "MAKENEW: win->_begx = %d\n", win->_begx);
138 return (win);