|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.179
|
|
Karsten Hopp |
81c285 |
Fcc: outbox
|
|
Karsten Hopp |
81c285 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
81c285 |
Mime-Version: 1.0
|
|
Karsten Hopp |
81c285 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
81c285 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81c285 |
------------
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
Patch 7.2.179
|
|
Karsten Hopp |
81c285 |
Problem: Using negative value for device number might not work.
|
|
Karsten Hopp |
81c285 |
Solution: Use a separate flag for whether sn_dev was set.
|
|
Karsten Hopp |
81c285 |
Files: src/ex_cmds2.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.178/src/ex_cmds2.c 2009-05-14 22:19:19.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/ex_cmds2.c 2009-05-16 21:13:29.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 28,34 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *sn_name;
|
|
Karsten Hopp |
81c285 |
# ifdef UNIX
|
|
Karsten Hopp |
81c285 |
! int sn_dev;
|
|
Karsten Hopp |
81c285 |
ino_t sn_ino;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_PROFILE
|
|
Karsten Hopp |
81c285 |
--- 28,35 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *sn_name;
|
|
Karsten Hopp |
81c285 |
# ifdef UNIX
|
|
Karsten Hopp |
81c285 |
! int sn_dev_valid;
|
|
Karsten Hopp |
81c285 |
! dev_t sn_dev;
|
|
Karsten Hopp |
81c285 |
ino_t sn_ino;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_PROFILE
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3049,3055 ****
|
|
Karsten Hopp |
81c285 |
/* Compare dev/ino when possible, it catches symbolic
|
|
Karsten Hopp |
81c285 |
* links. Also compare file names, the inode may change
|
|
Karsten Hopp |
81c285 |
* when the file was edited. */
|
|
Karsten Hopp |
81c285 |
! ((stat_ok && si->sn_dev != -1)
|
|
Karsten Hopp |
81c285 |
&& (si->sn_dev == st.st_dev
|
|
Karsten Hopp |
81c285 |
&& si->sn_ino == st.st_ino)) ||
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
--- 3050,3056 ----
|
|
Karsten Hopp |
81c285 |
/* Compare dev/ino when possible, it catches symbolic
|
|
Karsten Hopp |
81c285 |
* links. Also compare file names, the inode may change
|
|
Karsten Hopp |
81c285 |
* when the file was edited. */
|
|
Karsten Hopp |
81c285 |
! ((stat_ok && si->sn_dev_valid)
|
|
Karsten Hopp |
81c285 |
&& (si->sn_dev == st.st_dev
|
|
Karsten Hopp |
81c285 |
&& si->sn_ino == st.st_ino)) ||
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3076,3086 ****
|
|
Karsten Hopp |
81c285 |
# ifdef UNIX
|
|
Karsten Hopp |
81c285 |
if (stat_ok)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
si->sn_dev = st.st_dev;
|
|
Karsten Hopp |
81c285 |
si->sn_ino = st.st_ino;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
! si->sn_dev = -1;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Allocate the local script variables to use for this script. */
|
|
Karsten Hopp |
81c285 |
--- 3077,3088 ----
|
|
Karsten Hopp |
81c285 |
# ifdef UNIX
|
|
Karsten Hopp |
81c285 |
if (stat_ok)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
+ si->sn_dev_valid = TRUE;
|
|
Karsten Hopp |
81c285 |
si->sn_dev = st.st_dev;
|
|
Karsten Hopp |
81c285 |
si->sn_ino = st.st_ino;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
! si->sn_dev_valid = FALSE;
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Allocate the local script variables to use for this script. */
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.178/src/version.c 2009-05-16 21:06:36.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-16 21:15:08.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 678,679 ****
|
|
Karsten Hopp |
81c285 |
--- 678,681 ----
|
|
Karsten Hopp |
81c285 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
81c285 |
+ /**/
|
|
Karsten Hopp |
81c285 |
+ 179,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
(letter from Mark to Mike, about the film's probable certificate)
|
|
Karsten Hopp |
81c285 |
I would like to get back to the Censor and agree to lose the shits, take
|
|
Karsten Hopp |
81c285 |
the odd Jesus Christ out and lose Oh fuck off, but to retain 'fart in
|
|
Karsten Hopp |
81c285 |
your general direction', 'castanets of your testicles' and 'oral sex'
|
|
Karsten Hopp |
81c285 |
and ask him for an 'A' rating on that basis.
|
|
Karsten Hopp |
81c285 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
81c285 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
81c285 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
81c285 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|