home *** CD-ROM | disk | FTP | other *** search
- *** tmp/Makefile Thu May 9 13:25:23 1991
- --- Makefile Mon May 20 19:05:45 1991
- ***************
- *** 1,5
- # Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! # $Header: Makefile,v 1.22 91/05/09 14:25:22 hmgr Exp $
-
- CXX = CC
- .SUFFIXES: .C
-
- --- 1,5 -----
- # Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! # $Header: Makefile,v 1.24 91/05/20 20:05:44 hmgr Exp $
-
- CXX = CC
- .SUFFIXES: .C
- ***************
- *** 7,13
- $(CXX) $(CFLAGS) -c $<
-
- # other system-dependent options - use only one of the -D<sys> macros:
- ! #CFLAGS = -O -DBSD -DMSDOS
- CFLAGS = -g
- LIBS = -lm
-
-
- --- 7,17 -----
- $(CXX) $(CFLAGS) -c $<
-
- # other system-dependent options - use only one of the -D<sys> macros:
- ! # -DBSD for BSD derivatives
- ! # -DMSDOS for Zortech C++ - also run "make msdos-files"
- ! # -DFREE_TAKES_CHAR if you have a free(char*) instead of free(void*)
- ! # -DHP2686_FPATH=/path1:/path2:...
- ! # to modify the default font search path
- CFLAGS = -g
- LIBS = -lm
-
- *** tmp/README Fri Feb 22 15:31:52 1991
- --- README Thu May 23 10:45:10 1991
- ***************
- *** 1,4
- ! $Header: README,v 1.10 91/02/22 16:31:45 hmgr Exp $
-
- Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- You can do what you wish with this as long as
-
- --- 1,4 -----
- ! $Header: README,v 1.15 91/05/23 11:45:11 hmgr Exp $
-
- Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- You can do what you wish with this as long as
- ***************
- *** 9,20
- software. It is completely unsupported. You're on your own.
-
-
- ! This is version 1.4 of my TeX DVI filter. I'd written it about 4 years
- ! ago since, at that time, the only LaserJet DVI filters available to me
- ! were in Pascal and ungodly slow. Anyway, it's been pointed out to me
- ! that "dvi" still one of the better DVIs around, so I figured it was time
- ! to get off my duff and make it available to the world at large. Or at
- ! small - I'm not picky.
-
- The man-page lists all the pertinent details, but here's some
- highlights:
-
- --- 9,20 -----
- software. It is completely unsupported. You're on your own.
-
-
- ! This is the TeX DVI filter which I'd written it about 4 years ago when,
- ! at that time, the only LaserJet DVI filters available to me were in
- ! Pascal and ungodly slow. Anyway, it's been pointed out to me that "dvi"
- ! still one of the better DVIs around, so I figured it was time to get off
- ! my duff and make it available to the world at large. Or at small - I'm
- ! not picky.
-
- The man-page lists all the pertinent details, but here's some
- highlights:
- ***************
- *** 47,57
- among other things.)
-
- Dvi currently compiles right up on HP-UX 7.0, 6.5, and 6.2 (s300s or
- ! s800s), BSD4.3 (Tahoe) on hp300 hardware, and Zortech C++ on MSDOS. I
- ! use AT&T's C++ 2.0 (cfront) and not G++ on all my Unix boxes. I do NOT
- ! use C++ streams, but do use stdio. I have NO idea how much work it'll
- ! take to get it running on other systems or using G++, but it shouldn't
- ! be too hard.
-
-
- Anyway, just type "make" to build a debug version of "dvi". Then copy
-
- --- 47,57 -----
- among other things.)
-
- Dvi currently compiles right up on HP-UX 7.0, 6.5, and 6.2 (s300s or
- ! s800s), BSD4.3 (Tahoe) on hp300 hardware, Zortech C++ on MSDOS, and
- ! Sparc. I use AT&T's C++ 2.0 (cfront) and not G++ on all my Unix boxes.
- ! I do NOT use C++ streams, but do use stdio. I have NO idea how much
- ! work it'll take to get it running on other systems or using G++, but it
- ! shouldn't be too hard.
-
-
- Anyway, just type "make" to build a debug version of "dvi". Then copy
- ***************
- *** 57,63
- Anyway, just type "make" to build a debug version of "dvi". Then copy
- "dvi" and "dvi.1" to whatever names and whatever places you want them.
- You will have to define -DMSDOS or -DBSD in the Makefile if you are on
- ! those systems.
-
- Use "make ljdump" to build the "ljdump" program. This is useful for
- debugging dvi by converting PCL to a semi-human-readable dump.
-
- --- 57,63 -----
- Anyway, just type "make" to build a debug version of "dvi". Then copy
- "dvi" and "dvi.1" to whatever names and whatever places you want them.
- You will have to define -DMSDOS or -DBSD in the Makefile if you are on
- ! those systems. My Sparc also needed -DFREE_TAKES_CHAR.
-
- Use "make ljdump" to build the "ljdump" program. This is useful for
- debugging dvi by converting PCL to a semi-human-readable dump.
- ***************
- *** 74,76
-
-
- -- Parag Patel <parag@sde.hp.com>
-
- --- 74,89 -----
-
-
- -- Parag Patel <parag@sde.hp.com>
- +
- +
- +
- + --------------------REVISION-INFO----------------------
- +
- + 1.6 released on HP INTERX Contrib Tape and comp.sources.misc
- +
- + 1.7 first bug-fix release
- + files modified: Makefile README extern.h main.C readfont.C hp2686.h
- + ported to Sparc - minor ifdef needed
- + version string slightly modified so say_hello() in main.C works
- + also look for fonts such as /path/cmr7.300pk and cmr7.300gf
- + allow overriding default font search path from Makefile
- *** tmp/extern.h Fri Feb 22 14:59:13 1991
- --- extern.h Fri May 17 15:28:16 1991
- ***************
- *** 1,5
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: extern.h,v 1.24 91/02/22 15:59:02 hmgr Exp $
-
- // externs for various LaserJet+ DVI filter functions
- //
-
- --- 1,5 -----
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: extern.h,v 1.25 91/05/17 16:28:17 hmgr Exp $
-
- // externs for various LaserJet+ DVI filter functions
- //
- ***************
- *** 91,97
- // convienient inlines - these would otherwise would have to go elsewhere
-
- inline char *strnew(size_t len) { return (char*)malloc(len + 1); }
- ! inline void strfree(char *s) { if (s != NULL) free((void *)s); }
- inline char *strdup(const char *s)
- { return s != NULL ? strcpy((char*)malloc(strlen(s) + 1), s) : NULL; }
- inline boolean streq(const char *s1, const char *s2)
-
- --- 91,101 -----
- // convienient inlines - these would otherwise would have to go elsewhere
-
- inline char *strnew(size_t len) { return (char*)malloc(len + 1); }
- ! #if FREE_TAKES_CHAR
- ! inline void strfree(const char *s) { if (s != NULL) free((char *)s); }
- ! #else
- ! inline void strfree(const char *s) { if (s != NULL) free((const void *)s); }
- ! #endif
- inline char *strdup(const char *s)
- { return s != NULL ? strcpy((char*)malloc(strlen(s) + 1), s) : NULL; }
- inline boolean streq(const char *s1, const char *s2)
- *** tmp/main.C Tue Apr 2 16:50:35 1991
- --- main.C Fri May 17 15:28:21 1991
- ***************
- *** 1,5
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcsid[] = "$Header: main.C,v 1.31 91/04/02 17:50:33 hmgr Exp $";
-
- // TeX DVI filter main() - just parses arguments and calls functions
- //
-
- --- 1,5 -----
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcsid[] = "$Header: main.C,v 1.32 91/05/17 16:28:22 hmgr Exp $";
-
- // TeX DVI filter main() - just parses arguments and calls functions
- //
- ***************
- *** 7,13
-
- #include "defs.h"
-
- ! static char *const whatid = "@(#) dvi 1.6 (02 April 1991)";
-
- static void say_hello()
- {
-
- --- 7,13 -----
-
- #include "defs.h"
-
- ! static char *const whatid = "@(#)dvi 1.7 (02 April 1991)";
-
- static void say_hello()
- {
- *** tmp/readfont.C Tue Apr 2 16:50:29 1991
- --- readfont.C Mon May 20 15:12:45 1991
- ***************
- *** 1,5
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcsid[] = "$Header: readfont.C,v 1.21 91/04/02 17:50:26 hmgr Exp $";
-
- // read font data from the METAFONT GF (generic font) files
- //
-
- --- 1,5 -----
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcsid[] = "$Header: readfont.C,v 1.22 91/05/20 16:12:46 hmgr Exp $";
-
- // read font data from the METAFONT GF (generic font) files
- //
- ***************
- *** 31,36
- static char buf[MAXPATHLEN + 1];
- sprintf(buf, "%s/%s/%s%s", dir, mag, base, ext);
- char *path = buf;
- FILE *fp = fopen(path, F_READ);
- if (fp == NULL)
- return FALSE;
-
- --- 31,38 -----
- static char buf[MAXPATHLEN + 1];
- sprintf(buf, "%s/%s/%s%s", dir, mag, base, ext);
- char *path = buf;
- +
- + debug(3, "looking for font file %s", path);
- FILE *fp = fopen(path, F_READ);
- if (fp == NULL)
- return FALSE;
- ***************
- *** 109,114
- if (tryfile(f, p.path, gfmagdir(p.dirs, f.mag), f.basename, ""))
- return;
- if (tryfile(f, p.path, pkmagdir(p.dirs, f.mag), f.basename, ""))
- return;
- }
- quit("Cannot find font file \"%s\" (at or near magnification %ld.%03ld) anywhere",
-
- --- 111,124 -----
- if (tryfile(f, p.path, gfmagdir(p.dirs, f.mag), f.basename, ""))
- return;
- if (tryfile(f, p.path, pkmagdir(p.dirs, f.mag), f.basename, ""))
- + return;
- +
- + char ext[30];
- + sprintf(ext, ".%dpk", RESOLUTION);
- + if (tryfile(f, p.path, pkmagdir(p.dirs, f.mag), f.basename, ext))
- + return;
- + sprintf(ext, ".%dgf", RESOLUTION);
- + if (tryfile(f, p.path, pkmagdir(p.dirs, f.mag), f.basename, ext))
- return;
- }
- quit("Cannot find font file \"%s\" (at or near magnification %ld.%03ld) anywhere",
- *** tmp/hp2686.h Fri Feb 22 14:58:59 1991
- --- hp2686.h Mon May 20 19:05:50 1991
- ***************
- *** 1,5
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: hp2686.h,v 1.13 91/02/22 15:58:47 hmgr Exp $
-
- // HP2686 LaserJet+ device-specific definitions.
- // The LaserJet+ Reference Manual should be consulted for more
-
- --- 1,5 -----
- // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: hp2686.h,v 1.14 91/05/20 20:05:52 hmgr Exp $
-
- // HP2686 LaserJet+ device-specific definitions.
- // The LaserJet+ Reference Manual should be consulted for more
- ***************
- *** 37,42
- void rule(double v, double h);
- };
-
- #define HP2686_FPATH "/usr/lib/tex/fontbits/laser:/usr/lib/tex/fnt:/usr/local/tex/fontbits/laser"
-
- // about 1 inch from both margins - tweaked until TeX test comes out right
-
- --- 37,43 -----
- void rule(double v, double h);
- };
-
- + #ifndef HP2686_FPATH
- #define HP2686_FPATH "/usr/lib/tex/fontbits/laser:/usr/lib/tex/fnt:/usr/local/tex/fontbits/laser"
- #endif
-
- ***************
- *** 38,43
- };
-
- #define HP2686_FPATH "/usr/lib/tex/fontbits/laser:/usr/lib/tex/fnt:/usr/local/tex/fontbits/laser"
-
- // about 1 inch from both margins - tweaked until TeX test comes out right
- // when printed to a LaserJet - lots of fun with unprintable regions!
-
- --- 39,45 -----
-
- #ifndef HP2686_FPATH
- #define HP2686_FPATH "/usr/lib/tex/fontbits/laser:/usr/lib/tex/fnt:/usr/local/tex/fontbits/laser"
- + #endif
-
- // about 1 inch from both margins - tweaked until TeX test comes out right
- // when printed to a LaserJet - lots of fun with unprintable regions!
-