Skip to content

Commit

Permalink
Fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Sep 13, 2018
1 parent 8267b32 commit df4e55a
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions xdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -1008,21 +1007,15 @@ fprintpsstart(fp)
}

void
fprintpsend(fp)
FILE *fp;
fprintpsend(FILE *fp)
{
fprintf(fp,
"grestore\n" "xdusavedpage restore\n" "end\n" "showpage\n" "\n"
"%%%%Trailer\n" "%%%%DocumentFonts: fixed\n" "%%%%EOF\n");
}

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"
Expand All @@ -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"
Expand All @@ -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,
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit df4e55a

Please sign in to comment.