"findname" moved from lobject.c to lauxlib.c (so libraries may use it).

This commit is contained in:
Roberto Ierusalimschy
1998-06-18 13:57:03 -03:00
parent 112c9d53ab
commit c9902be294
6 changed files with 21 additions and 23 deletions

View File

@@ -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 <stdlib.h>
#include <string.h>
#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;