diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-18 13:57:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-18 13:57:03 -0300 |
commit | c9902be294f5c2dca8a67a67fd324f91e4352c0a (patch) | |
tree | 3f3ef43d231334ee60c13bf310f7995845e97cab /lobject.c | |
parent | 112c9d53ab47e77fd09d4ecb9b11d432ed906c88 (diff) | |
download | lua-c9902be294f5c2dca8a67a67fd324f91e4352c0a.tar.gz lua-c9902be294f5c2dca8a67a67fd324f91e4352c0a.tar.bz2 lua-c9902be294f5c2dca8a67a67fd324f91e4352c0a.zip |
"findname" moved from lobject.c to lauxlib.c (so libraries may use it).
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -1,11 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 1.10 1998/01/09 14:44:55 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 1.11 1998/03/09 21:49:52 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <stdlib.h> | 7 | #include <stdlib.h> |
8 | #include <string.h> | ||
9 | 8 | ||
10 | #include "lobject.h" | 9 | #include "lobject.h" |
11 | #include "lua.h" | 10 | #include "lua.h" |
@@ -58,16 +57,6 @@ int luaO_equalObj (TObject *t1, TObject *t2) | |||
58 | } | 57 | } |
59 | 58 | ||
60 | 59 | ||
61 | int luaO_findstring (char *name, char *list[]) | ||
62 | { | ||
63 | int i; | ||
64 | for (i=0; list[i]; i++) | ||
65 | if (strcmp(list[i], name) == 0) | ||
66 | return i; | ||
67 | return -1; /* name not found */ | ||
68 | } | ||
69 | |||
70 | |||
71 | void luaO_insertlist (GCnode *root, GCnode *node) | 60 | void luaO_insertlist (GCnode *root, GCnode *node) |
72 | { | 61 | { |
73 | node->next = root->next; | 62 | node->next = root->next; |