|
Karsten Hopp |
641e09 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
641e09 |
Subject: Patch 7.3.689
|
|
Karsten Hopp |
641e09 |
Fcc: outbox
|
|
Karsten Hopp |
641e09 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
641e09 |
Mime-Version: 1.0
|
|
Karsten Hopp |
641e09 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
641e09 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
641e09 |
------------
|
|
Karsten Hopp |
641e09 |
|
|
Karsten Hopp |
641e09 |
Patch 7.3.689
|
|
Karsten Hopp |
641e09 |
Problem: MzScheme and Lua may use a NULL string.
|
|
Karsten Hopp |
641e09 |
Solution: Use an empty string instead of NULL. (Yukihiro Nakadaira)
|
|
Karsten Hopp |
641e09 |
Files: src/if_lua.c, src/if_mzsch.c
|
|
Karsten Hopp |
641e09 |
|
|
Karsten Hopp |
641e09 |
|
|
Karsten Hopp |
641e09 |
*** ../vim-7.3.688/src/if_lua.c 2012-06-29 12:54:32.000000000 +0200
|
|
Karsten Hopp |
641e09 |
--- src/if_lua.c 2012-10-14 03:33:32.000000000 +0200
|
|
Karsten Hopp |
641e09 |
***************
|
|
Karsten Hopp |
641e09 |
*** 464,470 ****
|
|
Karsten Hopp |
641e09 |
switch (tv->v_type)
|
|
Karsten Hopp |
641e09 |
{
|
|
Karsten Hopp |
641e09 |
case VAR_STRING:
|
|
Karsten Hopp |
641e09 |
! lua_pushstring(L, (char *) tv->vval.v_string);
|
|
Karsten Hopp |
641e09 |
break;
|
|
Karsten Hopp |
641e09 |
case VAR_NUMBER:
|
|
Karsten Hopp |
641e09 |
lua_pushinteger(L, (int) tv->vval.v_number);
|
|
Karsten Hopp |
641e09 |
--- 464,471 ----
|
|
Karsten Hopp |
641e09 |
switch (tv->v_type)
|
|
Karsten Hopp |
641e09 |
{
|
|
Karsten Hopp |
641e09 |
case VAR_STRING:
|
|
Karsten Hopp |
641e09 |
! lua_pushstring(L, tv->vval.v_string == NULL
|
|
Karsten Hopp |
641e09 |
! ? "" : (char *)tv->vval.v_string);
|
|
Karsten Hopp |
641e09 |
break;
|
|
Karsten Hopp |
641e09 |
case VAR_NUMBER:
|
|
Karsten Hopp |
641e09 |
lua_pushinteger(L, (int) tv->vval.v_number);
|
|
Karsten Hopp |
641e09 |
*** ../vim-7.3.688/src/if_mzsch.c 2012-02-12 01:55:50.000000000 +0100
|
|
Karsten Hopp |
641e09 |
--- src/if_mzsch.c 2012-10-14 03:33:32.000000000 +0200
|
|
Karsten Hopp |
641e09 |
***************
|
|
Karsten Hopp |
641e09 |
*** 2649,2655 ****
|
|
Karsten Hopp |
641e09 |
new_value = FALSE;
|
|
Karsten Hopp |
641e09 |
else if (vim_value->v_type == VAR_STRING)
|
|
Karsten Hopp |
641e09 |
{
|
|
Karsten Hopp |
641e09 |
! result = scheme_make_string((char *)vim_value->vval.v_string);
|
|
Karsten Hopp |
641e09 |
MZ_GC_CHECK();
|
|
Karsten Hopp |
641e09 |
}
|
|
Karsten Hopp |
641e09 |
else if (vim_value->v_type == VAR_NUMBER)
|
|
Karsten Hopp |
641e09 |
--- 2649,2656 ----
|
|
Karsten Hopp |
641e09 |
new_value = FALSE;
|
|
Karsten Hopp |
641e09 |
else if (vim_value->v_type == VAR_STRING)
|
|
Karsten Hopp |
641e09 |
{
|
|
Karsten Hopp |
641e09 |
! result = scheme_make_string(vim_value->vval.v_string == NULL
|
|
Karsten Hopp |
641e09 |
! ? "" : (char *)vim_value->vval.v_string);
|
|
Karsten Hopp |
641e09 |
MZ_GC_CHECK();
|
|
Karsten Hopp |
641e09 |
}
|
|
Karsten Hopp |
641e09 |
else if (vim_value->v_type == VAR_NUMBER)
|
|
Karsten Hopp |
641e09 |
*** ../vim-7.3.688/src/version.c 2012-10-14 03:22:49.000000000 +0200
|
|
Karsten Hopp |
641e09 |
--- src/version.c 2012-10-14 03:33:49.000000000 +0200
|
|
Karsten Hopp |
641e09 |
***************
|
|
Karsten Hopp |
641e09 |
*** 721,722 ****
|
|
Karsten Hopp |
641e09 |
--- 721,724 ----
|
|
Karsten Hopp |
641e09 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
641e09 |
+ /**/
|
|
Karsten Hopp |
641e09 |
+ 689,
|
|
Karsten Hopp |
641e09 |
/**/
|
|
Karsten Hopp |
641e09 |
|
|
Karsten Hopp |
641e09 |
--
|
|
Karsten Hopp |
641e09 |
Computers make very fast, very accurate, mistakes.
|
|
Karsten Hopp |
641e09 |
|
|
Karsten Hopp |
641e09 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
641e09 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
641e09 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
641e09 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|