comparison src/scroll.c @ 28407:f15029804aba

* scroll.c (CHECK_BOUNDS): Renamed from CHECK. * emacs.c (main): Fix sense of no-loadup test.
author Ken Raeburn <raeburn@raeburn.org>
date Wed, 29 Mar 2000 23:24:14 +0000
parents bfd115279703
children 6a0caa788013
comparison
equal deleted inserted replaced
28406:451721e784a8 28407:f15029804aba
267 /* Zero means line is empty. */ 267 /* Zero means line is empty. */
268 bzero (retained_p, window_size * sizeof (char)); 268 bzero (retained_p, window_size * sizeof (char));
269 for (k = 0; k < window_size; ++k) 269 for (k = 0; k < window_size; ++k)
270 copy_from[k] = -1; 270 copy_from[k] = -1;
271 271
272 #define CHECK \ 272 #define CHECK_BOUNDS \
273 do \ 273 do \
274 { \ 274 { \
275 int k; \ 275 int k; \
276 for (k = 0; k < window_size; ++k) \ 276 for (k = 0; k < window_size; ++k) \
277 xassert (copy_from[k] == -1 \ 277 xassert (copy_from[k] == -1 \
324 xassert (j >= 0 && j < window_size); 324 xassert (j >= 0 && j < window_size);
325 copy_from[i] = j; 325 copy_from[i] = j;
326 retained_p[j] = 1; 326 retained_p[j] = 1;
327 327
328 #if GLYPH_DEBUG 328 #if GLYPH_DEBUG
329 CHECK; 329 CHECK_BOUNDS;
330 #endif 330 #endif
331 } 331 }
332 } 332 }
333 333
334 /* Now do all insertions queued above. */ 334 /* Now do all insertions queued above. */