diff options
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; |
