- if (nrow <= 0 || ncol <= 0)
- goto bad;
- if ((w->ww_w.l = col) < 0)
- goto bad;
- if ((w->ww_w.r = col + ncol) > wwncol)
- goto bad;
- if ((w->ww_w.t = row) < 0)
+ if ((w->ww_w.nr = nrow) <= 0
+ || (w->ww_w.nc = ncol) <= 0
+ || (w->ww_w.l = col) < 0
+ || (w->ww_w.r = col + ncol) > wwncol
+ || (w->ww_w.t = row) < 0
+ || (w->ww_w.b = row + nrow) > wwnrow) {
+ wwerrno = WWE_SIZE;