home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / misc / volume07 / thack.p1 < prev    next >
Encoding:
Internet Message Format  |  1991-08-27  |  2.7 KB

  1. From decwrl!purdue!tut.cis.ohio-state.edu!unmvax!aplcen!ginosko!uunet!allbery Thu Aug  3 08:52:00 PDT 1989
  2. Article 1002 of comp.sources.misc:
  3. Path: decwrl!purdue!tut.cis.ohio-state.edu!unmvax!aplcen!ginosko!uunet!allbery
  4. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5. Newsgroups: comp.sources.misc
  6. Subject: v07i110: patch #1 to thack
  7. Message-ID: <62022@uunet.UU.NET>
  8. Date: 30 Jul 89 22:42:14 GMT
  9. Sender: allbery@uunet.UU.NET
  10. Reply-To: everson%compsci.bristol.ac.uk@NSFnet-Relay.AC.UK
  11. Lines: 91
  12. Approved: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  13.  
  14. Posting-number: Volume 7, Issue 110
  15. Submitted-by: everson%compsci.bristol.ac.uk@NSFnet-Relay.AC.UK
  16. Archive-name: thack.p1
  17.  
  18. [This patch was posted to comp.bugs.misc but never made it here; here it is,
  19.  for use with the next submission (patch #2...).  ++bsa]
  20.  
  21. Enclosed is the first official patch to thack, a troff to postscript
  22. filter, recently posted to comp.sources.misc. The patches below fix 2
  23. problems:
  24.  
  25. 1) The length of US paper is different (11") to that of European A4
  26. paper (11.5") - Added an option to the Makefile to use US page
  27. lengths.
  28.  
  29. 2) A variable (fh) was not initialized to 0. This caused problems (core
  30. dumps) on some systems (notably, not ours) and not others. This
  31. variable is now initialized.
  32.  
  33. Thanks to all of the people who have made favourable comments about
  34. this program.
  35.  
  36. Apply the following fixes using the program patch or by hand.
  37.  
  38. Phill Everson
  39. Medical Imaging
  40. Dept Comp Sci
  41. University of Bristol, UK
  42.  
  43. *** Makefile    Thu Jun 29 07:46:36 1989
  44. --- Makefile.orig    Thu Jun 29 07:44:45 1989
  45. ***************
  46. *** 1,10 ****
  47.   .PRECIOUS: thack.c th.h
  48.   
  49. - # Define USPAGELENGTH to use on US 11 inch long paper. Default is European A4.
  50. - #CFLAGS=-DUSPAGELENGTH
  51.   thack: thack.o
  52. !     cc $(CFLAGS) -o thack thack.o
  53.   
  54.   thack.c: th.h
  55.       touch thack.c
  56. --- 1,7 ----
  57.   .PRECIOUS: thack.c th.h
  58.   
  59.   thack: thack.o
  60. !     cc -o thack thack.o
  61.   
  62.   thack.c: th.h
  63.       touch thack.c
  64. *** thack.c    Thu Jun 29 07:49:30 1989
  65. --- thack.c.orig    Thu Jun 29 07:44:04 1989
  66. ***************
  67. *** 10,16 ****
  68.       int sflag;
  69.       int hdist, vdist;
  70.       int esc, lead;
  71. !     int fh=0;
  72.   
  73.       hdist = vdist = 0;
  74.       cfont = csize = -1;
  75. --- 10,16 ----
  76.       int sflag;
  77.       int hdist, vdist;
  78.       int esc, lead;
  79. !     int fh;
  80.   
  81.       hdist = vdist = 0;
  82.       cfont = csize = -1;
  83. ***************
  84. *** 17,27 ****
  85.       tfont = font = 0;
  86.       tsize = size = 12;
  87.       esc = lead = 1;
  88. ! #ifdef USPAGELENGTH
  89. !     cy = ypos = 1584; /* represents 11 inches in troff vertical units */
  90. ! #else
  91. !     cy = ypos = 1692; /* represents 11.5 inches in troff vertical units */
  92. ! #endif
  93.       cx = xpos = 0;
  94.       sflag = 0;
  95.       prolog();
  96. --- 17,23 ----
  97.       tfont = font = 0;
  98.       tsize = size = 12;
  99.       esc = lead = 1;
  100. !     cy = ypos = 1692;
  101.       cx = xpos = 0;
  102.       sflag = 0;
  103.       prolog();
  104.  
  105.  
  106.