summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-02 17:37:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-02 17:37:04 -0300
commit02a6891939895129bc968364a5beda73331005e7 (patch)
tree61417ec2d6e1eb38542e04fba31c482c6284280b /lua.h
parent741c6f50067bfb0f351967c321da56805191f302 (diff)
downloadlua-02a6891939895129bc968364a5beda73331005e7.tar.gz
lua-02a6891939895129bc968364a5beda73331005e7.tar.bz2
lua-02a6891939895129bc968364a5beda73331005e7.zip
API for functions to manipulate global state.
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index 5e513a94..b200c20b 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.17 1998/03/06 18:47:42 roberto Exp roberto $ 2** $Id: lua.h,v 1.18 1998/05/18 22:26:03 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
@@ -55,9 +55,12 @@
55typedef void (*lua_CFunction) (void); 55typedef void (*lua_CFunction) (void);
56typedef unsigned int lua_Object; 56typedef unsigned int lua_Object;
57 57
58typedef struct lua_State lua_State;
59extern lua_State *lua_state;
58 60
59void lua_open (void); 61void lua_open (void);
60void lua_close (void); 62void lua_close (void);
63lua_State *lua_setstate (lua_State *st);
61 64
62lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ 65lua_Object lua_settagmethod (int tag, char *event); /* In: new method */
63lua_Object lua_gettagmethod (int tag, char *event); 66lua_Object lua_gettagmethod (int tag, char *event);
@@ -70,6 +73,8 @@ void lua_settag (int tag); /* In: object */
70void lua_error (char *s); 73void lua_error (char *s);
71int lua_dofile (char *filename); /* Out: returns */ 74int lua_dofile (char *filename); /* Out: returns */
72int lua_dostring (char *string); /* Out: returns */ 75int lua_dostring (char *string); /* Out: returns */
76int lua_dobuffer (char *buff, int size);
77 /* Out: returns */
73int lua_callfunction (lua_Object f); 78int lua_callfunction (lua_Object f);
74 /* In: parameters; Out: returns */ 79 /* In: parameters; Out: returns */
75 80