diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
commit | 39b79783297bee79db9853b63d199e120a009a8f (patch) | |
tree | c738c621c4c28d8822c2f785400786301985273b /luadebug.h | |
parent | d164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff) | |
download | lua-39b79783297bee79db9853b63d199e120a009a8f.tar.gz lua-39b79783297bee79db9853b63d199e120a009a8f.tar.bz2 lua-39b79783297bee79db9853b63d199e120a009a8f.zip |
first (big) step to support wide chars
Diffstat (limited to 'luadebug.h')
-rw-r--r-- | luadebug.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luadebug.h,v 1.16 2000/10/20 16:39:03 roberto Exp roberto $ | 2 | ** $Id: luadebug.h,v 1.17 2000/10/30 12:38:50 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 | ||
20 | LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); | 20 | LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); |
21 | LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar); | 21 | LUA_API int lua_getinfo (lua_State *L, const l_char *what, lua_Debug *ar); |
22 | LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); | 22 | LUA_API const l_char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); |
23 | LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n); | 23 | LUA_API const l_char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n); |
24 | 24 | ||
25 | LUA_API lua_Hook lua_setcallhook (lua_State *L, lua_Hook func); | 25 | LUA_API lua_Hook lua_setcallhook (lua_State *L, lua_Hook func); |
26 | LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); | 26 | LUA_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 | ||
31 | struct lua_Debug { | 31 | struct lua_Debug { |
32 | const char *event; /* `call', `return' */ | 32 | const l_char *event; /* `call', `return' */ |
33 | int currentline; /* (l) */ | 33 | int currentline; /* (l) */ |
34 | const char *name; /* (n) */ | 34 | const l_char *name; /* (n) */ |
35 | const char *namewhat; /* (n) `global', `tag method', `local', `field' */ | 35 | const l_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 char *what; /* (S) `Lua' function, `C' function, Lua `main' */ | 38 | const l_char *what; /* (S) `Lua' function, `C' function, Lua `main' */ |
39 | const char *source; /* (S) */ | 39 | const l_char *source; /* (S) */ |
40 | char short_src[LUA_IDSIZE]; /* (S) */ | 40 | l_char short_src[LUA_IDSIZE]; /* (S) */ |
41 | /* private part */ | 41 | /* private part */ |
42 | struct lua_TObject *_func; /* active function */ | 42 | struct lua_TObject *_func; /* active function */ |
43 | }; | 43 | }; |