diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-05 16:33:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-05 16:33:32 -0300 |
commit | 6e80c1cde193b767d63d2cc30ebd71d65512e061 (patch) | |
tree | cb599bdc956c0dc9b3d469bb01de47185db3e4e2 /lua.h | |
parent | f67f324377aff66d78479eaaffbb94a6b092ae45 (diff) | |
download | lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.tar.gz lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.tar.bz2 lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.zip |
new version for API
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.64 2000/08/31 20:23:40 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.65 2000/08/31 21:01:43 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
@@ -52,7 +52,7 @@ typedef int (*lua_CFunction) (lua_State *L); | |||
52 | /* | 52 | /* |
53 | ** state manipulation | 53 | ** state manipulation |
54 | */ | 54 | */ |
55 | lua_State *lua_newstate (int stacksize, int builtin); | 55 | lua_State *lua_newstate (int stacksize); |
56 | void lua_close (lua_State *L); | 56 | void lua_close (lua_State *L); |
57 | 57 | ||
58 | 58 | ||
@@ -61,8 +61,8 @@ void lua_close (lua_State *L); | |||
61 | */ | 61 | */ |
62 | int lua_gettop (lua_State *L); | 62 | int lua_gettop (lua_State *L); |
63 | void lua_settop (lua_State *L, int index); | 63 | void lua_settop (lua_State *L, int index); |
64 | void lua_pushobject (lua_State *L, int index); | 64 | void lua_pushvalue (lua_State *L, int index); |
65 | void lua_move (lua_State *L, int index); | 65 | void lua_remove (lua_State *L, int index); |
66 | void lua_insert (lua_State *L, int index); | 66 | void lua_insert (lua_State *L, int index); |
67 | int lua_stackspace (lua_State *L); | 67 | int lua_stackspace (lua_State *L); |
68 | 68 | ||
@@ -77,6 +77,7 @@ int lua_iscfunction (lua_State *L, int index); | |||
77 | int lua_tag (lua_State *L, int index); | 77 | int lua_tag (lua_State *L, int index); |
78 | 78 | ||
79 | int lua_equal (lua_State *L, int index1, int index2); | 79 | int lua_equal (lua_State *L, int index1, int index2); |
80 | int lua_lessthan (lua_State *L, int index1, int index2); | ||
80 | 81 | ||
81 | double lua_tonumber (lua_State *L, int index); | 82 | double lua_tonumber (lua_State *L, int index); |
82 | const char *lua_tostring (lua_State *L, int index); | 83 | const char *lua_tostring (lua_State *L, int index); |
@@ -101,8 +102,9 @@ void lua_pushusertag (lua_State *L, void *u, int tag); | |||
101 | ** get functions (Lua -> stack) | 102 | ** get functions (Lua -> stack) |
102 | */ | 103 | */ |
103 | void lua_getglobal (lua_State *L, const char *name); | 104 | void lua_getglobal (lua_State *L, const char *name); |
104 | void lua_gettable (lua_State *L); | 105 | void lua_gettable (lua_State *L, int tableindex); |
105 | void lua_rawget (lua_State *L); | 106 | void lua_rawget (lua_State *L, int tableindex); |
107 | void lua_rawgeti (lua_State *L, int tableindex, int n); | ||
106 | void lua_getglobals (lua_State *L); | 108 | void lua_getglobals (lua_State *L); |
107 | void lua_gettagmethod (lua_State *L, int tag, const char *event); | 109 | void lua_gettagmethod (lua_State *L, int tag, const char *event); |
108 | 110 | ||
@@ -115,8 +117,9 @@ void lua_newtable (lua_State *L); | |||
115 | ** set functions (stack -> Lua) | 117 | ** set functions (stack -> Lua) |
116 | */ | 118 | */ |
117 | void lua_setglobal (lua_State *L, const char *name); | 119 | void lua_setglobal (lua_State *L, const char *name); |
118 | void lua_settable (lua_State *L); | 120 | void lua_settable (lua_State *L, int tableindex); |
119 | void lua_rawset (lua_State *L); | 121 | void lua_rawset (lua_State *L, int tableindex); |
122 | void lua_rawseti (lua_State *L, int tableindex, int n); | ||
120 | void lua_setglobals (lua_State *L); | 123 | void lua_setglobals (lua_State *L); |
121 | void lua_settagmethod (lua_State *L, int tag, const char *event); | 124 | void lua_settagmethod (lua_State *L, int tag, const char *event); |
122 | int lua_ref (lua_State *L, int lock); | 125 | int lua_ref (lua_State *L, int lock); |
@@ -145,9 +148,10 @@ void lua_unref (lua_State *L, int ref); | |||
145 | 148 | ||
146 | long lua_collectgarbage (lua_State *L, long limit); | 149 | long lua_collectgarbage (lua_State *L, long limit); |
147 | 150 | ||
148 | int lua_next (lua_State *L); | 151 | int lua_next (lua_State *L, int tableindex); |
149 | int lua_getn (lua_State *L, int index); | 152 | int lua_getn (lua_State *L, int tableindex); |
150 | 153 | ||
154 | void lua_concat (lua_State *L, int n); | ||
151 | 155 | ||
152 | 156 | ||
153 | /* | 157 | /* |