head 1.3; access; symbols perseant-exfatfs-base-20250801:1.3 perseant-exfatfs-base-20240630:1.3 cjep_sun2x:1.3.0.44 cjep_sun2x-base:1.3 cjep_staticlib_x-base1:1.3 cjep_staticlib_x:1.3.0.42 cjep_staticlib_x-base:1.3 phil-wifi-20200421:1.3 phil-wifi-20200411:1.3 phil-wifi-20200406:1.3 pgoyette-compat-merge-20190127:1.3 pgoyette-compat-20190127:1.3 pgoyette-compat-20190118:1.3 pgoyette-compat-1226:1.3 pgoyette-compat-1126:1.3 pgoyette-compat-1020:1.3 pgoyette-compat-0930:1.3 pgoyette-compat-0906:1.3 pgoyette-compat-0728:1.3 pgoyette-compat-0625:1.3 pgoyette-compat-0521:1.3 pgoyette-compat-0502:1.3 pgoyette-compat-0422:1.3 pgoyette-compat-0415:1.3 pgoyette-compat-0407:1.3 pgoyette-compat-0330:1.3 pgoyette-compat-0322:1.3 pgoyette-compat-0315:1.3 pgoyette-compat:1.3.0.40 pgoyette-compat-base:1.3 perseant-stdc-iso10646:1.3.0.38 perseant-stdc-iso10646-base:1.3 prg-localcount2-base3:1.3 prg-localcount2-base2:1.3 prg-localcount2-base1:1.3 prg-localcount2:1.3.0.36 prg-localcount2-base:1.3 pgoyette-localcount-20170426:1.3 bouyer-socketcan-base1:1.3 pgoyette-localcount-20170320:1.3 bouyer-socketcan:1.3.0.34 bouyer-socketcan-base:1.3 pgoyette-localcount-20170107:1.3 pgoyette-localcount-20161104:1.3 localcount-20160914:1.3 pgoyette-localcount-20160806:1.3 pgoyette-localcount-20160726:1.3 pgoyette-localcount:1.3.0.32 pgoyette-localcount-base:1.3 netbsd-5-2-3-RELEASE:1.3 netbsd-5-1-5-RELEASE:1.3 yamt-pagecache-base9:1.3 yamt-pagecache-tag8:1.3 tls-earlyentropy:1.3.0.28 tls-earlyentropy-base:1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3 riastradh-drm2-base3:1.3 netbsd-5-2-2-RELEASE:1.3 netbsd-5-1-4-RELEASE:1.3 netbsd-5-2-1-RELEASE:1.3 netbsd-5-1-3-RELEASE:1.3 agc-symver:1.3.0.30 agc-symver-base:1.3 tls-maxphys-base:1.3 yamt-pagecache-base8:1.3 netbsd-5-2:1.3.0.26 yamt-pagecache-base7:1.3 netbsd-5-2-RELEASE:1.3 netbsd-5-2-RC1:1.3 yamt-pagecache-base6:1.3 yamt-pagecache-base5:1.3 yamt-pagecache-base4:1.3 netbsd-5-1-2-RELEASE:1.3 netbsd-5-1-1-RELEASE:1.3 yamt-pagecache-base3:1.3 yamt-pagecache-base2:1.3 yamt-pagecache:1.3.0.24 yamt-pagecache-base:1.3 bouyer-quota2-nbase:1.3 bouyer-quota2:1.3.0.22 bouyer-quota2-base:1.3 matt-nb5-pq3:1.3.0.20 matt-nb5-pq3-base:1.3 netbsd-5-1:1.3.0.18 netbsd-5-1-RELEASE:1.3 netbsd-5-1-RC4:1.3 netbsd-5-1-RC3:1.3 netbsd-5-1-RC2:1.3 netbsd-5-1-RC1:1.3 netbsd-5-0-2-RELEASE:1.3 netbsd-5-0-1-RELEASE:1.3 jym-xensuspend-nbase:1.3 netbsd-5-0:1.3.0.16 netbsd-5-0-RELEASE:1.3 netbsd-5-0-RC4:1.3 netbsd-5-0-RC3:1.3 netbsd-5-0-RC2:1.3 jym-xensuspend:1.3.0.14 jym-xensuspend-base:1.3 netbsd-5-0-RC1:1.3 netbsd-5:1.3.0.12 netbsd-5-base:1.3 mjf-devfs2:1.3.0.10 mjf-devfs2-base:1.3 yamt-pf42-base4:1.3 yamt-pf42-base3:1.3 hpcarm-cleanup-nbase:1.3 yamt-pf42-base2:1.3 yamt-pf42:1.3.0.8 yamt-pf42-base:1.3 keiichi-mipv6:1.3.0.6 keiichi-mipv6-base:1.3 cube-autoconf:1.3.0.4 cube-autoconf-base:1.3 hpcarm-cleanup:1.3.0.2 hpcarm-cleanup-base:1.3 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH002:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-5-BETA2:1.2 netbsd-1-5-BETA:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-5-ALPHA2:1.2 netbsd-1-5:1.2.0.10 netbsd-1-5-base:1.2 netbsd-1-4-PATCH002:1.2 wrstuden-devbsize-19991221:1.2 wrstuden-devbsize:1.2.0.8 wrstuden-devbsize-base:1.2 comdex-fall-1999:1.2.0.6 comdex-fall-1999-base:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-4:1.2.0.4 netbsd-1-4-base:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH003-CANDIDATE2:1.2 netbsd-1-3-PATCH003-CANDIDATE1:1.2 netbsd-1-3-PATCH003-CANDIDATE0:1.2 netbsd-1-3-PATCH002:1.2 netbsd-1-3-PATCH001:1.2 netbsd-1-3-RELEASE:1.2 netbsd-1-3-BETA:1.2 netbsd-1-3:1.2.0.2 netbsd-1-3-base:1.2 netbsd-1-2-PATCH001:1.1 netbsd-1-2-RELEASE:1.1 explorer-groff-upgrade:1.1 netbsd-1-2-BETA:1.1 netbsd-1-2-base:1.1 netbsd-1-2:1.1.0.10 netbsd-1-1-PATCH001:1.1 netbsd-1-1-RELEASE:1.1 netbsd-1-1:1.1.0.6 netbsd-1-1-base:1.1 netbsd-1-0-PATCH06:1.1 netbsd-1-0-PATCH05:1.1 netbsd-1-0-PATCH04:1.1 netbsd-1-0-PATCH03:1.1 netbsd-1-0-PATCH02:1.1 netbsd-1-0-PATCH1:1.1 netbsd-1-0-PATCH0:1.1 netbsd-1-0-RELEASE:1.1 netbsd-1-0:1.1.0.4 netbsd-1-0-base:1.1 netbsd-0-9-RELEASE:1.1 netbsd-0-9-BETA:1.1 netbsd-0-9-ALPHA2:1.1 netbsd-0-9-ALPHA:1.1 netbsd-0-9:1.1.0.2 netbsd-0-9-base:1.1; locks; strict; comment @# @; 1.3 date 2001.04.19.14.41.20; author wiz; state dead; branches; next 1.2; 1.2 date 96.08.13.07.04.55; author explorer; state Exp; branches; next 1.1; 1.1 date 93.07.15.16.31.13; author jtc; state Exp; branches; next ; desc @@ 1.3 log @Remove old groff files from usr.bin. Pull up reach-over to head. @ text @These are patches to makes psfig work with groff. They apply to the version of psfig in comp.sources.unix/Volume11. After applying them, psfig should be recompiled with -DGROFF. The resulting psfig will work only with groff, so you might want to install it under a different name. The output of this psfig must be processed using the macros in the file ../tmac/tmac.psfig. These will automatically add the necessary PostScript code to the prologue output by grops. Use of the `global' feature in psfig will result in non-conformant PostScript which will fail if processed by a page reversal program. Note that psfig is unsupported by me (I'm not interested in hearing about psfig problems.) For new documents, I recommend using the PostScript inclusion features provided by grops. James Clark jjc@@jclark.com *** cmds.c.~1~ Thu Feb 14 16:09:45 1991 --- cmds.c Mon Mar 4 12:49:26 1991 *************** *** 245,253 **** --- 245,261 ---- (void) sprintf(x, "%.2fp", fx); (void) sprintf(y, "%.2fp", fy); } else if (!*x) { + #ifndef GROFF (void) sprintf(x,"(%.2fp*%s/%.2fp)", fx, y, fy); + #else /* GROFF */ + (void) sprintf(x,"(%.0fu*%s/%.0fu)", fx, y, fy); + #endif /* GROFF */ } else if (!*y) { + #ifndef GROFF (void) sprintf(y,"(%.2fp*%s/%.2fp)", fy, x, fx); + #else /* GROFF */ + (void) sprintf(y,"(%.0fu*%s/%.0fu)", fy, x, fx); + #endif /* GROFF */ } /* *** troff.c.~1~ Thu Feb 14 16:09:48 1991 --- troff.c Mon Mar 4 12:48:46 1991 *************** *** 26,32 **** --- 26,36 ---- } + #ifndef GROFF char incl_file_s[] = "\\X'f%s'"; + #else /* GROFF */ + char incl_file_s[] = "\\X'ps: file %s'"; + #endif /* GROFF */ includeFile(filenm) char *filenm; { printf(incl_file_s, filenm); *************** *** 40,52 **** --- 44,64 ---- error("buffer overflow"); } + #ifndef GROFF char endfig_s[] = "\\X'pendFig'"; + #else /* GROFF */ + char endfig_s[] = "\\X'ps: exec psfigend'"; + #endif /* GROFF */ endfig() { printf(endfig_s); } char startfig_s[] = + #ifndef GROFF "\\X'p\\w@@\\h@@%s@@@@'\\X'p\\w@@\\h@@%s@@@@'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'pstartFig'"; + #else /* GROFF */ + "\\X'ps: exec \\w@@\\h@@%s@@@@ \\w@@\\h@@%s@@@@ %.2f %.2f %.2f %.2f psfigstart'"; + #endif /* GROFF */ startfig(x, y, llx, lly, urx, ury) char *x, *y; *************** *** 57,63 **** --- 69,79 ---- } emitDoClip() { + #ifndef GROFF printf("\\X'pdoclip'"); + #else /* GROFF */ + printf("\\X'ps: exec psfigclip'"); + #endif /* GROFF */ } flushX() *************** *** 116,122 **** --- 132,142 ---- #define isWhite(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n') + #ifndef GROFF char literal_s[] = "\\X'p%s'"; + #else /* GROFF */ + char literal_s[] = "\\X'ps: exec %s'"; + #endif /* GROFF */ emitLiteral(text) char *text; { static char litbuf[BUFSZ]; @ 1.2 log @Upgrade groff to 1.10 @ text @@ 1.1 log @Check in remainder of groff 1.08 @ text @d6 1 a6 1 macros in the file ../macros/tmac.psfig. These will automatically add @