diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-19 14:50:14 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-19 14:50:14 -0200 |
commit | 33d35048892fe745bc5b1f16ff7ff2baf5102c0d (patch) | |
tree | f9cb3f19484168c06e4296181c841a2a0fd72f6c /lua.c | |
parent | 2877bad4c260d11c22c3b12e633d6b1ca3415789 (diff) | |
download | lua-33d35048892fe745bc5b1f16ff7ff2baf5102c0d.tar.gz lua-33d35048892fe745bc5b1f16ff7ff2baf5102c0d.tar.bz2 lua-33d35048892fe745bc5b1f16ff7ff2baf5102c0d.zip |
new debug API
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.30 1999/12/21 17:34:23 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.31 1999/12/30 18:29:46 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -30,8 +30,8 @@ typedef void (*handler)(int); /* type for signal actions */ | |||
30 | static void laction (int i); | 30 | static void laction (int i); |
31 | 31 | ||
32 | 32 | ||
33 | static lua_LHFunction old_linehook = NULL; | 33 | static lua_Dbghook old_linehook = NULL; |
34 | static lua_CHFunction old_callhook = NULL; | 34 | static lua_Dbghook old_callhook = NULL; |
35 | 35 | ||
36 | 36 | ||
37 | static handler lreset (void) { | 37 | static handler lreset (void) { |
@@ -51,8 +51,8 @@ static void laction (int i) { | |||
51 | (void)i; /* to avoid warnings */ | 51 | (void)i; /* to avoid warnings */ |
52 | signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, | 52 | signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, |
53 | terminate process (default action) */ | 53 | terminate process (default action) */ |
54 | old_linehook = lua_setlinehook(lua_state, (lua_LHFunction)lstop); | 54 | old_linehook = lua_setlinehook(lua_state, (lua_Dbghook)lstop); |
55 | old_callhook = lua_setcallhook(lua_state, (lua_CHFunction)lstop); | 55 | old_callhook = lua_setcallhook(lua_state, (lua_Dbghook)lstop); |
56 | } | 56 | } |
57 | 57 | ||
58 | 58 | ||