author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 23 Jan 2013 12:17:32 -0800 | |
changeset 1132 | a62391631ea1 |
permissions | -rw-r--r-- |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
diff -up enscript-1.6.4/src/psgen.c.CAN-2004-1185 enscript-1.6.4/src/psgen.c |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
--- enscript-1.6.4/src/psgen.c.CAN-2004-1185 2008-08-08 11:18:06.000000000 +0200 |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
+++ enscript-1.6.4/src/psgen.c 2008-08-08 11:17:57.000000000 +0200 |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
@@ -2386,9 +2386,11 @@ recognize_eps_file (Token *token) |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
MESSAGE (2, (stderr, "^@epsf=\"%s\"\n", token->u.epsf.filename)); |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
i = strlen (token->u.epsf.filename); |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
+ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
+ /* |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
if (i > 0 && token->u.epsf.filename[i - 1] == '|') |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
{ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
- /* Read EPS data from pipe. */ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
+ / * Read EPS data from pipe. * / |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
token->u.epsf.pipe = 1; |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
token->u.epsf.filename[i - 1] = '\0'; |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
token->u.epsf.fp = popen (token->u.epsf.filename, "r"); |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
@@ -2401,6 +2403,7 @@ recognize_eps_file (Token *token) |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
} |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
} |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
else |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
+ */ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
{ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
char *filename; |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |