diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-08-17 12:05:08 -0300 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-08-17 12:05:08 -0300 |
commit | 7c05266050ce179597c339c4d4bbab31ce1bd2e4 (patch) | |
tree | a43bce1baa733adad7444d1453ef891bfa95a577 /lua.h | |
parent | 592a949272de2b71abae3856553ac916fc1880bd (diff) | |
download | lua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.tar.gz lua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.tar.bz2 lua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.zip |
novas funcoes 'gettable' e 'pushtable'.
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -2,7 +2,7 @@ | |||
2 | ** LUA - Linguagem para Usuarios de Aplicacao | 2 | ** LUA - Linguagem para Usuarios de Aplicacao |
3 | ** Grupo de Tecnologia em Computacao Grafica | 3 | ** Grupo de Tecnologia em Computacao Grafica |
4 | ** TeCGraf - PUC-Rio | 4 | ** TeCGraf - PUC-Rio |
5 | ** $Id: lua.h,v 1.1 1993/12/17 18:41:19 celes Exp celes $ | 5 | ** $Id: lua.h,v 1.2 1994/08/03 14:15:46 celes Exp celes $ |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 8 | ||
@@ -14,7 +14,6 @@ typedef struct Object *lua_Object; | |||
14 | 14 | ||
15 | #define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) | 15 | #define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) |
16 | 16 | ||
17 | |||
18 | void lua_errorfunction (void (*fn) (char *s)); | 17 | void lua_errorfunction (void (*fn) (char *s)); |
19 | void lua_error (char *s); | 18 | void lua_error (char *s); |
20 | int lua_dofile (char *filename); | 19 | int lua_dofile (char *filename); |
@@ -28,6 +27,7 @@ char *lua_getstring (lua_Object object); | |||
28 | char *lua_copystring (lua_Object object); | 27 | char *lua_copystring (lua_Object object); |
29 | lua_CFunction lua_getcfunction (lua_Object object); | 28 | lua_CFunction lua_getcfunction (lua_Object object); |
30 | void *lua_getuserdata (lua_Object object); | 29 | void *lua_getuserdata (lua_Object object); |
30 | void *lua_gettable (lua_Object object); | ||
31 | lua_Object lua_getfield (lua_Object object, char *field); | 31 | lua_Object lua_getfield (lua_Object object, char *field); |
32 | lua_Object lua_getindexed (lua_Object object, float index); | 32 | lua_Object lua_getindexed (lua_Object object, float index); |
33 | lua_Object lua_getglobal (char *name); | 33 | lua_Object lua_getglobal (char *name); |
@@ -39,11 +39,14 @@ int lua_pushnumber (float n); | |||
39 | int lua_pushstring (char *s); | 39 | int lua_pushstring (char *s); |
40 | int lua_pushcfunction (lua_CFunction fn); | 40 | int lua_pushcfunction (lua_CFunction fn); |
41 | int lua_pushuserdata (void *u); | 41 | int lua_pushuserdata (void *u); |
42 | int lua_pushtable (void *t); | ||
43 | int lua_pushsubscript (void); | ||
42 | int lua_pushobject (lua_Object object); | 44 | int lua_pushobject (lua_Object object); |
43 | 45 | ||
44 | int lua_storeglobal (char *name); | 46 | int lua_storeglobal (char *name); |
45 | int lua_storefield (lua_Object object, char *field); | 47 | int lua_storefield (lua_Object object, char *field); |
46 | int lua_storeindexed (lua_Object object, float index); | 48 | int lua_storeindexed (lua_Object object, float index); |
49 | int lua_storesubscript (void); | ||
47 | 50 | ||
48 | int lua_isnil (lua_Object object); | 51 | int lua_isnil (lua_Object object); |
49 | int lua_isnumber (lua_Object object); | 52 | int lua_isnumber (lua_Object object); |