summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-11 15:12:27 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-11 15:12:27 -0200
commit0d7d559dcc4291c2df5106ec121a43239b1faa91 (patch)
treee0152ebac425f695aac6f5bca24184a56635ba73 /lua.c
parentaf512ad6da83f75b9e764ceeba28198e6e842377 (diff)
downloadlua-github-0d7d559dcc4291c2df5106ec121a43239b1faa91.tar.gz
no need to flush either stderr or \n-terminated outputs
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lua.c b/lua.c
index 1c352e27..a454e9ec 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
/*
-** $Id: lua.c,v 1.184 2010/01/21 16:49:21 roberto Exp roberto $
+** $Id: lua.c,v 1.185 2010/02/09 11:58:57 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -118,14 +118,12 @@ static void print_usage (const char *badoption) {
" - stop handling options and execute stdin\n"
,
progname);
- fflush(stderr);
}
static void l_message (const char *pname, const char *msg) {
if (pname) fprintf(stderr, "%s: ", pname);
fprintf(stderr, "%s\n", msg);
- fflush(stderr);
}
@@ -310,7 +308,6 @@ static void dotty (lua_State *L) {
}
lua_settop(L, 0); /* clear stack */
luai_writestring("\n", 1);
- fflush(stdout);
progname = oldprogname;
}