|
Karsten Hopp |
56007d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
56007d |
Subject: Patch 7.3.436
|
|
Karsten Hopp |
56007d |
Fcc: outbox
|
|
Karsten Hopp |
56007d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
56007d |
Mime-Version: 1.0
|
|
Karsten Hopp |
56007d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
56007d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
56007d |
------------
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
Patch 7.3.436
|
|
Karsten Hopp |
56007d |
Problem: Compiler warnings for types on Windows.
|
|
Karsten Hopp |
56007d |
Solution: Add type casts. (Mike Williams)
|
|
Karsten Hopp |
56007d |
Files: src/eval.c
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
*** ../vim-7.3.435/src/eval.c 2012-02-06 00:13:16.000000000 +0100
|
|
Karsten Hopp |
56007d |
--- src/eval.c 2012-02-11 20:38:16.000000000 +0100
|
|
Karsten Hopp |
56007d |
***************
|
|
Karsten Hopp |
56007d |
*** 14462,14468 ****
|
|
Karsten Hopp |
56007d |
--prevlen;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if (prevlen == 0)
|
|
Karsten Hopp |
56007d |
! s = vim_strnsave(start, len);
|
|
Karsten Hopp |
56007d |
else
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
/* Change "prev" buffer to be the right size. This way
|
|
Karsten Hopp |
56007d |
--- 14462,14468 ----
|
|
Karsten Hopp |
56007d |
--prevlen;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if (prevlen == 0)
|
|
Karsten Hopp |
56007d |
! s = vim_strnsave(start, (int)len);
|
|
Karsten Hopp |
56007d |
else
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
/* Change "prev" buffer to be the right size. This way
|
|
Karsten Hopp |
56007d |
***************
|
|
Karsten Hopp |
56007d |
*** 14529,14535 ****
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
if (dest < buf)
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
! adjust_prevlen = buf - dest; /* must be 1 or 2 */
|
|
Karsten Hopp |
56007d |
dest = buf;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if (readlen > p - buf + 1)
|
|
Karsten Hopp |
56007d |
--- 14529,14535 ----
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
if (dest < buf)
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
! adjust_prevlen = (int)(buf - dest); /* must be 1 or 2 */
|
|
Karsten Hopp |
56007d |
dest = buf;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if (readlen > p - buf + 1)
|
|
Karsten Hopp |
56007d |
***************
|
|
Karsten Hopp |
56007d |
*** 14558,14568 ****
|
|
Karsten Hopp |
56007d |
* small, to avoid repeatedly 'allocing' large and
|
|
Karsten Hopp |
56007d |
* 'reallocing' small. */
|
|
Karsten Hopp |
56007d |
if (prevsize == 0)
|
|
Karsten Hopp |
56007d |
! prevsize = p - start;
|
|
Karsten Hopp |
56007d |
else
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
long grow50pc = (prevsize * 3) / 2;
|
|
Karsten Hopp |
56007d |
! long growmin = (p - start) * 2 + prevlen;
|
|
Karsten Hopp |
56007d |
prevsize = grow50pc > growmin ? grow50pc : growmin;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if ((newprev = vim_realloc(prev, prevsize)) == NULL)
|
|
Karsten Hopp |
56007d |
--- 14558,14568 ----
|
|
Karsten Hopp |
56007d |
* small, to avoid repeatedly 'allocing' large and
|
|
Karsten Hopp |
56007d |
* 'reallocing' small. */
|
|
Karsten Hopp |
56007d |
if (prevsize == 0)
|
|
Karsten Hopp |
56007d |
! prevsize = (long)(p - start);
|
|
Karsten Hopp |
56007d |
else
|
|
Karsten Hopp |
56007d |
{
|
|
Karsten Hopp |
56007d |
long grow50pc = (prevsize * 3) / 2;
|
|
Karsten Hopp |
56007d |
! long growmin = (long)((p - start) * 2 + prevlen);
|
|
Karsten Hopp |
56007d |
prevsize = grow50pc > growmin ? grow50pc : growmin;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
if ((newprev = vim_realloc(prev, prevsize)) == NULL)
|
|
Karsten Hopp |
56007d |
***************
|
|
Karsten Hopp |
56007d |
*** 14575,14581 ****
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
/* Add the line part to end of "prev". */
|
|
Karsten Hopp |
56007d |
mch_memmove(prev + prevlen, start, p - start);
|
|
Karsten Hopp |
56007d |
! prevlen += p - start;
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
} /* while */
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
--- 14575,14581 ----
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
/* Add the line part to end of "prev". */
|
|
Karsten Hopp |
56007d |
mch_memmove(prev + prevlen, start, p - start);
|
|
Karsten Hopp |
56007d |
! prevlen += (long)(p - start);
|
|
Karsten Hopp |
56007d |
}
|
|
Karsten Hopp |
56007d |
} /* while */
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
*** ../vim-7.3.435/src/version.c 2012-02-11 20:40:49.000000000 +0100
|
|
Karsten Hopp |
56007d |
--- src/version.c 2012-02-11 20:43:18.000000000 +0100
|
|
Karsten Hopp |
56007d |
***************
|
|
Karsten Hopp |
56007d |
*** 716,717 ****
|
|
Karsten Hopp |
56007d |
--- 716,719 ----
|
|
Karsten Hopp |
56007d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
56007d |
+ /**/
|
|
Karsten Hopp |
56007d |
+ 436,
|
|
Karsten Hopp |
56007d |
/**/
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
--
|
|
Karsten Hopp |
56007d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
56007d |
39. You move into a new house and decide to Netscape before you landscape.
|
|
Karsten Hopp |
56007d |
|
|
Karsten Hopp |
56007d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
56007d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
56007d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
56007d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|