Patch 8.2.0782

11 views
Skip to first unread message

Bram Moolenaar

unread,
May 17, 2020, 12:54:10 PM5/17/20
to vim...@googlegroups.com

Patch 8.2.0782
Problem: Cannot build with Lua on MS-Windows.
Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
Files: src/if_lua.c


*** ../vim-8.2.0781/src/if_lua.c 2020-05-17 16:53:52.913705206 +0200
--- src/if_lua.c 2020-05-17 18:51:54.997242358 +0200
***************
*** 119,124 ****
--- 119,125 ----
#define luaL_buffinit dll_luaL_buffinit
#define luaL_addlstring dll_luaL_addlstring
#define luaL_pushresult dll_luaL_pushresult
+ #define luaL_loadstring dll_luaL_loadstring
// lua
#if LUA_VERSION_NUM <= 501
#define lua_tonumber dll_lua_tonumber
***************
*** 213,218 ****
--- 214,220 ----
void (*dll_luaL_buffinit) (lua_State *L, luaL_Buffer *B);
void (*dll_luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l);
void (*dll_luaL_pushresult) (luaL_Buffer *B);
+ int (*dll_luaL_loadstring) (lua_State *L, const char *s);
// lua
#if LUA_VERSION_NUM <= 501
lua_Number (*dll_lua_tonumber) (lua_State *L, int idx);
***************
*** 325,330 ****
--- 327,333 ----
{"luaL_buffinit", (luaV_function) &dll_luaL_buffinit},
{"luaL_addlstring", (luaV_function) &dll_luaL_addlstring},
{"luaL_pushresult", (luaV_function) &dll_luaL_pushresult},
+ {"luaL_loadstring", (luaV_function) &dll_luaL_loadstring},
// lua
#if LUA_VERSION_NUM <= 501
{"lua_tonumber", (luaV_function) &dll_lua_tonumber},
*** ../vim-8.2.0781/src/version.c 2020-05-17 16:53:52.913705206 +0200
--- src/version.c 2020-05-17 18:53:01.749003298 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 782,
/**/

--
hundred-and-one symptoms of being an internet addict:
120. You ask a friend, "What's that big shiny thing?" He says, "It's the sun."

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages