|
Karsten Hopp |
50fee8 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
50fee8 |
Subject: Patch 7.3.1305
|
|
Karsten Hopp |
50fee8 |
Fcc: outbox
|
|
Karsten Hopp |
50fee8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
50fee8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
50fee8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
50fee8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
50fee8 |
------------
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
Patch 7.3.1305
|
|
Karsten Hopp |
50fee8 |
Problem: Warnings from 64 bit compiler.
|
|
Karsten Hopp |
50fee8 |
Solution: Add type casts.
|
|
Karsten Hopp |
50fee8 |
Files: src/misc2.c
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
*** ../vim-7.3.1304/src/misc2.c 2013-07-03 21:19:00.000000000 +0200
|
|
Karsten Hopp |
50fee8 |
--- src/misc2.c 2013-07-04 21:14:48.000000000 +0200
|
|
Karsten Hopp |
50fee8 |
***************
|
|
Karsten Hopp |
50fee8 |
*** 4680,4687 ****
|
|
Karsten Hopp |
50fee8 |
STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir);
|
|
Karsten Hopp |
50fee8 |
add_pathsep(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
! int eb_len = STRLEN(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
! char_u *buf = alloc(eb_len + STRLEN(search_ctx->ffsc_fix_path) + 1);
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
STRCPY(buf, ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
STRCPY(buf + eb_len, search_ctx->ffsc_fix_path);
|
|
Karsten Hopp |
50fee8 |
--- 4680,4688 ----
|
|
Karsten Hopp |
50fee8 |
STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir);
|
|
Karsten Hopp |
50fee8 |
add_pathsep(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
! int eb_len = (int)STRLEN(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
! char_u *buf = alloc(eb_len
|
|
Karsten Hopp |
50fee8 |
! + (int)STRLEN(search_ctx->ffsc_fix_path) + 1);
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
STRCPY(buf, ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
STRCPY(buf + eb_len, search_ctx->ffsc_fix_path);
|
|
Karsten Hopp |
50fee8 |
***************
|
|
Karsten Hopp |
50fee8 |
*** 4700,4717 ****
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (p > search_ctx->ffsc_fix_path)
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
! len = p - search_ctx->ffsc_fix_path - 1;
|
|
Karsten Hopp |
50fee8 |
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
|
|
Karsten Hopp |
50fee8 |
add_pathsep(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
}
|
|
Karsten Hopp |
50fee8 |
else
|
|
Karsten Hopp |
50fee8 |
! len = STRLEN(search_ctx->ffsc_fix_path);
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (search_ctx->ffsc_wc_path != NULL)
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
wc_path = vim_strsave(search_ctx->ffsc_wc_path);
|
|
Karsten Hopp |
50fee8 |
! temp = alloc(STRLEN(search_ctx->ffsc_wc_path)
|
|
Karsten Hopp |
50fee8 |
! + (STRLEN(search_ctx->ffsc_fix_path) - len));
|
|
Karsten Hopp |
50fee8 |
}
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (temp == NULL || wc_path == NULL)
|
|
Karsten Hopp |
50fee8 |
--- 4701,4718 ----
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (p > search_ctx->ffsc_fix_path)
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
! len = (int)(p - search_ctx->ffsc_fix_path) - 1;
|
|
Karsten Hopp |
50fee8 |
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
|
|
Karsten Hopp |
50fee8 |
add_pathsep(ff_expand_buffer);
|
|
Karsten Hopp |
50fee8 |
}
|
|
Karsten Hopp |
50fee8 |
else
|
|
Karsten Hopp |
50fee8 |
! len = (int)STRLEN(search_ctx->ffsc_fix_path);
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (search_ctx->ffsc_wc_path != NULL)
|
|
Karsten Hopp |
50fee8 |
{
|
|
Karsten Hopp |
50fee8 |
wc_path = vim_strsave(search_ctx->ffsc_wc_path);
|
|
Karsten Hopp |
50fee8 |
! temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
|
|
Karsten Hopp |
50fee8 |
! + (STRLEN(search_ctx->ffsc_fix_path)) - len));
|
|
Karsten Hopp |
50fee8 |
}
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
if (temp == NULL || wc_path == NULL)
|
|
Karsten Hopp |
50fee8 |
*** ../vim-7.3.1304/src/version.c 2013-07-04 20:50:42.000000000 +0200
|
|
Karsten Hopp |
50fee8 |
--- src/version.c 2013-07-04 21:13:23.000000000 +0200
|
|
Karsten Hopp |
50fee8 |
***************
|
|
Karsten Hopp |
50fee8 |
*** 730,731 ****
|
|
Karsten Hopp |
50fee8 |
--- 730,733 ----
|
|
Karsten Hopp |
50fee8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
50fee8 |
+ /**/
|
|
Karsten Hopp |
50fee8 |
+ 1305,
|
|
Karsten Hopp |
50fee8 |
/**/
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
--
|
|
Karsten Hopp |
50fee8 |
A hamburger walks into a bar, and the bartender says: "I'm sorry,
|
|
Karsten Hopp |
50fee8 |
but we don't serve food here."
|
|
Karsten Hopp |
50fee8 |
|
|
Karsten Hopp |
50fee8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
50fee8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
50fee8 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
50fee8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|