0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0782: cannot build with Lua on MS-Windows

Problem:    Cannot build with Lua on MS-Windows.
Solution:   Add DLL symbol for luaL_Loadstring. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2020-05-17 18:53:27 +02:00
parent 9309eb2f28
commit df1643a6a7
2 changed files with 5 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ static luaV_Funcref *luaV_pushfuncref(lua_State *L, char_u *name);
#define luaL_buffinit dll_luaL_buffinit #define luaL_buffinit dll_luaL_buffinit
#define luaL_addlstring dll_luaL_addlstring #define luaL_addlstring dll_luaL_addlstring
#define luaL_pushresult dll_luaL_pushresult #define luaL_pushresult dll_luaL_pushresult
#define luaL_loadstring dll_luaL_loadstring
// lua // lua
#if LUA_VERSION_NUM <= 501 #if LUA_VERSION_NUM <= 501
#define lua_tonumber dll_lua_tonumber #define lua_tonumber dll_lua_tonumber
@@ -213,6 +214,7 @@ lua_State *(*dll_luaL_newstate) (void);
void (*dll_luaL_buffinit) (lua_State *L, luaL_Buffer *B); 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_addlstring) (luaL_Buffer *B, const char *s, size_t l);
void (*dll_luaL_pushresult) (luaL_Buffer *B); void (*dll_luaL_pushresult) (luaL_Buffer *B);
int (*dll_luaL_loadstring) (lua_State *L, const char *s);
// lua // lua
#if LUA_VERSION_NUM <= 501 #if LUA_VERSION_NUM <= 501
lua_Number (*dll_lua_tonumber) (lua_State *L, int idx); lua_Number (*dll_lua_tonumber) (lua_State *L, int idx);
@@ -325,6 +327,7 @@ static const luaV_Reg luaV_dll[] = {
{"luaL_buffinit", (luaV_function) &dll_luaL_buffinit}, {"luaL_buffinit", (luaV_function) &dll_luaL_buffinit},
{"luaL_addlstring", (luaV_function) &dll_luaL_addlstring}, {"luaL_addlstring", (luaV_function) &dll_luaL_addlstring},
{"luaL_pushresult", (luaV_function) &dll_luaL_pushresult}, {"luaL_pushresult", (luaV_function) &dll_luaL_pushresult},
{"luaL_loadstring", (luaV_function) &dll_luaL_loadstring},
// lua // lua
#if LUA_VERSION_NUM <= 501 #if LUA_VERSION_NUM <= 501
{"lua_tonumber", (luaV_function) &dll_lua_tonumber}, {"lua_tonumber", (luaV_function) &dll_lua_tonumber},

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
782,
/**/ /**/
781, 781,
/**/ /**/