aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-13 13:55:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-13 13:55:41 -0200
commit84b99d25ad8c2c669a9cfef13784ceb7b0632fe0 (patch)
treea734f9a0ea5bc13e3c30e33fc9596dd1a7c044af
parent5dfd17dd769d159a3b0722ddf82b385ff7271d53 (diff)
downloadlua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.tar.gz
lua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.tar.bz2
lua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.zip
debug message goes to stderr
-rw-r--r--iolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iolib.c b/iolib.c
index 2cfb8af7..13f9a31f 100644
--- a/iolib.c
+++ b/iolib.c
@@ -3,7 +3,7 @@
3** Input/output library to LUA 3** Input/output library to LUA
4*/ 4*/
5 5
6char *rcs_iolib="$Id: iolib.c,v 1.15 1994/11/13 14:54:18 roberto Exp roberto $"; 6char *rcs_iolib="$Id: iolib.c,v 1.16 1994/11/16 17:38:08 roberto Stab roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <ctype.h> 9#include <ctype.h>
@@ -585,7 +585,7 @@ static void io_debug (void)
585 while (1) 585 while (1)
586 { 586 {
587 char buffer[250]; 587 char buffer[250];
588 printf("lua_debug> "); 588 fprintf(stderr, "lua_debug> ");
589 if (gets(buffer) == 0) return; 589 if (gets(buffer) == 0) return;
590 if (strcmp(buffer, "cont") == 0) return; 590 if (strcmp(buffer, "cont") == 0) return;
591 lua_dostring(buffer); 591 lua_dostring(buffer);