home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / jetroff / patch03 < prev    next >
Encoding:
Text File  |  1989-09-09  |  3.6 KB  |  143 lines

  1. Newsgroups: comp.sources.misc
  2. organization: PC Research, Inc.
  3. subject: v08i032: JetRoff DWB troff to HP postprocessor - Patch03
  4. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5. Reply-To: jetroff@pcrat.UUCP (JetRoff Mail)
  6.  
  7. Posting-number: Volume 8, Issue 32
  8. Submitted-by: jetroff@pcrat.UUCP (JetRoff Mail)
  9. Archive-name: jetroff/patch03
  10.  
  11. JetRoff Usenet version 1.1 Patch 03. 03/08/89.
  12.  
  13. This patch fixes a small problem with the XENIX/286 compiler.
  14. It also deletes the changes for decipoint positioning,
  15. which aren't needed for the 'Plus.
  16.  
  17. Apply this patch this way:
  18.  
  19.     cd root_of_JetRoff_source
  20.     patch -p <Patch03
  21.  
  22. Here are the diffs:
  23.  
  24. *** ../1.1.2/djet/out.c    Wed Mar  8 20:56:38 1989
  25. --- djet/out.c    Wed Mar  8 21:01:26 1989
  26. ***************
  27. *** 50,56
  28.    *    hp_pos(x, y)
  29.    *
  30.    *        HP movement.
  31. !  *        If -DSERIES=1, use decipoint positioning, else use dots.
  32.    */
  33.   static int hpx;
  34.   static int hpy;
  35.  
  36. --- 50,56 -----
  37.    *    hp_pos(x, y)
  38.    *
  39.    *        HP movement.
  40. !  *        If -DDECIPOINT, use decipoint positioning, else use dots.
  41.    */
  42.   static int hpx;
  43.   static int hpy;
  44. ***************
  45. *** 72,78
  46.       register int    delta;
  47.       register int    deltalen;
  48.   
  49. ! #    if SERIES == 1
  50.           here *= 12; here /= 5;
  51.           there *= 12; there /= 5;
  52.   #    endif
  53.  
  54. --- 72,78 -----
  55.       register int    delta;
  56.       register int    deltalen;
  57.   
  58. ! #    ifdef DECIPOINT    /* not a series II or a plus */
  59.           here *= 12; here /= 5;
  60.           there *= 12; there /= 5;
  61.   #    endif
  62. ***************
  63. *** 112,118
  64.       if (x == hpx)
  65.       {
  66.           if (y == hpy) return;
  67. ! #        if SERIES == 1
  68.               Printf("\033&a%sV", best_way_there(bufy, hpy, y));
  69.   #        else
  70.               Printf("\033*p%sY", best_way_there(bufy, hpy, y));
  71.  
  72. --- 112,118 -----
  73.       if (x == hpx)
  74.       {
  75.           if (y == hpy) return;
  76. ! #        ifdef DECIPOINT    /* not a series II or a plus */
  77.               Printf("\033&a%sV", best_way_there(bufy, hpy, y));
  78.   #        else
  79.               Printf("\033*p%sY", best_way_there(bufy, hpy, y));
  80. ***************
  81. *** 120,126
  82.       }
  83.       else if (y == hpy)
  84.       {
  85. ! #        if SERIES == 1
  86.               Printf("\033&a%sH", best_way_there(bufx, hpx, x));
  87.   #        else
  88.               Printf("\033*p%sX", best_way_there(bufx, hpx, x));
  89.  
  90. --- 120,126 -----
  91.       }
  92.       else if (y == hpy)
  93.       {
  94. ! #        ifdef DECIPOINT    /* not a series II or a plus */
  95.               Printf("\033&a%sH", best_way_there(bufx, hpx, x));
  96.   #        else
  97.               Printf("\033*p%sX", best_way_there(bufx, hpx, x));
  98. ***************
  99. *** 128,134
  100.       }
  101.       else
  102.       {
  103. ! #        if SERIES == 1
  104.               Printf("\033&a%sh%sV",
  105.                   best_way_there(bufx, hpx, x),
  106.                   best_way_there(bufy, hpy, y));
  107.  
  108. --- 128,134 -----
  109.       }
  110.       else
  111.       {
  112. ! #        ifdef DECIPOINT    /* not a series II or a plus */
  113.               Printf("\033&a%sh%sV",
  114.                   best_way_there(bufx, hpx, x),
  115.                   best_way_there(bufy, hpy, y));
  116. *** ../1.1.2/djet/pk16.c    Wed Mar  8 20:56:41 1989
  117. --- djet/pk16.c    Wed Mar  8 21:01:51 1989
  118. ***************
  119. *** 508,514
  120.       ljbyte(fp, SPACING_PROPORTIONAL);
  121.       ljshort(fp, SYMBOLSET_HP_ROMAN8);
  122.       ljshort(fp, p->cellwidth * 4);    /* default pitch??? */
  123. !     height = ((p->design_size/(1<<18))*p->vppp*4)/(1<<18);
  124.       ljshort(fp, (short) height);
  125.       ljshort(fp, 0);
  126.       ljbyte(fp, WIDTH_NORMAL);
  127.  
  128. --- 508,514 -----
  129.       ljbyte(fp, SPACING_PROPORTIONAL);
  130.       ljshort(fp, SYMBOLSET_HP_ROMAN8);
  131.       ljshort(fp, p->cellwidth * 4);    /* default pitch??? */
  132. !     height = ((p->design_size/(1L<<18L))*p->vppp*4)/(1L<<18L);
  133.       ljshort(fp, (short) height);
  134.       ljshort(fp, 0);
  135.       ljbyte(fp, WIDTH_NORMAL);
  136. -- 
  137. Rick Richardson | JetRoff "di"-troff to LaserJet Postprocessor|uunet!pcrat!dry2
  138. PC Research,Inc.| Mail: uunet!pcrat!jetroff; For anon uucp do:|for Dhrystone 2
  139. uunet!pcrat!rick| uucp jetroff!~jetuucp/file_list ~nuucp/.    |submission forms.
  140. jetroff Wk2200-0300,Sa,Su ACU {2400,PEP} 12013898963 "" \d\r\d ogin: jetuucp
  141.  
  142.  
  143.