diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-13 13:55:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-13 13:55:41 -0200 |
commit | 84b99d25ad8c2c669a9cfef13784ceb7b0632fe0 (patch) | |
tree | a734f9a0ea5bc13e3c30e33fc9596dd1a7c044af | |
parent | 5dfd17dd769d159a3b0722ddf82b385ff7271d53 (diff) | |
download | lua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.tar.gz lua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.tar.bz2 lua-84b99d25ad8c2c669a9cfef13784ceb7b0632fe0.zip |
debug message goes to stderr
-rw-r--r-- | iolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Input/output library to LUA | 3 | ** Input/output library to LUA |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_iolib="$Id: iolib.c,v 1.15 1994/11/13 14:54:18 roberto Exp roberto $"; | 6 | char *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); |