diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-11 15:12:27 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-11 15:12:27 -0200 |
commit | 0d7d559dcc4291c2df5106ec121a43239b1faa91 (patch) | |
tree | e0152ebac425f695aac6f5bca24184a56635ba73 /lua.c | |
parent | af512ad6da83f75b9e764ceeba28198e6e842377 (diff) | |
download | lua-0d7d559dcc4291c2df5106ec121a43239b1faa91.tar.gz lua-0d7d559dcc4291c2df5106ec121a43239b1faa91.tar.bz2 lua-0d7d559dcc4291c2df5106ec121a43239b1faa91.zip |
no need to flush either stderr or \n-terminated outputs
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.184 2010/01/21 16:49:21 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.185 2010/02/09 11:58:57 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -118,14 +118,12 @@ static void print_usage (const char *badoption) { | |||
118 | " - stop handling options and execute stdin\n" | 118 | " - stop handling options and execute stdin\n" |
119 | , | 119 | , |
120 | progname); | 120 | progname); |
121 | fflush(stderr); | ||
122 | } | 121 | } |
123 | 122 | ||
124 | 123 | ||
125 | static void l_message (const char *pname, const char *msg) { | 124 | static void l_message (const char *pname, const char *msg) { |
126 | if (pname) fprintf(stderr, "%s: ", pname); | 125 | if (pname) fprintf(stderr, "%s: ", pname); |
127 | fprintf(stderr, "%s\n", msg); | 126 | fprintf(stderr, "%s\n", msg); |
128 | fflush(stderr); | ||
129 | } | 127 | } |
130 | 128 | ||
131 | 129 | ||
@@ -310,7 +308,6 @@ static void dotty (lua_State *L) { | |||
310 | } | 308 | } |
311 | lua_settop(L, 0); /* clear stack */ | 309 | lua_settop(L, 0); /* clear stack */ |
312 | luai_writestring("\n", 1); | 310 | luai_writestring("\n", 1); |
313 | fflush(stdout); | ||
314 | progname = oldprogname; | 311 | progname = oldprogname; |
315 | } | 312 | } |
316 | 313 | ||