aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-01-30 15:27:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-01-30 15:27:53 -0200
commit653977a0ac6de8f89980764da8b88412dd6ea187 (patch)
tree60243bd5b8fe3962419552458f136c34d7e7163b
parentd6fd33e76fdeb919fd91860aa9d0f9524e6d415a (diff)
downloadlua-653977a0ac6de8f89980764da8b88412dd6ea187.tar.gz
lua-653977a0ac6de8f89980764da8b88412dd6ea187.tar.bz2
lua-653977a0ac6de8f89980764da8b88412dd6ea187.zip
callhook can be static
-rw-r--r--ldo.c2
-rw-r--r--ldo.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index ef9a3a2d..3c38fd25 100644
--- a/ldo.c
+++ b/ldo.c
@@ -134,7 +134,7 @@ void luaD_lineHook (lua_State *L, int line, lua_Hook linehook) {
134} 134}
135 135
136 136
137void luaD_callHook (lua_State *L, lua_Hook callhook, const char *event) { 137static void luaD_callHook (lua_State *L, lua_Hook callhook, const char *event) {
138 if (L->allowhooks) { 138 if (L->allowhooks) {
139 lua_Debug ar; 139 lua_Debug ar;
140 ar.event = event; 140 ar.event = event;
diff --git a/ldo.h b/ldo.h
index 6b3649d6..c3dd7cfa 100644
--- a/ldo.h
+++ b/ldo.h
@@ -23,7 +23,6 @@
23 23
24 24
25void luaD_lineHook (lua_State *L, int line, lua_Hook linehook); 25void luaD_lineHook (lua_State *L, int line, lua_Hook linehook);
26void luaD_callHook (lua_State *L, lua_Hook callhook, const char *event);
27StkId luaD_precall (lua_State *L, StkId func); 26StkId luaD_precall (lua_State *L, StkId func);
28void luaD_call (lua_State *L, StkId func, int nResults); 27void luaD_call (lua_State *L, StkId func, int nResults);
29void luaD_poscall (lua_State *L, int wanted, StkId firstResult); 28void luaD_poscall (lua_State *L, int wanted, StkId firstResult);