summaryrefslogtreecommitdiffstats
path: root/src/pipe.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-04-09 19:19:22 -0300
committerandmarti1424 <andmarti@gmail.com>2017-04-09 19:19:22 -0300
commitf5959f99d723630c9efaaa30a1209316064f9158 (patch)
treed91369c0e31ad8eac4104a02b27608b968444386 /src/pipe.c
parentcc90329962d76e1103aa43653993cf2f01c5038b (diff)
cleaned comments
Diffstat (limited to 'src/pipe.c')
-rw-r--r--src/pipe.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 3e522cf..a15b949 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -1,6 +1,6 @@
/*
-Adaptation of Chuck Martin's code - <nrocinu@myrealbox.com>
-*/
+ * Adaptation of Chuck Martin's code - <nrocinu@myrealbox.com>
+ */
#include <unistd.h>
#include "sc.h"
@@ -27,17 +27,6 @@ void getnum(int r0, int c0, int rn, int cn, FILE * fd) {
sprintf(line, "%.15g", p->v);
}
}
- /*if (c < cn) {
- strcat(line, "\t");
- } else {
- strcat(line, "\n");
- }*/
-
- //if (get_conf_value("output") != NULL && fd != NULL)
- // fprintf(fd, "%s\n", line);
- //else
-
- //fwrite(fd, line, strlen(line));
sc_info("%s", line);
if (brokenpipe) {
linelim = -1;
@@ -64,13 +53,6 @@ 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);
-
- //if (c < cn)
- // strcat(line, "\t");
- //else
- // strcat(line, "\n");
- //write(fd, line, strlen(line));
-
sc_info("%s", line);
if (brokenpipe) {
linelim = -1;
@@ -90,12 +72,6 @@ void getstring(int r0, int c0, int rn, int cn, FILE * fd) {
*line = '\0';
if (*pp && (*pp)->label)
sprintf(line, "%s", (*pp)->label);
- //if (c < cn)
- // strcat(line, "\t");
- //else
- // strcat(line, "\n");
- //write(fd, line, strlen(line));
-
sc_info("%s", line);
if (brokenpipe) {
linelim = -1;
@@ -122,12 +98,6 @@ void getexp(int r0, int c0, int rn, int cn, FILE * fd) {
if (*line == '?')
*line = '\0';
}
- //if (c < cn)
- // strcat(line, "\t");
- //else
- // strcat(line, "\n");
- //write(fd, line, strlen(line));
-
sc_info("%s", line);
if (brokenpipe) {
linelim = -1;