Other minor fixings.
[s-roff.git] / ChangeLog
blob7924e85fa6e88359abc58571a1ade86cf674cba1
1 2000-03-06  Werner LEMBERG  <wl@gnu.org>
3         * tmac/groff_man.man: Completely revised to cover everything in
4         tmac.an.
6         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
7         Other minor fixings.
8         * src/roff/troff/env.cc (environment_copy): Improve error message and
9         fix itoa->i_to_a.
11 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
13         Adding a request `evc' to copy environments.
15         * src/roff/troff/env.cc (environment::copy, environment_copy):
16         Implement it.
17         * src/roff/troff/env.h: Add prototype.
19 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
21         Adding strsep() -- Solaris 8 doesn't have it.
23         * configure.in: Test it.
24         * src/devices/grolbp/lbp.cc: Add code.
26 2000-03-05  Werner LEMBERG  <wl@gnu.org>
28         * src/roff/troff/div.cc (macro_diversion::output,
29         top_level_diversion::output): Fixing an incompatibility with
30         original troff: \x'0' updates the .a register also.  Thanks to
31         <Andries.Brouwer@cwi.nl> for pointing this out.
32         * doc/groff.texinfo: Document it.
34         * Makefile.in: Create Makefile.dep if necessary before calling the
35         submake process to avoid warning about nonexistent file.
37         * NEWS, PROJECTS: Updated.
39 2000-03-04  Werner LEMBERG  <wl@gnu.org>
41         * tmac/troffrc: Add tmac.lbp.
43 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
45         * tmac/tmac.lbp: New file.
46         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
47         command.
49 2000-03-03  Werner LEMBERG  <wl@gnu.org>
51         * Makefile.in: Fixing $(subdir).
53         * README, NEWS: Small fixes.
55         * test-groff: Adding path to grolbp.
57         * configure.in: The (new) file src/xditview/Imakefile.in will be
58         also configured -- it is now possible to build gxditview in a
59         directory different from $srcdir.
61 2000-03-02  Blake McBride  <blake@florida-software.com>
63         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
65         * MORE.STUFF: Added website of bell labs and info about plot2dev.
67 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
69         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
70         files.
72 2000-02-29  Werner LEMBERG  <wl@gnu.org>
74         Adding GNU getopt to the groff distribution.
76         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
77         New files.
78         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
79         * aclocal.a4: Remove GROFF_GETOPT function.
80         * configure.in, Makefile.in, PROBLEMS: Update.
81         * src/include/lib.h: Replace getopt tests with getopt.h.
82         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
84         * doc/groff.texinfo: Further checking/updating.  Adding more index
85         entries.
87         * man/groff_out.man: Fix nroff mode activation (for emacs).
88         * man/groff_font.man: Add missing ligature.
90 2000-02-28  Werner LEMBERG  <wl@gnu.org>
92         * doc/groff.texinfo: Further checking/updating.  Adding more index
93         entries.
95         * src/devices/grolbp/grolbp.man: Added a comment line at the
96         beginning of the file (similar to shell scripts) which indicates
97         that `tbl' should be used as a preprocessor.
99 2000-02-27  Blake McBride  <blake@florida-software.com>
101         Adapting groff to MS Visual C++ 6.0 compiler (tested with
102         Windows NT 4.0).  Uses _MSC_VER define where necessary.
104         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
105         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
106         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
107         src/include/lib.h, src/libs/libgroff/errarg.cc,
108         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
109         src/preproc/refer/label.y, src/preproc/refer/label.cc,
110         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
111         src/roff/troff/div.cc, src/roff/troff/env.cc,
112         src/roff/troff/input.cc, src/roff/troff/node.cc,
113         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
114         if_to_a() to avoid name clashes.
115         * src/include/posix.h: Don't use unistd.h.
116         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
117         clause for integrating non-Unix xtmpfile() code.
118         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
119         structure; use "rt" for popen() in pipe_source(); add getpid()
120         dummy function.
121         * src/roff/troff/node.cc: Use special versions of popen() in
122         real_output_file() and pclose() in ~real_output_file().
124 2000-02-27  Werner LEMBERG  <wl@gnu.org>
126         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
127         LBP-8 series laser printers).  This code has been contributed by
128         Francisco Andres Verdu <pandres@dragonet.es>.
130         * src/devices/grolbp/*: The grolbp output device.
131         * font/devlpb/*: The font description files.
132         * Makefile.in: Add grolpb and devlbp subdirectories.
134         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
135         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
136         typographic fixes.
138         * doc/groff.texinfo: Further checking/updating.  Adding more index
139         entries.
141         * NEWS: Updated.
143         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
145         * man/groff_font.man: Adding info about obsolete DESC keywords.
146         * src/devices/grolj4/grolj4.man: Documenting additional DESC
147         keywords.
149 2000-02-26  Werner LEMBERG  <wl@gnu.org>
151         * src/preproc/grn/grn.man: Added info about the gremlin file format
152         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
154 2000-02-25  Werner LEMBERG  <wl@gnu.org>
156         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
157         friends to be non-integer.
159         * src/preproc/grn/grn.man: Document it.
161         * doc/groff.texinfo: Further checking/updating.  Adding more index
162         entries.
164 2000-02-24  Werner LEMBERG  <wl@gnu.org>
166         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
167         line thicknesses to be integer multiples of this value.
169         * src/preproc/grn/grn.man: Commenting out the -s option -- the
170         corresponding code doesn't work (yet).
172         * doc/groff.texinfo: Further checking/updating.  Adding more index
173         entries.
175 2000-02-23  Werner LEMBERG  <wl@gnu.org>
177         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
178         specify line thickness instead of base units.  The new default
179         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
180         thick lines respectively.
182         Removed unused variable `prevval'.
184         * src/preproc/grn/grn.man: Updated.
186 2000-02-22  Werner LEMBERG  <wl@gnu.org>
188         * src/preproc/grn/main.cc: Slight formatting.
190         * src/roff/groff/groff.man: Formatting fix.
191         * src/preproc/grn/grn.man: Ditto.
193         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
195         * doc/groff.texinfo: Further checking/updating.
197 2000-02-21  Werner LEMBERG  <wl@gnu.org>
199         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
201         * test-groff: Added grn subdir to path.
203         * doc/groff.texinfo: Some restructing and other small improvements.
205         * src/roff/groff/groff.cc (help): Fixed info string.
207 2000-02-20  Werner LEMBERG  <wl@gnu.org>
209         * doc/meref.me: Fix description of .GS request.
211         * src/roff/troff/troff.man: Fixing typo.
213         Adding the `grn' preprocessor for gremlin graphic files.
215         * src/preproc/grn/*: This is the Berkeley distribution written by
216         David Slattengren and Barry Roitblat, adapted to groff by Daniel
217         Senderowicz and Werner Lemberg.
219         * doc/grnexampl.{me,g}: A sample for grn.
221         * Makefile.in: Added subdirectory entry for grn.
223         * src/roff/groff/groff.cc: Added support for grn.  It can be now
224         called with the switch `-g'.
226         * src/roff/groff/groff.man: Updated.
228         * src/roff/grog/grog.{man,pl,sh}: Updated.
230         * NEWS: Updated.
232 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
234         * src/include/lib.h: Added xtmptemplate and made xtmpfile
235         parametrically polymorphic.
237         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
238         and the alterations to xtmpfile.
239         xtmpfile can be requested to return the filename created
240         and asked not to unlink the temp file.  The default behaviour
241         if parameters are absent is exactly the same as before.
243 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
245         A new request `length' is available which returns the length of a
246         string in a number register:
248         * src/roff/troff/input.cc (length_macro): Implement it.
249         * src/roff/troff/input.cc (init_input_requests): Register it.
251 2000-02-11  Werner LEMBERG  <wl@gnu.org>
253         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
254         of the `substring' request.
256         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
257         request.
259         * src/roff/troff/TODO, NEWS: Updated.
261 2000-02-09  Werner LEMBERG  <wl@gnu.org>
263         * src/roff/groff/groff.man: Added an example.
265 2000-02-06  Werner LEMBERG  <wl@gnu.org>
267         I've considerably modified the directory structure of the
268         distribution to get a more vertical layout.  For example, the number
269         of top level directories has been reduced from 42 to 6.
271         As a consequence, many changes, especially to the makefiles, were
272         necessary:
274         * The makefile variables `top_builddir' and `top_srcdir' have been
275         introduced.  Virtually all relative paths have been replaced with
276         absolute ones using these two variables.
278         * Dependencies (in the files `Makefile.dep') are no longer part of
279         the distribution.  Instead, they are created during a `make install'
280         in the build directory.
282         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
283         make `top_srcdir' and `top_builddir' absolute.
285         Some other changes:
287         * Man pages no depend on the files `VERSION' and `REVISION'.
289         * The added shell script `mkinstalldirs' will replace `mkdir' in
290         almost all cases.
292         * VERSION: Version number increased to 1.16.
294 2000-02-04  Werner LEMBERG  <wl@gnu.org>
296         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
298         * Makefile.in: Removed $(tmac_m) since it is no longer needed
299         (after an update of the mm stuff).
301         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
303 2000-02-03  Werner LEMBERG  <wl@gnu.org>
305         The .psbb request will now also accept Mac PS images (i.e. using LF
306         as the EOL character).
308         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
309         (with slight modifications).
310         * troff/input.cc (do_ps_file): Use it.
312         * test-groff: Add grohtml and grolj4 output devices to PATH.
314 2000-01-30  Werner LEMBERG  <wl@gnu.org>
316         * NEWS, MORE.STUFF: Updated.
318 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
320         Add the `srand' command to pic.
322         * pic/lex.cc, pic/pic.y: Implement it.
323         * pic/pic.man: Document it.
324         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
326 2000-01-30  Werner LEMBERG  <wl@gnu.org>
328         Add a new request `.psbb'.  This does exactly what the external
329         program psbb did.  It scans a PostScript image file for a
330         %%BoundingBox comment and extracts the bounding box values (in
331         PostScript units) which are then stored in the four new (read-only)
332         number registers `llx', `lly', `urx', and `ury'.
334         This will allow the usage of the .PSPIC macro without worrying
335         about unsafe behaviour of groff, i.e., it will work without the
336         `-U' switch of groff.
338         * troff/input.cc: Implement it.
339         * tmac/tmac.pspic: Use it.
340         * troff/troff.man, grops/grops.man, NEWS: Document it.
341         * psbb/*, Makefile.in: Remove it since it is no longer needed.
343         This is bloody C code simply adapted from psbb.c!  Any improvements
344         welcome.
346 2000-01-29  Werner LEMBERG  <wl@gnu.org>
348         * man/groff_font.man: Minor clarifications.
350         * NEWS: Updated.
352 2000-01-28  Werner LEMBERG  <wl@gnu.org>
354         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
356 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
358         * man/groff_font.man: Brought up to date regarding tcommand
359         extensions.
360         * libgroff/font.cc: Handle everything after `--' as a comment
361         in the font files.
362         * devps/*: Added comment delimiter inside devps font files.
364 2000-01-28  Werner LEMBERG  <wl@gnu.org>
366         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
367         \fC...\fP (which now works as expected).
369         * troff/troff.man: Fix typo.
371 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
373         Completed the pass_filenames implementation in troff.
375         * libdriver/input.cc: Will read the new `F' tcommand.
376         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
377         * troff/input.cc: Use it.
379 2000-01-26  Werner LEMBERG  <wl@gnu.org>
381         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
382         font will now be updated even if an invalid font is selected.
384 2000-01-24  Werner LEMBERG  <wl@gnu.org>
386         * doc/homepage.ms: Updated for new tmac.arkup.
388         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
390         * tmac/tmac.arkup: Cleanup.
392         Added `\&' to .HTML macro to `leave vertical mode', so to say.
394         Removed obsolete .LINK macro completely.
396         The macros .URL, .FTP, and .MAILTO now accept a third argument which
397         will be immediately appended to the second argument (to be used with
398         punctuation, for example).
400         Disabled .CDFTP macro temporarily for security reasons.
402         * tmac/groff_markup.man: Complete revision for latest changes in
403         tmac.arkup -- note that it does not yet format correctly with
404         grohtml :-(
406 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
408         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
409         * devutf8/R.proto: Add mappings for wp, lh, rh.
410         * devutf8/NOTES: Updated.
412 2000-01-23  Werner LEMBERG  <wl@gnu.org>
414         * doc/groff.texinfo: Updated version/copyright info.
416 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
418         Added support for two new directives in device descriptions:
419         `pass_filenames' (to pass the input file name to the output device)
420         and `use_charnames_in_special' (to support e.g. accented characters
421         in the `X' request).
423         * include/font.h, troff/charinfo.h: Declare it.
425         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
427         * devhtml/DESC: Use it.
429         * troff/input.cc: New function encoded_char.
431         * troff/token.h: Add test for `specialness'.
433 2000-01-21  Werner LEMBERG  <wl@gnu.org>
435         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
436         mistake from the list of files to be installed.
438 2000-01-18  Werner LEMBERG  <wl@gnu.org>
440         * README: Added info how to apply patches.
442 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
444         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
446 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
448         * troff/input.cc: Add support for troffrc-end.
450         * tbl/main.cc: Altered to issue table-start and table-end special
451         characters if using the html device.
453         * devhtml/*: Modified font files to incorporate html encoding of
454         characters.
456         * tmac/groff_markup.man: New file documenting tmac.arkup.
458         * tmac/troffrc-end: New file.  This is invoked after all user
459         specified macros.  Currently used by the html device to include
460         tmac.html.  Thus no need for users to specify -mhtml anymore.
462         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
463         (MAN7): Add groff_markup.man.
465         * tmac/tmac.an, tmac/tmac.html: Small html updates.
467         * tmac/troffrc: tmac.arkup will now be called for the html device.
469         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
470         extra device specific information about fonts.
472         * doc/homepage.ms: New file.  It is an example how an HTML home page
473         could look like with grohtml.
475         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
477 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
479         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
480         of Im, Re.
482         * devutf8/NOTES: Updated.
484 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
486         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
487         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
488         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
489         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
490         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
491         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
492         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
493         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
494         warnings.
496         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
498 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
500         grolj4: Paper size will be searched case-insensitively.
502         * grolj4/lib.h: Add check for strcasecmp().
503         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
504         * configure.in: Check for strcasecmp().
506 2000-01-11  Werner LEMBERG  <wl@gnu.org>
508         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
509         `REVISION'.
511 2000-01-10  Werner LEMBERG  <wl@gnu.org>
513         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
514         revision scheme.
516         Add a new read-only register, `.Y', which contains the groff
517         revision.
519         * troff/input.cc (init_input_requests): Define it.
520         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
521         * doc/groff.texinfo, troff/troff.man: Document it.
523         * libgroff/Makefile.sub (version.cc): Add definition of
524         `Version_string[]', consisting of `<major>.<minor>.<revision>'
525         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
526         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
527         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
528         troff/input.cc, pfbtops/pfbtops.c: Use it.
530 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
532         Add a revision scheme to the groff package.
534         * REVISION: New file.
535         * libgroff/Makefile.sub (version.cc): Use it to define
536         `revision_string[]'.
537         * grops/psrm.cc: Use revision_string (converted to an unsigned
538         integer) in constructor of resource_manager.
540 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
542         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
543         files.
544         * Makefile.in (DEVDIRS): Add devutf8.
545         * grotty/tty.cc: Include device.h.
546         (glyph): Change type of `code' to `unsigned int'.
547         (tty_printer): New field is_utf8.  Constructor takes device argument.
548         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
549         (tty_printer::add_char): Change type of first arg to `unsigned int'.
550         (tty_printer::put_char): New function.
551         (tty_printer::end_page): Use put_char() instead of ::putchar().
552         (make_printer): Pass device to tty_printer constructor.
553         * nroff.sh: Determine default device by calling 'locale'.  As a
554         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
555         Recognize UTF-8 locales.
556         * tmac/eqnrc: Recognize utf8 like latin1.
557         * tmac/troffrc: Device utf8 needs tmac.tty.
559 2000-01-07  Werner LEMBERG  <wl@gnu.org>
561         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
563 2000-01-07  Paul Eggert  <eggert@twinsun.com>
565         Add a new predefined writeable number register, `year',
566         which contains the current year.
568         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
569         * tmac/tmac.s: Use it.
570         * troff/input.cc (init_registers): Initialize it.
572 2000-01-06  Werner LEMBERG  <wl@gnu.org>
574         * PROBLEMS: Fixed typo.
576 2000-01-04  Paul Eggert  <eggert@twinsun.com>
578         * PROBLEMS: Add Y2k advice for the yr number register.
580 2000-01-03  Paul Eggert  <eggert@twinsun.com>
582         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
584 2000-01-02  Werner LEMBERG  <wl@gnu.org>
586         * tmac/tmac.arkup: Slight modification of macros to provide better
587         appearance for non-HTML formats.
589 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
591         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
592         does not automatically translate to malloc(n) on all OSes
593         (e.g., SunOS) so do it explicitly.  Also, check the returned
594         value.
596 2000-01-01  Werner LEMBERG  <wl@gnu.org>
598         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
600         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
601         expects this variable
603 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
605         * doc/Makefile: Added instructions to create HTML and text
606         versions of some files.
608 1999-12-31  Werner LEMBERG  <wl@gnu.org>
610         * Updated INSTALL.gen.
612         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
613         better resp. correctly with non-HTML devices.
615 Version 1.15 released
616 =====================
618 1999-12-28  Werner LEMBERG  <wl@gnu.org>
620         * NEWS, VERSION: Changed to 1.15
622 1999-12-27  Paul Eggert  <eggert@twinsun.com>
624         * nroff/nroff.man: -S is safer, not safe.
626         * groff/groff.cc (main): Use `safer', not `safe', in variable
627         names.  This does not change the behavior.
629         * troff/input.cc (main): Likewise.
631         * nroff/nroff.sh: Likewise.
633         * troff/input.cc (prepend_string): New function.
634         (main): Prepend -msafer, so that we check macro libraries for
635         safety.
637         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
639 Version 1.14 released
640 =====================
642 1999-12-26  Werner LEMBERG  <wl@gnu.org>
644         * NEWS, VERSION: Changed to 1.14.
646 1999-12-24  Werner LEMBERG  <wl@gnu.org>
648         * refer/refer.cc: Fixing the last fix.
650 Version 1.13 released
651 =====================
653 1999-12-23  Werner LEMBERG  <wl@gnu.org>
655         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
656         number disappear.
658         * NEWS: Updated.
660         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
662         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
663         document conventions, the version number must be a real.
665 Version 1.12.1 released
666 =======================
668 1999-12-22  Werner LEMBERG  <wl@gnu.org>
670         * VERSION: Changed to 1.12.1.
672 1999-12-22  Alan Rooks  <arooks@istar.ca>
674         * refer/refer.cc (do_file): Slight modification to satisfy the
675         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
676         UnixWare 7.1.
678 1999-12-20  Werner LEMBERG  <wl@gnu.org>
680         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
681         notices.
683         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
684         list of unsafe requests.
686         * pic/pic.man: Fixed a typo.
688         * man/groff_out.man: Fixed a typo.
690 1999-12-18  Werner LEMBERG  <wl@gnu.org>
692         * Makefile.in: Doc fixes.
694 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
696         * groff/groff.cc: Missing `U' option added to getopt().
698         * troff/troff.man: Missing `U' option added to synopsis.
700 Version 1.12 released
701 =====================
703 1999-12-14  Werner LEMBERG  <wl@gnu.org>
705         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
706         to the synopsis.
708         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
709         with the more appropriate terms `safer' and `unsafe'.
711         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
712         sys_nerr and sys_errlist[].
714         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
716         * pic/pic.y, pic/pic.cc: Added check for fmod().
718 1999-12-13  Werner LEMBERG  <wl@gnu.org>
720         * VERSION: Changed to 1.12.
722         Here some patches from various sources; most of them taken from
723         the Debian distribution.
725         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
726         tmac/Makefile.sub: New files copied directly from the NetBSD
727         distribution.  Probably, some additional adaptation later on is
728         necessary...
730         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
731         of unsafe requests.
733         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
734         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
735         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
736         (`-S') is now the default.
738         * README, NEWS: Updated.
740 1999-12-09  Werner LEMBERG  <wl@gnu.org>
742         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
744         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
746 1999-12-06  Werner LEMBERG  <wl@gnu.org>
748         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
749         grief than relief today.  Additionally, it is against the GNU
750         coding standards.
752         * configure: Recreated.
754 1999-12-05  Werner LEMBERG  <wl@gnu.org>
756         * configure.in: Added GROFF_LIBM.
758         * configure: Recreated.
760         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
761         necessary.
763         * Makefile.in: Added definition of $(LIBM).
765         * Makefile.comm (LIBM): Removed.
767         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
769 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
771         * doc/Makefile: Added rule for generation pic.html.
773         (clean): Files produced by grohtml will be removed also.
775         * doc/pic.ms: Small fix.
777         * tmac/tmac.html: Fixed suppression of headers.
779 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
781         * tmac/tmac.html: Fixing horizontal arrows.
783         Turning off hyphenation.
785         * tmac/tmac.an: Improved support for grohtml; better indentation,
786         no footers/headers.
788 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
790         * tmac/tmac.arkup: Added CDFTP macro
792         * tmac/tmac.html: All headers are turned off for ms, me, and mm
793         macros.
795         * tmac/troffrc: Some additions for HTML stuff.
797 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
799         * tmac/tmac.html: Small changes.
801 1999-09-26  Werner LEMBERG  <wl@gnu.org>
803         * doc/groff.texinfo: Minor fixes.
805 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
807         * devhtml/TR: Changed spacewidth to 3.
809         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
811         * tmac/tmac.html: Moved markup macros to tmap.arkup.
813         * tmac/tmac.arkup: New file.
815         * grohtml/ChangeLog: New file.
817 1999-09-16  Werner LEMBERG  <wl@gnu.org>
819         * doc/groff.texinfo (Common Features): Added Copying chapter.
820         Changed format to @smallbook.
822 1999-09-15  Werner LEMBERG  <wl@gnu.org>
824         * NEWS: Added info about groff.texinfo.
826         * doc/groff.texinfo: Will now compile (using texi2dvi) without
827         warning messages.
829 1999-09-14  Werner LEMBERG  <wl@gnu.org>
831         * groff/groff.man: More updates.
833 1999-09-13  Werner LEMBERG  <wl@gnu.org>
835         * doc/groff.texinfo: New file.  This manual is still very
836         rudimentary.  It has been originally contributed by Trent
837         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
838         additions by me.
840         * INSTALL: Added information about the `doc' subdir
842         * troff/troff.man: Minor fixes.
844         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
845         reordered options.
847         * troff/input.cc (usage): Added missing `-ffam' to usage message.
849         * Makefile.in (dist): groff-$(version).tar.gz must be removed
850         also, otherwise it is included itself in another call of `make
851         dist'.
853         * groff/groff.cc (synopsis): Removed superfluous space.
855         * PROJECTS, PROBLEMS, NEWS: Updated.
857         * xditview/Makefile: Removed.
859         * VERSION: Updated to 1.12beta.
861         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
863         * README: Updated: Included documentation about CVS repository,
864         mailing lists, and daily snapshots.
866         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
868 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
870         * tmac/tmac.an: If the tag didn't fit into the space that the
871         macro `TP' specifies, the rest of the tag went into the space for
872         the next line.
874 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
876         * grolj4/lj4.cc: Added duplex printing (option `-d').
878         * grolj4/grolj4.man: Document duplex printing.
880 1999-09-12  Werner LEMBERG  <wl@gnu.org>
882         * doc/Makefile (pic.ps): Fixed rule which caused problems with
883         non-GNUish sed programs.
885         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
886         definition.
888         * configure.in (LIBS): Added `-lc'
890         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
892         * pic/tex.cc (solid_arc): Casting M_PI to double.
894         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
896         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
897         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
898         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
900         * groff/groff_man.man: New file.  This manual page was originally
901         written for the Debian GNU/Linux system by Susan G. Kleinmann
902         <sgk@debian.org>.
904         * eqn/list.cc (list_box::compute_metrics,
905         list_box::compute_sublist_width): Removed variable declaration to
906         avoid shadowing warnings.
908         * grops/psrm.cc (resource_manager::process_file): Ditto.
910         * tfmtodit/tfmtodit.cc (main): Ditto.
912         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
913         to avoid shadowing warnings.
915         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
916         shadowing loop variable.
918         * groff/groff.man, troff/troff.man: Added doc about grohtml.
920 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
922         New grohtml frontend to convert groff input to html.
924         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
926         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
928         * tmac/eqnrc: Added html device.
930         * tmac/tmac.html: New file.
932         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
933         (troff_output::start_picture, troff_output::finish_picture),
934         tbl/main.cc (process_input_file):
935         Surrounded output with `graphics_start' and `graphics_end' so that
936         the html driver can identify non-text portions.
938         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
939         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
940         grotty/tty.ps (tty_printer::set_char): Additional parameter
941         `name'.
943         * include/printer.h: Class printer: New function
944         set_char_and_width; new variables (is_char_named, is_named_set,
945         named_command, named_char_s, named_char_n) to hold information
946         about named characters -- needed by the html driver.
948         * libdriver/printer.cc (printer::set_ascii_char,
949         printer::set_special_char): Use set_char_and_width.
951         * devhtml/*: New device files for html driver.
953         * grohtml/*: New driver grohtml.
955 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
957         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
958         default strings.
960 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
962         * libgroff/string.cc (search): Small fix to test against NULL
963         pointer.
965 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
967         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
968         \b'abc') were stacked in reverse order when processed in a
969         diversion.
971         * troff/node.h: Added `*last' to struct `node' to make the above
972         fix work.
974         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
975         The default scale for the 'f' and 't' graphics functions were 'm'
976         rather than 'u' (i.e., no scaling).
978 1999-09-11  Peter Miller  <peterm@jna.com.au>
980         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
981         do_file), soelim/soelim.man: Added `-I file' option to soelim,
982         defining include paths.
984         * soelim/soelim.cc (include_path_append): New function.
986 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
988         * tbl/main.cc (process_options): Unix (at least Documenter's
989         Workbench) tbl allows arbitrary non-alpha characters between
990         options.
992 1999-09-11  Paul Eggert  <eggert@twinsun.com>
994         Y2k fixes.  Don't assume that the current year precedes 2000.
996         * doc/meref.me: Add \n(y2, \n(y4.
998         * tmac/doc-common (Yr): New number register.
999         (Dd): Don't assume current year precedes 2000.
1001         * tmac/tmac.e (td): Likewise.
1002         (y2, y4): New number registers.
1004         * pic/pic.man: Update reference for pic paper to May, 1991
1005         version.
1007 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1009         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1010         Removed quotation marks which prevented correct expansion of
1011         $(tmac_wrap).
1013         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1015 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1017         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1018         `config.cache'.
1020         * Removed configure.old.
1022 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1024         * VERSION: Updated to 1.11.1
1026 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1028         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1030         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1031         added quotations around $(tmac_wrap) to avoid syntax error if
1032         variable is empty.
1034         * configure: Newly generated using autoconf 2.13.
1036         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1038 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1040         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1041         doc/Makefile. doc/pic.ms, groff/groff.man:
1042         Prepare for 1.11 release.  No code changes.
1043         Documentation for pic added (doc/pic.ms).
1045 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1047         * Version 1.10 released.
1049 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1051         * afmtodit/afmtodit.pl: Avoid comment on first line.
1053 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1055         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1056         * configure.in: Call it.
1058         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1059         (distfiles): Doesn't depend on config.log or config.cache.
1061 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1063         * grog/grog.sh: Use print "" rather than print in END rule.
1065 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1067         * tbl/main.cc (process_data): Don't give error for excess data
1068         entries that are comments.
1070 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1072         * tbl/main.cc (process_data): Fix case where new for-scope rules
1073         silently change meaning of code.
1075 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1077         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1078         of non-zero hyphenation codes.
1080 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1082         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1084 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1086         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1088 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1090         * tmac/tmac.andoc: Make it work in compatibility mode.
1092         * refer/token.h (token_info::is_range_sep): New function.
1093         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1094         * refer/ref.cc (reference::output): More sophisticated check for
1095         multiple pages.
1097         * devps/prologue.ps (MANUAL): New procedure.
1098         * grops/ps.cc (main): New -m option.
1099         (usage): Include -m.
1100         (ps_printer::~ps_printer): Implement -m.
1102         * aclocal.m4 (GROFF_G): New macro.
1103         * configure.in: Call it.
1104         * Makefile.in (g): Provided by configure.
1106         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1108         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1109         translations.
1111         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1112         (tmac_m, tmac_s): Deleted.
1113         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1114         tmac_s_prefix): New variables.
1115         (MDEFINES): Change accordingly.
1116         * Makefile.comm (.man.n): Use new TMAC_* variables.
1117         * configure.in (GROFF_TMAC): Call.
1118         * aclocal.m4 (GROFF_TMAC): Define.
1119         * tmac/Makefile.sub (stamp_wrap): New target.
1120         (install_data, uninstall_sub): Handle macro wrapping.
1122 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1124         * tbl/main.cc (main): Ignore -T option.
1126 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1128         * devlj4/generate/special.map: Add definition of \(nb.
1130         * tmac/tmac.dvi: Add definition of \(nb.
1132         * troff/dictionary.c (dictionary::dictionary): association::v gets
1133         initialized by association::association.
1135         * tmac/Makefile.sub: Avoid using temporary files when installing.
1137         * troff/env.cc (environment::set_font): Make bad font number a
1138         warning.
1140         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1142         * Makefile.in (datadir): Use share rather than lib.
1144         * groff/groff.cc (basename): Rename to xbasename.
1146 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1148         * Makefile (CCLIBS): Don't use.
1149         * Makefile.ccpg: Likewise.
1151         * acgroff.m4: Rename to...
1152         * aclocal.m4: Modify extensively for autoconf 2.
1153         * configure.in: Likewise.
1154         * Makefile.in: Likewise.
1156         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1157         defined.
1158         (xstrsignal): Check for definition of NSIG. Conditionalize
1159         on SYS_SIGLIST_DECLARED.  Make return type const.
1161 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1163         * troff/input.cc (interpolate_macro): Rephrase missing space
1164         warning.
1166 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1168         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1169         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1170         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1171         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1172         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1173         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1174         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1175         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1176         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1177         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1178         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1179         Fix 'for' scoping.
1181 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1183         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1184         string_iterator.
1185         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1186         file.
1187         (macro_iterator::macro_iterator): Add additional argument.
1189 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1191         * troff/div.cc (vertical_size::vertical_size): In place of integer
1192         specifying line spacing use cunits specifying post vertical
1193         space.
1194         (macro_diversion::output, top_level_diversion::output): Likewise.
1195         * troff/div.h: Change declarations accordingly.
1196         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1197         field.
1198         (pending_output_line::pending_output_line,
1199         pending_output_line::output, environment::output,
1200         environment::output_line, environment::output_title,
1201         environment::hyphenate_line):  In place of
1202         integer specifying line spacing use cunits specifying post vertical
1203         space.
1204         (environment::environment): Add post_vertical_spacing and
1205         prev_post_vertical_spacing arguments.
1206         (environment::get_post_vertical_spacing): New function.
1207         (environment::total_post_vertical_spacing): New function.
1208         (environment::post_vertical_spacing): New function.
1209         (init_env_requests): Initialize pvs request and .pvs register.
1210         * troff/env.h: Change declarations.
1212 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1214         * tmac/tmac.pspic: Immediately remove the temporary file.
1216 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1218         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1219         height is specified.
1221 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1223         * tbl/table.c (struct vertical rule, class table_entry): Use int
1224         not short for start_row and end_row.
1226 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1228         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1229         functions.
1230         (diverted_space_node::reread, process_input_stack): Call
1231         trapping_blank_line() rather than blank_line().
1232         (init_input_requests): Bind "blm" to blank_line_macro().
1234         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1236 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1238         * troff/env.cc (environment::possibly_break_line): Require that
1239         width total excluding width of final space node be greater than
1240         the target text length.
1242 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1244         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1246 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1248         * troff/node.cc (charinfo_node): New class.
1249         (glyph_node, composite_node): Derive from charinfo_node.  Change
1250         member functions accordingly.
1252 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1254         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1256 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1258         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1260         * devps/generate/textmap (notsubset): Add.
1262         * tmac/tmac.a4: New file.
1264 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1266         * pic/main.cc (had_parse_error): New variable.
1267         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1268         returns non-zero.
1269         (main): Return 1 if had_parse_error is true.
1271 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1273         * grolj4/lj4.cc (main): Avoid use of strtoul.
1275 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1277         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1278         iso_8859_1 or $LESSCHARSET is latin1.
1280 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1282         * hpftodit: New directory.
1283         * Makefile.in (CCPROGDIRS): Add hpftodit.
1284         * devlj4/generate: New directory.
1286 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1288         * configure.in: Don't use AC_VFORK.
1289         * groff/pipeline.c (run_pipeline): Use fork() always.
1291 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1293         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1295         * Makefile.in (CCPROGDIRS): Add grolj4.
1296         (DEVDIRS): Add devlj4.
1297         * grolj4, devlj4: New directories.
1298         * tmac/troffrc: Handle lj4.
1299         * tmac/tmac.lj4: New file.
1301 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1303         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1305 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1307         * troff/input.cc (do_if_request): At end of second string, switch
1308         environments before getting next token.
1310 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1312         * devps/psstrip.sed: Split rule that strips whitespace on either
1313         side of delimiters.
1315 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1317         * troff/node.h (font_family::make_definition): Add return value to
1318         declaration.  * troff/symbol.h (symbol::operator==,
1319         symbol::operator!=): Likewise.
1321 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1323         * groff/groff.cc (main, help, synopsis): Handle -S.
1324         (possible_command::insert_arg): New function.
1326         * tmac/tmac.safer: New file.
1327         * tmac/msafer.man: New file.
1328         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1330 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1332         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1333         * pic/pic.y (placeless_element): Avoid unsafe operations if
1334         `safer_flag' is set.
1335         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1337 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1339         * eqn/lex.cc (get_token): Put call to add_context() in block to
1340         work around Sun C++ 4.0 bug.
1342         * include/stringclass.h (operator +): Use ?: instead of `if' to
1343         work around Sun C++ 4.0 bug.
1345 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1347         * tbl/main.cc (process_format): Accept - as a synonym for the _
1348         key letter.
1350         * libbib/index.cc (minus_one): Don't declare as const.
1352 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1354         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1356 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1358         * troff/input.cc (write_macro_request): New function.
1359         (init_input_requests): Bind write_macro_request to writem.
1361 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1363         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1364         equation.
1366         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1368         * tmac/tmac.s (@TS): Renamed from TS.
1369         (TS): Call LP then TS again.
1370         (cov*ab-init): Alias @TS to TS.
1372         * tmac/tmac.s: Allow QP or RS to initialize.
1374         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1375         Move initializations of PS and LL here.
1376         (par@init): Don't initialize HY.  Avoid changing environment 0.
1377         (par*env-init): Don't all par@reset.
1379 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1381         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1383 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1385         * Makefile.in (MDEFINES): Add LDFLAGS.
1386         (LDFLAGS): Add definition line.
1388 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1390         * troff/input.cc (get_optional_char): Split off error check into...
1391         (check_missing_character): New function.
1392         * troff/token.h: Declare it.
1393         * troff/env.cc (margin_character): Don't call get_optional_char.
1394         Only call tok.next() after making the node.
1396         * include/lib.h (getopt): Make 2nd argument char *const *.
1398 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1400         * nroff/conftest.sh: Deleted.
1402 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1404         * pic/make-dos-dist: Deleted.
1406 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1408         * devps/psstrip.sed: Strip comments before stripping trailing
1409         white space.
1411 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1413         * Version 1.09 released.
1415 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1417         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1419 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1421         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1423 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1425         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1426         about returning without a value.
1428         * troff/charinfo.h (charinfo::get_special_translation): Cast
1429         TRANSLATE_NONE to int.
1431         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1432         test.  Fix test so that it works with n unsigned.
1434         * pic/pic.y (defaults_table): Fully bracket initializer.
1435         * pic/lex.cc (lookup_keyword): Likewise.
1436         * eqn/lex.cc (token_table, def_table): Likewise.
1437         * eqn/box.cc (param_table): Likewise.
1438         * troff/input.cc (warning_table): Likewise.
1439         * libgroff/font.cc (table): Likewise.
1440         * grops/ps.cc (ps_printer::special): Likewise.
1441         * grops/psrm.cc (resource_manager::process_file): Likewise.
1442         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1443         * refer/command.cc (command_table): Likewise.
1444         * addftinfo/addftinfo.cc (param_table): Likewise.
1446         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1447         about temp's being unused.
1448         (unused): New function.
1450         * groff/pipeline.cc: Declare c_fatal.
1452         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1453         uchar.
1455         * libbib/index.cc (index_search_item::load): Prevent compiler
1456         warnings about fd_closer's being unused.
1457         (unused): New function.
1459 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1461         * troff/input.cc (copy_mode_error): Make `prefix' static.
1462         Fix typo.
1464         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1465         defined.
1466         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1467         HAVE_CC_OSFCN_H and modify accordingly.
1469         * troff/input.cc (init_charset_table): radicalex overlaps
1470         horizontally.
1472         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1473         udodo!hans@relay.NL.net).
1474         * groff/configure.in: Call it.
1476         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1477         * groff/configure.in: Call it.
1478         * include/lib.h: Conditionalize declaration of pclose.
1480         * troff/div.cc (last_page_number): New global variable.
1481         (top_level_diversion::begin_page): Exit if we just printed the
1482         last page.
1483         * troff/div.h (last_page_number): Declare it.
1484         * troff/input.cc (parse_output_page_list): Set last_page_number.
1486         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1487         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1488         tmac/tmac.X: Likewise.
1489         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1490         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1492 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1494         * tmac/doc-ditroff (hK): Remove groff specific code which
1495         prevented page-breaks between separate manual entries.  If this is
1496         the first page, don't set the page number to 1.
1498         * acgroff.m4 (GROFF_POSIX): New macro.
1499         * configure.in: Use it.
1501         * troff/node.cc (class real_output_file,
1502         real_output_file::real_output_file,
1503         real_output_file::~real_output_file): Conditionalize use of
1504         popen/pclose on POPEN_MISSING.
1505         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1506         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1507         (pipe_source): Similarily.
1509         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1511         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1512         presence of declarations by trying to compile example with
1513         conflicting declarations.  (gcc only gives a warning for missing
1514         declarations.)
1516 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1518         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1519         (from Ulrich Lauther).
1521 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1523         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1525 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1527         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1528         pointers and ints have different sizes.
1530 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1532         * tmac/tmac.s (par*env-init): Call par@reset.
1534 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1536         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1537         tag.
1538         (par*push-tag-env, par*pop-tag-env): New macros.
1540 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1542         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1543         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1545         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1546         comment.  Include <time.h>.
1548 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1550         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1551         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1552         lines.
1554 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1556         * troff/input.cc (read_request): Only print a prompt if reading
1557         from the terminal.  Also clearerr on EOF if reading from the
1558         terminal.  Declare isatty.
1560 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1562         * refer/label.y: Rename map_t to map_func and extractor_t to
1563         extractor_func.
1565 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1567         * include/assert.h: Don't use volatile.
1568         * libgroff/assert.cc: Likewise.
1570 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1572         * troff/input.cc (abort_request): Look at character in tok before
1573         calling get_copy().
1575 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1577         * troff/troff.h (NO_RETURN): Deleted.
1578         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1579         * troff/input.cc (exit_troff): Likewise
1581         * Makefile.in: Remove `Making ...' messages since GNU make now
1582         gives these. 
1584         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1586 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1588         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1589         to constant 1 inch.
1591 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1593         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1595 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1597         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1598         MARK_REG if there was no left delimiter.
1600 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1602         * pic/troff.cc (troff_output::text): Set line thickness to
1603         relative before outputting text.
1605         * tmac/tmac.e (@k): Don't zero ?T.
1606         ((z): Likewise.
1608 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1610         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1612 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1614         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1615         Paul Eggert).
1617 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1619         * troff/input.cc (ignoring): New variable.
1620         (ignore): Set ignoring during call to do_define_macro.
1621         (do_define_macro): Clear ignoring before interpolating terminating
1622         macro.
1623         (copy_mode_error): New function.
1624         (get_char_for_escape_name, read_long_escape_name,
1625         interpolate_arg): Use copy_mode_error.
1626         (warning_table): Add WARN_IG.
1627         * troff/troff.h (WARN_IG): Declare.
1628         (WARN_TOTAL): Change accordingly.
1630         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1631         * groff/groff.cc (strsignal): Delete declaration.
1633 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1635         * troff/div.cc (page_offset): Use 'm' as default scaling.
1637 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1639         * nroff/nroff.sh: Ignore -u.
1641 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1643         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1645 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1647         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1648         drawing box.
1649         (B2): With -Tascii, leave additional vertical space before
1650         and after. Ensure that the left and right indent is restored to
1651         what it was even if the point size changes.  Don't call
1652         par@finish. Change the indent, line length and title length
1653         directly.  With -Tascii, make the width of the box 1n less.
1654         (B1): Remember 1n at the current point size.  Don't call
1655         par@reset.  Change the indent, line length and title length
1656         directly.  Ensure that the temporary indent is preserved.
1657         (par*box-mark-top): Turn off no spacing mode.
1659 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1661         * Makefile.in (dist): Use .gz suffix.
1663 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1665         * troff/input.cc (main): Add return 0.
1666         * pic/main.cc (main): Use return instead of exit.
1667         * tbl/main.cc (main): Likewise.
1668         * eqn/main.cc (main): Likewise.
1669         * grops/ps.cc (main): Likewise.
1670         * grotty/tty.cc (main): Likewise.
1671         * groff/groff.cc (main): Likewise.
1672         * grodvi/dvi.cc (main): Likewise.
1673         * refer/refer.cc (main): Likewise.
1674         * indxbib/indxbib.cc (main): Likewise.
1675         * lkbib/lkbib.cc (main): Likewise.
1676         * soelim/soelim.cc (main): Likewise.
1677         * addftinfo/addftinfo.cc (main): Likewise.
1678         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1679         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1681         * troff/token.h (process_input_stack): Don't declare as static.
1682         * troff/input.cc: Likewise.
1684         * troff/node.c (invalidate_fontno): Make it a static member of
1685         class font_family.  Change callers.
1686         * troff/node.c: Change declaration.
1688         * tbl/main.cc (struct input_entry_format): Add explicit public
1689         specifier.
1690         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1691         struct double_hline_stuff): Likewise.
1692         * tbl/table.h (struct entry_format): Likewise.
1693         * pic/object.h (struct saved_state): Likewise.
1695         * include/stringclass.h: Add forward declarations of friend
1696         functions that are later declared as inline.  Don't include inline
1697         specifier in friend declaration.
1699         * libgroff/lib.h: Declare popen and pclose.
1700         * acgroff.m4 (GROFF_POPEN): New macro.
1701         * configure.in: Call it.
1703         * include/lib.h (PI): New constant. Undef first if necessary.
1704         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1705         * grops/ps.cc (degrees, radians): Likewise.
1706         * libgroff/font.cc (font::get_skew): Likewise.
1708         * grops/ps.cc (is_ascii): New function.
1709         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1710         isprint.
1711         (ps_printer::define_encoding): Use csspace.
1712         * libgroff/strtol.c (ISASCII): New macro.
1713         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1714         Use ISASCII rather than isascii.
1715         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1716         * libgroff/cset.cc: Likewise.
1717         * libdriver/input.cc: Include cset.h.
1718         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1719         than isdigit().
1721         * refer/refer.cc (main): Use %ld rather than %d for longs.
1723         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1724         S_ISREG macro.
1726         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1728 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1730         * troff/input.cc (hyphenation_code): Skip white space between
1731         char/code pairs.
1733 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1735         * tbl/table.h (table::entry_list_tailp): New member.
1736         (table::table): Initialize it.
1737         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1738         behaviour.
1740 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1742         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1743         with negative horizontal positions. Remove casts of glyph::hpos to
1744         int.
1745         (USHRT_MAX): Delete definition.
1746         (SHRT_MAX, SHRT_MIN): New definitions.
1747         (glyph::hpos): Change type to short.
1748         (tty_printer::end_page): Output multiple backspaces if necessary.
1749          Remove casts of glyph::hpos to int.
1750         
1751 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1753         * tmac/tmac.s (@RT): New definition.
1755 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1757         * refer/refer.cc (do_file): Make sure current_filename is set when
1758         filename is "-".
1760         * pic/common.cc (common_output::dot_line): Handle zero length
1761         lines.
1763 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1765         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1766         (par@init): Initialize \n[HY].
1768 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1770         * troff/dictionary.cc (dictionary::remove): Continue when
1771         r < j < i.
1773 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1775         * Makefile.com (.y.cc): Avoid ending up with two versions of
1776         $(YTABH).
1778 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1780         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1781         (\(,C): Likewise.  Also fix typo.
1783 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1785         * lib.h: Delete extraneous semi-colon.
1787         * Add pso request: `so' from a pipe.
1788         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1789         (file_iterator::close): New function.
1790         (file_iterator::~file_iterator, file_iterator::next_file): Use
1791         file_iterator::close.
1792         (file_iterator::backtrace): Say `process' rather than `file' when
1793         the stream is popened.
1794         (pipe_source): New function.
1795         (init_input_requests): Bind ".pso" to pipe_source.
1797 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1799         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1801         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1802         digits in lower case.
1804 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1806         * Version 1.08 released.
1808         * Makefile.in (dist): Insert || true after ln -s commands that
1809         might fail.
1811         * mm: Update to mm 1.16.
1813         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1814         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1815         SH_SCRIPT_SED_CMD.
1816         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1817         MDEFINES.
1818         * nroff/Makefile.sub (nroff): New target.
1819         (install_data): Install nroff.
1820         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1821         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1823 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1825         * eqn/Makefile.sub (neqn): Add chmod +x.
1827         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1829 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1831         * troff/input.cc (string_iterator::string_iterator()): Initialize
1832         lineno and count.
1834 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1836         * troff/div.cc (macro_diversion::space,
1837         top_level_diversion::space): Don't set high_water_mark.
1838         (macro_diversion::output, top_level_diversion::output): Don't
1839         include post line space in high water mark.
1841 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1843         * eqn/eqn.y: Don't define YYDEBUG.
1844         * pic/pic.y: Likewise.
1846 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1848         * tmac/tmac.e ([3): Add space after comma following editors.
1849         Change double spaces to single spaces.
1850         ([4): Change double spaces to single spaces.
1852         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1853         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1854         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1855         after %!PS-Adobe- (for Newsprint).
1857         * troff/div.cc (top_level_diversion::begin_page): When
1858         before_first_page is 1, set page_number to 1.
1860 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1862         * eqn/box.cc (box::top_level): Protect equation with \&.
1864 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1866         * groff/groff.cc (possible_command::set_name): Delete old name.
1868         * groff/groff.cc (possible_command::~possible_command): Use
1869         a_delete.
1871         * troff/node.cc (troff_output_file::begun_page): New member.
1872         (troff_output_file::troff_output_file): Initialize it.
1873         (troff_output_file::really_begin_page): Only output V command if a
1874         page has been begun.
1876         * pic/pic.y (placeless_element): Delete argument to PRINT after
1877         use.
1879 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1881         * Make wrapman work.
1882         * troff/div.h (class top_level_diversion): Replace
1883         first_page_begun by before_first_page (with opposite sense).
1884         * Change first_page_begun to before_first_page inverting sense.
1885         * troff/div.cc (class nl_reg): New class.
1886         (init_div_requests): Use class nl_reg for \n(nl.
1887         (top_level_diversion::begin_page): Don't call
1888         output_file::begin_page if before_first_page is 2;
1889         reset before_first_page afterwards.  If have_next_page_number is
1890         false, then always increment page_number.
1891         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1892         Restore compatibility mode after loading, and then disable
1893         compatibility mode in TH.
1895 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1897         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1898         past last line.
1899         * troff/node.h (output_file::trailer): Declare.
1900         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1901         * troff/node.cc (output_file::trailer): New function.
1902         (troff_output_file::~troff_output_file): Move most code into...
1903         (troff_output_file::trailer): New function.
1904         (class troff_output_file): Delete page_length member. Declare
1905         trailer().
1906         (troff_output_file::really_begin_page): Use current page length
1907         for final V command.
1909         * tbl/main.cc (struct options): New decimal_point_char member.
1910         (options::options): Initialize this.
1911         (process_options): Implement decimalpoint option.
1912         (process_data): Pass decimal_point_char option to table::table.
1913         * tbl/table.h (class table): New decimal_point_char member.
1914         (table::table): Add additional argument.
1915         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1916         second argument specifying decimal point character.  Use this
1917         instead of '.'.
1918         (table::table): Initialize decimal_point_char.
1919         (table::add_entry): Change call to find_dot.
1921         * troff/input.cc (get_copy, token::next): Implement \V.
1922         (interpolate_environment_variable): New function.
1924 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1926         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1927         * pic/pic.y: Likewise.
1929         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1930         Add casts to int.
1931         * refer/ref.cc (reference::insert_field, reference::delete_field):
1932         Likewise.
1933         * troff/number.cc (parse_term): Likewise.
1935         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1936         * configure.in: Use GROFF_PROG_YACC.
1938         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1939         and g++.
1940         * Makefile.in (OPTIMIZE): New define.
1941         (DEBUG): Empty by default.
1942         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1944         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1945         (GROFF_ARRAY_DELETE): Likewise.
1946         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1948         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1950         * devps/psstrip.sed: Use different delimiter on last line (so that
1951         it works with BSD 4.4 sed.)
1953 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1955         * devps/psstrip.sed: Delete comments.
1957         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1958         optind, opterr, optarg.
1959         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1960         opterr, optarg.
1962 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1964         * Makefile.in (check): Dummy target.
1966 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1968         * Version 1.07 released.
1970         * Integrate mm 1.11.
1972         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1973         where start_col was meant.
1975 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1977         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1979 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1981         * troff/input.cc (token::next): Make \z\o'...' and similar things
1982         work.
1984         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1985         constants.
1986         (environment): Add margin_character_flags member.
1987         * env.cc (environment::environment(symbol),
1988         environment::environment(const environment *): Initialize
1989         margin_character_flags.
1990         (margin_character): Rewrite.
1991         (environment::output_line): Add a margin character if
1992         margin_character_flags is non-zero.  Turn off the
1993         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1994         zero, use margin_character_node without copying and then set
1995         margin_character_node to 0.
1997         * devps/DESC.in: Change minimum size to 1000.
1999 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2001         * troff/symbol.h (symbol::hash): Change return type to unsigned
2002         long.
2003         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2004         Add casts to int.
2006         * test-groff: Use -r rather than -x.
2008         * grops/psfig.diff: Include in distribution again.
2010 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2012         * Makefile.in (dist): Use gzip.
2014 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2016         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2017         unistd.h as well as in stdlib.h.
2018         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2019         defined; otherwise include <sys/types.h> and <unistd.h> if
2020         UNISTD_H_DECLARES_GETOPT is defined.
2022         * configure.in: use builtin(include, ... rather than include(...
2023         * configure: Regenerate with autoconf 1.3.
2025         * libdriver/print.cc (printer::adjust_arc_center): Use new
2026         algorithm suggested by Andy Fyfe.
2028         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2029         * include/printer.h: Declare this.
2030         * grops/ps.cc (ps_printer::draw): Use it.
2031         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2033 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2035         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2037 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2039         * eqn/main.cc (main): Handle "eqn -".
2041 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2043         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2045         * mm: Integrate version 1.08.
2047         * pic/troff.cc (troff_output::finish_picture): Set
2048         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2049         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2050         if it's not defined. Check whether the register is non-zero rather
2051         than whether it's not defined.
2052         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2054         * indxbib/indxbib.cc: Move all signal handling into...
2055         * indxbib/signal.c: New file.
2056         * configure.in: Call AC_RETSIGTYPE.
2058         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2059         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2060         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2062         * troff/input.cc (token::token, token::operator=): Work round SGI
2063         C++ bug.
2064         * pic/object.cc (position::position): Likewise.
2066 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2068         * pic/pic.h: Move declaration of hypot().
2070 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2072         * pic/pic.h: Declare hypot().
2074         * pic/pic.h: Define M_PI if necessary.
2076 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2078         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2079         `.ta T' feature.
2081         * devps/prologue.ps (RE): Handle the possibility that the old font
2082         doesn't have a FontName entry.
2084 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2086         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2087         (@C): Use @fam not fam.
2089 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2091         * lookbib/lookbib.cc (main): Change type of start to const char *.
2092         * lkbib/lkbib.cc (main): Likewise.
2094         * eqn/lex.cc (definition::definition): Don't use member
2095         initializer syntax for members of anonymous unions.
2097         * troff/input.cc (input_stack::backtrace): Change type of to const
2098         char *.
2100 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2102         * include/stringclass.h (class string): Declare inline friend
2103         functions as inline in class declaration.
2104         * troff/hvunits.h (class hunits, class vunits): Likewise.
2105         * include/refid.h (class reference_id): Likewise
2106         * troff/troff.h (points_to_units(units), scale(units, double)):
2107         Delete declarations.
2108         * libdriver/input.cc (get_char): Delete declaration.
2109         * include/lib.h: Change 2nd argument of getopt from const char **
2110         to char **.
2111         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2112         char **' before assigning to a `const char **'.
2113         * tbl/table.cc: Delete extra declarations of prints().
2115 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2117         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2118         char **' before assigning to a `const char **'.
2120         * libgroff/errarg.cc (errarg::errarg): Don't use member
2121         initializer syntax for members of anonymous unions.
2123 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2125         * mm: Integrate version 1.07.
2127 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2129         * troff/input.c (translate2): Rename to
2130         (translate_no_transparent).
2131         (init_input_requests): Rename tr2 to trnt.
2133 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2135         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2136         (charinfo::set_translation, charinfo::set_special_translation):
2137         Add second argument that specifies value for
2138         transparent_translate.
2139         (charinfo::get_translation, charinfo::get_special_translation):
2140         Add optional second argument that specifies whether translation is
2141         being used for transparent throughput.
2142         * troff/input.cc (charinfo::set_translation,
2143         charinfo::set_special_translation): Handle second argument.
2144         (charinfo::charinfo): Initialize transparent_translate.
2145         (translate): Split main part off into
2146         (do_translate): New function.  Pass argument saying whether
2147         translation applies to transparent throughput.
2148         (translate2): New request.
2149         (init_input_requests): Bind translate2 to `tr2'.
2151 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2153         * tbl/table.h (class table): Add `nokeep' flag.
2154         * tbl/main.cc (process_options): Handle `nokeep' option.
2155         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2156         table::do_bottom): Don't output keep/release macro definitions or
2157         calls when `nokeep' option has been specified.
2159 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2161         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2163 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2165         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2166         block_entry::divert, alphabetic_block_entry::divert): Add extra
2167         argument giving column separation.
2168         (table::compute_widths): Pass column separation to
2169         table_entry::divert().
2170         (block_entry::do_divert): If an entry spans multiple columns and a
2171         minimumum width has been specified for each column, then set the
2172         line length to the sum of the widths (plus possibly the column
2173         separations).
2175         * troff/input.cc (set_escape_char): Don't set the escape_char
2176         until after calling has_arg().
2178 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2180         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2181         case.
2183         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2184         in case where r > nrows - 1.
2186         * tbl/table.cc (BODY_HEIGHT): Deleted.
2187         (LINE_SEP): New definition.
2188         (table::print_single_hline, table::print_double_hline,
2189         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2190         table::do_row, table::do_top): Use LINE_SEP space before a line
2191         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2193         * tbl/table.cc (text_entry::print_contents): New function.
2194         (text_string_name, right_text_string_name): Deleted.
2195         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2196         (simple_text_entry::do_width, numeric_text_entry::do_width,
2197         alphabetic_text_entry::do_width): Don't store the contents of the
2198         entry in a string.
2199         (left_text_entry::simple_print, right_text_entry::simple_print,
2200         center_text_entry::simple_print,
2201         alphabetic_text_entry::simple_print,
2202         numeric_text_entry::simple_print): Print the entry directly
2203         instead of using the stored string.
2205 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2207         * devps/Makefile: Strip PostScript files.
2208         * devps/prologue: Rename to...
2209         * devps/prologue.ps.
2210         * devps/psstrip.sed: New file.
2211         * devps/download: Use .pfa rather than .ps for installed versions
2212         of fonts.
2214 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2216         * troff/env.cc (input_trap): Give a warning if the argument is out
2217         of range.
2219         * troff/env.cc (adjust): Treat negative argument as missing. Round
2220         argument > 5 down to 5.
2222         * troff/env.cc (center, right_justify): Make negative argument zero.
2224         * troff/div.cc (page_offset, vertical_position_traps): Treat
2225         invalid argument as missing.
2226         * troff/env.cc (line_spacing, line_length, title_length, indent,
2227         underline, hyphen_line_max_request, control_char,
2228         no_break_control_char, widow_control_request, adjust, input_trap,
2229         point_size): Likewise.
2230         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2231         constant_space): Likewise.
2232         * troff/input.cc (compatible, shift, warn_request,
2233         set_escape_char): Likewise.
2235         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2236         * tbl/table.cc (table::table): Likewise.
2238         * Makefile.dev (install_dev): depends on $(DEVFILES).
2240 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2242         * devX75, devX75-12, devX100, devX100-12: New directories.
2243         * Makefile.in: Add these to DEVDIRS.
2245         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2246         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2247         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2248         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2249         targets.
2250         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2251         (uninstall): New target.
2252         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2253         uninstall_prog, uninstall_dev): New targets.
2255         * troff/div.cc (return_request): Treat an invalid argument as
2256         missing.
2258 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2260         * tmac/tmac.e ((f): Set up the environment even when there's a
2261         current diversion.  Transperently throughput a call to @N.
2262         (@N): New macro.
2264 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2266         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2267         up to vertical resolution.
2269         * tbl/table.cc (table::do_row): Change row number after printing
2270         stuff list.
2272         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2274 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2276         * Rename CHANGES to NEWS.
2278 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2280         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2282 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2284         * man.ultrix: Removed.
2286 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2288         * Makefile.comm (extraclean): Delete files whose names begin with
2289         `='.
2291         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2292         aligned text.
2294 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2296         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2297         * troff/div.cc (page_length, need_space, space_request): Treat
2298         invalid optional argument as missing.
2299         * troff/env.cc (number_lines): If the first argument is present
2300         but not a number, turn on line numbering, don't change the next
2301         line number and parse the remaining arguments.
2303         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2305 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2307         * eqn/box.h: Change declaration accordingly.
2308         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2309         the specified size was bad but don't give an error.  Check for
2310         overflow.
2311         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2312         * eqn/lex (do_size): Likewise.
2314 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2316         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2317         compatible headers.
2319 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2321         * tbl/table.cc (table::init_output): Improve error message when
2322         table won't fit on one page.
2324 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2326         * pic/troff.cc (troff_output::start_picture): Generate line
2327         containing a horizontal motion equal to the width of the picture.
2329         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2330         using GROFF_COMMAND_PREFIX environment variable.
2332 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2334         * mdate.sh: Use $NF rather than $(NF).
2336 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2338         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2340         * eqn/main.cc (main): Output code to check that geqn was given the
2341         correct -T option.
2343 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2345         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2346         `ln -s ../Makefile .; make; rm -f Makefile'.
2348         * troff/hyphen: Rename to...
2349         * troff/hyphen.us:
2350         * troff/input.cc (main): Delete -H option. Don't call
2351         read_hyphen_file().
2352         * troff/env.cc: Include searchpath.h and macropath.h.
2353         (exception_dictionary): Deleted.
2354         (ht): Deleted.
2355         (read_hyphen_file): Deleted.
2356         (hyphenation_language): New struct.
2357         (class trie, class hyphen_trie): Move declarations up.
2358         (trie_node::~trie_node): Deleted.
2359         (trie::delete_trie_node): New function.
2360         (trie::do_delete): New pure virtual function.
2361         (hyphen_trie::do_delete): New function.
2362         (trie::~trie): New function.
2363         (hyphen_trie::~hyphen_trie): New function.
2364         (trie::clear): No need to chcek that tp is not 0.
2365         (current_language, language_dictionary): New variables.
2366         (hyphen_word): Give an error if no current language.  Use
2367         exceptions dictionary in current language.
2368         (hyphen_trie::read_patterns_file): Find file using macro_path.
2369         Allow comments (starting with %) in patterns file.  Don't make it
2370         a fatal error if the file can't be found.
2371         (hyphenate): Return if no current language.  Get the exceptions
2372         dictionary and the hyphenation patterns from the current language.
2373         (set_hyphenation_language): New variable.
2374         (hyphenation_patterns_file): New function.
2375         (hyphenation_language_reg): New class.
2376         (hyphenation_language_reg::get_string): New function.
2377         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2378         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2379         register.
2380         * groff/groff.cc (main, help, synopsis): Delete -H option.
2381         * include/Makefile.sub: Don't define HYPHENFILE.
2382         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2383         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2384         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2385         hyphenation patterns.
2387 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2389         * eqn/neqn.sh: New file.
2390         * eqn/Makefile.sub: Handle neqn.sh.
2392         * eqn/eqn.h: Declare `nroff' variable.
2393         * eqn/box.cc (param_table): Add `nroff' param.
2394         (nroff): Define it.
2395         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2396         variable.
2397         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2399         * troff/troff.h (WARN_FONT): New warning.
2400         (WARN_TOTAL): Change accordingly.
2401         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2402         (warning_table): Add WARN_FONT.
2403         * troff/node.cc (mount_font_no_translate): Pass argument to
2404         font::load_font.  If this is non-zero, give a warning.
2405         Don't give an error message when accessing a font that has already
2406         been found to be invalid.
2407         * include/font.h (font::load, font::load_font): Add additional
2408         optional argument which suppresses error message if the font is
2409         not found.
2410         * libgroff/font.cc (font::load_font): Handle additional argument.
2411         (font::load): Add additional argument. If this is non-null, set it
2412         to 1 and don't give error message.
2414         * include/printer.h (printer::end_page): Add argument giving
2415         length of page.
2416         * libdriver/input.cc (do_file): Pass this.
2417         * grops/ps.cc (ps_printer::end_page): Add argument.
2418         * grodvi/dvi.cc (dvi_printer::end_page,
2419         draw_dvi_printer::end_page): Add argument.
2420         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2421         columns_per_page members. New member nlines.
2422         (DEFAULT_LINES_PER_PAGE): Deleted.
2423         (tty_printer::tty_printer): Don't compute lines_per_page from
2424         font::paperlength. Don't compute columns_per_page from
2425         font::paperwidth.
2426         (tty_printer::add_char): Don't check horizontal position against
2427         columns_per_page. Grow glyphs vector if neccessary.
2428         (tty_printer::end_page): Add argument giving page_length in units.
2429         Discard lines past end of page.
2431 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2433         * tmac/tmac.tty-char: Fix definition of \(/l.
2435         * tmac/tmac.X: Define \(en.
2437 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2439         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2440         lpq, then use lp rather than lpr.
2442         * tmac/tmac.s (par@reset): Don't call `ad'.
2443         (par*env-init): Call `ad'.
2445 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2447         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2448         date.
2450         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2451         * indxbib/indxbib.cc: Likewise.
2453 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2455         * libgroff/putenv.c: New file.
2456         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2457         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2458         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2459         stdlib.h with AC_HAVE_HEADERS.
2461 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2463         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2464         does not exist.
2466 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2468         * eqn/box.cc (gsize): Make it an int.
2469         (set_gsize): Parse argument handling increment or decrement.
2470         (box::top_level): Convert gsize to a string.
2472         * troff/input.cc (exit_troff): Make buf unsigned char [].
2473         Call to make_temp_iterator casts buf to char*.
2475         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2477         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2478         * Makefile.cpg (depend.temp): Likewise.
2480         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2482         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2484 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2486         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2488 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2490         * Version 1.06 released.
2492         * Integrate mm 1.04.
2494 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2496         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2498 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2500         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2501         ligatures command.
2502         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2503         afmtodit. Regenerate.
2505         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2506         @f back past the current position.
2508         * tmac/tmac.e: Change calls to @R so that comments are not part of
2509         arguments.
2511 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2513         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2515         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2516         check that we can link a call to a function declared in <stdio.h>.
2517         (GROFF_UNISTD_H): New macro.
2518         * configure.in: Call it.
2519         * Makefile.in: Document it.
2520         * include/posix.h: New file.
2521         * troff/troff.h: Don't include <osfcn.h>
2522         * troff/input.cc: Include posix.h.
2523         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2524         osfcn.h.
2525         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2526         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2527         <fcntl.h>.
2528         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2529         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2530         * libbib/search.cc (O_RDONLY): Delete definition.
2531         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2532         Don't include <osfcn.h>.
2534         * acgroff.m4 (GROFF_TIME_T): New macro.
2535         * configure.in: Call it.
2536         * Makefile.in: Document it.
2538         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2539         * configure.in: Call it.
2540         * Makefile.in: Document -DTRADITIONAL_CPP.
2541         * include/ptable.h: Don't include generic.h.
2542         (name2): Define it.
2544         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2545         Afterwards remove [T1 and [T2.
2546         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2547         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2548         (ref*add-T2): Renamed from ref*add-T.
2549         (ref*add-T1): New macro.
2551 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2553         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2555         * libbib/index.cc: Include <fcntl.h>.
2556         (O_RDONLY): Define if necessary.
2557         (make_index_search_item, index_search_item_iterator::get_tag,
2558         index_search_item::check_files): Use O_RDONLY.
2559         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2560         (O_RDONLY): Define if necessary.
2561         (search_list::add_file): Use O_RDONLY.
2562         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2563         <sys/stat.h>.
2564         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2565         (main): Use these.
2567         * libbib/index.cc (S_ISREG): Define it if necessary.
2568         (index_search_item::load): Use S_ISREG.
2570         * include/driver.h: Include <errno.h>.
2572 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2574         * eqn/box.cc (body_height): Increase default value to 85.
2575         (body_depth): Increase default value to 35.
2577 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2579         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2580         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2581         protected from expansion with \E.
2583         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2585         * Makefile (Makefile): New target.
2587         * Makefile.sub (configure, distfiles): New targets.
2589         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2590         construct.
2592 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2594         * eqn/box.cc (param_table): Add body_height and body_depth.
2596         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2598 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2600         * psbb/Makefile.sub: Don't link with libgroff.a.
2602         * acgroff.m4 (GROFF_PUTENV): New macro.
2603         * configure.in: Call GROFF_PUTENV.
2604         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2605         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2606         is defined.
2608         * troff/env.cc (distribute_space): Rename force_forward argument
2609         to force_reverse.  Reverse the list if force_reverse is true.
2611 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2613         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2615         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2616         height or depth to be negative.  Guard against SUP_RAISE quantity
2617         being negative.
2619 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2621         * devps/generate/textmap: Add `an' (arrowhorizex).
2622         * tmac/tmac.ps: \(an overlaps horizontally.
2623         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2625         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2626         * devps/textmap: Add arrowvertex.
2627         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2628         updownarrow delimiters.
2629         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2631         * tbl/table.cc (simple_entry::position_vertically,
2632         block_entry::position_vertically):  For a centered entry, perform
2633         the motion in two stages.
2635         * refer/refer.cc (split_punct): Don't call lookup_token if there
2636         is no token.
2638 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2640         * troff/input.cc (token::next): Delete token_node after copying
2641         token.
2643         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2644         cur_point_size.
2646         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2648         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2650 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2652         * grops/ps.cc (usage): -b option takes an argument.
2654         * devps/prologue (PLG): New procedure.
2655         * grops/ps.cc (main, usage): New -g option.
2656         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2657         length using PLG.
2659 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2661         * include/cset.h: Include <limits.h> if we have it.
2663         * libgroff/illegal.cc: New file.
2664         * include/lib.h (illegal_input_char): Use table.
2665         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2666         * pic/lex.cc (ARG1): Renumber to 14.
2667         * eqn/lex.cc (ARG1: Likewise.
2669         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2670         (eg 1.05.90) correctly.
2672 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2674         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2675         Rename $r and $R registers to $v and $V.
2676         ($r, $R): Initialize to 0.
2677         (@v, @V): New macros.
2678         (sz): Call @v.
2679         (@M): Call @V.
2681         * troff/input.cc (main, usage): Add -R option that says not to
2682         load troffrc.
2683         * eqn/main.cc (main, usage): Rename -n to -R.
2685 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2687         * devps/DESC.in: Leave font positions 5-9 blank.
2688         * devdvi/DESC.in: Likewise.
2690         * grog/grog.pl: Handle `.PS <file' correctly.
2692         * troff/input.cc (input_stack::push): Improve error message when
2693         input stack limit exceeded.
2695 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2697         * refer/refer.cc (main): Fix typo in handling of `a' option.
2699         * refer/refer.cc (do_bib): In state START after a newline remain
2700         in state START.
2702         * groff/groff.sh: Deleted.
2703         * groff/Makefile.sub: Delete handling of groff.sh.
2705         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2706         to determine whether to use \X'ps:...'.
2707         * tmac/troffrc: Set 0p register to 0.
2708         * tmac/tmac.ps: Set 0p register to 1.
2710         * groff/groff.cc: Support -X option. Give warning for -TXps and
2711         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2712         * tmac/troffrc: Support -r.X=1.
2714         * pic/troff.cc (troff_output::dot): Don't test
2715         zero_length_line_flag.
2717 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2719         * include/lib.h: Declare getopt() and friends unless
2720         STDLIB_H_DECLARES_GETOPT is defined.
2722         * doc/chars.tr: Delete.
2723         * man/groff_char.man: New file.
2725 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2727         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2728         user has changed register format.
2730 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2732         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2733         `postpro' command in DESC file.  Get spooler command from `print'
2734         command in DESC file.  Execute spooler command with /bin/sh.
2736         * groff/groff.cc: Split Unix-specific parts into...
2737         * groff/pipeline.c: New file.
2739         * LICENSE: Delete.
2740         * COPYING: New file.
2741         * all files: Update copyright notices.
2743         * Rearrange files.  Redo Makefiles.  Use autoconf.
2745 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2747         * troff/input.c (charinfo_to_node_list): Interpret character
2748         definition with escape_char of `\'.
2750 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2752         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2753         Define INT_DIGITS as big enough for 64-bit integer.
2754         * lib/strtol.c: Don't include lib.h.
2755         * lib/lib.h: Delete ifdef __cplusplus stuff.
2757 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2759         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2760         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2761         get DESC from current directory.
2763 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2765         * tbl/main.c (main): Always reset the line number when reading
2766         from stdin.
2768         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2769         table::define_bottom_macro, table::do_row, table::do_top): Round
2770         vertical spacing up to vertical resolution.
2772 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2774         * ps/ps.h (enum resource_type): Avoid comma at end of
2775         enumerator-list.
2776         * dvi/dvi.c (class dvi_printer): Likewise.
2777         * dvi/tfmtodit.c (gf::load): Likewise.
2778         * refer/label.y (struct expression): Likewise.
2779         * refer/refer.c (class label_processing_state): Likewise.
2780         * refer/indxbib.c (do_file): Likewise.
2781         * troff/troff.c (enum warning_type): Likewise.
2782         * tbl/main.c (process_data): Likewise.
2783         * troff/charinfo.h (class charinfo):
2785 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2787         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2789 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2791         * groff.c: Move to new groff subdirectory.
2792         * groff/Makefile: New file.
2793         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2795         * man/mdate.sh: Use ls -L if supported.
2797         * Consolidate all header files produced by gendef into lib/defs.h.
2798         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2799         Don't include path.h.
2800         * lib/Makefile (path.h): Don't generate.
2801         * troff/input.c: Include defs.h. Don't include config.h.
2802         * troff/Makefile (config.h): Don't generate.
2803         * refer/index.h: Don't include suffix.h.
2804         * refer/index.c: Include defs.h.
2805         * refer/indxbib.c: Include defs.h.
2806         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2807         defs.h.
2808         * refer/Makefile (suffix.h, path.h): Don't generate.
2809         * groff.c: Don't include config.h. Include defs.h.
2810         * Makefile (config.h): Don't generate.
2811         (lib/defs.h): Generate.
2812         (topclean): Remove lib/defs.h.
2814 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2816         * lib/malloc.c, lib/getpagesize.h: Deleted.
2817         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2818         related stuff.
2819         * lib/Makefile: Delete malloc-related stuff.
2820         * lib/new.c: Workaround COOKIE_BUG if necessary.
2822         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2823         needed header files directly.
2824         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2825         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2827 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2829         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2830         argument.
2831         * lib/font (font::load_desc, font::load): Don't split argument of
2832         unknown command.
2833         (font::handle_unknown_font_command): Change type.
2834         * ps/ps.c (ps_font::handle_unknown_font_command,
2835         handle_unknown_desc_command): Change type.
2836         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2838 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2840         * lib/font.h (font::handle_unknown_font_command): Add file and
2841         line arguments.
2842         * lib/font.c (font::handle_unknown_font_command):
2843         * ps/ps.c (ps_font::handle_unknown_font_command):
2844         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2845         lineno arguments.  Use _with_file_and_line functions for error
2846         reporting.
2848         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2849         data member.
2850         * lib/font.c (font::set_unknown_desc_command_handler): New
2851         function.
2852         (font::load_desc): For unknown commands, call
2853         unknown_desc_command_handler if not null.
2854         * lib/font.h (class font): Declare them.
2855         (FONT_COMMAND_HANDLER): New typedef.
2856         * ps/ps.c (handle_unknown_desc_command): New function.
2857         (main): Set bflag if we had a -b option. Call
2858         font::set_unknown_desc_command_handler.
2859         (broken.h): Don't include.
2860         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2861         submake 
2862         * ps/devps/Makefile: Add `broken' command to DESC file using
2863         BROKEN_SPOOLER_FLAGS.
2865         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2867         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2869         * macros/tmac.e (@R, @S): New macros.
2870         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2871         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2872         Declare $H, $[0-9], .. macros with @S.
2873         Declare |0, |1, |2, |3 strings with @S.
2875         * macros/tmac.e (@S): Rename to @U.
2877         * macros/tmac.e (@z): Define @b and bp as empty instead of
2878         deleting them,
2880         * macros/tmac.e (@m): Deleted.
2881         (@h): Don't call @m.
2882         (@z): Don't set @m trap.
2884         * macros/tmac.e ($h, $f): Define |z as empty string.
2886         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2887         (@q): Likewise.
2889         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2890         removing them.
2891         ()f): Likewise for * register.
2893         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2894         argument is missing, don't change $R.  Call sr with three
2895         arguments when initializing.
2897 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2899         * macros/tmac.e (sr): New macro.
2900         Initialize $r and $R using sr.
2902         * macros/tmac.e (,): Delete \*(#[.
2904         * troff/env.c (set_tabs): Read the tab type even if the position
2905         is bad.  Allow the position of the first tab stop to be negative.
2907 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2909         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2910         _POSIX_VERSION.
2911         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2912         rather than -DPATHCONF_MISSING.
2913         * Makefile: Get rid of PATHCONF_MISSING.
2915         * refer/map.c: New file.
2916         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2917         to map_len.
2918         * refer/Makefile: Handle map.c.
2919         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2921 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2923         * Makefile: RANLIB should be `true' if there is no ranlib.
2924         * lib/Makefile (libgroff.a): Simplify.
2925         * driver/Makefile (libdriver.a): Simplify.
2927         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2928         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2929         defined.
2931 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2933         * troff/env.c (compare_ranges): Declare as extern "C".
2935         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2937         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2939 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2941         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2942         but conditionalize use of \X based on \*(.T.
2943         (grops_output::*): Deleted.
2944         * pic/output.h: Delete declaration of make_grops_output.
2945         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2946         by default. -n sets it to 0.
2947         (usage): Corresponding changes.
2948         * groff.c (main): Don't pass -x or -p to pic.
2949         * groff.sh: Likewise.
2951         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2952         to be non-zero.
2954         * ps/devps/afmtodit: Change calculation of asc_boundary and
2955         desc_boundary.  Make these bounds inclusive.
2956         * ps/devps: Regenerate font files.
2958 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2960         * macros/tmac.latin1: New file.
2961         * macros/tmac.tty-char: Use tmac.latin1.
2962         (tmac.tty-tr): Deleted.
2963         * macros/Makefile: Install tmac.latin1.
2964         * macros/tmac.dvi: Use tmac.latin1.
2965         * macros/troffrc: Translate \[char160] onto no-break space here.
2966         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2968 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2970         * macros/tmac.Xps: Use `do' request.
2972         * macros/tmac.ps: Use `do' request.
2974         * macros/tmac.e (@C): Use `do' request.
2976         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2977         * macros/Makefile: Install tmac.X*.
2979         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2980         * tty/Makefile: Don't install tmac.tty*.
2981         * macros/Makefile: Install tmac.tty*.
2983         * dvi/tmac.dvi: Move to macros.
2984         * dvi/Makefile: Don't install tmac.dvi.
2985         * macros/Makefile: Install tmac.dvi.
2987         * ps/tmac.ps*: Move to macros.
2988         * ps/Makefile: Don't install tmac.ps*.
2989         * macros/Makefile: Install tmac.ps*.
2991         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2992         option.
2993         * macros/eqnrc: Set draw_lines parameter based on device.
2994         * groff.c: Don't pass -D flag to eqn.
2995         * groff.sh: Likewise.
2996         * eqn/main.c: Warn about use of -D.
2998         * troff/input.c (process_startup_file): New function.
2999         (main): Call process_startup_file().
3000         * macros/troffrc: New file.
3001         * macros/Makefile: Install troffrc.
3002         * groff.c (main): Don't pass extra -m option to troff. For a 
3003         pseudo device pass the name of the pseudo device to troff using
3004         -d.
3005         * groff.sh: Likewise.
3006         * groff.c (possible_command::prepend_arg): Deleted.
3008         * troff/input.c (do_request): New function.
3009         (init_input_requests): Bind "do" to do_request.
3011         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3012         load eqnrc from macro directory.
3013         * macros/eqnrc: New file.
3014         * macros/Makefile: Install eqnrc.
3015         * ps/devps/eqnchar: Deleted.
3016         * ps/devps/Makefile: Don't install eqnchar.
3017         * dvi/devdvi/eqnchar: Deleted.
3018         * dvi/devdvi/Makefile: Don't install eqnchar.
3019         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3020         variable optM.
3022         * lib/device.[ch]: New files.
3023         * lib/font.h (font::set_device_name, font::get_device_name):
3024         Deleted.
3025         * lib/fontfile.c: Use device.h.
3026         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3027         * troff/input.c: Delete definition of `device'.
3028         (main): Don't initialize device.
3029         * troff/troff.h: Include device.h rather than declaring device.
3030         * troff/Makefile: No need to handle DEVICE.
3031         * driver/input.c: Include device.h. Don't use
3032         font::{set,get}_device_name.
3033         * groff.c, Makefile: Rename device.h to config.h.
3034         * groff.c: Use library device variable.
3035         * eqn/main.c: Use library device variable.
3036         * eqn/Makefile: No need to handle DEVICE.
3038         * lib/searchpath.[ch]: New files.
3039         * lib/Makefile: Handle searchpath.[ch].
3040         * troff/input.c (open_file, init_dirs): Deleted.
3041         (macro_dirs): Deleted.
3042         (open_mac_file, macro_source): Use class search_path.
3043         (add_string, struct string_list): Move definition.
3044         (main): Change -M option to use macro_path. Delete call to
3045         init_dirs().
3046         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3047         Rewrite to use class search_path.
3048         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3049         * lib/Makefile: fontfile.c depends on searchpath.h.
3050         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3051         MACROPATH.
3052         * lib/macropath.[ch]: New files.
3053         * troff/Makefile: No need to handle MACROPATH.
3055         * troff/input.c: Delete DUMP code.
3056         * lib/fontfile.c, lib/font.h: Delete
3057         font::forget_command_line_font_dirs.
3059         * troff/input.c (push_token): New function.
3060         (handle_first_page_transition): Use push_token().
3061         (process_input_stack): Change handling of a space at the beginning
3062         of the line.
3064 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3066         * troff/input.c (font_dirs): Delete unused variable.
3068         * eqn/lex.c (do_set): Correct error messages.
3070 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3072         * troff/input.c (do_define_string): Allow the string name to be
3073         followed immediately by a tab.
3074         (define_character): Likewise.
3076 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3078         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3079         be negative.
3081         * troff/input.c (input_iterator::is_file): New virtual function.
3082         (file_iterator::is_file): New function.
3083         (input_stack::end_file): New function.
3084         (input_stack::next_file): Handle the situation where there is no
3085         file on the input stack correctly.  Avoid making two passes over
3086         the input stack.
3087         (next_file): Make the filename optional; in this case call
3088         input_stack::end_file().
3090 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3092         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3093         produce a real _ charater when the current font is CW and _
3094         otherwise.
3096         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3097         expression to work around gcc 2.2 bug.
3099 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3101         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3103         * troff/env.c (environment::add_padding): New function.
3104         (environment::add_char): Use add_padding().
3105         (environment::space): Likewise.
3106         (environment::wrap_up_field): Add some padding if there is none
3107         and there's no current tab.
3108         * troff/env.h: Declare environment::add_padding.
3110 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3112         * pic/pic.y: undef fmod and rand before declaring them.
3114 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3116         * troff/input.c (main): If the DESC file specifies a font name of
3117         0, then leave the corresponding font position empty.
3119         * nroff.sh: New file.
3120         * Makefile (install.nobin): Install nroff.sh.
3122         * tty/devlatin1/R.proto: Add ao as synonym for de.
3123         * tty/tmac.tty-char: Define ao as o.
3125         * tty/dev{ascii,latin1}/R.proto: Add aq.
3126         * tty/tmac.tty-char: Delete definition of aq.
3128 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3130         * troff/input.c (init_charset_table): Don't translate 0240.
3131         * ps/tmac.ps: Translate char160 to space.
3132         * dvi/tmac.dvi: Likewise.
3133         * tty/tmac.tty: Likewise.
3135 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3137         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3139         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3140         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3141         \(oe, \(r?, \(r!.
3143         * tty/tmac.tty-char: Add \(ah.
3145         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3146         No need to define \(FM and \(!/. Conditionalize all character
3147         definitions.
3149         * ps/devps/lgreekmap: Add +h, +f, +p.
3151         * ps/tmac.psnew: New file.
3152         * ps/Makefile: Install tmac.psnew.
3154         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3155         character definitions in compatible mode.
3157         * troff/input.c (remove_character): New function.
3158         (init_input_requests): Bind remove_character to "rchar".
3160         * ps/tmac.psold: New file.
3161         * ps/Makefile: Install tmac.psold.
3162         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3163         characters into tmac.psold.  Make these definitions unconditional.
3165         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3167         * ps/tmac.ps: Don't define \('c and \('C.
3169         * ps/devps/textmap: Move Greek characters to...
3170         * ps/devps/symbolchars:
3172 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3174         * ps/devps/text.enc: Add quotesingle.
3175         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3176         * tty/tmac.tty-char: Likewise.
3177         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3178         * dvi/devdvi/texi.map: Add Fn.
3179         * dvi/devdvi/msam.map: Add lz.
3180         * dvi/tmac.dvi: Handle Bq, bq, aq.
3182         * pic/lex.c (get_token): Recognize 'th.
3183         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3185 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3187         * ps/devps/textmap: Move di, mu, +- to...
3188         * ps/devps/symbolchars:
3190         * macros/tmac.s (@XS): Don't call par@reset or fi.
3191         (XA): Call LP. Turn off adjustment. Reduce line length.
3193         * macros/tmac.s: Initially alias XS to LP.
3194         (XS): Rename to @XS.
3195         (cov*ab-init): Alias XS to @XS.
3197 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3199         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3200         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3201         (token::is_size, token::changes_env): Deleted.
3202         * troff/number.c (parse_term): No need to process \s explicitly.
3203         Call tok.next() only after scale indicator has been processed.
3204         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3205         \f etc explicitly.
3206         (token::next): Handle \s, \f, \S, \H immediately rather than
3207         returning them as tokens.
3208         (token::operator==, token::description, token::add_to_node_list,
3209         token::process): Remove handling of deleted tokens.
3211         * troff/env.c (environment::add_char): When adding padding
3212         indicator character, call start_line() if necessary.
3214 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3216         * ps/devps/afmtodit: Don't output 0 kerns.
3218         * ps/devps/afmtodit: Remove directory from name of encoding in
3219         font description file.
3221         * ps/devps/afmtodit: Improve error messages.
3223         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3225         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3226         * ps/devps/FontMakefile: Deleted.
3227         * ps/devps/afmname: New file.
3229         * ps/devps/symbol.sed: New file.
3230         * ps/devps/symbol.diff: Deleted.
3231         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3232         Generate zapfdr.afm from zapfd.afm.
3234         * tty/tmac.tty (tty-char): Prefix definition with ".
3236         * macros/tmac.an (TP): Don't start a diversion if one has already
3237         been started.
3239         * tty/tmac.tty-char: Add Latin-1 characters.
3241         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3243 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3245         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3246         Move declaration of struct horizontal_span.
3248         * tbl/table.c (table::table): Initialize span_list.
3249         (table::~table): Delete span_list.
3251         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3253         * ps/devps/Makefile: Avoid dependency on GNU make.
3255         * ps/tmac.ps: Check that character does not already exist before
3256         defining it.
3258         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3259         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3260         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3261         files.
3263         * tty/tmac.tty-char: New file.
3264         * tty/Makefile: Install tmac.tty-char.
3265         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3266         tmac.tty-char.
3268         * tty/tmac.tty: Fix definition of \(34.
3270         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3271         bracket-drawing characters onto |. Add *o.
3273         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3274         only if current_field.
3276         * troff/dictionary.c (dictionary::lookup): Free old_table after
3277         rehashing. 
3279 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3281         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3282         whose glyphs are identical to glyphs of some Roman character.
3284         * tty/devlatin1/R.proto (bu): Deleted.
3285         * tty/devascii/R.proto (bu): Deleted.
3286         * tty/tmac.tty: Add definition of \(bu.
3288         * eqn/main.c (do_file): Pass FILE as argument.
3289         (main): Automatically load eqnchar.  New options -F and -n.
3290         Pass do_file an opened FILE.
3291         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3292         No need to include font.h.
3293         * groff.sh: Likewise.  Don't need to use - for standard input.
3294         Prefix files with -- if first file starts with -.
3296         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3298         * troff/env.c (environment::possibly_break_line): Don't set line
3299         to 0 across call to output_line().  Don't call output_line() until
3300         after discarding nodes after break.
3302 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3304         * request.h (macro::empty): Declare it.
3305         * input.c (macro::empty): New method.
3306         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3307         macro is empty.
3309 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3311         * troff/env.c (environment::start_field): Decrement space_total
3312         when a space is frozen.
3314 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3316         * macros/tmac.an (R): Delete macro.
3318         * troff/input.c (get_copy, token::next): Support \# (like \" but
3319         newline is ignored).
3321         * troff/input.c (token::next): Fix error message in 'Y' case.
3323 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3325         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3326         a delimiter name.
3328 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3330         * c++test.c: Include <osfcn.h>.
3332         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3333         <errno.h> doesn't.
3335 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3337         * tbl/table.c (table::divide_span): Don't count column separation
3338         if expand was specified.
3340         * tbl/main.c (process_format): Don't ignore width specs in
3341         continued format.  Give warning for changing equal widths or
3342         column separation in continued format.
3343         (process_data): Set column separation, minimum width, equal
3344         columns at end of table.
3346 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3348         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3349         node::add_discretionary_hyphen): Use soft_hyphen_char.
3350         (set_soft_hyphen_char): New function.
3351         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3353         * Makefile (c++tested): Give more helpful message if test fails.
3355 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3357         * troff/input.c (init_charset_table): Translate 0240 to
3358         an unbreakable space.
3360         * troff/token.h (token::hyphen_indicator): New function.
3361         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3362         translation.
3363         * troff/input.c (translate): Allow translation to \%.
3364         * troff/node.c (node::add_char): Handle
3365         TRANSLATE_HYPHEN_INDICATOR.     
3366         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3368         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3369         for \(hy.
3371         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3373 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3375         * groff.c (run_commands): If the last command gets a SIGPIPE send
3376         a SIGPIPE to all children than haven't yet terminated.  When
3377         command terminates, set pid field to -1.
3379 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3381         * groff.c (main): Pass an appropriate -filename option to gxditview.
3383 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3385         * Makefile.bd (install): Remove existing program before copying.
3387         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3388         programs which have Unix counterparts to be installed with
3389         user-specified prefix.
3391         * troff/input.c (exit_troff): Don't check if exit_started.
3392         (exit_request): Don't call exit_troff if exit_started.
3394         * Makefile.bd (install.mm): Rename to install.dwbmm.
3396 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3398         * driver/input.c (do_file): Add missing break for '#' case.
3400 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3402         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3403         then add the boundaries back.
3405         * troff/input.c (exit_troff): Return immediately if already
3406         exiting.
3408         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3409         end macro.
3410         (pg*end-page): If the text has ended and there are no more
3411         footnotes or keeps, exit.
3413         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3415         * troff/input.c (init_charset_table): Make \(rq transparent by
3416         default.
3418         * macros/tmac.an: Define lq and rq strings.
3420         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3422 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3424         * troff/env.c (environment::final_break): New function.
3425         (environment::newline): Set prev_line_interrupted to 2 if
3426         exit_started.
3427         * troff/env.h: Declare environment::final_break.
3428         * troff/input.c (exit_troff): Call environment::final_break()
3429         instead of environment::do_break().
3431         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3432         doesn't already exist.
3433         * macros/man.local: New file.
3434         * macros/tmac.an: Load man.local.
3435         * macros/man.ultrix: New file.
3437 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3439         * troff/input.c (exit_groff): Rename to...
3440         (exit_troff): New function.
3442         * troff/div.c (exit_started, done_end_macro,
3443         seen_last_page_ejector): New global variables.
3444         (began_page_in_end_macro): New static variable.
3445         (exit_flag): Deleted.
3446         (top_level_diversion::top_level_diversion): Initialize
3447         last_page_count.
3448         (top_level_diversion): More elaborate test for whether
3449         cleanup_and_exit() should be called.
3450         Set began_page_in_end_macro if the end macro isn't yet finished.
3451         * troff/div.h (top_level_diversion::last_page_count): New data
3452         member.
3453         (top_level_diversion::set_last_page): New function.
3454         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3455         * troff/env.c (do_break): Zero prev_line_interrupted.
3456         * troff/input.c (exit_flag): Delete declaration.
3457         (LAST_PAGE_EJECTOR): New magic cookie.
3458         (token::next): Handle LAST_PAGE_EJECTOR.
3459         (exit_groff): Set exit_started and done_end_macro instead of
3460         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3461         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3462         another ejection after setting seen_last_page_ejector.
3464 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3466         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3468         * macros/tmac.e (TH): Make sure there's room for the initial
3469         header.
3471         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3472         Set FVS in points rather than units.
3474 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3476         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3477         position of empty slots.
3479 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3481         * ps/devps/S: Fix height and depth of parenrightex.
3482         * ps/devps/symbol.diff: Regenerate.
3484 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3486         * tmac.e (u): Do underlining as in -mgs.
3488 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3490         * tty/tty.c (tty_printer::end_page): If overstriking is
3491         suppressed, still turn overstruck horizontal and vertical lines
3492         into +.
3494         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3495         2.1.
3497         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3499 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3501         * Version 1.05 released.
3503 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3505         * tty/tty.c: Instead of keeping an array of glyphs and then
3506         sorting it, keep a ordered linked list of glyphs for each line.
3508         * driver/driver.h: Include stddef.h.
3510         * tty/tty.c (compare_glyph):
3511         * refer/refer.c (rcompare):
3512         * troff/env.c (compare_ranges): Arguments of qsort comparison
3513         function should be const void *.
3515         * troff/number.c (parse_term):
3516         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3517         switch statement.
3519         * refer/label.y (consider_authors): Don't access variables
3520         constructed under a condition outside that condition: put braces
3521         round for statement containing declaration; redeclare use of same
3522         variable later.
3524         * pic/pic.y (text_expr): Delete production that allows
3525         parenthesised text_expr.
3526         (expr): Allow a conditional_expr to appear in parentheses.
3527         (conditional_expr): Rename to any_expr.
3529         * mm: Install new version 1.01 from jh.
3531         * lib/font.c (font::get_width): Cache scaled widths.
3532         (font::font): Initialize widths_cache.
3533         (font::~font): Destroy widths_cache.
3534         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3536 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3538         * c++test.c, c++test.ref: New files.
3539         * Makefile: Check that the C++ compiler works.
3541         * ps/tmac.pspic (PSPIC): Do a break.
3543         * ps/tmac.ps: Move definition of PSPIC into...
3544         * ps/tmac.pspic: New file.
3545         (PSPIC): Draw box around picture, but make it invisible to grops.
3546         * ps/tmac.ps: Load tmac.pspic.
3547         * ps/Makefile: Install tmac.pspic.
3549 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3551         * lib/font.c (scale_round): If n is negative,
3552         subtract .5 before truncating floating point result.
3554         * lib/fontfile.c: Include <errno.h>.
3556 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3558         * driver/input.c (get_char): Inline. Don't update current_lineno.
3559         Change callers to up date current_lineno if necessary.
3560         Use get_char() instead of getc(current_file).
3562 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3564         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3566 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3568         * tty/tty.c (tmac.tty): Define \(rg as (R).
3570 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3572         * lib/lib.h: New define a_delete.
3573         * Use a_delete instead of delete when deleting an array of objects
3574         without destructors.
3576         * lib/lib.h: Rename adelete to ad_delete.
3577         * Change uses of adelete.
3579 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3581         * eqn/eqn.y: Include lib.h.
3583         * troff/node.c (grow_font_table): Delete old_font_table.
3585         * mm: Install new version from jh.
3587 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3589         * tbl/table.h (format_type): Make global instead of local to class
3590         entry_format.  Prefix enumerators with FORMAT_.
3591         * tbl/table.c, tbl/main.c: Corresponding changes.
3592         * refer/token.h (token_type): Make global.  Prefix enumerators
3593         with TOKEN_.
3594         * refer/token.[ch]: Corresponding changes.
3595         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3597         * troff/div.c (node::set_vertical_size): Don't name argument.
3599 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3601         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3602         * lib/lib.h: Define adelete accordingly.
3603         * pic/object.c (graphic_object::graphic_object):
3604         * tbl/main.c (format::~format):
3605         * tbl/table.c (table::~table):
3606         * refer/ref.c (reference::~reference, reference::merge,
3607         reference::insert_field, reference::delete_field): Use adelete.
3609         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3610         * refer/token.h:
3611         * tbl/table.h: Corresponding changes.
3613         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3614         Ensure total_angle is positive.
3616 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3618         * refer/ref.c (reference::merge, reference::insert_field,
3619         reference::delete_field): Avoid delete[0].
3621         * refer/token.c (init_special_chars): Move calls to cmupper
3622         outside calls to init_two_char_letter to work around bug in gcc
3623         2.0.
3625 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3627         * lib/new.c (operator new): Use __builtin_new for g++.
3629         * pic/object.c (graphic_object::~graphic_object):  Don't use
3630         delete [] on 0.
3632         * pic/object.c (output::compute_scale): Initialize max_width and
3633         max_height.
3635 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3637         * troff/input.c (write_request): Call fflush.
3639         * troff/node.h (class composite_node): Move declaration to node.c
3640         * troff/input.c (charinfo_to_node): Rename to ...
3641         (charinfo_to_node_list): Return node list rather than composite
3642         node.
3643         * troff/node.c (make_composite_node): New function.
3644         (make_node, add_char): Call make_composite_node instead of
3645         charinfo_to_node.
3646         (class composite_node): Add a tfont * member.  Delete font_size
3647         member.
3648         (composite_node::composite_node, composite_node::copy,
3649         composite_node::size): Corresponding changes.
3650         (composite_node::tprint): Provide constant spacing, emboldening
3651         and track kerning as specified in tfont.
3652         (composite_node::width): Change width calculation accordingly.
3653         * troff/env.h (environment::composite): New member.
3654         (environment::is_composite, environment::set_composite): New
3655         functions.
3656         * troff/env.c (environment::environment): Initialize composite.
3657         * troff/input.c (charinfo_to_node): Call
3658         environment::set_composite.
3659         * troff/node.c (make_composite_node, make_glyph_node): Use the
3660         plain version of the tfont if the environment is composite.
3662         * troff/node.c (font_info::get_space_width): Additional argument
3663         giving space_size.  Handle constant space correctly. Scale by
3664         space_size unless constant spaced.
3665         (env_sentence_space_width): New function.
3666         * troff/node.h: Declare it.
3667         * troff/env.h (environment::get_space_size,
3668         environment::get_sentence_space_size,
3669         environment::get_narrow_space_width,
3670         environment::get_half_narrow_space_width): Make inline.
3671         (environment::get_space_width): Make inline.  Just call
3672         env_space_width.
3673         * troff/env.c: Delete definitions for funtions made inline.
3674         (environment::space_newline, environment::space): Use
3675         env_sentence_space_width(). Don't scale by space_size.
3676         * troff/node.h: Move declarations of env*space_width() functions
3677         into env.h.
3679 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3681         * macros/tmac.s (PS): Don't try to set negative indent.
3683 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3685         * pic/pic.y: Fix min function.
3687 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3689         * man/mdate.sh: Clear LANGUAGE.
3691 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3693         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3694         * pic/lex.c: New COMMAND keyword.
3695         * pic/pic.y (print_args, print_arg): New rules.
3696         (placeless_element): Use print_args for PRINT.
3697         New COMMAND element.
3699 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3701         * troff/input.c (terminal): Handle missing argument correctly.
3703         * pic/pic.y (text_expr): New rule.
3705         * pic/pic.y: Implement := operator.
3707 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3709         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3710         mdoc.
3712 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3714         * ps/devps/dingbatsrmap: Include this in the distribution.
3716         * macros/tmac.doc: Replace with new version from 2nd Networking
3717         Release. Fix loading of doc-* files.
3718         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3719         * macros/tmac.doc.old: New file.  Apply fixes that had been
3720         applied to old tmac.doc.
3721         * macros/tmac.andoc: Check that we're running under groff.
3722         * macros/Makefile: Rework.
3724 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3726         * tbl/table.h (format_type): 
3727         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3728         typedef to make these types visible at file scope.
3729         * Makefile: Add NESTED_TYPES configuration option.
3731         * troff/div.c (mark): At the top level use the value of
3732         nl_reg_contents rather than the current vertical position.
3734 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3736         * tty/tty.c: Implement \D for horizontal or vertical lines.
3737         (tty_printer::set_char): Use vec_used+2 as serial number.
3738         Don't allow size of vector to exceed USHRT_MAX-2.
3739         Split off part into...
3740         (tty_printer::add_char): New function.
3741         (tty_printer::draw): New function.
3742         (compare_glyph): Handle equal serial numbers.
3743         (tty_printer::end_page): Handle overstruck characters from \D.
3744         (main, usage): Implement -d option.
3746 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3748         * tbl/main.c (process_format):
3749         * eqn/text.c (split_text):
3750         * troff/input.c (token::next): Use inner block for declarations
3751         with initializers in switch statement.
3753 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3755         * pic/common.c (common_output::dash_line): Cope with zero-length
3756         lines.
3758 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3760         * Version 1.04 released.
3762 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3764         * macros/tmac.an (TH): Define a macro an-init to define variables
3765         based on command line arguments.
3766         (an-header): Call it.
3768 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3770         * Makefile (install.mm): Rename to install.dwbmm.
3772         * Makefile: Integrate mm.
3773         * mm: New directory.
3775 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3777         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3778         <sys/types.h>.
3780         * pic/troff.c (troff_output::simple_spline,
3781         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3782         shadowing parameter.
3784         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3786         * lib/ptable.h: Add explicit casts when converting from unsigned
3787         long to unsigned.
3789         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3790         * dvi/devdvi/Makefile: Install SA, SB.
3792         * refer/indxbib.c: Add declaration of mktemp.
3794         * refer/lookbib.c: Add declaration of isatty.
3796 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3798         * pic/lex.c (interpolate_macro_with_args):  While collecting
3799         arguments, keep track of whether we're in a string.
3801 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3803         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3804         down with \v, so as to avoid problems with top of page trap
3805         setting no space mode.
3807 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3809         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3811 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3813         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3814         Improve error message.
3816 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3818         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3819         printf("%03o");
3821 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3823         * groff.c (possible_command::execp): Always use _exit() after a
3824         failed exec.
3826         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3827         NO_SYS_WAIT_H   configuration options.
3828         * groff.c: Use these options.  Use POSIX-style macros to extract
3829         fields from the status returned by wait().
3831 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3833         * tbl/table.c (table::compute_separation_factor): Allow the
3834         separation factor to drop to 0.
3836 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3838         * refer/search.c: Include <errno.h>.
3840 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3842         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3844         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3845         C++. 
3847         * pic/lex.c (input_stack::bol): Move definition out of class body.
3849         * pic/main.c: On MSDOS munge argv[0].
3851         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3853         * lib/ptable.c (hash_string): Use unsigned long rather than
3854         unsigned.
3855         (next_ptable_size): Use unsigned rather than int.  Give an error
3856         message if we've hit the largest table size.
3857         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3858         table size.
3860         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3861         flags as const unisgned long rather than as enums.
3863         * pic/output.c: Deleted.
3865         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3867         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3868         Add additional argument.
3869         (line_entry::note_double_vrule_on_{left,right}): Set value of
3870         douvle_vrule_on_{right,left} flag according to argument.
3871         (simple_line_entry::simple_print,
3872         simple_line_entry::double_line_print): If adjacent to double vrule
3873         on a corner extend rather than shorten the rule by half the double
3874         vrule sep.
3876         * troff/number.c (parse_term): In checking for overflow, handle the
3877         case where the current horizontal position is negative.
3879 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3881         * pic/object.c (draw_arrow): Check for object having zero length.
3883 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3885         * eqn/main.c (do_file): Split off inline equation handling into...
3886         (inline_equation): New function.  Search for starting delimiter
3887         using...
3888         (delim_search): New function. Don't recognize a delimiter that
3889         occurs in the name of an escape sequence, number register, string
3890         etc.
3892 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3894         * eqn/delim.c (delim_box::compute_metrics): Don't call
3895         define_extensible_string if left is 0.
3896         (delim_box::output):  Don't print the left delimiter if left is 0.
3897         (delim_box::debug_print): Check for left == 0 before calling printf.
3899 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3901         * troff/Makefile (majorminor.c): Include only digits in
3902         minor_version.
3904 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3906         * refer/dirnamemax.c: new file.
3907         * refer/genlimits.c: Deleted.
3908         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3909         Don't check path length.
3910         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3911         * Makefile: Add PATHCONF_MISSING option.
3913         * refer/indxbib.c (get_cwd): New function.
3914         (main): Use get_cwd().
3915         * lib/getcwd.c: New file.
3916         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3917         GETCWD in SUBFLAGS.
3918         * lib/Makefile: Compile getcwd.o.
3920         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3921         userdict.
3923         * refer/indxbib.c (main): Check success of mktemp.
3925         * lib/tmpfile.c: New file.
3926         * lib/Makefile: Add tmpfile.c.
3927         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3928         * ps/ps.h: Delete declaration of mktemp().
3929         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3930         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3931         * driver/driver.h: No need now to include errno.h.
3933         * everywhere: Set errno to 0 before calling fopen().
3935         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3936         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3937         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3939 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3941         * troff/env.h (translate_space_to_dummy): Declare it.
3942         * troff/env.c (environment::space_newline, environment::space):
3943         If translate_space_to_dummy is set then make the width of spaces 0.
3944         * troff/input.c (translate): If the second character of a
3945         translation is a space, translate to unbreakable space.  If the
3946         first character is a space, set or clear translate_space_to_dummy
3947         according to whether the second character is \&.  Weird!
3949 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3951         * groff.c (run_commands): Don't use non-zero exit code because a
3952         command gets SIGPIPE.
3954         * groff.c, groff.sh: Use -mXps with -TXps.
3956         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3957         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3958         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3959         (ps_printer::special): New specials invis and endinvis.
3960         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3961         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3962         (ps_printer::end_page): Check that invis_count == 0.
3963         (ps_printer::invis_count): New member.
3964         (ps_printer::ps_printer): Initialize invis_count to 0.
3966         * troff/env.c (environment::hyphenate_line): Hyphenation
3967         indicator at beginning of word inhibits splitting after -, \(em
3968         etc.
3970         * pic/pic.y (element): Allow another element to follow } without
3971         any intervening separator.
3973 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3975         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3977 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3979         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3980         declaration of wait() in header files.
3981         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3983         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3985         * lib/lib.h: Declare return type of strerror as char *.
3987         * man/Makefile: Add g flag to sed substitutions.
3988         * Makefile (shgroff, bindist): Likewise.
3990 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3992         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3993         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3994         userdict.
3996 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3998         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3999         userdict.
4001 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4003         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4004         group.
4006 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4008         * troff/input.c (define_number_reg):  If currently undefined,
4009         don't define it if the argument is an invalid expression.
4011         * Makefile: Ignore return value of `if' commands without `else'
4012         parts.
4014         * Makefile: Split up CPPDEFINES into a series of separate
4015         configuration options.
4017         * troff/input.c (init_registers): Use time_t instead of long
4018         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4019         than passing pointer.
4020         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4022         * lib/Makefile (fontpath.h): Use gendef.
4024 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4026         * troff/input.c (input_iterator::shift): Delete argument name.
4027         * troff/node.c (suppress_output_file::really_begin_page,
4028         suppress_output_file::really_transparent_char, node::ascii_print,
4029         node::tprint): Delete names of unused arguments.
4031 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4033         * refer/label.y (string):  Pass $4 to command_error.
4035 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4037         * Version 1.03 released.
4039 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4041         * Makefile: Pass definition of SHELL in SUBFLAGS.
4043         * gendef: New file.
4044         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4045         ps/Makefile: Use gendef to construct header files that are
4046         constructed from the Makefile.
4048         * macros/Makefile: make all should build stripped version of tmac.e.
4050         * refer/Makefile (clean): Remove y.output.
4052 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4054         * ps/pfbtops.c (main): Add -v option which prints out a version
4055         number.
4056         * ps/Makefile (pfbtops): Link with libgroff.a.
4058 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4060         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4061         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4063         * refer/lkbib.c (main): Always terminate reference with blank
4064         line.
4065         * refer/lookbib.c (main): Likewise.
4067         * refer/linear.c (file_buffer::load): Check that the file is not a
4068         binary file.
4070         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4071         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4072         Delete second inclusion of <sys/param.h>.
4074 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4076         * troff/token.h (token::special): Deleted.
4078         * tbl/main.c (process_format): Rework so that opt->tab_char is
4079         recognized only when appropriate.
4081         * ps/Makefile (clean): Remove pfbtops.
4083 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4085         * lib/font.c (text_file::next): Don't return if we have got a
4086         blank line.
4088 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4090         * refer/refer.c (store_reference): Get hash code from old_table[i]
4091         when rehashing the table.
4093 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4095         * eqn/box.c (box::top_level): Save size and prev size using \R and
4096         restore it afterwards. Set the size to the size at the beginning
4097         of the line.
4098         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4099         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4101         * refer/Makefile (limits.h): Use ./genlimits.
4103 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4105         * refer/index.c: Delete declarations of stat() and fstat().
4107 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4109         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4111 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4113         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4115 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4117         * troff/input.c (token::get_char): Handle \e.
4119         * refer/linear.c: Delete declarations of fstat() and stat().
4121 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4123         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4124         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4126 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4128         * troff/input.c (do_define_macro): Improve error handling for end
4129         of file while defining macro.
4131 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4133         * eqn/box.h: Fix declaration of set_gsize.
4134         * eqn/box.c (set_gsize): Make argument const char *.
4135         (gsize): Declare as char *.
4136         * eqn/main.c (main): Don't convert gsize to int.
4137         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4139         * Version 1.02 released.
4141 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4143         * macros/tmac.andoc: New file.
4144         * macros/Makefile: Install tmac.andoc.
4146         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4147         operator new and delete on OP_DELETE_BROKEN not being defined.
4148         * Makefile: Mention OP_DELETE_BROKEN.
4150 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4152         * Makefile (bindist): Pass SUBFLAGS.
4154 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4156         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4158         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4159         parameter.
4161         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4163         * ps/ps.h, ps/psrm.c: Make comment_table and
4164         header_comment_table local to resource_manager::process_file.
4166         * groff.sh: With -TXps pass -printCommand option to gxditview.
4168         * groff.c (possible_command::print): Implement using
4169         append_arg_to_string.
4171         * xditview: Merge in new implementation with own ChangeLog.
4173 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4175         * groff.c (main): Implement PRINT_OPTION.
4176         (append_arg_to_string): New command.
4177         (device_table): Set PRINT_OPTION flag for Xps.
4179 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4181         * troff/groff.h: Rename to troff.h.
4183         * pic/lex.c (lookup_keyword, docmp): New functions.
4184         (get_token): Use new lookup_keyword.
4185         Don't include key.h.
4186         * pic/key.[ch], pic/pic.gperf: Deleted.
4187         * pic/Makefile: Remove gperf stuff.
4189         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4190         into output.h.
4191         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4193         * troff/Makefile, troff/node.c: Move definition of
4194         STORE_WIDTH into node.c.
4196         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4198 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4200         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4201         dvi/devdvi/texb.map: Add lq and rq.
4202         dvi/devdvi: Regenerate fonts.
4203         * ps/devps/textmap: Add lq and rq.
4204         * ps/devps: Regenerate fonts.
4205         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4206         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4208         * pic/object.c (position_rectangle): When checking radius
4209         cope with possiblity that width or height is negative.
4210         (box_object::box_object): Have separate xrad and yrad with
4211         signs matching signs of dim components.
4212         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4213         (box_object::print): With rounded boxes use absolute values
4214         for dim and rad arguments.
4216         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4217         in fontpath.h.
4219         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4221         * various files: Add explicit destructors to keep Saber CC +d
4222         happy.
4224 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4226         * eqn/box.c (box::top_level): Restore fonts correctly after
4227         font changes in line containing inline equation.  Also
4228         restore previous font as well as current font.
4229         * eqn/pbox.h: Define necessary string and register names.
4231         * troff/input.c (token::next): Case 'R' calls do_register.
4232         (do_register): New function.
4234 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4236         * groff.c, groff.sh: Support Xps device.  Allow each device
4237         to have a pseudo_name and a real_name.
4239         * groff.c (run_commands): Don't print `Broken pipe' messages.
4241         * ps/pfbtops.c: New file.
4242         * ps/Makefile: Add pfbtops.
4244         * troff/number.c (parse_term): Improved error message.
4246 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4248         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4250         * Makefile: Integrate refer.
4251         * refer: New directory.
4252         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4253         man/lkbib.man: New files.
4254         * man/Makefile: Support refer man pages.
4256         * lib/lib.h: Declare is_prime.
4257         * lib/prime.c: New file.
4259         * troff/input.c (macro_source): New function.
4260         (init_input_requests): Bind "mso" to macro_source.
4262         * troff/env.c (environment::possibly_break_line): Maintain
4263         pointer to pointer to node to be split in ndp so as to avoid
4264         using address of freed node.
4266         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4267         pointer to first node to be hyphenated in startp so as to
4268         avoid using address of freed node.
4270         * troff/env.c (class trie, class hyphen_trie): Make the
4271         elements of the trie be of type char not unsigned char.
4272         Declare arguments to be const char* instead of unsigned char *.
4273         
4274         * troff/env.c (hyphenate): Initialize hbuf[0].
4276         * troff/input.c (set_string): Declare p to be char * and cast
4277         *p to unsigned char when necessary.
4279         * troff/input.c (do_define_macro): Declare s to be const
4280         char*. Cast element to unisgned char when necessary, Declare
4281         d to be an int.  Handle EOF better.
4283         * troff/Makefile, troff/input.c: Different scheme for passing
4284         definitions of MACROPATH, HYPHENFILE and DEVICE.
4286 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4288         * tty/devascii/R.proto: Delete entry for em.
4289         * tty/devlatin1/R.proto: Likewise.
4291 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4293         * troff/input.c (translate): Stop when we get a space. Treat eof
4294         like newline.
4296         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4298 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4300         * tbl/main.c (process_format): A font name following a `f'
4301         modifier that starts with a digit can be only one character long.
4302         Also deal with EOF on the second character of the font name.
4304 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4306         * troff/input.c (token::next): Turn \~ into an
4307         unbreakable_space_node.
4308         * troff/node.c (unbreakable_space_node): New class.
4309         * troff/node.h: Declare it.
4311 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4313         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4314         it's >= 0, before outputting it as a single byte.
4316 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4318         * lib/font.c: Make font_char_metric::code an int.
4319         (font::get_code): Change return type to int.
4320         (font::load): Allow code to be arbitrary integer.
4321         * lib/font.h (font::get_code): Change return type to int.
4322         (font::number_to_index): Change argument type to int.
4323         * troff/input.c (token::next):  In case 'N', allow any value.
4324         Store value in token::val.
4325         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4326         (token::get_char, token::add_to_node_list, token::process): Get
4327         number from val.
4328         (charinfo::set_number): Change argument to int.
4329         (charinfo::get_number):  Require that NUMBERED flag be set.
4330         (get_charinfo_by_number): Store numbered characters not between 0
4331         and 255 in a dictionary.
4332         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4333         to int.
4334         (charinfo::number): Change type to int.
4335         (charinfo::set_number): Change type of set_number to int.
4336         * troff/node.c (troff_output_file::put_char_width,
4337         troff_output_file::put_char): Test whether character is numbered
4338         using charinfo::numbered().
4339         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4340         values of num.
4341         * lib/nametoindex.c: New implementation to cope with arbitrary
4342         number characters.
4344         * troff/input.c (token::operator==): Test val for
4345         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4346         TOKEN_SIZE.
4348         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4349         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4351 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4353         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4354         variable.
4356         * all Makefiles: rm targets of cp and >.
4358         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4359         it.
4361         * eqn/lex.c (def_table): Add dollar.
4363 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4365         * troff/input.c (do_width): Push back newline before closing delim
4366         like do_bracket.
4368 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4370         * groff.c (possible_command::prepend_arg): New function.
4371         (main): Prepend device -m option.
4372         * groff.sh: Put device -m options before command-line options.
4374 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4376         * macros/tmac.an (IP): Quote argument to TP.
4378         * ps/ps.c (main): New option -b, which sets...
4379         (broken_flags): New variable.
4380         (ps_printer::~ps_printer): Incorporate the setup section in the
4381         prolog if (broken_flags & NO_SETUP_SECTION).
4382         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4383         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4384         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4385         ps_printer::print_needed_font_comment,
4386         ps_printer::print_supplied_font_comment,
4387         ps_printer::print_include_font_comments,
4388         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4389         ps_printer::read_download_file, read_document_fonts, add_font,
4390         skip_line, parse_fonts_arg, document_font::document_font,
4391         document_font::~document_font, document_font::download,
4392         ps_output::include_file):  Deleted.
4393         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4394         rather than %!PS-Adobe-2.0.  Make calls to
4395         resource_manager::need_font for each font that we used. Replace
4396         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4397         print_supplied_font_comment, print_needed_font_comment by call to
4398         resource_manager::print_header_comments. Output %%Orientation
4399         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4400         Don't output the prolog directly.  Instead call
4401         resource_manager::output_prolog.  Only define #copies when ncopies
4402         > 1.  Delete calls to print_include_font_comments  and
4403         download_fonts.  Add call to resource_manager::document_setup.
4404         (ps_printer::do_file): Call resource_manager::import_file instead
4405         of including it ourselves.
4406         (ps_printer::do_import): Likewise.  Also don't call
4407         merge_import_fonts. Push userdict on the dictionary stack before
4408         and pop it afterwards.
4409         Move declaration of ps_output into ps.h.
4410         * ps/psrm.c: New file implementing resource_manager class.
4411         * ps/ps.h: New file declaring ps_output and resource_manager
4412         classes.
4413         * ps/devps/zapfdr.ps:
4414         * ps/devps/symbolsl.ps:
4415         * ps/devps/prologue:  Use 3.0 conventions.
4416         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4417         Add default definition of BROKEN_SPOOLER_FLAGS.
4418         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4419         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4421 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4423         * etc/grog.pl: New file.
4424         * Makefile (GROG): New variable.
4425         Add GROG to SUBFLAGS.
4426         * etc/Makefile (GROG): New variable.
4427         (install.nobin): Install $(GROG) rather than grog.sh.
4429 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4431         * eqn/special.c (special_box::compute_metrics): Make the input and
4432         output strings the same.  Get the new height and depth from the
4433         predefined height and depth registers.  Also make subscript kern
4434         and skew available.
4435         (special_box::compute_subscript_kern, special_box::compute_skew):
4436         New functions.
4438         * eqn/box.c (pointer_box::compute_skew,
4439         simple_box::compute_metrics, box::top_level)
4440         * eqn/text.c (prime_box::compute_metrics,
4441         prime_box::comput_subscript_kern)
4442         * eqn/limit.c (limit_box::compute_metrics):
4443         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4444         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4445         negative numbers in `nr' requests with a leading 0.
4447 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4449         * eqn/special.c: New file.
4450         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4451         Add new rule for simple.
4452         * eqn/lex.c (token_table): Add SPECIAL.
4453         * eqn/box.h: Declare make_special_box.
4454         * eqn/Makefile: Add special.[co].
4456 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4458         * ps/devps/prologue: Possibly set packing to true while defining.
4459         Create grops dictionary here.  Initialize local variables before
4460         defining procedures.
4461         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4462         the dictionary stack. Set strokeadjust and overprint to false if
4463         the relevant operators are defined.
4464         (PEND): New procedure.
4465         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4466         prologue.  Do everything else in the setup section.
4467         (ps_printer::do_import): Just call PBEGIN and PEND around the
4468         picture. Also push userdict before, and pop it afterwards.
4470 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4472         * troff/node.c (bracket_node::tprint): Brackets were being printed
4473         1m too low.
4475         * macros/tmac.an (SH, SS): Set fill mode.
4477 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4479         * troff/div.c (top_level_diversion::begin_page): Set
4480         high_water_mark to 0.
4482 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4484         * man/mdate.sh: New file.
4485         * man/mdate.c: Deleted.
4486         * man/Makefile: Use mdate.sh instead of mdate.
4487         (mdate): Deleted.
4489         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4491 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4493         * man/mdate.c: New file.
4494         * man/*.man: Replace modification date by @MDATE@.
4495         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4496         (mdate): New target.
4498         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4499         Remove illegal input characters.
4501 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4503         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4505 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4507         * troff/div.c (begin_page): Change behaviour when
4508         !first_page_begun and !break_flag.
4510         * troff/input.c (do_name_test): Return 0 if argument is empty.
4512         * troff/input.c (read_long_escape_name): Require closing ] to be
4513         at same input level as opening [.
4515         * troff/input.c (read_increment_and_escape_name): New function.
4516         (get_copy, process_input_stack): Use this for \n.
4518 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4520         * troff/div.c (top_level_diversion::begin_page): Ignore the
4521         current value of page_number if !first_page_begun.
4523         * groff.c (main): Fix declaration of buf.
4525         * troff/input.c (do_name_test): New function.
4526         (token::next): Implement \A.
4527         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4528         (token::description, token::add_to_node_list, token::process):
4529         Handle TOKEN_ESCAPE.
4530         * troff/token.h: New token TOKEN_ESCAPE.
4532 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4534         * pic/main.c (do_picture): Allow space before and after filename
4535         following `<'.  Check that the filename is not empty.
4537 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4539         * Version 1.01 released. 
4541         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4543         * dvi/tmac.dvi: ftr HR to H.
4545         * macros/tmac.e: Round up computation of $r.
4547         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4548         Use \n(.s instead of \n[.s].
4550         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4551         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4552         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4553         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4554         short names in the char definitions.
4556         * ps/tmac.ps: Don't give up completely in compatibility mode.
4557         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4558         quote in front of \n(.s. Add u to factors inside \s[...].
4560 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4562         * tty/tmac.tty: Call the nroff request.
4564         * macros/tmac.e ((x, )x):  Better definitions that work properly
4565         in a diversion.
4566         (@0, @1): Helper macros for (x.
4568         * macros/tmac.e ($s, hl): Use \l rather than \D.
4570         * tty/tmac.tty: Make it work better in compatibility mode.
4571         (pchar): Rename to tty-char.
4573         * macros/tmac.e (@E): New macro.
4574         (r, i, b, rb, bi): Use @E.
4576         * macros/tmac.e (@F): Don't use (;...) syntax.
4578         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4579         it was modified for groff.
4581         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4583         * macros/tmac.e (<., .>): Removed.
4584         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4586         * macros/tmac.e: Remove check that groff is being used.
4588         * macros/tmac.e (@C): Change families only if using groff; turn
4589         compatibility mode off while changing familes. Save compatibility
4590         mode before changing families and restore it afterwards.
4592         * macros/tmac.e (@h): Remove test for offset + line length.
4594         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4595         (lo, th, ac): Define to call @S instead of using als.
4597         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4598         the ratio of the vertical spacing to the point size in units
4599         expressed as a percentage.  Use these instead of $10r and $10R,
4600         Delete $10r and $10R.
4602         * lib/font.c (font::load): In default computation of space_width,
4603         divide by sizescale.  Use scale_round.
4605         * macros/tmac.an (TP): Don't call `nf'.
4606         (an-do-tag): Don't call `fi'.
4608 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4610         * troff/input.c (process_input_stack): Handle the case where
4611         spaces at the beginning of an input line are followed by a
4612         newline.
4614 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4616         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4617         * groff.sh: Use pic -x with the dvi device.
4619         * dvi/devdvi/FontMakefile (H): Don't use -s.
4621         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4622         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4623         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4624         in FONTS.
4626 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4628         * ps/psfig.diff: New file.
4629         * ps/tmac.psfig: New file.
4631 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4633         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4634         (]-): Don't call ref*do-tl.
4636         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4638         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4639         (fn@do-FS): Rename to fn*do-FS.
4641         * troff/input.c (transparent_translate): New function.
4642         (process_input_stack): Apply transparent_translate before calling
4643         diversion::transparent_output(unsigned char).
4645 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4647         * troff/input.c (do_define_macro): Define the macro before calling
4648         skip_line.
4650         * xditview/Makefile: Add DEVICES variable.  Change install target
4651         to use this.
4653 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4655         * groff.c (run_commands): Handle the possibility that there are
4656         child processes other than those forked by us.
4658 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4660         * lib/string.c (string::append): New function.
4661         * lib/stringclass.h: Declare it.
4663 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4665         * eqn/main.c (main): New option -N which sets
4666         no_newline_in_delim_flag. 
4667         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4668         in delimiters.
4669         * groff.c (main): Pass -N on to eqn.
4670         (help, synopsis): Mention -N.
4671         * groff.sh: Implement -N.
4673 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4675         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4676         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4677         (XP): Allow as initializer.
4679 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4681         * troff/env.c (environment::wrap_up_field): If field_spaces are
4682         non-zero and we have a current_tab, subtract padding from
4683         tab_distance.  If this makes tab_distance <= 0, use the next tab
4684         stop instead.  If there isn't any next tab or it's a left tab,
4685         wrap up the current tab.
4686         (environment::start_field): Initialize tab_precedes_field.
4687         (environment::wrap_up_tab): If there's a current field, update
4688         pre_field_width, field_distance and tab_precedes_field.
4689         * troff/env.h (environment::tab_precedes_field): New member.
4691 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4693         * ps/ps.c (ps_printer::do_file): New function.
4694         (ps_printer::special): Bind to `file' special.
4695         (ps_printer::do_exec): Set ndefined_styles to 0.
4697 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4699         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4700         Avoid stripping first character from the start of unrecognized
4701         escapes.  Use lex_error instead of error to report errors.
4702         * eqn/lex.c (get_token): Rework handling of escapes.
4703         (lex_error): Move declaration into...
4704         * eqn/eqn.h.
4706         * xditview/xditview.c (main): Make -page option work.
4708         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4710 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4712         * macros/tmac.s (B2): Correct size of box.
4714 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4716         * macros/tmac.s (B2): Postpone drawing the box until in the
4717         top-level diversion.
4719         * tty/tmac.tty: Add font translations for C, CR, CW.
4721         * groff.c (synopsis, help): Document -i.
4722         * groff.sh: Implement -i.
4724         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4725         Simplify the construction of SN.
4727         * troff/number.c (parse_term): Give `|' a higher precedence.
4728         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4729         accordingly.
4731         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4733 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4735         * lib/string.c (string::move): New function.
4736         * lib/stringclass.h: Declare it.
4738 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4740         * troff/env.c (distribute_space): Add optional argument
4741         `force_forward'.
4742         (environment::wrap_up_field): Call distribute_space with
4743         `force_forward' argument of 1.
4745 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4747         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4748         Inline it.  Move reallocation into...
4749         (string::grow1): New function.
4750         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4751         dependencies to include library header files.
4752         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4754 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4756         * macros/tmac.s (@NH): Use the same number registers than -ms does
4757         for the heading level counters.  Use the same string that -ms does
4758         for the number for this heading.
4760 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4762         * lib/new.c (operator new): Cast result of malloc to char *.
4764         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4765         is not null.
4767 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4769         * groff.c (main): Support -i.
4771 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4773         * pic/pic.h: Include <osfcn.h>.
4775         * ps/ps.c: Add declaration of mktemp.
4777         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4778         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4779         argument as union wait *.
4780         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4781         argument to union wait *.
4783 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4785         * tty/tmac.tty: Add definition of \(co.
4787         * pic/object.c (make_arc): Only increase radius when radius
4788         strictly less than d.
4789         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4790         more than once.
4792         * troff/env.c (environment::environment(symbol),
4793         environment::environment(const environment *)):  Initialize
4794         input_trap_count.
4796 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4798         * tbl/main.c (main): Add exit(0).
4800         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4802         * pic/main.c (main):
4803         * eqn/main.c (main):
4804         * tbl/main.c (main):
4805         * etc/soelim.c (main):
4806         * driver/printer.c (printer::~printer):
4807         * troff/node.c (real_output_file::~real_output_file,
4808         real_output_file::flush):  Check for errors on stdout.
4810         * most files: Add 1991 to copyright notice.
4812         * macros/tmac.s: Don't test \n(.x and \n(.y.
4814         * troff/input.c (token::next): Rename `escape_char' label to
4815         `handle_escape_char' and `normal_char' label to
4816         `handle_normal_char'.
4818 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4820         * groff.c (main, synopsis, help): Support -a option.
4821         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4822         to trflags while parsing options.
4824 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4826         * troff/number.c (parse_term): With `m', `M' and `n' scale
4827         indicators, convert scale factor to hunits before scaling.
4829 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4831         * lib/font.c (scale_round): Better test for overflow when n is
4832         negative.
4834 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4836         * tbl/main.c (process_format): Add second argument of type
4837         options*. Change callers.  Allow opt->tab_char as well as '\t'
4838         between format items.
4840 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4842         * macros/tmac.an (PD): With no arguments, make sure register PD is
4843         at least \n[.V].
4844         (TH): Call PD with no argument, instead of setting register PD
4845         directly.
4847 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4849         * Version 1.00 released.
4851 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4853         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4855         * dvi/devdvi/DESC: Mount CW instead of CR.
4857         * dvi/tmac.dvi: Add definition of \(tm.
4859         * dvi/devdvi/texsy.map: Add lh, and rh.
4860         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4861         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4863         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4864         * dvi/devdvi/Makefile: Install H.
4865         * dvi/devdvi/H: New file.
4867 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4869         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4870         be 0.
4872 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4874         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4876         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4878         * macros/tmac.s (@EN): Handle the case where the equation is empty
4879         but the label is not.
4881 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4883         * troff/groff.h: New warning category WARN_SPACE.
4884         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4885         WARN_SPACE to warning_table.
4886         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4887         is longer than two characters and is not defined, but the first
4888         two characters do make a defined name.
4890         * PROBLEMS: New file.
4892         * CHANGES: New file.
4893         * README-0.6, README-1.00: Deleted.
4895         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4896         * xditview/devX75/Makefile: Make devX75-12.
4897         * xditview/devX100/Makefile: Make devX100-12.
4899         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4900         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4902 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4904         * README-0.7: Rename to README-1.00.
4906         * macros/tmac.pic: New file.
4907         * macros/Makefile (install.nobin): Install tmac.pic.
4909 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4911         * troff/env.c (hyphen_word): Correct the test for whether the
4912         token is a hyphen.  Reset npos to 0.
4914         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4916 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4918         * macros/tmac.s (ds*common-end): Call par*reset.
4919         (PE): Likewise.
4920         (par@reset-indent): Deleted.
4922         * macros/tmac.s (@IP): Divert the label.
4924 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4926         * xditview/draw.c (setGC): Use a line width of .1m rather than
4927         .04m by default; round rather than truncate value.
4929         * tbl/table.c (class empty_entry): New class.
4930         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4931         (table::add_entry): Represent empty entries by objects of type
4932         empty_entry.
4933         (table_entry::line_type): Return -1.
4934         (table::determine_row_type): Ignore entries with line_type 0.
4935         Treat type -1 as non-lines.
4937 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4939         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4940         macros/tmac.s: Rename \(-d to \(Sd.
4942 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4944         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4945         * xditview/libXdvi/DviChar.c: Likewise.
4946         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4948 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4950         * troff/div.c (top_level_diversion::begin_page): Call
4951         init_output() if the_output is 0.
4953 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4955         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4956         ESCAPE_c.
4957         (get_copy): Turn \E into ESCAPE_E.
4958         (token::process, asciify): Handle ESCAPE_E.
4960         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4961         (RD): New macro.
4962         (DS): Implement `.DS R'.
4964 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4966         * macros/tmac.s (FS): New macro.
4968         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4970         * macros/tmac.s (cov*tl-init): Remove after first execution
4971         instead of aliasing to @nop.  Call top of page macro explicitly
4972         instead of setting trap; call @init first.  Set pg@top as top of
4973         page macro.
4974         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4975         cov*auto-init as top of page trap. 
4976         (TL, LP): Do a break instead of calling cov*tl-init.
4977         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4978         @FE; in this case also give a warning and always start another
4979         page. No need to set pg@top here.
4980         (cov*tl-init): Rename to cov*first-page-init.
4982         * macros/tmac.s (RP): Do `.pn 0'.
4983         (cov*tl-init): With RP format don't do `.pn 0'.
4985         * macros/tmac.s (pg@cs-top): Set no space mode.
4987         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4988         (cov*ab-init): Alias TL, AU and AI to these.
4990 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4992         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4993         (@EN): Do nothing unless \n[dl] is > 0.
4995 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4997         * pic/object.c (ellipse_object::radius): New function.
4999         * VERSION: Change version to 0.7.
5001         * tbl/table.c (block_entry::do_divert): Declare return type as
5002         void.
5003         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5005 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5007         * troff/column.c: New file.
5008         * troff/Makefile: Corresponding changes.
5010         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5011         Friend of vunits.
5013         * troff/div.c (top_level_diversion::space): If the space causes
5014         the first-page transition and springs a trap, truncate the space
5015         to 0.
5017 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5019         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5020         the document.
5022         * pic/troff.c (troff_output::line_thickness,
5023         troff_output::set_fill): Do a horizontal motion to compensate for
5024         the width of the \D escape sequence.
5026 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5028         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5029         (not X75).
5031         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5032         to printf.
5034         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5035         Supply empty definition.
5036         (text_entry::simple_print, simple_text_entry::simple_print):
5037         Delete declarations.
5038         (table::add_entry): Represent empty entries by objects of type
5039         `simple_entry'.
5041 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5043         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5045         * tbl/table.c (left_text_entry::add_tab): New function.
5047         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5048         initialize like LP.
5050 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5052         * troff/env.c (environment::start_field): Give an error message if
5053         there is no next tab.
5055 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5057         * troff/env.c (hyphenate): Skip initial elements with zero
5058         hyphenation code.
5060         * macros/tmac.s (par@init): Keep VS in points rather than units.
5062 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5064         * pic/main.c (main): Implement `-c' option.
5065         * pic/output.h: Declare make_tpic_output().
5066         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5067         protected.
5068         (tpic_output): New class.
5069         (tpic_output::tpic_output, tpic_output::set_pen_size,
5070         tpic_output::command, make_tpic_output): New functions.
5072 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5074         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5075         if they're not already defined.
5076         * tbl/table.c (init_output): Don't test \n(.g.
5078         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5079         `d', `r' and `c' conditions even in compatibility mode.
5081 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5083         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5084         box.
5086 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5088         * troff/env.h (environment::prev_line_interrupted): New member.
5089         (environment::get_prev_line_interrupted): New function.
5090         * troff/env.c (environment::newline): Set prev_line_interrupted.
5091         (environment::environment(const environment *),
5092         environment::environment(symbol)): Initialize
5093         prev_line_interrupted.
5094         * troff/input.c (process_input_stack): Don't give special
5095         treatment to space and newline at the beginning of the line if the
5096         previous line was interrupted.
5098 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5100         * eqn/eqn.y: Disallow PRIME by itself.
5101         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5102         PRIME.
5103         (def_table): Remove definition of '.  Define prime to be `.
5105         * eqn/eqn.y: Split off part of rule `script' into a new rule
5106         `nonsup'.
5108 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5110         * macros/tmac.s ({, }): New string aliases.
5112 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5114         * README-0.7: New file.
5116 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5118         * macros/tmac.s: New file.
5119         * man/groff_ms.man: New file.
5120         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5121         * Makefile.bd: Similarily.
5122         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5123         definition of TMAC_S.
5124         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5125         * macros/TODO: New file.
5127 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5129         * troff/env.c (right_justify): New function.
5130         (init_env_requests): Bind this to request "rj".
5131         (center_lines): Set right_justify_lines to 0. If we get a bad
5132         integer, center 1 line.
5133         (environment::environment(symbol), environment::environment(const
5134         environment *)): Initialize right_justify_lines.
5135         (environment::get_right_justify_lines): New function.
5136         (init_env_requests): Bind this to number_register ".rj".
5138         * troff/env.c (environment::choose_breakpoint): Implement
5139         hyphenation_margin and hyphenation_space.
5140         (environment::get_hyphenation_space,
5141         environment::get_hyphenation_margin): New functions.
5142         (init_env_requests): Bind these to .hys and .hym.
5143         (hyphenation_space_request, hyphenation_margin_request): New
5144         functions
5145         (init_env_requests): Bind these to hys and hym.
5146         (environment::environment(symbol), environment::environment(const
5147         environment *)): Initialize hyphenation_margin and
5148         hyphenation_space.
5149         * troff/env.h: Corresponding changes to class environment.
5151 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5153         * troff/div.c (blank_line): Always do a break.
5155         * eqn/box.c (do_text): Turn off escapes while appending text to
5156         string.
5158 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5160         * troff/input.c (while_break_request, while_continue_request): New
5161         functions.
5162         (init_input_requests): Bind these to "break" and "continue".
5163         (while_depth, while_break_flag): New variables.
5164         (while_request): Update while_depth.  Break out of loop if
5165         while_break_flag is set.
5167 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5169         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5170         rather than 0.
5172 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5174         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5176         * stringify: New file.
5177         * Makefile (groff.o): Use stringify.
5179         * xditview/tmac.X: Remove definition of \(rn.
5180         * xditview/libXdvi/DviChar.c: Remove radicalex from
5181         Adobe_symbol_map.
5183 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5185         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5186         (alphabetic_block_entry::alphabetic_block_entry,
5187         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5188         New functions.
5189         (block_entry::divert): Split off body into ...
5190         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5191         from the line length; also update the span width to dl+2n, and the
5192         alphabetic span width to dl.
5194         * driver/input.c (do_file):  While reading argument to D command,
5195         when expanding buffer, multiply szp by sizeof(int) rather than 2
5196         in the argument to memcpy.
5198         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5199         width of alphabetic columns.
5201 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5203         * troff/node.c (lookup_family): Supply second argument to lookup.
5205         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5206         search, return immediately if v is 0.
5208         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5209         (troff_output::start_picture): Set this reg.
5210         (troff_output::end_picture): Remove this reg
5211         * eqn/box.c (box::extra_space): Don't produce `\x's if
5212         EQN_NO_EXTRA_SPACE_REG is defined.
5214         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5215         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5216         character.
5218 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5220         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5221         requests.
5223         * troff/div.c (top_level_diversion::top_level_diversion):
5224         Initialize page_number to 0.
5226 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5228         * groff/troff (environment::environment(const environment *)):
5229         Initialize name to e->name, rather than "anonymous".
5231 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5233         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5234         requested_page.  Split middle part into ...
5235         (FindPage): New function.
5236         (SetValues): If we don't yet know the last page, and the requested
5237         page is greater than the current page, call FindPage.
5238         Update the font_map_string before doing this.
5240         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5241         Translate \(lh and \(rh into left and right double arrows.
5243         * troff/node.c (class hyphen_inhibitor_node): New class.
5244         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5245         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5246         hyphen_inhibitor_node::type,
5247         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5248         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5249         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5250         word.
5252 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5254         * troff/node.h (dummy_node::get_hyphenation_type,
5255         transparent_dummy_node::get_hyphenation_type):  Declare them.
5256         * troff/node.c: (dummy_node::get_hyphenation_type,
5257         transparent_dummy_node::get_hyphenation_type): New functions.
5259 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5261         * xditview/libXdvi/draw.c: If M_PI not defined after including
5262         math.h, then define it.
5264         * xditview/Makefile: Add definition of AR. Pass it to the submake
5265         in libXdvi.
5266         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5268 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5270         * troff/dictionary.h (object_dictionary::alias): Declare return
5271         value as int.
5272         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5273         if the old name was defined.
5274         * troff/input.c (alias_macro): Give a warning if the old name was
5275         not defined.
5276         * troff/reg.c (alias_reg): Likewise.
5278 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5280         * troff/input.c (token::next): Delete implementation of \R.
5282         * macros/Makefile: Strip comments from tmac.e while installing it.
5284         * troff/input.c: New variable `nroff_mode'.
5285         (troff_request, nroff_request): New functions.
5286         (init_input_requests): Bind `troff' and `nroff' to troff_request
5287         and nroff_request.
5288         (do_if_request): Compute results of t and n conditions from
5289         nroff_mode.
5291         * text/text.c (split_text): Fix typo in >=.
5293         * eqn/lex.c: Add definition of `==' to def_table.
5295 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5297         * pic/tex.c (tex_output::start_picture): Change the definitions of
5298         \graph and \graphtemp so that they work properly with Plain TeX.
5300         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5301         argument to `ar' is not less than the first.
5303         * pic/pic.y: Allow a comma between elements of the variable list
5304         in the argument to `reset'.
5306         * pic/object.c (arc_object::arc_object): Fix computation of
5307         radius.
5309         * eqn/main.c (main): Add exit(0).
5311 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5313         * troff/div.c (begin_page): Test no_space_mode after doing the
5314         break, but still push the page ejector cookie before doing the
5315         break.  Also set the next page number after doing the break.
5316         
5317         * xditview/xditview.c (NewFile): Don't set the title and icon name
5318         if this is the first file and its name is `-'.
5319         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5320         the X75 and X100 devices.
5321         (main): If a device has the XT_OPTION flag set and there's exactly
5322         one file argument, pass the driver -xrm and -title options to set
5323         the icon name and window title to the name of the file.
5325         * troff/env.c (environment_switch): If there was an argument but
5326         it wasn't a valid number or name, then pop an environment but
5327         don't give an error message on underflow.
5329         * troff/number.c (start_number): Correct spelling in error message.
5331         * troff/input.c (token::delimiter): Don't print an error message
5332         if err is false.
5334         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5335         ParseDrawFunction if dw->display_enable is true.
5337 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5339         * pic/pic.y: Parse text positioning like normal attributes, so as
5340         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5341         positioning attribute.
5343 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5345         * tbl/main.c (process_data): When in state START while reading a
5346         text block, don't change to state MIDDLE if c is a newline.
5348 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5350         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5351         so as to avoid shadowing parameter.
5353 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5355         * tbl/table.c (trim_space): Deleted.
5356         (table::add_entry): Don't call trim_space.
5358 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5360         * VERSION: Change version to 0.6.
5362         * troff/number.c (parse_expr): Make == work.
5364 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5366         * man/grog.man: New file.
5367         * man/Makefile: Add grog.n to MAN1PAGES.
5368         * etc/grog.sh: New file.
5369         * etc/Makefile: Install grog.sh as grog.
5371 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5373         * troff/input.c (token::next): Implement \E.
5375 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5377         * xditview/tmac.X: Change font translations to match tmac.ps.
5379         * troff/input.c (non_empty_name_warning): Don't give a warning if
5380         `\{' terminates the name.
5382 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5384         * ps/devps/symbol.diff: New file.
5385         * ps/devps/FontMakefile: Mention symbol.diff.
5387 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5389         * troff/node.c (font_position): Use get_long_name to read the
5390         external_name.
5392         * troff/env.c (environment_switch): If we get a number that's < 0
5393         or >= NENVIRONMENTS, treat it like a name.
5394         Change NENVIRONMENTS to 10.
5396         * troff/groff.h: Remove definition of FONTS_MAX.
5397         * troff/node.h (class font_family): Make map a pointer instead of
5398         an array. Add a map_size member. Make it a class. Make nm const
5399         and public. Make invalidate_fontno a friend.
5400         * troff/node.c: Define font_table_size. Make font_info a pointer
5401         rather than an array.
5402         (class troff_output_file): Allocate font_position dynamically. Add
5403         nfont_positions member.
5404         (troff_output_file::set_font): Grow font_position if necessary.
5405         (troff_output_file::~troff_output_file): Delete font_position.
5406         (troff_output_file::troff_output_file): Allocate font_position.
5407         (grow_font_table): New function.
5408         (troff_output_file::really_begin_page,
5409         troff_output_file:really_copy_page): Use nfont_positions rather
5410         than FONTS_MAX.
5411         (mount_font_no_translate, mount_style): Call grow_font_table if
5412         necessary.
5413         (font_family::font_family): Allocate map.
5414         (font_family::make_definite): Grow map if necessary. Use
5415         font_table_size instead of FONTS_MAX.
5416         (font_family::~font_family): New function.
5417         (invalidate_fontno): Use font_family::map_size.
5418         (get_fontno, env_space_width, env_half_narrow_space_width,
5419         env_narrow_space_width, symbol_fotno, is_good_fontno,
5420         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5421         FONTS_MAX.
5422         (next_available_font_position): Never return 0.
5424 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5426         * ps/tmac.ps: Add font translations for compatibility with dpost.
5428 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5430         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5431         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5432         Move definitions baseline_sep, shift_down, column_sep,
5433         matrix_side_sep into...
5434         * eqn/box.c: Add them to param_table.
5435         * eqn/pbox.h: Add declarations to pbox.h.
5437         * troff/input.c (set_string): Cast value to unsigned char *.
5439         * troff/token.h (process_input_stack): Declare it static before
5440         declaring it a friend.
5442 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5444         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5445         and bottom.
5446         * dvi/devdvi/EX: Regenerate.
5448         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5449         transparent.
5451 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5453         * eqn/lex.c: In defaults_table, make definition of `dot' call
5454         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5455         accents.
5457         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5458         argument.
5459         (for_input::get, for_input::peek): Use this.
5460         (do_for): Add by_is_multiplicative argument.
5461         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5462         Change semantic value of optional_by to be a double plus a flag
5463         saying whethet the by clause is multiplicative.
5465         * eqn/lex.c (get_delimited_text): Remember location of start of
5466         definition.  Improve error handling when EOF is encountered.
5468         * lib/font.h: Rename handle_x_command to
5469         handle_unknown_font_command.
5470         * lib/font.c (font::load): Call handle_unknown_font_command for
5471         any unknown command in the font description file.  Don't call
5472         handle_x_command. Include the name of the command in the argv.
5473         Improve message for unknown command after kernpairs or charset
5474         command.
5475         * ps/ps.c (ps_font::handle_x_command): Rename to
5476         handle_unknown_font_command.  Remove message about `x download'
5477         command.  Give error message for wrong number of arguments.
5478         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5479         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5480         handle_unknown_font_command. Give an error message for wrong
5481         number of arguments.  Rename design_size to designsize.
5482         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5483         checksum', `designsize' instead of `design_size'.
5485 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5487         * eqn/*.[chy]: Change underaccent to uaccent.
5489         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5490         give it the same precedence as ACCENT.
5491         * eqn/other.c (make_underaccent_box): New function.
5492         * eqn/box.h: Declare it.
5493         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5494         def_table.
5496 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5498         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5499         (parse_init): Call reset_all.
5500         (define_variable): When defining scale reset only those
5501         pre-defined variables that are scaled.
5502         (defaults_table): Add `scale' as non-scaled value.
5504         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5505         together with the text; allow any number of positioning words;
5506         allow center as a positioning word.
5508         * pic/object.c (output::compute_scale): Get picture maximum height
5509         and width from variables called maxpswid and maxpsht.
5510         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5512 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5514         * pic/object.c (object_spec::make_text): Multiply textht by number
5515         of text items.
5517         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5518         occur.
5519         (do_sprintf): New function.
5520         (pic.gperf): Add sprintf token.
5521         (text, sprintf): New rules.
5523         * pic/pic.y: `rand()' with no arguments returns a random number
5524         in the range [0,1).
5526         * pic/pic.y: Allow a bare expression to be an attribute: change
5527         precedences to support this.  Change optional_ordinal rule to
5528         optional_ordinal_last to avoid reduce/reduce conflict.
5529         * pic/object.c (object_spec::object_spec): Initialize direction.
5531         * pic/pic.y: Implement ^ operator meaning exponentiation.
5533         * troff/node.h: Add default argument to mount_font.
5534         * troff/node.c (font_position): Read an optional third argument
5535         giving the external_name.
5536         (mount_font): Add optional argument giving the external_name.
5537         (mount_font_not_translate): Have additional argument giving
5538         external name.  Use this name to load the font.  Pass both names
5539         to font_info::font_info.
5540         (font_info::font_info): Have additional argument giving
5541         external_name.
5542         (class tfont): New member external_name.
5543         (font_info::get_tfont): Use external name to construct tfont_spec.
5545 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5547         * eqn/lex.c (init_table): Add argument giving device.  Define
5548         name of device to be "1".
5549         (do_ifdef): Counts as true if the argument has been defined with
5550         `define'.
5551         * eqn/main.c (main): Call init_table with device argument. Make
5552         device local to main.
5553         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5554         of device.
5556         * pic/lex.c (get_delimited): Allow text to be delimited by
5557         matching {}s.  Don't recognize ending delimiter within a string.
5559         * troff/input.c (get_delim_name): New function.
5560         (token::next): Implement \C.
5562         * lib/font.c (font::load): Grok ---.  Add an alias for each
5563         character based on its code.
5564         (font::get_code_width): Deleted.
5565         * lib/font.h (class font): Declare font::number_to_index().
5566         Remove declaration of font::get_code_width.
5567         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5568         to indices of named characters.
5569         (font::number_to_index): New function.
5570         * troff/input.c (font::number_to_index): New function.
5571         (get_charinfo_by_number, charinfo::get_number,
5572         charinfo::set_number): New functions.
5573         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5574         (token::process, token::description, token::get_char,
5575         token::add_to_node_list, token::operator==): Handle
5576         TOKEN_NUMBERED_CHAR.
5577         * troff/charinfo.h: Declare get_charinfo_by_number,
5578         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5579         charinfo class.
5580         (charinfo::numbered): New function.
5581         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5582         * troff/env.h (class environment): Remove declaration of ...
5583         * troff/env.c (environment::make_numbered_char_node): Deleted.
5584         * troff/node.c (make_numbered_node): Deleted.
5585         (class numbered_glyph_node): Remove.
5586         (troff_output_file::put_char_width, troff_output_file::put_char):
5587         Handle numbered chars.
5588         (troff_output_file::numbered_char): Removed.
5589         (tfont::get_code_width): Removed.
5590         (make_glyph_node): Don't search special fonts for numbered
5591         characters.
5592         * troff/node.h: Remove declaration of make_numbered_node.
5593         * driver/input.c (do_file): Handle N command.
5594         * driver/printer.h: Add declaration of ...
5595         * driver/printer.c (printer::set_numbered_char): New function.
5596         * dvi/tfmtodit.c (main): Generate unnamed entries.
5597         * ps/devps/afmtodit: Likewise.
5598         * xditview/xtotroff.c (MapFont): Likewise.
5599         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5601         * tbl/main.c (process_format): If multiple widths are specified
5602         for a column but all the widths are the same, don't give an error
5603         message.
5605         * tbl/table.c (table::do_row): If the current row is all lines and
5606         the stuff doesn't contains a line, mark the top of the row after
5607         printing stuff before the row.  If the current row is not all
5608         lines and the stuff doesn't contain a line, don't unnecessarily
5609         mark the top of the row before printing the stuff.
5610         
5611 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5613         * troff/groff.h: Remove MAX_PATH.
5614         * troff/input.c (open_file): Dynamically allocate space for the
5615         path.
5616         (open_mac_file, process_macro_file): Corresponding changes.
5618 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5620         * troff/node.h (class output_file): Make copy_file pure.  Add
5621         vspace method ifdef COLUMN. Add is_printing method.
5622         * troff/node.c: Add class printing_reg. Add class
5623         real_output_file. Derive other output_file classes from
5624         real_output_file; in these classes rename begin_page to
5625         really_begin_page, print_line to really_print_line, copy_file to
5626         really_copy_file, transparent_char to really_transparent_char.
5627         Move output_file::flush to real_output_file. Add printing member
5628         to class output_file.
5629         * troff/div.h: Remove printing member from top_level_diversion.
5630         Add vspace member function to class diversion ifdef COLUMN. Add
5631         some declarations ifdef COLUMN.
5632         * troff/div.c (top_level_diversion::copy_file,
5633         top_level_diversion::transparent_output,
5634         top_level_diversion::output): Don't test printing member before
5635         output.
5636         * troff/input.c: Handle initial variable_space_request ifdef
5637         COLUMN.
5638         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5639         but comment it out.
5641 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5643         * troff/div.c (diversion::need): Make any space forced.  If we
5644         sprung a trap, set truncated_space to minus the distance to the
5645         trap and set needed_space to the amount that was needed.
5646         (top_level_diversion::space): A forced space turns no_space_mode
5647         off.
5648         (class constant_vunits_reg): New class.
5649         (init_div_requests): Implement number registers .trunc and .ne
5650         using constant_vunits_reg.
5651         (class truncated_space_reg): Deleted.   
5653         * troff/div.h: Don't have a no_space_mode member in diversion.
5654         Instead have it in top_level_diversion.
5655         * troff/div.c (diversion::diversion): Don't initialize
5656         no_space_mode.
5657         (top_level_diversion::top_level_diversion): Initialize
5658         no_space_mode.
5659         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5660         (macro_diversion::output): Don't clear no_space_mode.
5662         * troff/input.c (diverted_space_node::reread): Don't call
5663         environment::do_break.  In fill mode, act like a blank line.
5664         (diverted_copy_file_node::reread): Don't call
5665         environment::do_break.
5667         * troff/div.c (blank_line): New function.
5668         * troff/div.h: Declare it.
5669         * troff/input.c (process_input_stack): Call it.
5671         * troff/div.c (truncated_space_reg::get_string): New function.
5672         (init_div_requests): Bind to .trunc.
5673         (space_request, top_level_diversion::space,
5674         top_level_diversion::output, macro_diversion::space,
5675         macro_diversion::output): Update truncated_space.
5676         (macro_diversion::output): Redo calculations when trap sprung.
5677         (macro_diversion::output, macro_diversion::space): No need for
5678         trap_flag.
5680         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5681         after truncating post line spacing.
5683 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5685         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5686         defined as a procedure rather than as an operator.
5688 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5690         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5692 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5694         * troff/div.c (top_level_diversion::output): Merge
5695         output_file::print_line and output_file::end_of_line member
5696         functions.
5697         * troff/div.h (class output_file):
5698         * troff/node.c (troff_output_file::print_line,
5699         troff_output_file::end_of_line, output_file::end_of_line,
5700         ascii_output_file::print_line, suppress_output_file::print_line):
5701         Corresponding changes.  
5703 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5705         * troff/input.c (token::next): Don't give a warning for `\.'.
5707         * troff/env.c (environment::get_center_lines): New function.
5708         (init_env_requests): Bind number register .ce to it.
5709         * troff/env.h: Declare it.
5710         * tbl/table.c (table::init_output): Define reset macro to restore
5711         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5712         Then do .ce 0.
5713         (table::print): If center option not given, then imply center
5714         option if SAVED_CENTER_REG > 0.
5716 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5718         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5719         Troff.ps from DOWNLOAD.
5720         
5721         * troff/Makefile: Change comment in DEFINES to avoid confusing
5722         System V make.
5724         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5725         code.  Don't try to catch errors with stopped.
5726         (check_line_lengths): New function.
5727         * ps/devps/prologue (EXEC): Deleted.
5728         (EBEGIN, EEND): New procedures.
5730 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5732         * troff/input.c: Include request.h before node.h.
5733         * troff/node.c: Likewise.
5734         * troff/env.c: Likewise.
5735         * troff/div.c: Likewise.
5736         * troff/node.h (class special_node): Store argument as a macro
5737         rather than a char *.
5738         * troff/node.c (special_node::special_node, special_node::copy):
5739         Grok this.
5740         (special_node::~special_node): Deleted.
5741         (special_node::tprint): Deleted.
5742         (special_node::tprint_start, special_node::tprint_end,
5743         special_node::tprint_char): New functions.
5744         (troff_output_file::special): Deleted.
5745         (troff_output_file::start_special, troff_output_file::end_special,
5746         troff_output_file::special_char): New functions.
5747         * troff/input.c (special_node::tprint): New function.
5748         (do_special): Use macro not char *.
5749         (do_transparent_macro): Deleted.
5750         (token::next): Don't call do_transparent_macro.
5752         * troff/input.c (token::next): Add 'Y' case.
5753         (do_transparent_macro): New function.
5754         * troff/node.c (troff_output_file::special): Handle newlines with
5755         argument using new continuation convention.
5756         * driver/input.c (get_string): Cope with continuation convention.
5757         (do_file): Don't call skip_line after calling get_string(1).
5758         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5759         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5760         arg.
5761         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5762         with +.
5764 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5766         * troff/input.c (asciify): By default, illegal input characters
5767         should return empty string.
5769         * troff/input.c (copy_file): Handle first page transition like title.
5770         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5772         * troff/input.c (token::next): Improve error message for EOF after
5773         escape character.
5774         (input_char_description): New function.
5775         (get_char_for_escape_name): Use input_char_description.
5776         (token::next): Warn about unrecognized escape sequences.
5777         (warning_table): Add WARN_ESCAPE.
5778         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5779         accordingly.
5781         * troff/token.h: Remove declaration of process_input_stack.
5783         * troff/input.c: Remove declaration of init_hyphen_requests.
5784         * troff/request.h: Correct spelling in declaration of same.
5786         * troff/input.c (token::next): Check whether escape_char is 0.
5788 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5790         * groff.c (main, usage, help): Implement -P and -L options.
5791         * groff.sh: Likewise.
5793         * troff/input.c (token::next): Use some gotos to avoid code
5794         duplication.
5796         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5797         Avoid calling symbol::symbol if name empty.
5799 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5801         * troff/input.c (init_input_requests): Make \n(.x return the major
5802         version number and \n(.y return the minor version number.
5803         * troff/Makefile: Construct file majorminor.c defining
5804         major_version and minor_version automatically from ../VERSION.
5806         * troff/node.c (class glyph_node): Make operator new and operator
5807         delete public.
5808         (class ligature_node): Similarily.
5810         * troff/input.c (operator==(const macro &, const macro &)): New
5811         function.
5812         (non_interpreted_node::same): Use this.
5813         (string_iterator::string_iterator): Make macro& argument const.
5815         * troff/input.c (input_iterator::get): New function. Don't make
5816         asciify_macro or class non_interpreted_node friends of class
5817         input_iterator.
5818         (non_interpreted_node::interpret): Use input_iterator::get.
5819         (asciify_macro): Likewise.
5821         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5822         ~non_interpreted_node): Deleted.
5823         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5824         Deleted.
5826         * troff/symbol.h: Make all symbol member functions const.
5828         * lib/strtol.c: New file.
5829         * lib/Makefile: Add strtol.c.
5830         * Makefile: Define STRTOL as strtol.o to include strtol in
5831         libgroff.a.
5833 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5835         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5837 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5839         * troff/input.c (do_special): Use input_level.
5841         * troff/token.h (TOKEN_BACKSPACE): New token.
5842         (token::backspace): New function.
5843         * troff/input.c (token::description, token::next, token::process):
5844         Grok TOKEN_BACKSPACE.
5845         (do_special): Turn TOKEN_BACKSPACE back into \b.
5847         * troff/token.h (token::leader): New function.
5848         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5850         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5852         * troff/input.c (do_special): Use token::description in error
5853         message.
5855 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5857         * troff/input.c (decode_args): Combine quoted and
5858         quote_input_level variables. Make it a for (;;) loop.
5860         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5862         * troff/input.c (read_long_escape_name): The test for whether to
5863         expand buffer was off by 1.
5864         (read_string): Similarily.
5866 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5868         * troff/input.c: Use `const int' rather than `static const int'.
5870         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5871         (macro_diversion::copy_file): New function.
5872         * troff/node.h: New class diverted_copy_file_node.
5873         * troff/node.c: Implement it.
5874         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5875         first page transition by pushing a diverted_copy_file_node.
5876         * troff/input.c (token::next, process_input_stack): Don't handle
5877         COPY_FILE_REQUEST.
5879 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5881         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5882         whether space widths need adjusting.
5884         * troff/charinfo.h: Generalize translated_to_space to
5885         special_translation so as to allow translation to \&.
5886         * troff/input.c (translate): Allow translation to \&.
5887         (charinfo::*): Corresponding changes.
5888         * troff/node.c (make_node, node::add_char): Corresponding changes.
5889         * troff/node.h (dummy_node::dummy_node): Allow optional first
5890         argument.
5892         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5893         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5894         TOKEN_REQUEST.
5895         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5896         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5897         (token::process): Grok that.
5898         * troff/input.c (copy_file): Handle first page transition like
5899         title by pushing a COPY_FILE_REQUEST cookie.
5900         (token::next, process_input_stack): Grok that.
5901         * troff/node.h (output_file::copy_file): Add x and y arguments.
5902         Make it non-pure.
5903         * troff/div.c (top_level_diversion::copy_file): Supply them.
5904         * troff/node.c (troff_output_file::copy_file): Add x and y
5905         arguments; moveto specified position.  Invalidate font_position
5906         array after copying file.
5907         (output_file::copy_file): New function.
5908         (suppressed_output_file::copy_file, ascii_output::copy_file):
5909         Removed.
5910         * troff/input.c (transparent_file): New function.
5911         (init_input_requests): Bind to "trf".
5912         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5913         (process_input_stack): Likewise.
5915         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5917         * troff/node.c (init_node_requests): New number registers .kern
5918         pointing to global_kern_mode, and .lg pointing to
5919         global_ligature_mode.
5921         * troff/node.c (ligature): Don't change it if we get a bad
5922         integer.
5924         * troff/input.c (do_define_string): Don't strip tabs.
5926         * troff/input.c (asciify_macro): Make the string_iterator auto.
5928         * troff/node.c (init_font_requests): Rename to...
5929         (init_node_requests):
5930         * troff/node.h: Change declaration.
5931         * troff/input.c (main): Change call.
5933         * troff/input.c (node::reread, diverted_space_node::reread): New
5934         methods.
5935         (process_input_stack): Call reread rather than
5936         get_diverted_space_node.
5937         * troff/node.c (node::get_diverted_space_node,
5938         diverted_space_node::get_diverted_space_node): Removed.
5939         * troff/node.h: Declare reread methods instead of
5940         get_diverted_space_node methods. Make `n' member private.
5941         * troff/input.c: (token::diverted_space): Removed.
5942         * troff/token.h: Removed declaration.
5943         
5945 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5947         * eqn/script.c (script_box::compute_metrics): Don't let
5948         SUP_RAISE_FORMAT become negative.
5950         * tbl/table.c (table::do_row): Entries that don't end in the
5951         this row shouldn't make the row non-blank.
5952         
5953         * tbl/table.c (table::make_columns_equal): Only set the width of
5954         columns which are marked as equal.
5955         
5956         * tbl/main.c (process_data): Before issuing excess data error,
5957         if last character was a newline unget it; then get it again after
5958         the error.  Also include the contents of the entry in the message.
5960         * groff.c: New file.
5961         * Makefile: Build groff from groff.c.  Make it possible to use
5962         either groff.sh or groff.c as groff.
5963         * Makefile.bd: Similarily.
5965 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5967         * groff.sh: Don't delay expansion of $@ in assignment to files.
5968         Remove occurrences of \".
5970 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5972         * all Makefiles: Simplify and rearrange.
5974         * Makefile: Handle fmod like malloc.
5975         * lib/Makefile: Similarily.
5976         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5978         * Makefile: Rename OPTIMISE to OPTIMIZE.
5980         * groff.sh: Remove assignment to PATH.
5981         * Makefile: Remove SHPATH variable.
5982         * Makefile.bd: Similarily.
5984         * groff.sh: Add -V option to print the pipeline instead of
5985         executing it.
5987 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5989         * lib/font.c: Split off file searching into ...
5990         * lib/fontfile.c: New file.
5992         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5994 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5996         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5997         Also change misleading comment.
5998         (table::do_vspan): Change similarily misleading comment.
5999         * tbl/main.c (process_data): A format row with an explicit `s'
6000         uses up a data line, even if all the other columns are `_' or `='.
6002         * troff/input.c (token::description): Fix description of
6003         TOKEN_DUMMY and TOKEN_EMPTY.
6005 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6007         * groff.sh: Fix description of -Z in help message.
6009 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6011         * pic/object.c (object_spec::make_object): Allow negative and zero
6012         line thicknesses.
6013         * pic/pic.y: Give linethick default value of -1.0.
6014         * pic/troff.c (troff_output::troff_output): Initialize
6015         last_line_thickness to BAD_THICKNESS.
6016         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6017         (troff_output::line_thickness): Canonicalize negative thicknesses
6018         to RELATIVE_THICKNESS.
6019         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6020         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6021         to -1.0.
6022         (tex_output::start_picture): Set pen_size to -2.0.
6024         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6025         0, then use 0 linewidth.
6026         (ps_printer::ps_printer): Initialize line_thickness to -1.
6028         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6030         * ps/devps/symbolchars: Remove `or'.
6031         * ps/tmac.ps: Implement \(or with .char.
6033         * ps/devps/symbolchars: Move most characters into textmap.
6034         * ps/devps/textmap: Add names for troff bracket characters. Remove
6035         ul, ru, br, bv.
6037         * ps/devps/TSymbol.ps: Removed.
6038         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6039         * ps/tmac.ps: Do with .char what TSymbol did.
6040         * ps/devps/download: Remove TSymbol.
6042         * ps/devps/T: Removed.
6043         * ps/devps/Troff.ps: Removed.
6044         * ps/devps/Troff.afm: Removed.
6045         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6046         * ps/devps/download: Remove Troff.
6047         * ps/devps/FontMakefile: Remove T target.
6048         * ps/devps/DESC-A4: Remove T from font list.
6049         * ps/devps/DESC-letter: Likewise.
6051         * troff/input.c (macro_to_node): Rename to ...
6052         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6053         character's definition while processing it.
6054         * troff/node.c (node::add_char, make_node): Change calls to
6055         macro_to_node accordingly.
6057         * troff/input.c (token::next): Translate \_ to \(ul.
6059         * tty/devascii/R.proto: Add `|'.
6060         * tty/devlatin1/R.proto: Likewise.
6062 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6064         * man: Put the version number in all the man pages.
6066 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6068         * Makefile.bd: New file.
6069         * README.bd: New file.
6071         * VERSION: New file.
6072         * lib/version.c: Removed.
6073         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6074         in clean target.
6076         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6077         environment variable.
6079         * all Makefiles: Split install target into install.bin for
6080         binaries, and install.nobin for everything else.
6081         * Makefile: Add bindist target.
6083         * man/afmtodit.man: New file.
6084         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6085         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6086         in BINDIR.
6087         * ps/Makefile: Pass BINDIR to make install in devps.
6089         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6090         the space character.
6092         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6094 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6096         * ps/ps.c: Redo font downloading.
6097         * ps/devps/download: New file.
6098         * ps/devps/Makefile: Add download to DEVICEFILES.
6099         * ps/devps/afmtodit: Remove -d option.
6100         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6101         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6102         * ps/devps/zapfdr.ps: Likewise.
6103         * ps/devps/TSymbol.ps: Likewise.
6105 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6107         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6109 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6111         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6112         then strip the first line if it starts with %.
6113         * Makefile: Add a comment about this.
6115         * man/tfmtodit.man: New file.
6116         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6117         * dvi/Makefile: Install tfmtodit in BINDIR.
6119         * dvi/tfmtodit.c (usage): Mention -v option.
6121 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6123         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6124         * troff/node.c (troff_output_file::transparent_char): Don't call
6125         flush_tbuf.
6127         * eqn: Add check_tabs method to most box classes.
6128         * eqn/box.c (box::top_level): Call check_tabs.
6130         * eqn/script.c (script_box::output): Use \Z.
6131         * eqn/limit.c (limit_box::output): Use \Z.
6133         * eqn/box.c (box::top_level): Use itoa.
6135 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6137         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6138         * dvi/devdvi/Makefile: Don't make links to CW.
6140         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6141         HX, HD.
6142         * xditview/tmac.X: Likewise.
6144         * troff/node.c: Add font translation feature.
6145         (get_font_translation): New function.
6146         (symbol_fontno): Translate the font name.
6147         (mount_font_no_translate): Rename to mount_font to this.
6148         (mount_font): New function.
6149         (font_family::make_definite): Call mount_font_no_translate instead
6150         of mount_font.
6151         (mount_style): Translate the font name.
6152         (font_translate): New function.
6153         (init_font_requests): Bind "ftr" to font_translate.
6155         * ps/devps/prologue (SN): New procedure that rounds a position to
6156         the nearest (pixel + (.25,.25)).
6157         (DL): Use SN to round endpoints.
6159         * lib/version.c: Changed version to 0.5.
6161 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6163         * Makefile: Move definition of PAGE to the very beginning, so that
6164         people are less likely to miss it.
6166 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6168         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6170         * troff/env.c (environment::choose_breakpoint): Make `can't find
6171         breakpoint' error a warning of type WARN_BREAK.  Change message to
6172         `can't break line'.
6173         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6174         code 040000.
6175         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6176         WARN_BREAK in DEFAULT_WARNING_MASK.
6178         * tty/tmac.tty: Add definition of \(+-.
6180         * groff.sh: Remove `--' option to set command.
6182         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6184         * ps/devps/eqnchar: Better definition of cdot using md.
6185         * dvi/devdvi/eqnchar:  Likewise.
6186         * xditview/devX100/eqnchar:  Likewise.
6187         * xditview/devX75/eqnchar: Likewise.
6188         * eqn/lex.c: Add definition of cdot.
6190 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6192         * troff/input.c (get_optional_char): New function.
6193         * troff/input.c (set_page_character): Use get_optional_char(),
6194         rather than has_arg() and tok.get_char(1).
6195         * troff/env.c (tab_character, leader_character, hyphen_char,
6196         field_characters): Likewise.
6197         (margin_character): Likewise.  Also always delete the
6198         margin_character_node.
6200         * troff/input.c (token::get_char): Use token::description.
6202         * troff/input.c (has_arg): Don't skip over tab and \}.
6203         * troff/number.c (start_number): Give a warning if the number
6204         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6206 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6208         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6209         functions.
6210         (get_name, get_long_name): Use these.  Rename `warn' argument to
6211         `required'.
6213         * troff/node.c (get_fontno): Test that the symbol is not null.
6215         * troff/input.c (token::description): New function.
6216         * troff/number.c (parse_term): Use token::description in `numeric
6217         expression expected' message.
6218         * troff/groff.h: Add WARN_MISSING.
6219         * troff/number.c (start_number): New function.
6220         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6221         get_incr_number): Use start_number().
6222         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6223         default.
6224         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6225         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6226         token::descripion.
6227         * troff/input.c (token::get_char): Use WARN_MISSING.
6228         * troff/input.c (token::delimiter): Use token::description.
6229         * troff/env.c (environment_switch): Back out Aug 3 change.
6230         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6231         warning.
6232         * troff/token.h (token::tab): New function.
6233         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6234         * troff/reg.c (alter_format): Likewise.
6235         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6237 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6239         * troff (most files): Redo warnings. Divide warnings into various
6240         categories; warning() has an additional first argument indicating
6241         the category it falls into.
6242         * troff/input.c (main): -w now takes an argument. New option -W.
6243         (enable_warning, disable_warning): New functions.
6245         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6246         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6248 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6250         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6251         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6252         * xditview/devX75/eqnchar: Likewise.
6253         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6255         * eqn/other.c: When bar or over applies to a single character
6256         don't produce an overline_box or an underline_box. Instead produce
6257         an accent_box or an underaccent_box, with the accent a line
6258         whose width is accent_width.  New classes underaccent_box,
6259         overline_char_box and underline_char_box.
6260         * eqn/box.h: Move overline_box, underline_box, accent_box class
6261         declarations into eqn/other.c. Add declarations of
6262         make_underline_box, make_overline_box, make_accent_box.
6263         * eqn/eqn.y: Call make_overline_box, make_underline_box
6264         make_accent_box instead of constructors.
6265         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6267         * eqn/other.c: Add accent_box::~accent_box.
6268         * eqn/box.h: Declare it.
6270         * groff.sh: With -Tps, use eqn -D.
6272         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6273         rather than \l.
6274         (underline_box::output): Similarily.
6275         (accent_box::output): Use \Z.
6277         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6278         bit smaller.)
6280 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6282         * troff/div.c (top_level_diversion::transparent_output(unsigned
6283         char)): Use asciify.
6284         * troff/input.c (asciify): Don't make it static.
6285         * troff/token.h (asciify): Declare it.
6286         
6287         * troff/input.c (get_name, get_long_name, token::get_char,
6288         token::delimiter): Add an extra default argument which says
6289         whether a warning should be printed.
6290         * troff: Pass a non-zero argument to one of these rather than
6291         printing a warning directly.
6293 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6295         * troff: Consistently use symbol::is_null.
6297         * troff/dictionary.h: Move some inline functions into
6298         dictionary.c.
6300         * troff/request.h: Move inline functions into input.c.
6301         (request_or_macro::invoke): Make it pure.
6303         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6304         * troff/input.c (init_input_requests): Use class constant_int_reg.
6305         (class compatible_reg): Deleted.
6306         * troff/div.c (init_div_requests): Use class constant_int_reg.
6307         (class last_post_line_extra_space_reg): Deleted.
6309         * troff/env.c (tab_character): Don't change the tab character if
6310         we get an invalid argument.
6311         (hyphen_char): Similarily.
6313         * troff/reg.c (alter_format): Check that nm is not null.
6315         * Makefile, groff.sh: Make it possible to customize the commands
6316         used for printing PostScript and dvi files. Also make it possible
6317         to customize the path used by groff.sh.
6319         * eqn/eqn.y: Make `left' right associative.
6321 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6323         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6324         don't have it.
6326         * pic/pic.h: Removed definition of INT_MAX.
6328         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6329         `return'.
6331         * troff/input.c (token::next):  Handle \R like \n.
6333 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6335         * ps/tmac.pc (PSPIC): Simplify.
6337         * troff/env.c (tab_stops::to_string):
6338         * pic/pic.y (object_type_name):
6339         * pic/troff.c (simple_output::line):
6340         * pic/tex.c (tex_output::spline):
6341         * pic/object.c (object_spec::make_object):
6342         * tbl/main.c (process_data):  Add cases to switch statements to
6343         avoid cfront warnings. (Some of these are spurious, since the
6344         switch already has a default case.)
6346         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6347         `ps-'.  Don't test systat; instead check number of arguments to
6348         ps-bb.
6350 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6352         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6354         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6355         Unlink the file as soon as we have opened it, so that we don't
6356         have to bother with signal handlers.
6357         (handler): Deleted.
6358         (fatal_error_exit): Deleted.
6359         (main): Don't call signal.
6361         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6362         can be ignored.
6363         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6365         * pic/pic.y:  If there is a label, or an nth construction before
6366         the first `.' in the argument to `with', ignore it and generate a
6367         warning.
6368         * pic/lex.c (lex_warning): New function.
6370         * tbl/table.c (table::init_output): In section keep and release
6371         macro, use 0 indent when diverting and the correct indent when
6372         rereading.
6374         * troff/input.c (interpolate_number_format): Do not interpolate
6375         anything if the number register is not defined.
6377         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6379 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6381         * ps/devps/prologue (PICTURE): Set components of graphics state to
6382         their default values.
6384         * ps/devps/text.enc: Add trademark
6385         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6386         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6387         * ps/devps/symbolchars: Add names for summation and product.
6389         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6390         suchthat. Add pp. Add upper-case letters.
6392         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6393         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6394         Upsilon.
6396         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6397         rA (right angle bracket) to ra.  Introduce names for double-headed
6398         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6399         * ps/devps/textmap: Likewise for ps device.
6400         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6401         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6402         * tty/devascii/R.proto: Likewise.
6403         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6404         \(uA, \(dA.
6405         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6407         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6409         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6410         def_table.
6412 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6414         * troff/div.c (when_request): Use symbol::is_null rather than
6415         has_arg to determine whether we have an argument.
6416         (change_trap): Remove the trap if we get an invalid number. Give
6417         an error if we don't get at least the macro name.
6418         (diversion_trap): Remove trap if we get an invalid name or number.
6420         * troff/env.c (environment_switch): Pop if we get an invalid
6421         symbol or numeric expression.
6423         * troff/input.c (do_define_macro):  If EOF is encoutered while
6424         defining the macro, do tok.next() before returning.
6426         * troff/token.h (has_arg): Move definition from here, to ...
6427         * troff/input.c (has_arg): ... here
6429         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6430         * troff/input.c (shift): Likewise.
6432         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6433         for `.c'.
6435         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6436         `..'.
6438         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6439         interpret_lf_args succeeds.
6441         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6442         \\.  This avoids problems with \$N.
6444         * groff.sh: Pass -C to preprocessors.
6446         * lib/lf.c (interpret_lf_args):  Be more flexible.
6448         * tbl/main.c (main): Add -C option.
6449         (table_input::get): Do not recognize TE if followed by character
6450         other than a space or newline unless -C option given.
6451         (process_input_file): Likewise for lf, TS.
6452         (process_data): Likewise for lf in text blocks.
6454         * eqn/main.c (main): Add -C option.
6455         (do_file): Don't recognize EQ, EN or lf if followed by character
6456         other than space or newline unless -C option given.
6457         * eqn/lex.c (file_input::read_line): Similarily.
6458         * eqn/eqn.h: Declare compatible_flag.
6460         * etc/soelim.c (main): Add -C option.
6461         (interpret_lf_args): Use version in libgroff.
6462         (do_file):
6464         * pic/main.c (main): Add -C option, which sets compatible_flag.
6465         (top_input::get), (top_input::peek):  If -C option not given,
6466         do not recognize .PS/.PE/.PF/.lf if followed by a character
6467         other than space or newline.
6468         * pic/lex.c (file_input::read_line): Similarily.
6469         * pic/pic.h: Add declaration of compatible_flag.
6471 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6473         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6475         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6476         derived from node.  New class space_char_hmotion_node.
6477         * troff/input.c (asciify_macro): New function.
6478         * troff/input.c (init_input_requests): New request `asciify' bound
6479         to asciify_macro.
6480         * macros/mm.diff: New file.
6481         * Makefile:  In install.mm target use `patch' to apply
6482         macros/mm.diff.
6484         * troff/input.c (macro::print_size): Just print the size in bytes.
6486         * troff/div.c (return_request): Correct the argument
6487         interpretation.
6489 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6491         * troff/node.h (class composite_node): Add sz member.
6492         * troff/node.c (composite_node::size): Return sz.
6493         * troff/input.c (macro_to_node):  Use the initial size in the
6494         environment as the size of the composite_node.
6496         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6497         default.
6499 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6501         * troff/div.c (change_trap): If we get a bad number expression,
6502         do nothing.
6504 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6506         * lib/matherr.c (matherr): Define this only if math.h defines
6507         TLOSS.
6509 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6511         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6512         no diversion trap return vunits(INT_MAX - vresolution).
6514 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6516         * troff/input.c (do_zero_width): New implementation that doesn't
6517         use a temporary environment. Use instead:
6518         (token::add_to_node_list): New function.
6519         * troff/env.c (environment::get_prev_char_height),
6520         (environment::get_prev_char_height),
6521         (environment::get_prev_char_skew): New functions.
6522         (environment::get_prev_char): New function.
6523         (environment::get_prev_char_width): Change to use get_prev_char.
6524         (init_env_request): Implement new registers .cht, .cdp, .csk.
6525         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6526         \Z being processed in a separate environment.
6528 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6530         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6532         * tbl/table.c (table::init_output): In the section release macro,
6533         give a warning message if the section won't fit on one page.
6535         * tbl/table.c (table::do_top): Emit table keep only if table is
6536         boxed.
6537         (table::do_bottom): Likewise for table release.
6538         (table::table), (table::add_vertical_rule):  Remove reference to
6539         keep member.
6540         * tbl/table.h: Remove keep member.
6542         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6543         SECTION_RELEASE_MACRO, if there's not enough space before the next
6544         trap to output the diversion, call T# ourselves, set
6545         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6546         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6547         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6548         vertical position and return to it before turning traps on again.
6549         
6550 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6552         * troff/node.c, troff/node.h: In classes derived from node,
6553         replace prev_char_width method by last_char_node method.
6554         * troff/env.c (environment::get_prev_char_width): Use
6555         node::last_char_node rather than node::get_prev_char_width.
6557         * Makefile: Added comment about -fno-inline on 68030-based
6558         Apollos.
6560         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6561         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6562         expressions using sizeof to int.
6563         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6565         * macros/tmac.e (TS):  Don't move @f back past the current
6566         position.
6568 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6570         * ps/ps.c (main): Buffer stderr.
6571         * dvi/dvi.c (main): Likewise.
6572         * tty/tty.c (main): Likewise.
6574         * ps/ps.c (ps_printer::do_import): Improve error handling.
6576         * troff/input.c (abort_request): Use asciify.
6578         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6579         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6580         type of first argument int rather than char.  This works around a
6581         bug on the 68030 based Apollo using g++ 1.37.1.
6583         * tbl/table.h (class table): Add `keep' member.
6584         * tbl/table.c (table::table): Initialize `keep'.
6585         (table::add_vertical_rule): Set `keep' to 1.
6586         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6587         (table::do_bottom): Likewise for table release macro.
6588         (table::do_row): Emit section keep macro even if the row is 0.
6590 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6592         * macros/tmac.e (@C): Preserve the font family across the change
6593         in environments.
6595 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6597         * lib/font.c: Initialize font::hor and font::vert to 1.
6598         (font::load_desc): Check the values of font::hor and font::vert.
6600         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6601         be included in a C compilation.
6602         (iftoa): Use INT_DIGITS. Include lib.h.
6603         (itoa): Likewise.
6604         (as_string): Likewise.
6605         * tbl/table.c: Removed definition of INT_DIGITS.
6606         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6607         * troff/input.c (input_input_requests): Likewise.
6608         * ps/ps.c (make_encoding_name): Likewise.
6609         (ps_printer::set_style): Likewise.
6610         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6612         * tty/devascii/R.proto: Map fm onto '.
6613         * tty/devlatin1/R.proto: Likewise.
6615 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6617         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6618         argument to \w is at a different input level.
6620         * tbl/table.c (table::init_output): Define a new macro
6621         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6622         transparently outputs itself.
6623         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6624         vpt.
6625         (table::do_row): Likewise.
6627         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6628         TRANSPARENT_STRING_NAME.
6630         * tbl/table.c (table::init_output): In the table release macro
6631         print an error message and don't produce any output if after
6632         issuing the need request the table still will not fit.  Also
6633         remove the diversion after bringing it back.
6635         * tbl/table.c (table::init_output): Define a new macro
6636         REPEATED_MARK_MACRO, like mk but if in a diversion also
6637         transparently outputs itself.
6638         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6639         is necessary because .TH might not call .T#.
6640         (table::do_top): Likewise TOP_REG.
6641         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6642         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6643         table header might contain just the two top rules.
6645 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6647         * troff/div.c: Implement new request `ptr' to print all traps.
6649         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6650         init_string_env_reg.
6651         * troff/env.c (class tab_reg): Deleted.
6653 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6655         * troff/div.c: New number register .pn returns the number of the
6656         next page as set by the pn request.
6658         * macros/tmac.an: Redid headers and footers.  Number each manual
6659         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6660         optional 5th argument to .TH which specifies the manual name and
6661         appears in the center of the header.  Understand the X, P and D
6662         registers like Sun.
6664 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6666         * troff/env.c (init_env_requests): New number register `.lt' to
6667         return the title length.
6669         * troff/node.h (class transparent_dummy_node): New class.
6670         * troff/node.c (class transparent_dummy_node): Provide member
6671         functions. 
6672         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6673         than a dummy_node.
6675         * troff/input.c (token::next): New escape sequence \).
6676         * troff/input.c (get_copy): Recognize \) in copy mode.
6678         * troff/input.c (input_stack::clear): New function.
6679         * troff/input.c (exit_request): Use input_stack::clear.
6681         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6682         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6684         * troff/env.c: Move set_page_character to input.c.  Move
6685         page_character to input.c also.
6686         * troff/env.c (title): Split off the reading of the parts of the
6687         title into read_title_parts.
6688         * troff/input.c (read_title_parts): New function.  Check the
6689         input_level when testing whether a token matches the delimiter.
6691         * troff/input.c (exit_request): New function.
6692         * troff/input.c (init_input_requests): Bind ex request to
6693         exit_request rather than exit_groff.
6695         * troff/input.c (exit_groff): Call tok.next() before
6696         process_input_stack().
6698 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6700         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6701         * troff/env.h: ditto.
6702         * troff/input.c: ditto.
6704         * troff/env.c (environment::is_empty): Test pending_lines.
6706         * troff/env.c (environment::have_pending_lines): Removed.
6708         * troff/input.c: Add request to flush pending lines from the
6709         environment.
6711         * troff/env.c, troff/env.h: Add automatic widow control feature.
6713         * troff/input.c (exit_groff):  Do process_input_stack() after
6714         do_break() but before setting exit_flag to 2.
6716         * troff/input.c: Remove FLUSH_PENDING_LINES and
6717         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6718         environment after END_TRAP token seen, but only if there aren't
6719         any more traps still unfinished.
6720         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6722 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6724         * troff/env.c: Rename the `retain_size' member of class
6725         pending_output_line to `no_fill'.
6727         * troff/env.c (title): When the line is output, make the
6728         retain_size argument !fill.
6730         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6731         * troff/node.c (space_node::get_breakpoints),
6732         (dbreak_node::get_breakpoints):  Fill this in.
6733         * troff/env.c:  Allow specification of maximum number of
6734         consecutive hyphenated lines.
6736         * troff/env.c (environment::is_empty): Add test for !current_tab.
6738 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6740         * troff/env.c (environment::hyphenate_line): Don't completely give
6741         up if the word is not to be hyphenated; continue so that breaks
6742         can be made at break_char_node's.
6744         * lib/lib.h: Only define INT_MAX if it's not already defined;
6745         undef INT_MIN if it's already defined.
6747         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6749         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6750         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6751         compiler.
6752         
6753         * macros/tmac.an (an-header): Set no-space mode.
6755         * macros/tmac.an (TH): Start a new page if necessary.
6757         * Started using ChangeLog at version 0.4.
6759 Local Variables:
6760 version-control: never
6761 End: