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). --- llex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 75c1c28b..8bd60aaf 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.19 1998/05/27 13:03:40 roberto Exp roberto $ +** $Id: llex.c,v 1.20 1998/06/06 20:44:05 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -118,7 +118,7 @@ static void skipspace (LexState *LS) static int checkcond (LexState *LS, char *buff) { static char *opts[] = {"nil", "1", NULL}; - int i = luaO_findstring(buff, opts); + int i = luaL_findstring(buff, opts); if (i >= 0) return i; else if (isalpha((unsigned char)buff[0]) || buff[0] == '_') return luaS_globaldefined(buff); @@ -172,7 +172,7 @@ static void inclinenumber (LexState *LS) int skip = LS->ifstate[LS->iflevel].skip; next(LS); /* skip $ */ readname(LS, buff); - switch (luaO_findstring(buff, pragmas)) { + switch (luaL_findstring(buff, pragmas)) { case 0: /* debug */ if (!skip) lua_debug = 1; break; -- cgit v1.2.3-55-g6feb