From 7c05266050ce179597c339c4d4bbab31ce1bd2e4 Mon Sep 17 00:00:00 2001 From: Waldemar Celes Date: Wed, 17 Aug 1994 12:05:08 -0300 Subject: [PATCH] novas funcoes 'gettable' e 'pushtable'. --- lua.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lua.h b/lua.h index 56adb3b3..db931825 100644 --- 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);