diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 16:32:53 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 16:32:53 -0300 |
| commit | 11a70220670f25a9929439f0b27331f09f05235c (patch) | |
| tree | c4a962b5a3e53ac6df8894fb3ad2248c4a1256cb /lstring.h | |
| parent | 35a6ed283881f313152457f24cc6c677122d5058 (diff) | |
| download | lua-11a70220670f25a9929439f0b27331f09f05235c.tar.gz lua-11a70220670f25a9929439f0b27331f09f05235c.tar.bz2 lua-11a70220670f25a9929439f0b27331f09f05235c.zip | |
global variables are stored in a Lua table
Diffstat (limited to 'lstring.h')
| -rw-r--r-- | lstring.h | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.h,v 1.17 2000/03/10 14:38:10 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.18 2000/03/10 18:37:44 roberto Exp roberto $ |
| 3 | ** String table (keep all strings handled by Lua) | 3 | ** String table (keep all strings handled by Lua) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -18,7 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | /* | 20 | /* |
| 21 | ** any taggedstring with mark>=FIXMARK is never collected. | 21 | ** any TString with mark>=FIXMARK is never collected. |
| 22 | ** Marks>=RESERVEDMARK are used to identify reserved words. | 22 | ** Marks>=RESERVEDMARK are used to identify reserved words. |
| 23 | */ | 23 | */ |
| 24 | #define FIXMARK 2 | 24 | #define FIXMARK 2 |
| @@ -33,9 +33,6 @@ void luaS_free (lua_State *L, TString *ts); | |||
| 33 | TString *luaS_newlstr (lua_State *L, const char *str, long l); | 33 | TString *luaS_newlstr (lua_State *L, const char *str, long l); |
| 34 | TString *luaS_new (lua_State *L, const char *str); | 34 | TString *luaS_new (lua_State *L, const char *str); |
| 35 | TString *luaS_newfixed (lua_State *L, const char *str); | 35 | TString *luaS_newfixed (lua_State *L, const char *str); |
| 36 | GlobalVar *luaS_assertglobal (lua_State *L, TString *ts); | ||
| 37 | GlobalVar *luaS_assertglobalbyname (lua_State *L, const char *name); | ||
| 38 | int luaS_globaldefined (lua_State *L, const char *name); | ||
| 39 | 36 | ||
| 40 | 37 | ||
| 41 | #endif | 38 | #endif |
