Lines 1-45
Link Here
|
1 |
--- epstool.c.orig Fri Nov 23 16:43:50 2001 |
|
|
2 |
+++ epstool.c Sun Dec 2 05:05:41 2001 |
3 |
@@ -26,7 +26,7 @@ |
4 |
char gsname[MAXSTR] = GSCOMMAND; |
5 |
char gsarg[MAXSTR]; |
6 |
char bmpname[MAXSTR]; |
7 |
-char devname[MAXSTR]; |
8 |
+char gsdevname[MAXSTR]; |
9 |
char szScratch[] = "ep"; |
10 |
char szAppName[] = "epstool"; |
11 |
int resolution = 72; |
12 |
@@ -167,9 +167,9 @@ |
13 |
find_gs(gsname, sizeof(gsname)-1, 550, FALSE); |
14 |
#endif |
15 |
#ifdef UNIX |
16 |
- strcpy(devname, "pbmraw"); |
17 |
+ strcpy(gsdevname, "pbmraw"); |
18 |
#else |
19 |
- strcpy(devname, "bmpmono"); |
20 |
+ strcpy(gsdevname, "bmpmono"); |
21 |
#endif |
22 |
if (scan_args(argc, argv)) |
23 |
return 1; |
24 |
@@ -463,10 +463,10 @@ |
25 |
fclose(tempfile); |
26 |
#ifdef UNIX |
27 |
sprintf(gscommand, "\042%s\042 %s -dNOPAUSE -dQUIET -sDEVICE=%s -sOutputFile=\042%s\042 -r%d -g%dx%d %s", |
28 |
- gsname, gsarg, devname, bmpname, resolution, width, height, tempname); |
29 |
+ gsname, gsarg, gsdevname, bmpname, resolution, width, height, tempname); |
30 |
#else |
31 |
sprintf(gscommand, "-dNOPAUSE\n-dQUIET\n-sDEVICE=%s\n-sOutputFile=\042%s\042\n-r%d\n-g%dx%d\n\042%s\042", |
32 |
- devname, bmpname, resolution, width, height, tempname); |
33 |
+ gsdevname, bmpname, resolution, width, height, tempname); |
34 |
if (!quiet) { |
35 |
fputs(gscommand, stderr); |
36 |
fputs("\n", stderr); |
37 |
@@ -654,7 +654,7 @@ |
38 |
break; |
39 |
case 'z': |
40 |
if (argp[2]) |
41 |
- strcpy(devname, argp+2); |
42 |
+ strcpy(gsdevname, argp+2); |
43 |
break; |
44 |
case 'c': |
45 |
if (got_op) { |