openbsd-ports/www/elinks/patches/patch-src_scripting_lua_hooks_c
jasper 97df89bdb5 make elinks work with lua 5.1
from James Prevatt <jprevatt+bsd at paunix.org>

ok sturm
2006-10-21 17:56:48 +00:00

13 lines
469 B
Plaintext

$OpenBSD: patch-src_scripting_lua_hooks_c,v 1.1 2006/10/21 17:56:48 jasper Exp $
--- src/scripting/lua/hooks.c.orig Thu Oct 19 12:54:09 2006
+++ src/scripting/lua/hooks.c Thu Oct 19 12:54:25 2006
@@ -200,7 +200,7 @@ static enum evhook_status
script_hook_quit(va_list ap, void *data)
{
if (!prepare_lua(NULL)) {
- lua_dostring(lua_state, "if quit_hook then quit_hook() end");
+ luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
finish_lua();
}