0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.2-057

This commit is contained in:
Bram Moolenaar 2008-11-29 19:19:19 +00:00
parent 9bf1361652
commit 2eb6eb323f
2 changed files with 10 additions and 4 deletions

View File

@ -7926,7 +7926,7 @@ write_vim_spell(spin, fname)
char_u *p; char_u *p;
int rr; int rr;
int retval = OK; int retval = OK;
int fwv = 1; /* collect return value of fwrite() to avoid size_t fwv = 1; /* collect return value of fwrite() to avoid
warnings from picky compiler */ warnings from picky compiler */
fd = mch_fopen((char *)fname, "w"); fd = mch_fopen((char *)fname, "w");
@ -7939,6 +7939,10 @@ write_vim_spell(spin, fname)
/* <HEADER>: <fileID> <versionnr> */ /* <HEADER>: <fileID> <versionnr> */
/* <fileID> */ /* <fileID> */
fwv &= fwrite(VIMSPELLMAGIC, VIMSPELLMAGICL, (size_t)1, fd); fwv &= fwrite(VIMSPELLMAGIC, VIMSPELLMAGICL, (size_t)1, fd);
if (fwv != (size_t)1)
/* Catch first write error, don't try writing more. */
goto theend;
putc(VIMSPELLVERSION, fd); /* <versionnr> */ putc(VIMSPELLVERSION, fd); /* <versionnr> */
/* /*
@ -8300,11 +8304,11 @@ write_vim_spell(spin, fname)
/* Write another byte to check for errors (file system full). */ /* Write another byte to check for errors (file system full). */
if (putc(0, fd) == EOF) if (putc(0, fd) == EOF)
retval = FAIL; retval = FAIL;
theend:
if (fclose(fd) == EOF) if (fclose(fd) == EOF)
retval = FAIL; retval = FAIL;
if (fwv != 1) if (fwv != (size_t)1)
retval = FAIL; retval = FAIL;
if (retval == FAIL) if (retval == FAIL)
EMSG(_(e_write)); EMSG(_(e_write));
@ -9897,7 +9901,7 @@ write_spell_prefcond(fd, gap)
char_u *p; char_u *p;
int len; int len;
int totlen; int totlen;
int x = 1; /* collect return value of fwrite() */ size_t x = 1; /* collect return value of fwrite() */
if (fd != NULL) if (fd != NULL)
put_bytes(fd, (long_u)gap->ga_len, 2); /* <prefcondcnt> */ put_bytes(fd, (long_u)gap->ga_len, 2); /* <prefcondcnt> */

View File

@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
57,
/**/ /**/
56, 56,
/**/ /**/