diff options
author | wkj <devnull@localhost> | 2004-05-17 02:24:15 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-05-17 02:24:15 +0000 |
commit | e8fb1d3efb114d1859f14fda2b6681d99df1f48a (patch) | |
tree | a3b437370521c9eff6cab00dd77fd2d95a3dc090 /src/cmd/postscript/tr2post/chartab.c | |
parent | 8a3cbc157981485adc947c0477dc3e4907acc9a3 (diff) | |
download | plan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.tar.gz plan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.tar.bz2 plan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.zip |
tr2post and aux/download; download is a shell script in $PLAN9/bin.
Diffstat (limited to 'src/cmd/postscript/tr2post/chartab.c')
-rw-r--r-- | src/cmd/postscript/tr2post/chartab.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/cmd/postscript/tr2post/chartab.c b/src/cmd/postscript/tr2post/chartab.c index 89bf0ff7..8b831d3a 100644 --- a/src/cmd/postscript/tr2post/chartab.c +++ b/src/cmd/postscript/tr2post/chartab.c @@ -120,17 +120,17 @@ findpfn(char *fontname, int insflg) { return(-1); } -char postroffdirname[] = LIBDIR "/postscript/troff"; /* "/sys/lib/postscript/troff/"; */ -char troffmetricdirname[] = LIBDIR "/troff/font"; /* "/sys/lib/troff/font/devutf/"; */ +char postroffdirname[] = "#9/postscript/troff"; /* "/sys/lib/postscript/troff/"; */ +char troffmetricdirname[] = "#9/troff/font"; /* "/sys/lib/troff/font/devutf/"; */ int readpsfontdesc(char *fontname, int trindex) { static char *filename = 0; Biobuf *bfd; - Biobufhdr *Bfd; - int warn = 0, errorflg = 0, line =1, rv; + Biobuf *Bfd; + int errorflg = 0, line =1, rv; int start, end, offset; - int startfont, endfont, startchar, endchar, i, pfid; + int startfont, endfont, startchar, endchar, pfid; char psfontnam[128]; struct troffont *tp; /* struct charent *cp[]; */ @@ -139,7 +139,7 @@ readpsfontdesc(char *fontname, int trindex) { filename=galloc(filename, strlen(postroffdirname)+1+strlen(fontname)+1, "readpsfontdesc: cannot allocate memory\n"); sprint(filename, "%s/%s", postroffdirname, fontname); - bfd = Bopen(filename, OREAD); + bfd = Bopen(unsharp(filename), OREAD); if (bfd == 0) { error(WARNING, "cannot open file %s\n", filename); return(0); @@ -212,9 +212,8 @@ int readtroffmetric(char *fontname, int trindex) { static char *filename = 0; Biobuf *bfd; - Biobufhdr *Bfd; - int warn = 0, errorflg = 0, line =1, rv; - struct troffont *tp; + Biobuf *Bfd; + int errorflg = 0, line =1, rv; struct charent **cp; char stoken[128], *str; int ntoken; @@ -226,7 +225,7 @@ readtroffmetric(char *fontname, int trindex) { filename=galloc(filename, strlen(troffmetricdirname)+4+strlen(devname)+1+strlen(fontname)+1, "readtroffmetric():filename"); sprint(filename, "%s/dev%s/%s", troffmetricdirname, devname, fontname); - bfd = Bopen(filename, OREAD); + bfd = Bopen(unsharp(filename), OREAD); if (bfd == 0) { error(WARNING, "cannot open file %s\n", filename); return(0); |