From 33d35048892fe745bc5b1f16ff7ff2baf5102c0d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 19 Jan 2000 14:50:14 -0200 Subject: [PATCH] new debug API --- lua.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua.c b/lua.c index 351d538f..bdec8057 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.30 1999/12/21 17:34:23 roberto Exp roberto $ +** $Id: lua.c,v 1.31 1999/12/30 18:29:46 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -30,8 +30,8 @@ typedef void (*handler)(int); /* type for signal actions */ static void laction (int i); -static lua_LHFunction old_linehook = NULL; -static lua_CHFunction old_callhook = NULL; +static lua_Dbghook old_linehook = NULL; +static lua_Dbghook old_callhook = NULL; static handler lreset (void) { @@ -51,8 +51,8 @@ static void laction (int i) { (void)i; /* to avoid warnings */ signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, terminate process (default action) */ - old_linehook = lua_setlinehook(lua_state, (lua_LHFunction)lstop); - old_callhook = lua_setcallhook(lua_state, (lua_CHFunction)lstop); + old_linehook = lua_setlinehook(lua_state, (lua_Dbghook)lstop); + old_callhook = lua_setcallhook(lua_state, (lua_Dbghook)lstop); }