Lines Matching defs:rscnt
97 static int rscnt, rsmax; /* 0..rscnt-1: currently under consideration */
98 /* rscnt..rsmax: discarded */
245 rscnt = rsmax;
248 while (rscnt > 0 && nroom < MAXNROFROOMS - 1) {
254 rsp = &rs[rn2(rscnt)];
275 rscnt--;
277 *rsp = rs[rscnt];
278 rs[rscnt] = rs[rsmax];
310 /* walk down since rscnt and rsmax change */
316 if ((discarded = (rsp >= &rs[rscnt]))) {
320 rscnt--;
321 *rsp = rs[rscnt];
322 if (rscnt != rsmax)
323 rs[rscnt] = rs[rsmax];
359 *rsp = rs[rscnt];
360 rsp = &rs[rscnt];
361 rscnt++;