diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-02 17:37:04 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-02 17:37:04 -0300 |
| commit | 02a6891939895129bc968364a5beda73331005e7 (patch) | |
| tree | 61417ec2d6e1eb38542e04fba31c482c6284280b /lua.h | |
| parent | 741c6f50067bfb0f351967c321da56805191f302 (diff) | |
| download | lua-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -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 @@ | |||
| 55 | typedef void (*lua_CFunction) (void); | 55 | typedef void (*lua_CFunction) (void); |
| 56 | typedef unsigned int lua_Object; | 56 | typedef unsigned int lua_Object; |
| 57 | 57 | ||
| 58 | typedef struct lua_State lua_State; | ||
| 59 | extern lua_State *lua_state; | ||
| 58 | 60 | ||
| 59 | void lua_open (void); | 61 | void lua_open (void); |
| 60 | void lua_close (void); | 62 | void lua_close (void); |
| 63 | lua_State *lua_setstate (lua_State *st); | ||
| 61 | 64 | ||
| 62 | lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ | 65 | lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ |
| 63 | lua_Object lua_gettagmethod (int tag, char *event); | 66 | lua_Object lua_gettagmethod (int tag, char *event); |
| @@ -70,6 +73,8 @@ void lua_settag (int tag); /* In: object */ | |||
| 70 | void lua_error (char *s); | 73 | void lua_error (char *s); |
| 71 | int lua_dofile (char *filename); /* Out: returns */ | 74 | int lua_dofile (char *filename); /* Out: returns */ |
| 72 | int lua_dostring (char *string); /* Out: returns */ | 75 | int lua_dostring (char *string); /* Out: returns */ |
| 76 | int lua_dobuffer (char *buff, int size); | ||
| 77 | /* Out: returns */ | ||
| 73 | int lua_callfunction (lua_Object f); | 78 | int lua_callfunction (lua_Object f); |
| 74 | /* In: parameters; Out: returns */ | 79 | /* In: parameters; Out: returns */ |
| 75 | 80 | ||
