From bf96d3fdd9ee477faa774734453c27535a36b16f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 19 Sep 2005 10:49:12 -0300 Subject: 'string.find' as it was in 5.0 --- lstrlib.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 081de1c7..faf0f0f4 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.122 2005/08/15 14:12:32 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.123 2005/08/26 17:36:32 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -516,12 +516,7 @@ static int str_find_aux (lua_State *L, int find) { if (find) { lua_pushinteger(L, s1-s+1); /* start */ lua_pushinteger(L, res-s); /* end */ -#if defined(LUA_COMPAT_FIND) return push_captures(&ms, NULL, 0) + 2; -#else - return 2; -#endif - } else return push_captures(&ms, s1, res); -- cgit v1.2.3-55-g6feb