aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua.c b/lua.c
index 8028d15f..8ecbe508 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.148 2005/08/25 19:55:38 roberto Exp roberto $ 2** $Id: lua.c,v 1.149 2005/08/26 17:32:05 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*/
@@ -50,12 +50,14 @@ static void print_usage (void) {
50 " -v show version information\n" 50 " -v show version information\n"
51 " -- stop handling options\n" , 51 " -- stop handling options\n" ,
52 progname); 52 progname);
53 fflush(stderr);
53} 54}
54 55
55 56
56static void l_message (const char *pname, const char *msg) { 57static void l_message (const char *pname, const char *msg) {
57 if (pname) fprintf(stderr, "%s: ", pname); 58 if (pname) fprintf(stderr, "%s: ", pname);
58 fprintf(stderr, "%s\n", msg); 59 fprintf(stderr, "%s\n", msg);
60 fflush(stderr);
59} 61}
60 62
61 63
@@ -222,6 +224,7 @@ static void dotty (lua_State *L) {
222 } 224 }
223 lua_settop(L, 0); /* clear stack */ 225 lua_settop(L, 0); /* clear stack */
224 fputs("\n", stdout); 226 fputs("\n", stdout);
227 fflush(stdout);
225 progname = oldprogname; 228 progname = oldprogname;
226} 229}
227 230