aboutsummaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-07 11:48:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-07 11:48:53 -0300
commitc9e3d321828dd095d46e295873bc991f0c9ed3d7 (patch)
tree1efce0077f163b1bc0b733327e582e73fe8ac8a3 /table.c
parent00050b8a6b11c3ac2032ca147d236743b90f5168 (diff)
downloadlua-c9e3d321828dd095d46e295873bc991f0c9ed3d7.tar.gz
lua-c9e3d321828dd095d46e295873bc991f0c9ed3d7.tar.bz2
lua-c9e3d321828dd095d46e295873bc991f0c9ed3d7.zip
first implementation of "$if";
new function "findstring" (useful in good places)
Diffstat (limited to 'table.c')
-rw-r--r--table.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/table.c b/table.c
index a1ab1178..1d6afbfc 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $"; 6char *rcs_table="$Id: table.c,v 2.67 1997/04/06 14:08:08 roberto Exp roberto $";
7 7
8#include "luamem.h" 8#include "luamem.h"
9#include "auxlib.h" 9#include "auxlib.h"
@@ -111,6 +111,12 @@ TaggedString *luaI_createfixedstring (char *name)
111} 111}
112 112
113 113
114int luaI_globaldefined (char *name)
115{
116 return ttype(&lua_table[luaI_findsymbolbyname(name)].object) != LUA_T_NIL;
117}
118
119
114/* 120/*
115** Traverse symbol table objects 121** Traverse symbol table objects
116*/ 122*/