commit 7c05266050ce179597c339c4d4bbab31ce1bd2e4
parent 592a949272de2b71abae3856553ac916fc1880bd
Author: Waldemar Celes <celes@tecgraf.puc-rio.br>
Date: Wed, 17 Aug 1994 12:04:49 -0300
novas funcoes 'gettable' e 'pushtable'.
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lua.h b/lua.h
@@ -2,7 +2,7 @@
** LUA - Linguagem para Usuarios de Aplicacao
** Grupo de Tecnologia em Computacao Grafica
** TeCGraf - PUC-Rio
-** $Id: lua.h,v 1.1 1993/12/17 18:41:19 celes Exp celes $
+** $Id: lua.h,v 1.2 1994/08/03 14:15:46 celes Exp celes $
*/
@@ -14,7 +14,6 @@ typedef struct Object *lua_Object;
#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n))
-
void lua_errorfunction (void (*fn) (char *s));
void lua_error (char *s);
int lua_dofile (char *filename);
@@ -28,6 +27,7 @@ char *lua_getstring (lua_Object object);
char *lua_copystring (lua_Object object);
lua_CFunction lua_getcfunction (lua_Object object);
void *lua_getuserdata (lua_Object object);
+void *lua_gettable (lua_Object object);
lua_Object lua_getfield (lua_Object object, char *field);
lua_Object lua_getindexed (lua_Object object, float index);
lua_Object lua_getglobal (char *name);
@@ -39,11 +39,14 @@ int lua_pushnumber (float n);
int lua_pushstring (char *s);
int lua_pushcfunction (lua_CFunction fn);
int lua_pushuserdata (void *u);
+int lua_pushtable (void *t);
+int lua_pushsubscript (void);
int lua_pushobject (lua_Object object);
int lua_storeglobal (char *name);
-int lua_storefield (lua_Object object, char *field);
-int lua_storeindexed (lua_Object object, float index);
+int lua_storefield (lua_Object object, char *field);
+int lua_storeindexed (lua_Object object, float index);
+int lua_storesubscript (void);
int lua_isnil (lua_Object object);
int lua_isnumber (lua_Object object);