summaryrefslogtreecommitdiff
path: root/luadebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-06 18:17:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-06 18:17:37 -0300
commit2a501882692afaa08ecc38af3052e9b4f60f6e85 (patch)
tree6a7b1fcba9e355a3aa7bab442931afd9ae2fdb87 /luadebug.h
parent9aedea6ec8feaa163fe0503005dee30d4ed0ba55 (diff)
downloadlua-2a501882692afaa08ecc38af3052e9b4f60f6e85.tar.gz
lua-2a501882692afaa08ecc38af3052e9b4f60f6e85.tar.bz2
lua-2a501882692afaa08ecc38af3052e9b4f60f6e85.zip
avoid use of l_char outside INTERNALs (use lua_char instead)
Diffstat (limited to 'luadebug.h')
-rw-r--r--luadebug.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/luadebug.h b/luadebug.h
index f23216c5..9c2bc13e 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luadebug.h,v 1.18 2001/02/23 17:17:25 roberto Exp roberto $ 2** $Id: luadebug.h,v 1.19 2001/03/07 18:09:25 roberto Exp roberto $
3** Debugging API 3** Debugging API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -18,9 +18,9 @@ typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
18 18
19 19
20LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); 20LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar);
21LUA_API int lua_getinfo (lua_State *L, const l_char *what, lua_Debug *ar); 21LUA_API int lua_getinfo (lua_State *L, const lua_char *what, lua_Debug *ar);
22LUA_API const l_char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); 22LUA_API const lua_char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n);
23LUA_API const l_char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n); 23LUA_API const lua_char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n);
24 24
25LUA_API lua_Hook lua_setcallhook (lua_State *L, lua_Hook func); 25LUA_API lua_Hook lua_setcallhook (lua_State *L, lua_Hook func);
26LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); 26LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func);
@@ -29,15 +29,15 @@ LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func);
29#define LUA_IDSIZE 60 29#define LUA_IDSIZE 60
30 30
31struct lua_Debug { 31struct lua_Debug {
32 const l_char *event; /* `call', `return' */ 32 const lua_char *event; /* `call', `return' */
33 int currentline; /* (l) */ 33 int currentline; /* (l) */
34 const l_char *name; /* (n) */ 34 const lua_char *name; /* (n) */
35 const l_char *namewhat; /* (n) `global', `tag method', `local', `field' */ 35 const lua_char *namewhat; /* (n) `global', `tag method', `local', `field' */
36 int nups; /* (u) number of upvalues */ 36 int nups; /* (u) number of upvalues */
37 int linedefined; /* (S) */ 37 int linedefined; /* (S) */
38 const l_char *what; /* (S) `Lua' function, `C' function, Lua `main' */ 38 const lua_char *what; /* (S) `Lua' function, `C' function, Lua `main' */
39 const l_char *source; /* (S) */ 39 const lua_char *source; /* (S) */
40 l_char short_src[LUA_IDSIZE]; /* (S) */ 40 lua_char short_src[LUA_IDSIZE]; /* (S) */
41 /* private part */ 41 /* private part */
42 struct CallInfo *_ci; /* active function */ 42 struct CallInfo *_ci; /* active function */
43}; 43};