Re: LUA interface giving me trouble with garbage collection patch

2014-07-11 Fir de Conversatie Yukihiro Nakadaira
On Fri, Jul 11, 2014 at 12:49 AM, Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote: Here is sample code. [edited] L = luaL_newstate(); lua_pushcclosure(L, add, 0); lua_pushinteger(L, 111);

Re: LUA interface giving me trouble with garbage collection patch

2014-07-10 Fir de Conversatie Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On July 10, 2014 7:49:02 PM GMT+03:00, Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote: Here is sample code. [edited]     L = luaL_newstate();     lua_pushcclosure(L, add, 0);

Re: LUA interface giving me trouble with garbage collection patch

2014-07-10 Fir de Conversatie Ben Fritz
On Wednesday, July 9, 2014 11:24:50 PM UTC-5, Yukihiro Nakadaira wrote: Here is sample code. [edited]     L = luaL_newstate();     lua_pushcclosure(L, add, 0);     lua_pushinteger(L, 111);     lua_pushinteger(L, 222);     lua_call(L, 2 /* nargs */, 1 /* nresults */);     r =

Re: LUA interface giving me trouble with garbage collection patch

2014-07-09 Fir de Conversatie Yukihiro Nakadaira
On Mon, Jul 7, 2014 at 2:36 PM, Benjamin Fritz fritzophre...@gmail.com wrote: I want to finish up this patch to fix a crash in Vim: https://groups.google.com/d/topic/vim_dev/dnN58kO5Vg4/discussion I changed luaV_setref() to return a value if garbage collection cannot safely proceed. But, I

LUA interface giving me trouble with garbage collection patch

2014-07-06 Fir de Conversatie Benjamin Fritz
I want to finish up this patch to fix a crash in Vim: https://groups.google.com/d/topic/vim_dev/dnN58kO5Vg4/discussion I changed luaV_setref() to return a value if garbage collection cannot safely proceed. But, I do not know how to get that return value back to the code calling it from eval.c,