[BACK]Return to buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/buffer.c between version 1.89 and 1.90

version 1.89, 2013/02/15 15:12:25 version 1.90, 2013/02/17 10:30:26
Line 153 
Line 153 
         struct buffer *bp2;          struct buffer *bp2;
         struct mgwin  *wp;          struct mgwin  *wp;
         int s;          int s;
         struct undo_rec *rec, *next;          struct undo_rec *rec;
   
         /*          /*
          * Find some other buffer to display. Try the alternate buffer,           * Find some other buffer to display. Try the alternate buffer,
Line 204 
Line 204 
                         bp1->b_altb = (bp->b_altb == bp1) ? NULL : bp->b_altb;                          bp1->b_altb = (bp->b_altb == bp1) ? NULL : bp->b_altb;
                 bp1 = bp1->b_bufp;                  bp1 = bp1->b_bufp;
         }          }
         rec = TAILQ_FIRST(&bp->b_undo);  
   
         while (rec != NULL) {          while ((rec = TAILQ_FIRST(&bp->b_undo))) {
                 next = TAILQ_NEXT(rec, next);                  TAILQ_REMOVE(&bp->b_undo, rec, next);
                 free_undo_record(rec);                  free_undo_record(rec);
                 rec = next;  
         }          }
   
         free(bp->b_bname);                      /* Release name block    */          free(bp->b_bname);                      /* Release name block    */

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90