diff -rc2N groff-1.00/ps/psfig.diff groff-1.01/ps/psfig.diff
*** groff-1.00/ps/psfig.diff
--- groff-1.01/ps/psfig.diff Mon Mar 4 13:19:00 1991
+ 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.psfig in this directory. 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.
+ *** cmds.c.~1~ Thu Feb 14 16:09:45 1991
+ --- cmds.c Mon Mar 4 12:49:26 1991
+ (void) sprintf(x, "%.2fp", fx);
+ (void) sprintf(y, "%.2fp", fy);
+ (void) sprintf(x,"(%.2fp*%s/%.2fp)", fx, y, fy);
+ + (void) sprintf(x,"(%.0fu*%s/%.0fu)", fx, y, fy);
+ (void) sprintf(y,"(%.2fp*%s/%.2fp)", fy, x, fx);
+ + (void) sprintf(y,"(%.0fu*%s/%.0fu)", fy, x, fx);
+ *** troff.c.~1~ Thu Feb 14 16:09:48 1991
+ --- troff.c Mon Mar 4 12:48:46 1991
+ char incl_file_s[] = "\\X'f%s'";
+ + char incl_file_s[] = "\\X'ps: file %s'";
+ printf(incl_file_s, filenm);
+ error("buffer overflow");
+ char endfig_s[] = "\\X'pendFig'";
+ + char endfig_s[] = "\\X'ps: exec psfigend'";
+ "\\X'p\\w@\\h@%s@@'\\X'p\\w@\\h@%s@@'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'pstartFig'";
+ + "\\X'ps: exec \\w@\\h@%s@@ \\w@\\h@%s@@ %.2f %.2f %.2f %.2f psfigstart'";
+ startfig(x, y, llx, lly, urx, ury)
+ printf("\\X'pdoclip'");
+ + printf("\\X'ps: exec psfigclip'");
+ #define isWhite(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n')
+ char literal_s[] = "\\X'p%s'";
+ + char literal_s[] = "\\X'ps: exec %s'";
+ static char litbuf[BUFSZ];