summaryrefslogtreecommitdiffstats
path: root/src/pipe.c
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-31 09:37:04 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-31 09:37:04 +0200
commit04d28a7555405a15b3e93de769510b18c4a58c62 (patch)
treedd86a7e89fe2788117575dd3058ec1191222acbd /src/pipe.c
parent0c84e94563533d21a2129cc5d11f8912fb395a6b (diff)
Send informational messages to stderr rather than the output when used
in non-interactive mode
Diffstat (limited to 'src/pipe.c')
-rw-r--r--src/pipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 5ae89c2..30c2417 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -83,7 +83,7 @@ void getnum(int r0, int c0, int rn, int cn, FILE * fd) {
sprintf(line, "%.15g", p->v);
}
}
- sc_info("%s", line);
+ sc_value("%s", line);
if (brokenpipe) {
linelim = -1;
return;
@@ -106,7 +106,7 @@ void getnum(int r0, int c0, int rn, int cn, FILE * fd) {
void getformat(int col, FILE * fd) {
sprintf(line, "%d %d %d\n", fwidth[col], precision[col], realfmt[col]);
//write(fd, line, strlen(line));
- sc_info("%s", line);
+ sc_value("%s", line);
linelim = -1;
}
@@ -130,7 +130,7 @@ void getfmt(int r0, int c0, int rn, int cn, FILE * fd) {
for (c = c0, pp = ATBL(tbl, r, c); c <= cn; pp++, c++) {
*line = '\0';
if (*pp && (*pp)->format) sprintf(line, "%s", (*pp)->format);
- sc_info("%s", line);
+ sc_value("%s", line);
if (brokenpipe) {
linelim = -1;
return;
@@ -161,7 +161,7 @@ void getstring(int r0, int c0, int rn, int cn, FILE * fd) {
*line = '\0';
if (*pp && (*pp)->label)
sprintf(line, "%s", (*pp)->label);
- sc_info("%s", line);
+ sc_value("%s", line);
if (brokenpipe) {
linelim = -1;
return;
@@ -199,7 +199,7 @@ void getexp(int r0, int c0, int rn, int cn, FILE * fd) {
if (*line == '?')
*line = '\0';
}
- sc_info("%s", line);
+ sc_value("%s", line);
if (brokenpipe) {
linelim = -1;
return;