Mercurial > hg > xemacs-beta
comparison src/redisplay.c @ 4207:62d532188a28
[xemacs-hg @ 2007-10-03 10:06:39 by didierv]
Fix some other DEFAULT_INDEX == 0 assumptions
author | didierv |
---|---|
date | Wed, 03 Oct 2007 10:06:42 +0000 |
parents | 26dccfc8fa60 |
children | 9bcdf9a3a783 |
comparison
equal
deleted
inserted
replaced
4206:a3e638b941b0 | 4207:62d532188a28 |
---|---|
4527 if (Dynarr_largest (dla) > 0) | 4527 if (Dynarr_largest (dla) > 0) |
4528 Dynarr_increment (dla); | 4528 Dynarr_increment (dla); |
4529 else | 4529 else |
4530 { | 4530 { |
4531 struct display_line modeline; | 4531 struct display_line modeline; |
4532 xzero (modeline); | 4532 |
4533 DISPLAY_LINE_INIT (modeline); | |
4533 Dynarr_add (dla, modeline); | 4534 Dynarr_add (dla, modeline); |
4534 } | 4535 } |
4535 } | 4536 } |
4536 | 4537 |
4537 /* If we're adding a new place marker go ahead and generate the | 4538 /* If we're adding a new place marker go ahead and generate the |
5353 dlp = Dynarr_atp (dla, pos_of_dlp); | 5354 dlp = Dynarr_atp (dla, pos_of_dlp); |
5354 local = 0; | 5355 local = 0; |
5355 } | 5356 } |
5356 else | 5357 else |
5357 { | 5358 { |
5358 | 5359 DISPLAY_LINE_INIT (dl); |
5359 xzero (dl); | |
5360 dlp = &dl; | 5360 dlp = &dl; |
5361 local = 1; | 5361 local = 1; |
5362 } | 5362 } |
5363 | 5363 |
5364 dlp->bounds = bounds; | 5364 dlp->bounds = bounds; |
5521 dlp = Dynarr_atp (dla, pos_of_dlp); | 5521 dlp = Dynarr_atp (dla, pos_of_dlp); |
5522 local = 0; | 5522 local = 0; |
5523 } | 5523 } |
5524 else | 5524 else |
5525 { | 5525 { |
5526 | 5526 DISPLAY_LINE_INIT (dl); |
5527 xzero (dl); | |
5528 dlp = &dl; | 5527 dlp = &dl; |
5529 local = 1; | 5528 local = 1; |
5530 } | 5529 } |
5531 | 5530 |
5532 dlp->bounds = bounds; | 5531 dlp->bounds = bounds; |