mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.0181
This commit is contained in:
@@ -700,6 +700,23 @@ mf_sync(mfp, flags)
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* For all blocks in memory file *mfp that have a positive block number set
|
||||
* the dirty flag. These are blocks that need to be written to a newly
|
||||
* created swapfile.
|
||||
*/
|
||||
void
|
||||
mf_set_dirty(mfp)
|
||||
memfile_T *mfp;
|
||||
{
|
||||
bhdr_T *hp;
|
||||
|
||||
for (hp = mfp->mf_used_last; hp != NULL; hp = hp->bh_prev)
|
||||
if (hp->bh_bnum > 0)
|
||||
hp->bh_flags |= BH_DIRTY;
|
||||
mfp->mf_dirty = TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* insert block *hp in front of hashlist of memfile *mfp
|
||||
*/
|
||||
|
Reference in New Issue
Block a user