diff options
author | N.N. <matju@users.sourceforge.net> | 2009-04-27 21:06:10 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-04-27 21:06:10 +0000 |
commit | 3075700fe36cc99e2081fac39c9a23255ca2d539 (patch) | |
tree | 922f0f905c916428e9001cb607dc21b26d9c4170 /desiredata/src/desire.c | |
parent | 1519e1dfd67440451e4e6789efcd726faf1ccbcc (diff) |
added option -stdout (similar to -stderr)
svn path=/trunk/; revision=11180
Diffstat (limited to 'desiredata/src/desire.c')
-rw-r--r-- | desiredata/src/desire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desiredata/src/desire.c b/desiredata/src/desire.c index 35ebf470..f03b3775 100644 --- a/desiredata/src/desire.c +++ b/desiredata/src/desire.c @@ -7184,11 +7184,11 @@ extern "C" void glob_init () { /* formerly s_print.c */ t_printhook sys_printhook; -int sys_printtostderr; +int sys_printtofh = -1; /* send to console by default */ static void dopost(const char *s) { if (sys_printhook) sys_printhook(s); - else if (sys_printtostderr) fprintf(stderr, "%s", s); + else if (sys_printtofh<0) fprintf(stderr, "%s", s); else { std::ostringstream t; for(int i=0; s[i]; i++) { |