|
Karsten Hopp |
32d40b |
To: vim-dev@vim.org
|
|
Karsten Hopp |
32d40b |
Subject: patch 7.1.008 (correction
|
|
Karsten Hopp |
32d40b |
Fcc: outbox
|
|
Karsten Hopp |
32d40b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
32d40b |
Mime-Version: 1.0
|
|
Karsten Hopp |
32d40b |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
32d40b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
32d40b |
------------
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
Oops, forgot the src/version.c change.
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
Patch 7.1.008
|
|
Karsten Hopp |
32d40b |
Problem: getfsize() returns a negative number for very big files.
|
|
Karsten Hopp |
32d40b |
Solution: Check for overflow and return -2.
|
|
Karsten Hopp |
32d40b |
Files: runtime/doc/eval.txt, src/eval.c
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
*** ../vim-7.1.007/runtime/doc/eval.txt Sat May 12 16:38:23 2007
|
|
Karsten Hopp |
32d40b |
--- runtime/doc/eval.txt Sat Jun 9 15:48:40 2007
|
|
Karsten Hopp |
32d40b |
***************
|
|
Karsten Hopp |
32d40b |
*** 1,4 ****
|
|
Karsten Hopp |
32d40b |
! *eval.txt* For Vim version 7.1. Last change: 2007 May 11
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
VIM REFERENCE MANUAL by Bram Moolenaar
|
|
Karsten Hopp |
32d40b |
--- 1,4 ----
|
|
Karsten Hopp |
32d40b |
! *eval.txt* For Vim version 7.1. Last change: 2007 Jun 09
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
VIM REFERENCE MANUAL by Bram Moolenaar
|
|
Karsten Hopp |
32d40b |
***************
|
|
Karsten Hopp |
32d40b |
*** 2824,2829 ****
|
|
Karsten Hopp |
32d40b |
--- 2824,2831 ----
|
|
Karsten Hopp |
32d40b |
given file {fname}.
|
|
Karsten Hopp |
32d40b |
If {fname} is a directory, 0 is returned.
|
|
Karsten Hopp |
32d40b |
If the file {fname} can't be found, -1 is returned.
|
|
Karsten Hopp |
32d40b |
+ If the size of {fname} is too big to fit in a Number then -2
|
|
Karsten Hopp |
32d40b |
+ is returned.
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
getfontname([{name}]) *getfontname()*
|
|
Karsten Hopp |
32d40b |
Without an argument returns the name of the normal font being
|
|
Karsten Hopp |
32d40b |
*** ../vim-7.1.007/src/eval.c Thu May 10 21:30:00 2007
|
|
Karsten Hopp |
32d40b |
--- src/eval.c Sat Jun 9 15:46:46 2007
|
|
Karsten Hopp |
32d40b |
***************
|
|
Karsten Hopp |
32d40b |
*** 10136,10142 ****
|
|
Karsten Hopp |
32d40b |
--- 10136,10148 ----
|
|
Karsten Hopp |
32d40b |
if (mch_isdir(fname))
|
|
Karsten Hopp |
32d40b |
rettv->vval.v_number = 0;
|
|
Karsten Hopp |
32d40b |
else
|
|
Karsten Hopp |
32d40b |
+ {
|
|
Karsten Hopp |
32d40b |
rettv->vval.v_number = (varnumber_T)st.st_size;
|
|
Karsten Hopp |
32d40b |
+
|
|
Karsten Hopp |
32d40b |
+ /* non-perfect check for overflow */
|
|
Karsten Hopp |
32d40b |
+ if ((off_t)rettv->vval.v_number != (off_t)st.st_size)
|
|
Karsten Hopp |
32d40b |
+ rettv->vval.v_number = -2;
|
|
Karsten Hopp |
32d40b |
+ }
|
|
Karsten Hopp |
32d40b |
}
|
|
Karsten Hopp |
32d40b |
else
|
|
Karsten Hopp |
32d40b |
rettv->vval.v_number = -1;
|
|
Karsten Hopp |
32d40b |
*** ../vim-7.1.007/src/version.c Tue Jun 19 16:33:53 2007
|
|
Karsten Hopp |
32d40b |
--- src/version.c Tue Jun 19 17:30:50 2007
|
|
Karsten Hopp |
32d40b |
***************
|
|
Karsten Hopp |
32d40b |
*** 668,669 ****
|
|
Karsten Hopp |
32d40b |
--- 668,671 ----
|
|
Karsten Hopp |
32d40b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
32d40b |
+ /**/
|
|
Karsten Hopp |
32d40b |
+ 8,
|
|
Karsten Hopp |
32d40b |
/**/
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
--
|
|
Karsten Hopp |
32d40b |
ZOOT: I'm afraid our life must seem very dull and quiet compared to yours.
|
|
Karsten Hopp |
32d40b |
We are but eightscore young blondes, all between sixteen and
|
|
Karsten Hopp |
32d40b |
nineteen-and-a-half, cut off in this castle, with no one to protect us.
|
|
Karsten Hopp |
32d40b |
Oooh. It is a lonely life ... bathing ... dressing ... undressing ...
|
|
Karsten Hopp |
32d40b |
making exciting underwear....
|
|
Karsten Hopp |
32d40b |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
32d40b |
|
|
Karsten Hopp |
32d40b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
32d40b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
32d40b |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
32d40b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|