diff --git a/xdu.c b/xdu.c index bda75c7..35eaf29 100644 --- a/xdu.c +++ b/xdu.c @@ -332,7 +332,9 @@ parse_file(filename) * bust up a path string and link it into the tree */ void -parse_entry(char *name, long long size) +parse_entry(name, size) + char *name; + long long size; { char *path[MAXDEPTH]; /* break up path into this list */ char buf[MAXNAME]; /* temp space for path element @@ -815,7 +817,9 @@ strdup(s) /**************** External Entry Points ****************/ void -press(int x, int y) +press(x, y) + int x, + y; { struct node *np; @@ -843,7 +847,9 @@ press(int x, int y) } void -printpath(int x, int y) +printpath(x, y) + int x, + y; { struct node *np; char *path; @@ -874,7 +880,9 @@ reset(void) } void -repaint(int width, int height) +repaint(width, height) + int width, + height; { struct rect rect; @@ -895,7 +903,8 @@ repaint(int width, int height) void -setorder(char *op) +setorder(op) + char *op; { if (strcmp(op, "size") == 0) { order = ORD_SIZE; @@ -936,7 +945,8 @@ setorder(char *op) } void -reorder(char *op) +reorder(op) + char *op; { /* order name */ setorder(op); sorttree(topp, order); @@ -980,7 +990,8 @@ XDU Version %s - Keyboard Commands\n\ } void -fprintpsstart(FILE * fp) +fprintpsstart(fp) + FILE *fp; { fprintf(fp, "%%!\n" "%%%%BoundingBox: 26 693 85 808\n" @@ -997,7 +1008,8 @@ fprintpsstart(FILE * fp) } void -fprintpsend(FILE * fp) +fprintpsend(fp) + FILE *fp; { fprintf(fp, "grestore\n" "xdusavedpage restore\n" "end\n" "showpage\n" "\n" @@ -1005,7 +1017,12 @@ fprintpsend(FILE * fp) } void -fprintpsbox(FILE * fp, int x1, int y1, int x2, int y2) +fprintpsbox(fp, x1, y1, x2, y2) + FILE *fp; + int x1, + y1, + x2, + y2; { fprintf(fp, "%%BOX\n" "0 setgray\n" "gsave\n" " 10 setmiterlimit\n" @@ -1016,7 +1033,11 @@ fprintpsbox(FILE * fp, int x1, int y1, int x2, int y2) } void -fprintpstext(FILE * fp, int x, int y, char *s) +fprintpstext(fp, x, y, s) + FILE *fp; + int x, + y; + char *s; { fprintf(fp, "%%TEXT\n" "0 setgray\n" @@ -1026,8 +1047,11 @@ fprintpstext(FILE * fp, int x, int y, char *s) } void -savepschildren(FILE * fp, struct node *nodep, struct rect rect, - int showsize) +savepschildren(fp, nodep, rect, showsize) + FILE *fp; + struct node *nodep; + struct rect rect; + int showsize; { long long totalsize; int totalheight, @@ -1102,7 +1126,11 @@ savepschildren(FILE * fp, struct node *nodep, struct rect rect, } void -savepsnode(FILE * fp, struct node *nodep, struct rect rect, int showsize) +savepsnode(fp, nodep, rect, showsize) + FILE *fp; + struct node *nodep; + struct rect rect; + int showsize; { struct rect subrect; char label[1024], @@ -1147,7 +1175,9 @@ savepsnode(FILE * fp, struct node *nodep, struct rect rect, int showsize) void -savetops(char *fname, int showsize) +savetops(fname, showsize) + char *fname; + int showsize; { FILE *fp; struct rect rect; @@ -1169,19 +1199,23 @@ savetops(char *fname, int showsize) } void -fprintsvgstart(FILE * fp) +fprintsvgstart(fp) + FILE *fp; { fprintf(fp, "\n"); } void -fprintsvgend(FILE * fp) +fprintsvgend(fp) + FILE *fp; { fprintf(fp, ""); } void -fprintsvgnode(FILE * fp, struct rect rect) +fprintsvgnode(fp, rect) + FILE *fp; + struct rect rect; { fprintf(fp, " \n", @@ -1189,8 +1223,13 @@ fprintsvgnode(FILE * fp, struct rect rect) } void -fprintsvgnodetext(FILE * fp, int x, int y, long long size, char *name, - int showsize) +fprintsvgnodetext(fp, x, y, size, name, showsize) + FILE *fp; + int x, + y; + long long size; + char *name; + int showsize; { char buffer[1024], *text; @@ -1225,7 +1264,11 @@ fprintsvgnodetext(FILE * fp, int x, int y, long long size, char *name, } void -savesvgnode(FILE * fp, struct node *nodep, int showsize, int depth) +savesvgnode(fp, nodep, showsize, depth) + FILE *fp; + struct node *nodep; + int showsize, + depth; { struct node *np; @@ -1245,7 +1288,9 @@ savesvgnode(FILE * fp, struct node *nodep, int showsize, int depth) } void -savetosvg(char *fname, int showsize) +savetosvg(fname, showsize) + char *fname; + int showsize; { FILE *fp; diff --git a/xwin.c b/xwin.c index 1e92602..c0a263f 100644 --- a/xwin.c +++ b/xwin.c @@ -292,7 +292,11 @@ a_size(w, event, params, num_params) } static void -a_saveps(Widget w, XEvent * e, String * params, Cardinal * num_params) +a_saveps(w, e, params, num_params) + Widget w; + XEvent *e; + String *params; + Cardinal *num_params; { UNUSED(w, e, params, num_params); fprintf(stderr, "saving as postscript to file: %s ..", res.psfilename); @@ -301,7 +305,11 @@ a_saveps(Widget w, XEvent * e, String * params, Cardinal * num_params) } static void -a_savesvg(Widget w, XEvent * e, String * params, Cardinal * num_params) +a_savesvg(w, e, params, num_params) + Widget w; + XEvent *e; + String *params; + Cardinal *num_params; { char *extension = ".svg"; int len = @@ -332,14 +340,22 @@ a_savesvg(Widget w, XEvent * e, String * params, Cardinal * num_params) } static void -a_up(Widget w, XEvent * e, String * params, Cardinal * num_params) +a_up(w, e, params, num_params) + Widget w; + XEvent *e; + String *params; + Cardinal *num_params; { UNUSED(w, e, params, num_params); uponechild(); } static void -a_down(Widget w, XEvent * e, String * params, Cardinal * num_params) +a_down(w, e, params, num_params) + Widget w; + XEvent *e; + String *params; + Cardinal *num_params; { UNUSED(w, e, params, num_params); downonechild();