SMOLNET PORTAL home about changes
iremove debug, fix usage, do not die on invalid value - ploot - simple plotting tools	Err	bitreich.org	70
hgit clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot	URL:git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot	bitreich.org	70
1Log	/scm/ploot/log.gph	bitreich.org	70
1Files	/scm/ploot/files.gph	bitreich.org	70
1Refs	/scm/ploot/refs.gph	bitreich.org	70
1Tags	/scm/ploot/tag	bitreich.org	70
1README	/scm/ploot/file/README.md.gph	bitreich.org	70
1LICENSE	/scm/ploot/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit 3a13739bbf95aa2caa1b36afa5f685fac0f0f824	/scm/ploot/commit/3a13739bbf95aa2caa1b36afa5f685fac0f0f824.gph	bitreich.org	70
1parent 1a593aa504c78dbc507ed118a004cff811620065	/scm/ploot/commit/1a593aa504c78dbc507ed118a004cff811620065.gph	bitreich.org	70
hAuthor: Josuah Demangeon <mail@josuah.net>	URL:mailto:mail@josuah.net	bitreich.org	70
iDate:   Tue,  8 May 2018 15:32:49 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
iremove debug, fix usage, do not die on invalid value	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M Makefile                            |       4 ++--	Err	bitreich.org	70
i  M plootxt.c                           |       5 ++---	Err	bitreich.org	70
i	Err	bitreich.org	70
i2 files changed, 4 insertions(+), 5 deletions(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/Makefile b/Makefile	/scm/ploot/file/Makefile.gph	bitreich.org	70
i@@ -7,6 +7,7 @@ PLOOT_OBJ = $(PLOOT_SRC:.c=.o)	Err	bitreich.org	70
i PLOOTXT_SRC = plootxt.c util.c	Err	bitreich.org	70
i PLOOTXT_OBJ = $(PLOOTXT_SRC:.c=.o)	Err	bitreich.org	70
i 	Err	bitreich.org	70
i+	Err	bitreich.org	70
i LIB = -lm	Err	bitreich.org	70
i 	Err	bitreich.org	70
i all:V ploot plootxt	Err	bitreich.org	70
i@@ -22,10 +23,9 @@ install:V ploot plootxt	Err	bitreich.org	70
i         cp ploot plootxt ${PREFIX}/bin	Err	bitreich.org	70
i 	Err	bitreich.org	70
i clean:V	Err	bitreich.org	70
i-        rm -f *.o ploot	Err	bitreich.org	70
i+        rm -f *.o	Err	bitreich.org	70
i 	Err	bitreich.org	70
i V: # :V acts like .PHONY:	Err	bitreich.org	70
i 	Err	bitreich.org	70
i $(PLOOT_SRC) $(PLOOTXT_SRC): \	Err	bitreich.org	70
i arg.h ploot.h util.h font.h font_14x7.h	Err	bitreich.org	70
i-	Err	bitreich.org	70
1diff --git a/plootxt.c b/plootxt.c	/scm/ploot/file/plootxt.c.gph	bitreich.org	70
i@@ -65,7 +65,7 @@ plot_row(long *out, char *line, double *max, int nrow, int ncol)	Err	bitreich.org	70
i         for (n = 0; (tok = strsep(&line, ",")) != NULL; n++) {	Err	bitreich.org	70
i                 if (n >= ncol)	Err	bitreich.org	70
i                         fputs("too many values\n", stderr), exit(1);	Err	bitreich.org	70
i-                val = eatof(tok);	Err	bitreich.org	70
i+                val = atof(tok);	Err	bitreich.org	70
i                 plot_val(out + n * width, val, max[n], nrow);	Err	bitreich.org	70
i         }	Err	bitreich.org	70
i         if (n < ncol)	Err	bitreich.org	70
i@@ -192,7 +192,6 @@ fmt_labels(char out[LINE_MAX], int ncol, char *labels[LINE_MAX / 2])	Err	bitreich.org	70
i {	Err	bitreich.org	70
i         int i, n;	Err	bitreich.org	70
i 	Err	bitreich.org	70
i-        printf("%d\n", width);	Err	bitreich.org	70
i         for (i = 0; i < ncol; labels++, i++) {	Err	bitreich.org	70
i                 n = LINE_MAX - (width + sizeof("│")) * i;	Err	bitreich.org	70
i                 out += snprintf(out, n, "│%-*s", width - 1, *labels);	Err	bitreich.org	70
i@@ -202,7 +201,7 @@ fmt_labels(char out[LINE_MAX], int ncol, char *labels[LINE_MAX / 2])	Err	bitreich.org	70
i static void	Err	bitreich.org	70
i usage(void)	Err	bitreich.org	70
i {	Err	bitreich.org	70
i-        fprintf(stderr, "usage: [-w width] %s maxval... <csv\n", argv0);	Err	bitreich.org	70
i+        fprintf(stderr, "usage: %s [-w width] maxval... <csv\n", argv0);	Err	bitreich.org	70
i         exit(1);	Err	bitreich.org	70
i }	Err	bitreich.org	70
i 	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/ploot/commit/3a13739bbf95aa2c...
Content-Typetext/plain; charset=utf-8