|
Karsten Hopp |
218b75 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
218b75 |
Subject: Patch 7.3.037
|
|
Karsten Hopp |
218b75 |
Fcc: outbox
|
|
Karsten Hopp |
218b75 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
218b75 |
Mime-Version: 1.0
|
|
Karsten Hopp |
218b75 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
218b75 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
218b75 |
------------
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
Patch 7.3.037
|
|
Karsten Hopp |
218b75 |
Problem: Compiler warnings for loss of data. (Mike Williams)
|
|
Karsten Hopp |
218b75 |
Solution: Add type casts.
|
|
Karsten Hopp |
218b75 |
Files: src/if_py_both.h, src/getchar.c, src/os_win32.c
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
*** ../vim-7.3.036/src/if_py_both.h 2010-09-21 16:49:29.000000000 +0200
|
|
Karsten Hopp |
218b75 |
--- src/if_py_both.h 2010-10-25 20:37:07.000000000 +0200
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 154,160 ****
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
PyInt len = ptr - str;
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
! if (ga_grow(&io_ga, len + 1) == FAIL)
|
|
Karsten Hopp |
218b75 |
break;
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)len);
|
|
Karsten Hopp |
218b75 |
--- 154,160 ----
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
PyInt len = ptr - str;
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
! if (ga_grow(&io_ga, (int)(len + 1)) == FAIL)
|
|
Karsten Hopp |
218b75 |
break;
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)len);
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 166,175 ****
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
/* Put the remaining text into io_ga for later printing. */
|
|
Karsten Hopp |
218b75 |
! if (n > 0 && ga_grow(&io_ga, n + 1) == OK)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)n);
|
|
Karsten Hopp |
218b75 |
! io_ga.ga_len += n;
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
--- 166,175 ----
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
/* Put the remaining text into io_ga for later printing. */
|
|
Karsten Hopp |
218b75 |
! if (n > 0 && ga_grow(&io_ga, (int)(n + 1)) == OK)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
mch_memmove(((char *)io_ga.ga_data) + io_ga.ga_len, str, (size_t)n);
|
|
Karsten Hopp |
218b75 |
! io_ga.ga_len += (int)n;
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
*** ../vim-7.3.036/src/getchar.c 2010-10-22 22:13:47.000000000 +0200
|
|
Karsten Hopp |
218b75 |
--- src/getchar.c 2010-10-25 20:39:31.000000000 +0200
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 3922,3928 ****
|
|
Karsten Hopp |
218b75 |
if (mapchars != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
msg_puts(mapchars);
|
|
Karsten Hopp |
218b75 |
! len = STRLEN(mapchars);
|
|
Karsten Hopp |
218b75 |
vim_free(mapchars);
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
--- 3922,3928 ----
|
|
Karsten Hopp |
218b75 |
if (mapchars != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
msg_puts(mapchars);
|
|
Karsten Hopp |
218b75 |
! len = (int)STRLEN(mapchars);
|
|
Karsten Hopp |
218b75 |
vim_free(mapchars);
|
|
Karsten Hopp |
218b75 |
}
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
*** ../vim-7.3.036/src/os_win32.c 2010-10-24 14:33:38.000000000 +0200
|
|
Karsten Hopp |
218b75 |
--- src/os_win32.c 2010-10-25 20:38:49.000000000 +0200
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 224,230 ****
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
if (exe_path == NULL && exe_name != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
! exe_path = vim_strnsave(exe_name, gettail_sep(exe_name) - exe_name);
|
|
Karsten Hopp |
218b75 |
if (exe_path != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
/* Append our starting directory to $PATH, so that when doing
|
|
Karsten Hopp |
218b75 |
--- 224,231 ----
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
if (exe_path == NULL && exe_name != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
! exe_path = vim_strnsave(exe_name,
|
|
Karsten Hopp |
218b75 |
! (int)(gettail_sep(exe_name) - exe_name));
|
|
Karsten Hopp |
218b75 |
if (exe_path != NULL)
|
|
Karsten Hopp |
218b75 |
{
|
|
Karsten Hopp |
218b75 |
/* Append our starting directory to $PATH, so that when doing
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 2374,2380 ****
|
|
Karsten Hopp |
218b75 |
/* To avoid a slow failure append "\*" when searching a directory,
|
|
Karsten Hopp |
218b75 |
* server or network share. */
|
|
Karsten Hopp |
218b75 |
STRCPY(szTrueNameTemp, szTrueName);
|
|
Karsten Hopp |
218b75 |
! slen = strlen(szTrueNameTemp);
|
|
Karsten Hopp |
218b75 |
if (*porig == psepc && slen + 2 < _MAX_PATH)
|
|
Karsten Hopp |
218b75 |
STRCPY(szTrueNameTemp + slen, "\\*");
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
--- 2375,2381 ----
|
|
Karsten Hopp |
218b75 |
/* To avoid a slow failure append "\*" when searching a directory,
|
|
Karsten Hopp |
218b75 |
* server or network share. */
|
|
Karsten Hopp |
218b75 |
STRCPY(szTrueNameTemp, szTrueName);
|
|
Karsten Hopp |
218b75 |
! slen = (int)strlen(szTrueNameTemp);
|
|
Karsten Hopp |
218b75 |
if (*porig == psepc && slen + 2 < _MAX_PATH)
|
|
Karsten Hopp |
218b75 |
STRCPY(szTrueNameTemp + slen, "\\*");
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
*** ../vim-7.3.036/src/version.c 2010-10-27 12:15:28.000000000 +0200
|
|
Karsten Hopp |
218b75 |
--- src/version.c 2010-10-27 12:16:53.000000000 +0200
|
|
Karsten Hopp |
218b75 |
***************
|
|
Karsten Hopp |
218b75 |
*** 716,717 ****
|
|
Karsten Hopp |
218b75 |
--- 716,719 ----
|
|
Karsten Hopp |
218b75 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
218b75 |
+ /**/
|
|
Karsten Hopp |
218b75 |
+ 37,
|
|
Karsten Hopp |
218b75 |
/**/
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
--
|
|
Karsten Hopp |
218b75 |
ARTHUR: You fight with the strength of many men, Sir knight.
|
|
Karsten Hopp |
218b75 |
I am Arthur, King of the Britons. [pause]
|
|
Karsten Hopp |
218b75 |
I seek the finest and the bravest knights in the land to join me
|
|
Karsten Hopp |
218b75 |
in my Court of Camelot. [pause]
|
|
Karsten Hopp |
218b75 |
You have proved yourself worthy; will you join me? [pause]
|
|
Karsten Hopp |
218b75 |
You make me sad. So be it. Come, Patsy.
|
|
Karsten Hopp |
218b75 |
BLACK KNIGHT: None shall pass.
|
|
Karsten Hopp |
218b75 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
218b75 |
|
|
Karsten Hopp |
218b75 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
218b75 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
218b75 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
218b75 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|