From df4e55a7f80425c08c968421bf886350e0971cda Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Thu, 13 Sep 2018 10:51:45 +0200 Subject: [PATCH] Fix #12 --- xdu.c | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/xdu.c b/xdu.c index 35eaf29..e031d0a 100644 --- a/xdu.c +++ b/xdu.c @@ -990,8 +990,7 @@ XDU Version %s - Keyboard Commands\n\ } void -fprintpsstart(fp) - FILE *fp; +fprintpsstart(FILE *fp) { fprintf(fp, "%%!\n" "%%%%BoundingBox: 26 693 85 808\n" @@ -1008,8 +1007,7 @@ fprintpsstart(fp) } void -fprintpsend(fp) - FILE *fp; +fprintpsend(FILE *fp) { fprintf(fp, "grestore\n" "xdusavedpage restore\n" "end\n" "showpage\n" "\n" @@ -1017,12 +1015,7 @@ fprintpsend(fp) } void -fprintpsbox(fp, x1, y1, x2, y2) - FILE *fp; - int x1, - y1, - x2, - y2; +fprintpsbox(FILE *fp, int x1, int y1, int x2, int y2) { fprintf(fp, "%%BOX\n" "0 setgray\n" "gsave\n" " 10 setmiterlimit\n" @@ -1033,11 +1026,7 @@ fprintpsbox(fp, x1, y1, x2, y2) } void -fprintpstext(fp, x, y, s) - FILE *fp; - int x, - y; - char *s; +fprintpstext(FILE *fp, int x, int y, char *s) { fprintf(fp, "%%TEXT\n" "0 setgray\n" @@ -1047,11 +1036,7 @@ fprintpstext(fp, x, y, s) } void -savepschildren(fp, nodep, rect, showsize) - FILE *fp; - struct node *nodep; - struct rect rect; - int showsize; +savepschildren(FILE *fp, struct node *nodep, struct rect rect, int showsize) { long long totalsize; int totalheight, @@ -1126,11 +1111,7 @@ savepschildren(fp, nodep, rect, showsize) } void -savepsnode(fp, nodep, rect, showsize) - FILE *fp; - struct node *nodep; - struct rect rect; - int showsize; +savepsnode(FILE *fp, struct node *nodep, struct rect rect, int showsize) { struct rect subrect; char label[1024], @@ -1175,9 +1156,7 @@ savepsnode(fp, nodep, rect, showsize) void -savetops(fname, showsize) - char *fname; - int showsize; +savetops(char *fname, int showsize) { FILE *fp; struct rect rect;