From c9902be294f5c2dca8a67a67fd324f91e4352c0a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 1998 13:57:03 -0300 Subject: "findname" moved from lobject.c to lauxlib.c (so libraries may use it). --- lobject.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'lobject.c') diff --git a/lobject.c b/lobject.c index e70d50ba..99c76233 100644 --- a/lobject.c +++ b/lobject.c @@ -1,11 +1,10 @@ /* -** $Id: lobject.c,v 1.10 1998/01/09 14:44:55 roberto Exp roberto $ +** $Id: lobject.c,v 1.11 1998/03/09 21:49:52 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ #include -#include #include "lobject.h" #include "lua.h" @@ -58,16 +57,6 @@ int luaO_equalObj (TObject *t1, TObject *t2) } -int luaO_findstring (char *name, char *list[]) -{ - int i; - for (i=0; list[i]; i++) - if (strcmp(list[i], name) == 0) - return i; - return -1; /* name not found */ -} - - void luaO_insertlist (GCnode *root, GCnode *node) { node->next = root->next; -- cgit v1.2.3-55-g6feb