|
Karsten Hopp |
a1c723 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
a1c723 |
Subject: Patch 7.2.275
|
|
Karsten Hopp |
a1c723 |
Fcc: outbox
|
|
Karsten Hopp |
a1c723 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a1c723 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a1c723 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
a1c723 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a1c723 |
------------
|
|
Karsten Hopp |
a1c723 |
|
|
Karsten Hopp |
a1c723 |
Patch 7.2.275
|
|
Karsten Hopp |
a1c723 |
Problem: Warning for unused argument and comparing signed and unsigned.
|
|
Karsten Hopp |
a1c723 |
Solution: Add type cast.
|
|
Karsten Hopp |
a1c723 |
Files: src/memline.c
|
|
Karsten Hopp |
a1c723 |
|
|
Karsten Hopp |
a1c723 |
|
|
Karsten Hopp |
a1c723 |
*** ../vim-7.2.274/src/memline.c 2009-11-03 13:06:03.000000000 +0100
|
|
Karsten Hopp |
a1c723 |
--- src/memline.c 2009-10-29 20:55:08.000000000 +0100
|
|
Karsten Hopp |
a1c723 |
***************
|
|
Karsten Hopp |
a1c723 |
*** 1285,1291 ****
|
|
Karsten Hopp |
a1c723 |
for (i = 0; i < dp->db_line_count; ++i)
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
txt_start = (dp->db_index[i] & DB_INDEX_MASK);
|
|
Karsten Hopp |
a1c723 |
! if (txt_start <= HEADER_SIZE
|
|
Karsten Hopp |
a1c723 |
|| txt_start >= (int)dp->db_txt_end)
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
p = (char_u *)"???";
|
|
Karsten Hopp |
a1c723 |
--- 1285,1291 ----
|
|
Karsten Hopp |
a1c723 |
for (i = 0; i < dp->db_line_count; ++i)
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
txt_start = (dp->db_index[i] & DB_INDEX_MASK);
|
|
Karsten Hopp |
a1c723 |
! if (txt_start <= (int)HEADER_SIZE
|
|
Karsten Hopp |
a1c723 |
|| txt_start >= (int)dp->db_txt_end)
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
p = (char_u *)"???";
|
|
Karsten Hopp |
a1c723 |
***************
|
|
Karsten Hopp |
a1c723 |
*** 1296,1302 ****
|
|
Karsten Hopp |
a1c723 |
ml_append(lnum++, p, (colnr_T)0, TRUE);
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
if (has_error)
|
|
Karsten Hopp |
a1c723 |
! ml_append(lnum++, (char_u *)_("???END"), (colnr_T)0, TRUE);
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
--- 1296,1303 ----
|
|
Karsten Hopp |
a1c723 |
ml_append(lnum++, p, (colnr_T)0, TRUE);
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
if (has_error)
|
|
Karsten Hopp |
a1c723 |
! ml_append(lnum++, (char_u *)_("???END"),
|
|
Karsten Hopp |
a1c723 |
! (colnr_T)0, TRUE);
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
}
|
|
Karsten Hopp |
a1c723 |
***************
|
|
Karsten Hopp |
a1c723 |
*** 3576,3586 ****
|
|
Karsten Hopp |
a1c723 |
* Make swap file name out of the file name and a directory name.
|
|
Karsten Hopp |
a1c723 |
* Returns pointer to allocated memory or NULL.
|
|
Karsten Hopp |
a1c723 |
*/
|
|
Karsten Hopp |
a1c723 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
a1c723 |
char_u *
|
|
Karsten Hopp |
a1c723 |
makeswapname(fname, ffname, buf, dir_name)
|
|
Karsten Hopp |
a1c723 |
char_u *fname;
|
|
Karsten Hopp |
a1c723 |
! char_u *ffname;
|
|
Karsten Hopp |
a1c723 |
buf_T *buf;
|
|
Karsten Hopp |
a1c723 |
char_u *dir_name;
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
--- 3577,3586 ----
|
|
Karsten Hopp |
a1c723 |
* Make swap file name out of the file name and a directory name.
|
|
Karsten Hopp |
a1c723 |
* Returns pointer to allocated memory or NULL.
|
|
Karsten Hopp |
a1c723 |
*/
|
|
Karsten Hopp |
a1c723 |
char_u *
|
|
Karsten Hopp |
a1c723 |
makeswapname(fname, ffname, buf, dir_name)
|
|
Karsten Hopp |
a1c723 |
char_u *fname;
|
|
Karsten Hopp |
a1c723 |
! char_u *ffname UNUSED;
|
|
Karsten Hopp |
a1c723 |
buf_T *buf;
|
|
Karsten Hopp |
a1c723 |
char_u *dir_name;
|
|
Karsten Hopp |
a1c723 |
{
|
|
Karsten Hopp |
a1c723 |
*** ../vim-7.2.274/src/version.c 2009-11-03 14:46:35.000000000 +0100
|
|
Karsten Hopp |
a1c723 |
--- src/version.c 2009-11-03 15:28:33.000000000 +0100
|
|
Karsten Hopp |
a1c723 |
***************
|
|
Karsten Hopp |
a1c723 |
*** 678,679 ****
|
|
Karsten Hopp |
a1c723 |
--- 678,681 ----
|
|
Karsten Hopp |
a1c723 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a1c723 |
+ /**/
|
|
Karsten Hopp |
a1c723 |
+ 275,
|
|
Karsten Hopp |
a1c723 |
/**/
|
|
Karsten Hopp |
a1c723 |
|
|
Karsten Hopp |
a1c723 |
--
|
|
Karsten Hopp |
a1c723 |
BRIDGEKEEPER: What is your favorite colour?
|
|
Karsten Hopp |
a1c723 |
GAWAIN: Blue ... No yelloooooww!
|
|
Karsten Hopp |
a1c723 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
a1c723 |
|
|
Karsten Hopp |
a1c723 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a1c723 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a1c723 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
a1c723 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|