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

Diff for /src/usr.bin/mg/file.c between version 1.29 and 1.30

version 1.29, 2004/07/22 01:25:25 version 1.30, 2005/03/09 16:20:48
Line 54 
Line 54 
         curbp = bp;          curbp = bp;
         if (showbuffer(bp, curwp, WFHARD) != TRUE)          if (showbuffer(bp, curwp, WFHARD) != TRUE)
                 return FALSE;                  return FALSE;
         if (bp->b_fname[0] == 0)          if (bp->b_fname[0] == 0) {
                 return readin(adjf);                  int status;
   
                   if ((status = readin(adjf)) != TRUE)
                           killbuffer(bp);
                   return status;
           }
         return TRUE;          return TRUE;
 }  }
   
Line 96 
Line 101 
                 return FALSE;                  return FALSE;
         curbp = bp;          curbp = bp;
         curwp = wp;          curwp = wp;
         if (bp->b_fname[0] == 0)          if (bp->b_fname[0] == 0) {
                 return readin(adjf);                  int status;
   
                   if ((status = readin(adjf)) != TRUE)
                           killbuffer(bp);
                   return status;
           }
         return TRUE;          return TRUE;
 }  }
   
Line 140 
Line 150 
         /* might be old */          /* might be old */
         if (bclear(curbp) != TRUE)          if (bclear(curbp) != TRUE)
                 return TRUE;                  return TRUE;
         status = insertfile(fname, fname, TRUE);          if ((status = insertfile(fname, fname, TRUE)) != TRUE) {
                   ewprintf("File is not readable: %s", fname);
                   return FALSE;
           }
   
         /*          /*
          * Call auto-executing function if we need to.           * Call auto-executing function if we need to.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30