diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 14:20:01 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 14:20:01 -0200 |
commit | c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4 (patch) | |
tree | 9f26c632fa0215c21260a81f6fad1a79678f8173 /liolib.c | |
parent | 0bbdddc86b1353fec36ae886b4142986f3c4713f (diff) | |
download | lua-github-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.gz |
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.83 2009/11/24 12:05:44 roberto Exp roberto $ +** $Id: liolib.c,v 2.84 2009/12/17 13:08:51 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -336,7 +336,7 @@ static int read_line (lua_State *L, FILE *f) { char *p = luaL_prepbuffer(&b); if (fgets(p, LUAL_BUFFERSIZE, f) == NULL) { /* eof? */ luaL_pushresult(&b); /* close buffer */ - return (lua_objlen(L, -1) > 0); /* check whether read something */ + return (lua_rawlen(L, -1) > 0); /* check whether read something */ } l = strlen(p); if (l == 0 || p[l-1] != '\n') |