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

updated for version 7.2-179

This commit is contained in:
Bram Moolenaar
2009-05-16 19:16:33 +00:00
parent e1fbddcd62
commit bf0c4526bf
2 changed files with 7 additions and 3 deletions

View File

@@ -28,7 +28,8 @@ typedef struct scriptitem_S
{ {
char_u *sn_name; char_u *sn_name;
# ifdef UNIX # ifdef UNIX
int sn_dev; int sn_dev_valid;
dev_t sn_dev;
ino_t sn_ino; ino_t sn_ino;
# endif # endif
# ifdef FEAT_PROFILE # ifdef FEAT_PROFILE
@@ -3049,7 +3050,7 @@ do_source(fname, check_other, is_vimrc)
/* Compare dev/ino when possible, it catches symbolic /* Compare dev/ino when possible, it catches symbolic
* links. Also compare file names, the inode may change * links. Also compare file names, the inode may change
* when the file was edited. */ * when the file was edited. */
((stat_ok && si->sn_dev != -1) ((stat_ok && si->sn_dev_valid)
&& (si->sn_dev == st.st_dev && (si->sn_dev == st.st_dev
&& si->sn_ino == st.st_ino)) || && si->sn_ino == st.st_ino)) ||
# endif # endif
@@ -3076,11 +3077,12 @@ do_source(fname, check_other, is_vimrc)
# ifdef UNIX # ifdef UNIX
if (stat_ok) if (stat_ok)
{ {
si->sn_dev_valid = TRUE;
si->sn_dev = st.st_dev; si->sn_dev = st.st_dev;
si->sn_ino = st.st_ino; si->sn_ino = st.st_ino;
} }
else else
si->sn_dev = -1; si->sn_dev_valid = FALSE;
# endif # endif
/* Allocate the local script variables to use for this script. */ /* Allocate the local script variables to use for this script. */

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 */
/**/
179,
/**/ /**/
178, 178,
/**/ /**/