mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
detail
This commit is contained in:
parent
b3f81f1d1d
commit
ebf646efb5
1 changed files with 2 additions and 2 deletions
4
liolib.c
4
liolib.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: liolib.c,v 2.66 2005/08/17 19:05:04 roberto Exp roberto $
|
||||
** $Id: liolib.c,v 2.67 2005/08/26 17:36:32 roberto Exp roberto $
|
||||
** Standard I/O (and system) library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -440,7 +440,7 @@ static int f_setvbuf (lua_State *L) {
|
|||
static const char *const modenames[] = {"no", "full", "line", NULL};
|
||||
FILE *f = tofile(L);
|
||||
int op = luaL_checkoption(L, 2, NULL, modenames);
|
||||
lua_Integer sz = luaL_optinteger(L, 3, BUFSIZ);
|
||||
lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE);
|
||||
int res = setvbuf(f, NULL, mode[op], sz);
|
||||
return pushresult(L, res == 0, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue