|
Karsten Hopp |
5826ff |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5826ff |
Subject: Patch 7.3.494
|
|
Karsten Hopp |
5826ff |
Fcc: outbox
|
|
Karsten Hopp |
5826ff |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5826ff |
Mime-Version: 1.0
|
|
Karsten Hopp |
5826ff |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5826ff |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5826ff |
------------
|
|
Karsten Hopp |
5826ff |
|
|
Karsten Hopp |
5826ff |
Patch 7.3.494 (after 7.3.491)
|
|
Karsten Hopp |
5826ff |
Problem: Can't compile with Lua 9.1 or dynamic Lua.
|
|
Karsten Hopp |
5826ff |
Solution: Fix dll_ methods. Fix luado(). (Muraoka Taro, Luis Carvalho)
|
|
Karsten Hopp |
5826ff |
Files: src/if_lua.c
|
|
Karsten Hopp |
5826ff |
|
|
Karsten Hopp |
5826ff |
|
|
Karsten Hopp |
5826ff |
*** ../vim-7.3.493/src/if_lua.c 2012-04-05 16:53:56.000000000 +0200
|
|
Karsten Hopp |
5826ff |
--- src/if_lua.c 2012-04-06 14:24:06.000000000 +0200
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 95,100 ****
|
|
Karsten Hopp |
5826ff |
--- 95,101 ----
|
|
Karsten Hopp |
5826ff |
#define luaL_loadbufferx dll_luaL_loadbufferx
|
|
Karsten Hopp |
5826ff |
#define luaL_argerror dll_luaL_argerror
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ #define luaL_checkany dll_luaL_checkany
|
|
Karsten Hopp |
5826ff |
#define luaL_checklstring dll_luaL_checklstring
|
|
Karsten Hopp |
5826ff |
#define luaL_checkinteger dll_luaL_checkinteger
|
|
Karsten Hopp |
5826ff |
#define luaL_optinteger dll_luaL_optinteger
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 117,124 ****
|
|
Karsten Hopp |
5826ff |
#define lua_pcallk dll_lua_pcallk
|
|
Karsten Hopp |
5826ff |
#define lua_getglobal dll_lua_getglobal
|
|
Karsten Hopp |
5826ff |
#define lua_setglobal dll_lua_setglobal
|
|
Karsten Hopp |
5826ff |
- #define lua_typename dll_lua_typename
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
#define lua_close dll_lua_close
|
|
Karsten Hopp |
5826ff |
#define lua_gettop dll_lua_gettop
|
|
Karsten Hopp |
5826ff |
#define lua_settop dll_lua_settop
|
|
Karsten Hopp |
5826ff |
--- 118,125 ----
|
|
Karsten Hopp |
5826ff |
#define lua_pcallk dll_lua_pcallk
|
|
Karsten Hopp |
5826ff |
#define lua_getglobal dll_lua_getglobal
|
|
Karsten Hopp |
5826ff |
#define lua_setglobal dll_lua_setglobal
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ #define lua_typename dll_lua_typename
|
|
Karsten Hopp |
5826ff |
#define lua_close dll_lua_close
|
|
Karsten Hopp |
5826ff |
#define lua_gettop dll_lua_gettop
|
|
Karsten Hopp |
5826ff |
#define lua_settop dll_lua_settop
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 151,156 ****
|
|
Karsten Hopp |
5826ff |
--- 152,158 ----
|
|
Karsten Hopp |
5826ff |
#define lua_rawset dll_lua_rawset
|
|
Karsten Hopp |
5826ff |
#define lua_rawseti dll_lua_rawseti
|
|
Karsten Hopp |
5826ff |
#define lua_setmetatable dll_lua_setmetatable
|
|
Karsten Hopp |
5826ff |
+ #define lua_next dll_lua_next
|
|
Karsten Hopp |
5826ff |
/* libs */
|
|
Karsten Hopp |
5826ff |
#define luaopen_base dll_luaopen_base
|
|
Karsten Hopp |
5826ff |
#define luaopen_table dll_luaopen_table
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 177,182 ****
|
|
Karsten Hopp |
5826ff |
--- 179,185 ----
|
|
Karsten Hopp |
5826ff |
int (*dll_luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, const char *name, const char *mode);
|
|
Karsten Hopp |
5826ff |
int (*dll_luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ void (*dll_luaL_checkany) (lua_State *L, int narg);
|
|
Karsten Hopp |
5826ff |
const char *(*dll_luaL_checklstring) (lua_State *L, int numArg, size_t *l);
|
|
Karsten Hopp |
5826ff |
lua_Integer (*dll_luaL_checkinteger) (lua_State *L, int numArg);
|
|
Karsten Hopp |
5826ff |
lua_Integer (*dll_luaL_optinteger) (lua_State *L, int nArg, lua_Integer def);
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 201,208 ****
|
|
Karsten Hopp |
5826ff |
int ctx, lua_CFunction k);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_getglobal) (lua_State *L, const char *var);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_setglobal) (lua_State *L, const char *var);
|
|
Karsten Hopp |
5826ff |
- const char *(*dll_lua_typename) (lua_State *L, int tp);
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_close) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
int (*dll_lua_gettop) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_settop) (lua_State *L, int idx);
|
|
Karsten Hopp |
5826ff |
--- 204,211 ----
|
|
Karsten Hopp |
5826ff |
int ctx, lua_CFunction k);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_getglobal) (lua_State *L, const char *var);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_setglobal) (lua_State *L, const char *var);
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ const char *(*dll_lua_typename) (lua_State *L, int tp);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_close) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
int (*dll_lua_gettop) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_settop) (lua_State *L, int idx);
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 235,240 ****
|
|
Karsten Hopp |
5826ff |
--- 238,244 ----
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_rawset) (lua_State *L, int idx);
|
|
Karsten Hopp |
5826ff |
void (*dll_lua_rawseti) (lua_State *L, int idx, int n);
|
|
Karsten Hopp |
5826ff |
int (*dll_lua_setmetatable) (lua_State *L, int objindex);
|
|
Karsten Hopp |
5826ff |
+ int (*dll_lua_next) (lua_State *L, int idx);
|
|
Karsten Hopp |
5826ff |
/* libs */
|
|
Karsten Hopp |
5826ff |
int (*dll_luaopen_base) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
int (*dll_luaopen_table) (lua_State *L);
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 268,273 ****
|
|
Karsten Hopp |
5826ff |
--- 272,278 ----
|
|
Karsten Hopp |
5826ff |
{"luaL_loadbufferx", (luaV_function) &dll_luaL_loadbufferx},
|
|
Karsten Hopp |
5826ff |
{"luaL_argerror", (luaV_function) &dll_luaL_argerror},
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ {"luaL_checkany", (luaV_function) &dll_luaL_checkany},
|
|
Karsten Hopp |
5826ff |
{"luaL_checklstring", (luaV_function) &dll_luaL_checklstring},
|
|
Karsten Hopp |
5826ff |
{"luaL_checkinteger", (luaV_function) &dll_luaL_checkinteger},
|
|
Karsten Hopp |
5826ff |
{"luaL_optinteger", (luaV_function) &dll_luaL_optinteger},
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 290,297 ****
|
|
Karsten Hopp |
5826ff |
{"lua_pcallk", (luaV_function) &dll_lua_pcallk},
|
|
Karsten Hopp |
5826ff |
{"lua_getglobal", (luaV_function) &dll_lua_getglobal},
|
|
Karsten Hopp |
5826ff |
{"lua_setglobal", (luaV_function) &dll_lua_setglobal},
|
|
Karsten Hopp |
5826ff |
- {"lua_typename", (luaV_function) &dll_lua_typename},
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
{"lua_close", (luaV_function) &dll_lua_close},
|
|
Karsten Hopp |
5826ff |
{"lua_gettop", (luaV_function) &dll_lua_gettop},
|
|
Karsten Hopp |
5826ff |
{"lua_settop", (luaV_function) &dll_lua_settop},
|
|
Karsten Hopp |
5826ff |
--- 295,302 ----
|
|
Karsten Hopp |
5826ff |
{"lua_pcallk", (luaV_function) &dll_lua_pcallk},
|
|
Karsten Hopp |
5826ff |
{"lua_getglobal", (luaV_function) &dll_lua_getglobal},
|
|
Karsten Hopp |
5826ff |
{"lua_setglobal", (luaV_function) &dll_lua_setglobal},
|
|
Karsten Hopp |
5826ff |
#endif
|
|
Karsten Hopp |
5826ff |
+ {"lua_typename", (luaV_function) &dll_lua_typename},
|
|
Karsten Hopp |
5826ff |
{"lua_close", (luaV_function) &dll_lua_close},
|
|
Karsten Hopp |
5826ff |
{"lua_gettop", (luaV_function) &dll_lua_gettop},
|
|
Karsten Hopp |
5826ff |
{"lua_settop", (luaV_function) &dll_lua_settop},
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 324,329 ****
|
|
Karsten Hopp |
5826ff |
--- 329,335 ----
|
|
Karsten Hopp |
5826ff |
{"lua_rawset", (luaV_function) &dll_lua_rawset},
|
|
Karsten Hopp |
5826ff |
{"lua_rawseti", (luaV_function) &dll_lua_rawseti},
|
|
Karsten Hopp |
5826ff |
{"lua_setmetatable", (luaV_function) &dll_lua_setmetatable},
|
|
Karsten Hopp |
5826ff |
+ {"lua_next", (luaV_function) &dll_lua_next},
|
|
Karsten Hopp |
5826ff |
/* libs */
|
|
Karsten Hopp |
5826ff |
{"luaopen_base", (luaV_function) &dll_luaopen_base},
|
|
Karsten Hopp |
5826ff |
{"luaopen_table", (luaV_function) &dll_luaopen_table},
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 1828,1834 ****
|
|
Karsten Hopp |
5826ff |
}
|
|
Karsten Hopp |
5826ff |
luaV_setrange(L, eap->line1, eap->line2);
|
|
Karsten Hopp |
5826ff |
luaL_buffinit(L, &b);
|
|
Karsten Hopp |
5826ff |
! luaL_addlstring(&b, "return function(line) ", 22); /* header */
|
|
Karsten Hopp |
5826ff |
luaL_addlstring(&b, s, strlen(s));
|
|
Karsten Hopp |
5826ff |
luaL_addlstring(&b, " end", 4); /* footer */
|
|
Karsten Hopp |
5826ff |
luaL_pushresult(&b);
|
|
Karsten Hopp |
5826ff |
--- 1834,1840 ----
|
|
Karsten Hopp |
5826ff |
}
|
|
Karsten Hopp |
5826ff |
luaV_setrange(L, eap->line1, eap->line2);
|
|
Karsten Hopp |
5826ff |
luaL_buffinit(L, &b);
|
|
Karsten Hopp |
5826ff |
! luaL_addlstring(&b, "return function(line, linenr) ", 30); /* header */
|
|
Karsten Hopp |
5826ff |
luaL_addlstring(&b, s, strlen(s));
|
|
Karsten Hopp |
5826ff |
luaL_addlstring(&b, " end", 4); /* footer */
|
|
Karsten Hopp |
5826ff |
luaL_pushresult(&b);
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 1845,1851 ****
|
|
Karsten Hopp |
5826ff |
{
|
|
Karsten Hopp |
5826ff |
lua_pushvalue(L, -1); /* function */
|
|
Karsten Hopp |
5826ff |
luaV_pushline(L, curbuf, l); /* current line as arg */
|
|
Karsten Hopp |
5826ff |
! if (lua_pcall(L, 1, 1, 0))
|
|
Karsten Hopp |
5826ff |
{
|
|
Karsten Hopp |
5826ff |
luaV_emsg(L);
|
|
Karsten Hopp |
5826ff |
break;
|
|
Karsten Hopp |
5826ff |
--- 1851,1858 ----
|
|
Karsten Hopp |
5826ff |
{
|
|
Karsten Hopp |
5826ff |
lua_pushvalue(L, -1); /* function */
|
|
Karsten Hopp |
5826ff |
luaV_pushline(L, curbuf, l); /* current line as arg */
|
|
Karsten Hopp |
5826ff |
! lua_pushinteger(L, l); /* current line number as arg */
|
|
Karsten Hopp |
5826ff |
! if (lua_pcall(L, 2, 1, 0))
|
|
Karsten Hopp |
5826ff |
{
|
|
Karsten Hopp |
5826ff |
luaV_emsg(L);
|
|
Karsten Hopp |
5826ff |
break;
|
|
Karsten Hopp |
5826ff |
*** ../vim-7.3.493/src/version.c 2012-04-06 13:56:00.000000000 +0200
|
|
Karsten Hopp |
5826ff |
--- src/version.c 2012-04-06 14:25:11.000000000 +0200
|
|
Karsten Hopp |
5826ff |
***************
|
|
Karsten Hopp |
5826ff |
*** 716,717 ****
|
|
Karsten Hopp |
5826ff |
--- 716,719 ----
|
|
Karsten Hopp |
5826ff |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5826ff |
+ /**/
|
|
Karsten Hopp |
5826ff |
+ 494,
|
|
Karsten Hopp |
5826ff |
/**/
|
|
Karsten Hopp |
5826ff |
|
|
Karsten Hopp |
5826ff |
--
|
|
Karsten Hopp |
5826ff |
Why doesn't Tarzan have a beard?
|
|
Karsten Hopp |
5826ff |
|
|
Karsten Hopp |
5826ff |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5826ff |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5826ff |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5826ff |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|