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-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.gz lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.bz2 lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.zip |
'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 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.83 2009/11/24 12:05:44 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.84 2009/12/17 13:08:51 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -336,7 +336,7 @@ static int read_line (lua_State *L, FILE *f) { | |||
336 | char *p = luaL_prepbuffer(&b); | 336 | char *p = luaL_prepbuffer(&b); |
337 | if (fgets(p, LUAL_BUFFERSIZE, f) == NULL) { /* eof? */ | 337 | if (fgets(p, LUAL_BUFFERSIZE, f) == NULL) { /* eof? */ |
338 | luaL_pushresult(&b); /* close buffer */ | 338 | luaL_pushresult(&b); /* close buffer */ |
339 | return (lua_objlen(L, -1) > 0); /* check whether read something */ | 339 | return (lua_rawlen(L, -1) > 0); /* check whether read something */ |
340 | } | 340 | } |
341 | l = strlen(p); | 341 | l = strlen(p); |
342 | if (l == 0 || p[l-1] != '\n') | 342 | if (l == 0 || p[l-1] != '\n') |