* tmac/troffrc: Add tmac.lbp.
[s-roff.git] / ChangeLog
blob959645258e0221c7c956a67f49282428f1e46ff5
1 2000-03-04  Werner LEMBERG  <wl@gnu.org>
3         * tmac/troffrc: Add tmac.lbp.
5 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
7         * tmac/tmac.lbp: New file.
8         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9         command.
11 2000-03-03  Werner LEMBERG  <wl@gnu.org>
13         * Makefile.in: Fixing $(subdir).
15         * README, NEWS: Small fixes.
17         * test-groff: Adding path to grolbp.
19         * configure.in: The (new) file src/xditview/Imakefile.in will be
20         also configured -- it is now possible to build gxditview in a
21         directory different from $srcdir.
23 2000-03-02  Blake McBride  <blake@florida-software.com>
25         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
27         * MORE.STUFF: Added website of bell labs and info about plot2dev.
29 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
31         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
32         files.
34 2000-02-29  Werner LEMBERG  <wl@gnu.org>
36         Adding GNU getopt to the groff distribution.
38         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
39         New files.
40         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
41         * aclocal.a4: Remove GROFF_GETOPT function.
42         * configure.in, Makefile.in, PROBLEMS: Update.
43         * src/include/lib.h: Replace getopt tests with getopt.h.
44         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
46         * doc/groff.texinfo: Further checking/updating.  Adding more index
47         entries.
49         * man/groff_out.man: Fix nroff mode activation (for emacs).
50         * man/groff_font.man: Add missing ligature.
52 2000-02-28  Werner LEMBERG  <wl@gnu.org>
54         * doc/groff.texinfo: Further checking/updating.  Adding more index
55         entries.
57         * src/devices/grolbp/grolbp.man: Added a comment line at the
58         beginning of the file (similar to shell scripts) which indicates
59         that `tbl' should be used as a preprocessor.
61 2000-02-27  Blake McBride  <blake@florida-software.com>
63         Adapting groff to MS Visual C++ 6.0 compiler (tested with
64         Windows NT 4.0).  Uses _MSC_VER define where necessary.
66         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
67         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
68         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
69         src/include/lib.h, src/libs/libgroff/errarg.cc,
70         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
71         src/preproc/refer/label.y, src/preproc/refer/label.cc,
72         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
73         src/roff/troff/div.cc, src/roff/troff/env.cc,
74         src/roff/troff/input.cc, src/roff/troff/node.cc,
75         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
76         if_to_a() to avoid name clashes.
77         * src/include/posix.h: Don't use unistd.h.
78         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
79         clause for integrating non-Unix xtmpfile() code.
80         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
81         structure; use "rt" for popen() in pipe_source(); add getpid()
82         dummy function.
83         * src/roff/troff/node.cc: Use special versions of popen() in
84         real_output_file() and pclose() in ~real_output_file().
86 2000-02-27  Werner LEMBERG  <wl@gnu.org>
88         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
89         LBP-8 series laser printers).  This code has been contributed by
90         Francisco Andres Verdu <pandres@dragonet.es>.
92         * src/devices/grolbp/*: The grolbp output device.
93         * font/devlpb/*: The font description files.
94         * Makefile.in: Add grolpb and devlbp subdirectories.
96         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
97         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
98         typographic fixes.
100         * doc/groff.texinfo: Further checking/updating.  Adding more index
101         entries.
103         * NEWS: Updated.
105         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
107         * man/groff_font.man: Adding info about obsolete DESC keywords.
108         * src/devices/grolj4/grolj4.man: Documenting additional DESC
109         keywords.
111 2000-02-26  Werner LEMBERG  <wl@gnu.org>
113         * src/preproc/grn/grn.man: Added info about the gremlin file format
114         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
116 2000-02-25  Werner LEMBERG  <wl@gnu.org>
118         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
119         friends to be non-integer.
121         * src/preproc/grn/grn.man: Document it.
123         * doc/groff.texinfo: Further checking/updating.  Adding more index
124         entries.
126 2000-02-24  Werner LEMBERG  <wl@gnu.org>
128         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
129         line thicknesses to be integer multiples of this value.
131         * src/preproc/grn/grn.man: Commenting out the -s option -- the
132         corresponding code doesn't work (yet).
134         * doc/groff.texinfo: Further checking/updating.  Adding more index
135         entries.
137 2000-02-23  Werner LEMBERG  <wl@gnu.org>
139         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
140         specify line thickness instead of base units.  The new default
141         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
142         thick lines respectively.
144         Removed unused variable `prevval'.
146         * src/preproc/grn/grn.man: Updated.
148 2000-02-22  Werner LEMBERG  <wl@gnu.org>
150         * src/preproc/grn/main.cc: Slight formatting.
152         * src/roff/groff/groff.man: Formatting fix.
153         * src/preproc/grn/grn.man: Ditto.
155         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
157         * doc/groff.texinfo: Further checking/updating.
159 2000-02-21  Werner LEMBERG  <wl@gnu.org>
161         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
163         * test-groff: Added grn subdir to path.
165         * doc/groff.texinfo: Some restructing and other small improvements.
167         * src/roff/groff/groff.cc (help): Fixed info string.
169 2000-02-20  Werner LEMBERG  <wl@gnu.org>
171         * doc/meref.me: Fix description of .GS request.
173         * src/roff/troff/troff.man: Fixing typo.
175         Adding the `grn' preprocessor for gremlin graphic files.
177         * src/preproc/grn/*: This is the Berkeley distribution written by
178         David Slattengren and Barry Roitblat, adapted to groff by Daniel
179         Senderowicz and Werner Lemberg.
181         * doc/grnexampl.{me,g}: A sample for grn.
183         * Makefile.in: Added subdirectory entry for grn.
185         * src/roff/groff/groff.cc: Added support for grn.  It can be now
186         called with the switch `-g'.
188         * src/roff/groff/groff.man: Updated.
190         * src/roff/grog/grog.{man,pl,sh}: Updated.
192         * NEWS: Updated.
194 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
196         * src/include/lib.h: Added xtmptemplate and made xtmpfile
197         parametrically polymorphic.
199         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
200         and the alterations to xtmpfile.
201         xtmpfile can be requested to return the filename created
202         and asked not to unlink the temp file.  The default behaviour
203         if parameters are absent is exactly the same as before.
205 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
207         A new request `length' is available which returns the length of a
208         string in a number register:
210         * src/roff/troff/input.cc (length_macro): Implement it.
211         * src/roff/troff/input.cc (init_input_requests): Register it.
213 2000-02-11  Werner LEMBERG  <wl@gnu.org>
215         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
216         of the `substring' request.
218         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
219         request.
221         * src/roff/troff/TODO, NEWS: Updated.
223 2000-02-09  Werner LEMBERG  <wl@gnu.org>
225         * src/roff/groff/groff.man: Added an example.
227 2000-02-06  Werner LEMBERG  <wl@gnu.org>
229         I've considerably modified the directory structure of the
230         distribution to get a more vertical layout.  For example, the number
231         of top level directories has been reduced from 42 to 6.
233         As a consequence, many changes, especially to the makefiles, were
234         necessary:
236         * The makefile variables `top_builddir' and `top_srcdir' have been
237         introduced.  Virtually all relative paths have been replaced with
238         absolute ones using these two variables.
240         * Dependencies (in the files `Makefile.dep') are no longer part of
241         the distribution.  Instead, they are created during a `make install'
242         in the build directory.
244         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
245         make `top_srcdir' and `top_builddir' absolute.
247         Some other changes:
249         * Man pages no depend on the files `VERSION' and `REVISION'.
251         * The added shell script `mkinstalldirs' will replace `mkdir' in
252         almost all cases.
254         * VERSION: Version number increased to 1.16.
256 2000-02-04  Werner LEMBERG  <wl@gnu.org>
258         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
260         * Makefile.in: Removed $(tmac_m) since it is no longer needed
261         (after an update of the mm stuff).
263         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
265 2000-02-03  Werner LEMBERG  <wl@gnu.org>
267         The .psbb request will now also accept Mac PS images (i.e. using LF
268         as the EOL character).
270         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
271         (with slight modifications).
272         * troff/input.cc (do_ps_file): Use it.
274         * test-groff: Add grohtml and grolj4 output devices to PATH.
276 2000-01-30  Werner LEMBERG  <wl@gnu.org>
278         * NEWS, MORE.STUFF: Updated.
280 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
282         Add the `srand' command to pic.
284         * pic/lex.cc, pic/pic.y: Implement it.
285         * pic/pic.man: Document it.
286         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
288 2000-01-30  Werner LEMBERG  <wl@gnu.org>
290         Add a new request `.psbb'.  This does exactly what the external
291         program psbb did.  It scans a PostScript image file for a
292         %%BoundingBox comment and extracts the bounding box values (in
293         PostScript units) which are then stored in the four new (read-only)
294         number registers `llx', `lly', `urx', and `ury'.
296         This will allow the usage of the .PSPIC macro without worrying
297         about unsafe behaviour of groff, i.e., it will work without the
298         `-U' switch of groff.
300         * troff/input.cc: Implement it.
301         * tmac/tmac.pspic: Use it.
302         * troff/troff.man, grops/grops.man, NEWS: Document it.
303         * psbb/*, Makefile.in: Remove it since it is no longer needed.
305         This is bloody C code simply adapted from psbb.c!  Any improvements
306         welcome.
308 2000-01-29  Werner LEMBERG  <wl@gnu.org>
310         * man/groff_font.man: Minor clarifications.
312         * NEWS: Updated.
314 2000-01-28  Werner LEMBERG  <wl@gnu.org>
316         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
318 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
320         * man/groff_font.man: Brought up to date regarding tcommand
321         extensions.
322         * libgroff/font.cc: Handle everything after `--' as a comment
323         in the font files.
324         * devps/*: Added comment delimiter inside devps font files.
326 2000-01-28  Werner LEMBERG  <wl@gnu.org>
328         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
329         \fC...\fP (which now works as expected).
331         * troff/troff.man: Fix typo.
333 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
335         Completed the pass_filenames implementation in troff.
337         * libdriver/input.cc: Will read the new `F' tcommand.
338         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
339         * troff/input.cc: Use it.
341 2000-01-26  Werner LEMBERG  <wl@gnu.org>
343         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
344         font will now be updated even if an invalid font is selected.
346 2000-01-24  Werner LEMBERG  <wl@gnu.org>
348         * doc/homepage.ms: Updated for new tmac.arkup.
350         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
352         * tmac/tmac.arkup: Cleanup.
354         Added `\&' to .HTML macro to `leave vertical mode', so to say.
356         Removed obsolete .LINK macro completely.
358         The macros .URL, .FTP, and .MAILTO now accept a third argument which
359         will be immediately appended to the second argument (to be used with
360         punctuation, for example).
362         Disabled .CDFTP macro temporarily for security reasons.
364         * tmac/groff_markup.man: Complete revision for latest changes in
365         tmac.arkup -- note that it does not yet format correctly with
366         grohtml :-(
368 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
370         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
371         * devutf8/R.proto: Add mappings for wp, lh, rh.
372         * devutf8/NOTES: Updated.
374 2000-01-23  Werner LEMBERG  <wl@gnu.org>
376         * doc/groff.texinfo: Updated version/copyright info.
378 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
380         Added support for two new directives in device descriptions:
381         `pass_filenames' (to pass the input file name to the output device)
382         and `use_charnames_in_special' (to support e.g. accented characters
383         in the `X' request).
385         * include/font.h, troff/charinfo.h: Declare it.
387         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
389         * devhtml/DESC: Use it.
391         * troff/input.cc: New function encoded_char.
393         * troff/token.h: Add test for `specialness'.
395 2000-01-21  Werner LEMBERG  <wl@gnu.org>
397         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
398         mistake from the list of files to be installed.
400 2000-01-18  Werner LEMBERG  <wl@gnu.org>
402         * README: Added info how to apply patches.
404 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
406         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
408 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
410         * troff/input.cc: Add support for troffrc-end.
412         * tbl/main.cc: Altered to issue table-start and table-end special
413         characters if using the html device.
415         * devhtml/*: Modified font files to incorporate html encoding of
416         characters.
418         * tmac/groff_markup.man: New file documenting tmac.arkup.
420         * tmac/troffrc-end: New file.  This is invoked after all user
421         specified macros.  Currently used by the html device to include
422         tmac.html.  Thus no need for users to specify -mhtml anymore.
424         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
425         (MAN7): Add groff_markup.man.
427         * tmac/tmac.an, tmac/tmac.html: Small html updates.
429         * tmac/troffrc: tmac.arkup will now be called for the html device.
431         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
432         extra device specific information about fonts.
434         * doc/homepage.ms: New file.  It is an example how an HTML home page
435         could look like with grohtml.
437         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
439 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
441         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
442         of Im, Re.
444         * devutf8/NOTES: Updated.
446 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
448         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
449         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
450         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
451         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
452         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
453         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
454         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
455         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
456         warnings.
458         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
460 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
462         grolj4: Paper size will be searched case-insensitively.
464         * grolj4/lib.h: Add check for strcasecmp().
465         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
466         * configure.in: Check for strcasecmp().
468 2000-01-11  Werner LEMBERG  <wl@gnu.org>
470         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
471         `REVISION'.
473 2000-01-10  Werner LEMBERG  <wl@gnu.org>
475         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
476         revision scheme.
478         Add a new read-only register, `.Y', which contains the groff
479         revision.
481         * troff/input.cc (init_input_requests): Define it.
482         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
483         * doc/groff.texinfo, troff/troff.man: Document it.
485         * libgroff/Makefile.sub (version.cc): Add definition of
486         `Version_string[]', consisting of `<major>.<minor>.<revision>'
487         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
488         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
489         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
490         troff/input.cc, pfbtops/pfbtops.c: Use it.
492 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
494         Add a revision scheme to the groff package.
496         * REVISION: New file.
497         * libgroff/Makefile.sub (version.cc): Use it to define
498         `revision_string[]'.
499         * grops/psrm.cc: Use revision_string (converted to an unsigned
500         integer) in constructor of resource_manager.
502 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
504         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
505         files.
506         * Makefile.in (DEVDIRS): Add devutf8.
507         * grotty/tty.cc: Include device.h.
508         (glyph): Change type of `code' to `unsigned int'.
509         (tty_printer): New field is_utf8.  Constructor takes device argument.
510         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
511         (tty_printer::add_char): Change type of first arg to `unsigned int'.
512         (tty_printer::put_char): New function.
513         (tty_printer::end_page): Use put_char() instead of ::putchar().
514         (make_printer): Pass device to tty_printer constructor.
515         * nroff.sh: Determine default device by calling 'locale'.  As a
516         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
517         Recognize UTF-8 locales.
518         * tmac/eqnrc: Recognize utf8 like latin1.
519         * tmac/troffrc: Device utf8 needs tmac.tty.
521 2000-01-07  Werner LEMBERG  <wl@gnu.org>
523         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
525 2000-01-07  Paul Eggert  <eggert@twinsun.com>
527         Add a new predefined writeable number register, `year',
528         which contains the current year.
530         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
531         * tmac/tmac.s: Use it.
532         * troff/input.cc (init_registers): Initialize it.
534 2000-01-06  Werner LEMBERG  <wl@gnu.org>
536         * PROBLEMS: Fixed typo.
538 2000-01-04  Paul Eggert  <eggert@twinsun.com>
540         * PROBLEMS: Add Y2k advice for the yr number register.
542 2000-01-03  Paul Eggert  <eggert@twinsun.com>
544         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
546 2000-01-02  Werner LEMBERG  <wl@gnu.org>
548         * tmac/tmac.arkup: Slight modification of macros to provide better
549         appearance for non-HTML formats.
551 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
553         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
554         does not automatically translate to malloc(n) on all OSes
555         (e.g., SunOS) so do it explicitly.  Also, check the returned
556         value.
558 2000-01-01  Werner LEMBERG  <wl@gnu.org>
560         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
562         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
563         expects this variable
565 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
567         * doc/Makefile: Added instructions to create HTML and text
568         versions of some files.
570 1999-12-31  Werner LEMBERG  <wl@gnu.org>
572         * Updated INSTALL.gen.
574         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
575         better resp. correctly with non-HTML devices.
577 Version 1.15 released
578 =====================
580 1999-12-28  Werner LEMBERG  <wl@gnu.org>
582         * NEWS, VERSION: Changed to 1.15
584 1999-12-27  Paul Eggert  <eggert@twinsun.com>
586         * nroff/nroff.man: -S is safer, not safe.
588         * groff/groff.cc (main): Use `safer', not `safe', in variable
589         names.  This does not change the behavior.
591         * troff/input.cc (main): Likewise.
593         * nroff/nroff.sh: Likewise.
595         * troff/input.cc (prepend_string): New function.
596         (main): Prepend -msafer, so that we check macro libraries for
597         safety.
599         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
601 Version 1.14 released
602 =====================
604 1999-12-26  Werner LEMBERG  <wl@gnu.org>
606         * NEWS, VERSION: Changed to 1.14.
608 1999-12-24  Werner LEMBERG  <wl@gnu.org>
610         * refer/refer.cc: Fixing the last fix.
612 Version 1.13 released
613 =====================
615 1999-12-23  Werner LEMBERG  <wl@gnu.org>
617         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
618         number disappear.
620         * NEWS: Updated.
622         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
624         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
625         document conventions, the version number must be a real.
627 Version 1.12.1 released
628 =======================
630 1999-12-22  Werner LEMBERG  <wl@gnu.org>
632         * VERSION: Changed to 1.12.1.
634 1999-12-22  Alan Rooks  <arooks@istar.ca>
636         * refer/refer.cc (do_file): Slight modification to satisfy the
637         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
638         UnixWare 7.1.
640 1999-12-20  Werner LEMBERG  <wl@gnu.org>
642         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
643         notices.
645         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
646         list of unsafe requests.
648         * pic/pic.man: Fixed a typo.
650         * man/groff_out.man: Fixed a typo.
652 1999-12-18  Werner LEMBERG  <wl@gnu.org>
654         * Makefile.in: Doc fixes.
656 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
658         * groff/groff.cc: Missing `U' option added to getopt().
660         * troff/troff.man: Missing `U' option added to synopsis.
662 Version 1.12 released
663 =====================
665 1999-12-14  Werner LEMBERG  <wl@gnu.org>
667         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
668         to the synopsis.
670         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
671         with the more appropriate terms `safer' and `unsafe'.
673         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
674         sys_nerr and sys_errlist[].
676         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
678         * pic/pic.y, pic/pic.cc: Added check for fmod().
680 1999-12-13  Werner LEMBERG  <wl@gnu.org>
682         * VERSION: Changed to 1.12.
684         Here some patches from various sources; most of them taken from
685         the Debian distribution.
687         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
688         tmac/Makefile.sub: New files copied directly from the NetBSD
689         distribution.  Probably, some additional adaptation later on is
690         necessary...
692         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
693         of unsafe requests.
695         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
696         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
697         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
698         (`-S') is now the default.
700         * README, NEWS: Updated.
702 1999-12-09  Werner LEMBERG  <wl@gnu.org>
704         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
706         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
708 1999-12-06  Werner LEMBERG  <wl@gnu.org>
710         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
711         grief than relief today.  Additionally, it is against the GNU
712         coding standards.
714         * configure: Recreated.
716 1999-12-05  Werner LEMBERG  <wl@gnu.org>
718         * configure.in: Added GROFF_LIBM.
720         * configure: Recreated.
722         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
723         necessary.
725         * Makefile.in: Added definition of $(LIBM).
727         * Makefile.comm (LIBM): Removed.
729         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
731 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
733         * doc/Makefile: Added rule for generation pic.html.
735         (clean): Files produced by grohtml will be removed also.
737         * doc/pic.ms: Small fix.
739         * tmac/tmac.html: Fixed suppression of headers.
741 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
743         * tmac/tmac.html: Fixing horizontal arrows.
745         Turning off hyphenation.
747         * tmac/tmac.an: Improved support for grohtml; better indentation,
748         no footers/headers.
750 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
752         * tmac/tmac.arkup: Added CDFTP macro
754         * tmac/tmac.html: All headers are turned off for ms, me, and mm
755         macros.
757         * tmac/troffrc: Some additions for HTML stuff.
759 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
761         * tmac/tmac.html: Small changes.
763 1999-09-26  Werner LEMBERG  <wl@gnu.org>
765         * doc/groff.texinfo: Minor fixes.
767 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
769         * devhtml/TR: Changed spacewidth to 3.
771         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
773         * tmac/tmac.html: Moved markup macros to tmap.arkup.
775         * tmac/tmac.arkup: New file.
777         * grohtml/ChangeLog: New file.
779 1999-09-16  Werner LEMBERG  <wl@gnu.org>
781         * doc/groff.texinfo (Common Features): Added Copying chapter.
782         Changed format to @smallbook.
784 1999-09-15  Werner LEMBERG  <wl@gnu.org>
786         * NEWS: Added info about groff.texinfo.
788         * doc/groff.texinfo: Will now compile (using texi2dvi) without
789         warning messages.
791 1999-09-14  Werner LEMBERG  <wl@gnu.org>
793         * groff/groff.man: More updates.
795 1999-09-13  Werner LEMBERG  <wl@gnu.org>
797         * doc/groff.texinfo: New file.  This manual is still very
798         rudimentary.  It has been originally contributed by Trent
799         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
800         additions by me.
802         * INSTALL: Added information about the `doc' subdir
804         * troff/troff.man: Minor fixes.
806         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
807         reordered options.
809         * troff/input.cc (usage): Added missing `-ffam' to usage message.
811         * Makefile.in (dist): groff-$(version).tar.gz must be removed
812         also, otherwise it is included itself in another call of `make
813         dist'.
815         * groff/groff.cc (synopsis): Removed superfluous space.
817         * PROJECTS, PROBLEMS, NEWS: Updated.
819         * xditview/Makefile: Removed.
821         * VERSION: Updated to 1.12beta.
823         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
825         * README: Updated: Included documentation about CVS repository,
826         mailing lists, and daily snapshots.
828         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
830 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
832         * tmac/tmac.an: If the tag didn't fit into the space that the
833         macro `TP' specifies, the rest of the tag went into the space for
834         the next line.
836 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
838         * grolj4/lj4.cc: Added duplex printing (option `-d').
840         * grolj4/grolj4.man: Document duplex printing.
842 1999-09-12  Werner LEMBERG  <wl@gnu.org>
844         * doc/Makefile (pic.ps): Fixed rule which caused problems with
845         non-GNUish sed programs.
847         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
848         definition.
850         * configure.in (LIBS): Added `-lc'
852         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
854         * pic/tex.cc (solid_arc): Casting M_PI to double.
856         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
858         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
859         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
860         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
862         * groff/groff_man.man: New file.  This manual page was originally
863         written for the Debian GNU/Linux system by Susan G. Kleinmann
864         <sgk@debian.org>.
866         * eqn/list.cc (list_box::compute_metrics,
867         list_box::compute_sublist_width): Removed variable declaration to
868         avoid shadowing warnings.
870         * grops/psrm.cc (resource_manager::process_file): Ditto.
872         * tfmtodit/tfmtodit.cc (main): Ditto.
874         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
875         to avoid shadowing warnings.
877         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
878         shadowing loop variable.
880         * groff/groff.man, troff/troff.man: Added doc about grohtml.
882 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
884         New grohtml frontend to convert groff input to html.
886         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
888         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
890         * tmac/eqnrc: Added html device.
892         * tmac/tmac.html: New file.
894         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
895         (troff_output::start_picture, troff_output::finish_picture),
896         tbl/main.cc (process_input_file):
897         Surrounded output with `graphics_start' and `graphics_end' so that
898         the html driver can identify non-text portions.
900         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
901         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
902         grotty/tty.ps (tty_printer::set_char): Additional parameter
903         `name'.
905         * include/printer.h: Class printer: New function
906         set_char_and_width; new variables (is_char_named, is_named_set,
907         named_command, named_char_s, named_char_n) to hold information
908         about named characters -- needed by the html driver.
910         * libdriver/printer.cc (printer::set_ascii_char,
911         printer::set_special_char): Use set_char_and_width.
913         * devhtml/*: New device files for html driver.
915         * grohtml/*: New driver grohtml.
917 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
919         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
920         default strings.
922 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
924         * libgroff/string.cc (search): Small fix to test against NULL
925         pointer.
927 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
929         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
930         \b'abc') were stacked in reverse order when processed in a
931         diversion.
933         * troff/node.h: Added `*last' to struct `node' to make the above
934         fix work.
936         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
937         The default scale for the 'f' and 't' graphics functions were 'm'
938         rather than 'u' (i.e., no scaling).
940 1999-09-11  Peter Miller  <peterm@jna.com.au>
942         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
943         do_file), soelim/soelim.man: Added `-I file' option to soelim,
944         defining include paths.
946         * soelim/soelim.cc (include_path_append): New function.
948 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
950         * tbl/main.cc (process_options): Unix (at least Documenter's
951         Workbench) tbl allows arbitrary non-alpha characters between
952         options.
954 1999-09-11  Paul Eggert  <eggert@twinsun.com>
956         Y2k fixes.  Don't assume that the current year precedes 2000.
958         * doc/meref.me: Add \n(y2, \n(y4.
960         * tmac/doc-common (Yr): New number register.
961         (Dd): Don't assume current year precedes 2000.
963         * tmac/tmac.e (td): Likewise.
964         (y2, y4): New number registers.
966         * pic/pic.man: Update reference for pic paper to May, 1991
967         version.
969 1999-09-11  Werner LEMBERG  <wl@gnu.org>
971         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
972         Removed quotation marks which prevented correct expansion of
973         $(tmac_wrap).
975         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
977 1999-09-10  Werner LEMBERG  <wl@gnu.org>
979         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
980         `config.cache'.
982         * Removed configure.old.
984 1999-08-31  Werner LEMBERG  <wl@gnu.org>
986         * VERSION: Updated to 1.11.1
988 1999-05-27  Werner LEMBERG  <wl@gnu.org>
990         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
992         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
993         added quotations around $(tmac_wrap) to avoid syntax error if
994         variable is empty.
996         * configure: Newly generated using autoconf 2.13.
998         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1000 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1002         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1003         doc/Makefile. doc/pic.ms, groff/groff.man:
1004         Prepare for 1.11 release.  No code changes.
1005         Documentation for pic added (doc/pic.ms).
1007 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1009         * Version 1.10 released.
1011 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1013         * afmtodit/afmtodit.pl: Avoid comment on first line.
1015 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1017         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1018         * configure.in: Call it.
1020         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1021         (distfiles): Doesn't depend on config.log or config.cache.
1023 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1025         * grog/grog.sh: Use print "" rather than print in END rule.
1027 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1029         * tbl/main.cc (process_data): Don't give error for excess data
1030         entries that are comments.
1032 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1034         * tbl/main.cc (process_data): Fix case where new for-scope rules
1035         silently change meaning of code.
1037 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1039         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1040         of non-zero hyphenation codes.
1042 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1044         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1046 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1048         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1050 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1052         * tmac/tmac.andoc: Make it work in compatibility mode.
1054         * refer/token.h (token_info::is_range_sep): New function.
1055         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1056         * refer/ref.cc (reference::output): More sophisticated check for
1057         multiple pages.
1059         * devps/prologue.ps (MANUAL): New procedure.
1060         * grops/ps.cc (main): New -m option.
1061         (usage): Include -m.
1062         (ps_printer::~ps_printer): Implement -m.
1064         * aclocal.m4 (GROFF_G): New macro.
1065         * configure.in: Call it.
1066         * Makefile.in (g): Provided by configure.
1068         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1070         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1071         translations.
1073         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1074         (tmac_m, tmac_s): Deleted.
1075         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1076         tmac_s_prefix): New variables.
1077         (MDEFINES): Change accordingly.
1078         * Makefile.comm (.man.n): Use new TMAC_* variables.
1079         * configure.in (GROFF_TMAC): Call.
1080         * aclocal.m4 (GROFF_TMAC): Define.
1081         * tmac/Makefile.sub (stamp_wrap): New target.
1082         (install_data, uninstall_sub): Handle macro wrapping.
1084 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1086         * tbl/main.cc (main): Ignore -T option.
1088 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1090         * devlj4/generate/special.map: Add definition of \(nb.
1092         * tmac/tmac.dvi: Add definition of \(nb.
1094         * troff/dictionary.c (dictionary::dictionary): association::v gets
1095         initialized by association::association.
1097         * tmac/Makefile.sub: Avoid using temporary files when installing.
1099         * troff/env.cc (environment::set_font): Make bad font number a
1100         warning.
1102         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1104         * Makefile.in (datadir): Use share rather than lib.
1106         * groff/groff.cc (basename): Rename to xbasename.
1108 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1110         * Makefile (CCLIBS): Don't use.
1111         * Makefile.ccpg: Likewise.
1113         * acgroff.m4: Rename to...
1114         * aclocal.m4: Modify extensively for autoconf 2.
1115         * configure.in: Likewise.
1116         * Makefile.in: Likewise.
1118         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1119         defined.
1120         (xstrsignal): Check for definition of NSIG. Conditionalize
1121         on SYS_SIGLIST_DECLARED.  Make return type const.
1123 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1125         * troff/input.cc (interpolate_macro): Rephrase missing space
1126         warning.
1128 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1130         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1131         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1132         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1133         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1134         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1135         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1136         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1137         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1138         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1139         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1140         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1141         Fix 'for' scoping.
1143 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1145         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1146         string_iterator.
1147         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1148         file.
1149         (macro_iterator::macro_iterator): Add additional argument.
1151 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1153         * troff/div.cc (vertical_size::vertical_size): In place of integer
1154         specifying line spacing use cunits specifying post vertical
1155         space.
1156         (macro_diversion::output, top_level_diversion::output): Likewise.
1157         * troff/div.h: Change declarations accordingly.
1158         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1159         field.
1160         (pending_output_line::pending_output_line,
1161         pending_output_line::output, environment::output,
1162         environment::output_line, environment::output_title,
1163         environment::hyphenate_line):  In place of
1164         integer specifying line spacing use cunits specifying post vertical
1165         space.
1166         (environment::environment): Add post_vertical_spacing and
1167         prev_post_vertical_spacing arguments.
1168         (environment::get_post_vertical_spacing): New function.
1169         (environment::total_post_vertical_spacing): New function.
1170         (environment::post_vertical_spacing): New function.
1171         (init_env_requests): Initialize pvs request and .pvs register.
1172         * troff/env.h: Change declarations.
1174 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1176         * tmac/tmac.pspic: Immediately remove the temporary file.
1178 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1180         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1181         height is specified.
1183 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1185         * tbl/table.c (struct vertical rule, class table_entry): Use int
1186         not short for start_row and end_row.
1188 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1190         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1191         functions.
1192         (diverted_space_node::reread, process_input_stack): Call
1193         trapping_blank_line() rather than blank_line().
1194         (init_input_requests): Bind "blm" to blank_line_macro().
1196         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1198 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1200         * troff/env.cc (environment::possibly_break_line): Require that
1201         width total excluding width of final space node be greater than
1202         the target text length.
1204 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1206         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1208 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1210         * troff/node.cc (charinfo_node): New class.
1211         (glyph_node, composite_node): Derive from charinfo_node.  Change
1212         member functions accordingly.
1214 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1216         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1218 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1220         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1222         * devps/generate/textmap (notsubset): Add.
1224         * tmac/tmac.a4: New file.
1226 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1228         * pic/main.cc (had_parse_error): New variable.
1229         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1230         returns non-zero.
1231         (main): Return 1 if had_parse_error is true.
1233 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1235         * grolj4/lj4.cc (main): Avoid use of strtoul.
1237 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1239         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1240         iso_8859_1 or $LESSCHARSET is latin1.
1242 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1244         * hpftodit: New directory.
1245         * Makefile.in (CCPROGDIRS): Add hpftodit.
1246         * devlj4/generate: New directory.
1248 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1250         * configure.in: Don't use AC_VFORK.
1251         * groff/pipeline.c (run_pipeline): Use fork() always.
1253 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1255         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1257         * Makefile.in (CCPROGDIRS): Add grolj4.
1258         (DEVDIRS): Add devlj4.
1259         * grolj4, devlj4: New directories.
1260         * tmac/troffrc: Handle lj4.
1261         * tmac/tmac.lj4: New file.
1263 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1265         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1267 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1269         * troff/input.cc (do_if_request): At end of second string, switch
1270         environments before getting next token.
1272 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1274         * devps/psstrip.sed: Split rule that strips whitespace on either
1275         side of delimiters.
1277 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1279         * troff/node.h (font_family::make_definition): Add return value to
1280         declaration.  * troff/symbol.h (symbol::operator==,
1281         symbol::operator!=): Likewise.
1283 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1285         * groff/groff.cc (main, help, synopsis): Handle -S.
1286         (possible_command::insert_arg): New function.
1288         * tmac/tmac.safer: New file.
1289         * tmac/msafer.man: New file.
1290         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1292 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1294         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1295         * pic/pic.y (placeless_element): Avoid unsafe operations if
1296         `safer_flag' is set.
1297         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1299 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1301         * eqn/lex.cc (get_token): Put call to add_context() in block to
1302         work around Sun C++ 4.0 bug.
1304         * include/stringclass.h (operator +): Use ?: instead of `if' to
1305         work around Sun C++ 4.0 bug.
1307 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1309         * tbl/main.cc (process_format): Accept - as a synonym for the _
1310         key letter.
1312         * libbib/index.cc (minus_one): Don't declare as const.
1314 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1316         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1318 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1320         * troff/input.cc (write_macro_request): New function.
1321         (init_input_requests): Bind write_macro_request to writem.
1323 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1325         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1326         equation.
1328         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1330         * tmac/tmac.s (@TS): Renamed from TS.
1331         (TS): Call LP then TS again.
1332         (cov*ab-init): Alias @TS to TS.
1334         * tmac/tmac.s: Allow QP or RS to initialize.
1336         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1337         Move initializations of PS and LL here.
1338         (par@init): Don't initialize HY.  Avoid changing environment 0.
1339         (par*env-init): Don't all par@reset.
1341 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1343         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1345 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1347         * Makefile.in (MDEFINES): Add LDFLAGS.
1348         (LDFLAGS): Add definition line.
1350 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1352         * troff/input.cc (get_optional_char): Split off error check into...
1353         (check_missing_character): New function.
1354         * troff/token.h: Declare it.
1355         * troff/env.cc (margin_character): Don't call get_optional_char.
1356         Only call tok.next() after making the node.
1358         * include/lib.h (getopt): Make 2nd argument char *const *.
1360 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1362         * nroff/conftest.sh: Deleted.
1364 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1366         * pic/make-dos-dist: Deleted.
1368 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1370         * devps/psstrip.sed: Strip comments before stripping trailing
1371         white space.
1373 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1375         * Version 1.09 released.
1377 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1379         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1381 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1383         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1385 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1387         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1388         about returning without a value.
1390         * troff/charinfo.h (charinfo::get_special_translation): Cast
1391         TRANSLATE_NONE to int.
1393         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1394         test.  Fix test so that it works with n unsigned.
1396         * pic/pic.y (defaults_table): Fully bracket initializer.
1397         * pic/lex.cc (lookup_keyword): Likewise.
1398         * eqn/lex.cc (token_table, def_table): Likewise.
1399         * eqn/box.cc (param_table): Likewise.
1400         * troff/input.cc (warning_table): Likewise.
1401         * libgroff/font.cc (table): Likewise.
1402         * grops/ps.cc (ps_printer::special): Likewise.
1403         * grops/psrm.cc (resource_manager::process_file): Likewise.
1404         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1405         * refer/command.cc (command_table): Likewise.
1406         * addftinfo/addftinfo.cc (param_table): Likewise.
1408         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1409         about temp's being unused.
1410         (unused): New function.
1412         * groff/pipeline.cc: Declare c_fatal.
1414         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1415         uchar.
1417         * libbib/index.cc (index_search_item::load): Prevent compiler
1418         warnings about fd_closer's being unused.
1419         (unused): New function.
1421 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1423         * troff/input.cc (copy_mode_error): Make `prefix' static.
1424         Fix typo.
1426         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1427         defined.
1428         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1429         HAVE_CC_OSFCN_H and modify accordingly.
1431         * troff/input.cc (init_charset_table): radicalex overlaps
1432         horizontally.
1434         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1435         udodo!hans@relay.NL.net).
1436         * groff/configure.in: Call it.
1438         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1439         * groff/configure.in: Call it.
1440         * include/lib.h: Conditionalize declaration of pclose.
1442         * troff/div.cc (last_page_number): New global variable.
1443         (top_level_diversion::begin_page): Exit if we just printed the
1444         last page.
1445         * troff/div.h (last_page_number): Declare it.
1446         * troff/input.cc (parse_output_page_list): Set last_page_number.
1448         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1449         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1450         tmac/tmac.X: Likewise.
1451         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1452         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1454 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1456         * tmac/doc-ditroff (hK): Remove groff specific code which
1457         prevented page-breaks between separate manual entries.  If this is
1458         the first page, don't set the page number to 1.
1460         * acgroff.m4 (GROFF_POSIX): New macro.
1461         * configure.in: Use it.
1463         * troff/node.cc (class real_output_file,
1464         real_output_file::real_output_file,
1465         real_output_file::~real_output_file): Conditionalize use of
1466         popen/pclose on POPEN_MISSING.
1467         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1468         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1469         (pipe_source): Similarily.
1471         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1473         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1474         presence of declarations by trying to compile example with
1475         conflicting declarations.  (gcc only gives a warning for missing
1476         declarations.)
1478 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1480         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1481         (from Ulrich Lauther).
1483 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1485         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1487 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1489         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1490         pointers and ints have different sizes.
1492 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1494         * tmac/tmac.s (par*env-init): Call par@reset.
1496 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1498         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1499         tag.
1500         (par*push-tag-env, par*pop-tag-env): New macros.
1502 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1504         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1505         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1507         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1508         comment.  Include <time.h>.
1510 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1512         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1513         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1514         lines.
1516 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1518         * troff/input.cc (read_request): Only print a prompt if reading
1519         from the terminal.  Also clearerr on EOF if reading from the
1520         terminal.  Declare isatty.
1522 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1524         * refer/label.y: Rename map_t to map_func and extractor_t to
1525         extractor_func.
1527 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1529         * include/assert.h: Don't use volatile.
1530         * libgroff/assert.cc: Likewise.
1532 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1534         * troff/input.cc (abort_request): Look at character in tok before
1535         calling get_copy().
1537 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1539         * troff/troff.h (NO_RETURN): Deleted.
1540         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1541         * troff/input.cc (exit_troff): Likewise
1543         * Makefile.in: Remove `Making ...' messages since GNU make now
1544         gives these. 
1546         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1548 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1550         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1551         to constant 1 inch.
1553 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1555         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1557 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1559         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1560         MARK_REG if there was no left delimiter.
1562 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1564         * pic/troff.cc (troff_output::text): Set line thickness to
1565         relative before outputting text.
1567         * tmac/tmac.e (@k): Don't zero ?T.
1568         ((z): Likewise.
1570 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1572         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1574 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1576         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1577         Paul Eggert).
1579 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1581         * troff/input.cc (ignoring): New variable.
1582         (ignore): Set ignoring during call to do_define_macro.
1583         (do_define_macro): Clear ignoring before interpolating terminating
1584         macro.
1585         (copy_mode_error): New function.
1586         (get_char_for_escape_name, read_long_escape_name,
1587         interpolate_arg): Use copy_mode_error.
1588         (warning_table): Add WARN_IG.
1589         * troff/troff.h (WARN_IG): Declare.
1590         (WARN_TOTAL): Change accordingly.
1592         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1593         * groff/groff.cc (strsignal): Delete declaration.
1595 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1597         * troff/div.cc (page_offset): Use 'm' as default scaling.
1599 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1601         * nroff/nroff.sh: Ignore -u.
1603 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1605         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1607 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1609         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1610         drawing box.
1611         (B2): With -Tascii, leave additional vertical space before
1612         and after. Ensure that the left and right indent is restored to
1613         what it was even if the point size changes.  Don't call
1614         par@finish. Change the indent, line length and title length
1615         directly.  With -Tascii, make the width of the box 1n less.
1616         (B1): Remember 1n at the current point size.  Don't call
1617         par@reset.  Change the indent, line length and title length
1618         directly.  Ensure that the temporary indent is preserved.
1619         (par*box-mark-top): Turn off no spacing mode.
1621 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1623         * Makefile.in (dist): Use .gz suffix.
1625 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1627         * troff/input.cc (main): Add return 0.
1628         * pic/main.cc (main): Use return instead of exit.
1629         * tbl/main.cc (main): Likewise.
1630         * eqn/main.cc (main): Likewise.
1631         * grops/ps.cc (main): Likewise.
1632         * grotty/tty.cc (main): Likewise.
1633         * groff/groff.cc (main): Likewise.
1634         * grodvi/dvi.cc (main): Likewise.
1635         * refer/refer.cc (main): Likewise.
1636         * indxbib/indxbib.cc (main): Likewise.
1637         * lkbib/lkbib.cc (main): Likewise.
1638         * soelim/soelim.cc (main): Likewise.
1639         * addftinfo/addftinfo.cc (main): Likewise.
1640         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1641         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1643         * troff/token.h (process_input_stack): Don't declare as static.
1644         * troff/input.cc: Likewise.
1646         * troff/node.c (invalidate_fontno): Make it a static member of
1647         class font_family.  Change callers.
1648         * troff/node.c: Change declaration.
1650         * tbl/main.cc (struct input_entry_format): Add explicit public
1651         specifier.
1652         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1653         struct double_hline_stuff): Likewise.
1654         * tbl/table.h (struct entry_format): Likewise.
1655         * pic/object.h (struct saved_state): Likewise.
1657         * include/stringclass.h: Add forward declarations of friend
1658         functions that are later declared as inline.  Don't include inline
1659         specifier in friend declaration.
1661         * libgroff/lib.h: Declare popen and pclose.
1662         * acgroff.m4 (GROFF_POPEN): New macro.
1663         * configure.in: Call it.
1665         * include/lib.h (PI): New constant. Undef first if necessary.
1666         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1667         * grops/ps.cc (degrees, radians): Likewise.
1668         * libgroff/font.cc (font::get_skew): Likewise.
1670         * grops/ps.cc (is_ascii): New function.
1671         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1672         isprint.
1673         (ps_printer::define_encoding): Use csspace.
1674         * libgroff/strtol.c (ISASCII): New macro.
1675         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1676         Use ISASCII rather than isascii.
1677         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1678         * libgroff/cset.cc: Likewise.
1679         * libdriver/input.cc: Include cset.h.
1680         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1681         than isdigit().
1683         * refer/refer.cc (main): Use %ld rather than %d for longs.
1685         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1686         S_ISREG macro.
1688         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1690 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1692         * troff/input.cc (hyphenation_code): Skip white space between
1693         char/code pairs.
1695 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1697         * tbl/table.h (table::entry_list_tailp): New member.
1698         (table::table): Initialize it.
1699         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1700         behaviour.
1702 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1704         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1705         with negative horizontal positions. Remove casts of glyph::hpos to
1706         int.
1707         (USHRT_MAX): Delete definition.
1708         (SHRT_MAX, SHRT_MIN): New definitions.
1709         (glyph::hpos): Change type to short.
1710         (tty_printer::end_page): Output multiple backspaces if necessary.
1711          Remove casts of glyph::hpos to int.
1712         
1713 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1715         * tmac/tmac.s (@RT): New definition.
1717 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1719         * refer/refer.cc (do_file): Make sure current_filename is set when
1720         filename is "-".
1722         * pic/common.cc (common_output::dot_line): Handle zero length
1723         lines.
1725 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1727         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1728         (par@init): Initialize \n[HY].
1730 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1732         * troff/dictionary.cc (dictionary::remove): Continue when
1733         r < j < i.
1735 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1737         * Makefile.com (.y.cc): Avoid ending up with two versions of
1738         $(YTABH).
1740 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1742         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1743         (\(,C): Likewise.  Also fix typo.
1745 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1747         * lib.h: Delete extraneous semi-colon.
1749         * Add pso request: `so' from a pipe.
1750         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1751         (file_iterator::close): New function.
1752         (file_iterator::~file_iterator, file_iterator::next_file): Use
1753         file_iterator::close.
1754         (file_iterator::backtrace): Say `process' rather than `file' when
1755         the stream is popened.
1756         (pipe_source): New function.
1757         (init_input_requests): Bind ".pso" to pipe_source.
1759 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1761         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1763         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1764         digits in lower case.
1766 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1768         * Version 1.08 released.
1770         * Makefile.in (dist): Insert || true after ln -s commands that
1771         might fail.
1773         * mm: Update to mm 1.16.
1775         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1776         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1777         SH_SCRIPT_SED_CMD.
1778         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1779         MDEFINES.
1780         * nroff/Makefile.sub (nroff): New target.
1781         (install_data): Install nroff.
1782         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1783         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1785 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1787         * eqn/Makefile.sub (neqn): Add chmod +x.
1789         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1791 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1793         * troff/input.cc (string_iterator::string_iterator()): Initialize
1794         lineno and count.
1796 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1798         * troff/div.cc (macro_diversion::space,
1799         top_level_diversion::space): Don't set high_water_mark.
1800         (macro_diversion::output, top_level_diversion::output): Don't
1801         include post line space in high water mark.
1803 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1805         * eqn/eqn.y: Don't define YYDEBUG.
1806         * pic/pic.y: Likewise.
1808 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1810         * tmac/tmac.e ([3): Add space after comma following editors.
1811         Change double spaces to single spaces.
1812         ([4): Change double spaces to single spaces.
1814         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1815         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1816         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1817         after %!PS-Adobe- (for Newsprint).
1819         * troff/div.cc (top_level_diversion::begin_page): When
1820         before_first_page is 1, set page_number to 1.
1822 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1824         * eqn/box.cc (box::top_level): Protect equation with \&.
1826 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1828         * groff/groff.cc (possible_command::set_name): Delete old name.
1830         * groff/groff.cc (possible_command::~possible_command): Use
1831         a_delete.
1833         * troff/node.cc (troff_output_file::begun_page): New member.
1834         (troff_output_file::troff_output_file): Initialize it.
1835         (troff_output_file::really_begin_page): Only output V command if a
1836         page has been begun.
1838         * pic/pic.y (placeless_element): Delete argument to PRINT after
1839         use.
1841 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1843         * Make wrapman work.
1844         * troff/div.h (class top_level_diversion): Replace
1845         first_page_begun by before_first_page (with opposite sense).
1846         * Change first_page_begun to before_first_page inverting sense.
1847         * troff/div.cc (class nl_reg): New class.
1848         (init_div_requests): Use class nl_reg for \n(nl.
1849         (top_level_diversion::begin_page): Don't call
1850         output_file::begin_page if before_first_page is 2;
1851         reset before_first_page afterwards.  If have_next_page_number is
1852         false, then always increment page_number.
1853         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1854         Restore compatibility mode after loading, and then disable
1855         compatibility mode in TH.
1857 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1859         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1860         past last line.
1861         * troff/node.h (output_file::trailer): Declare.
1862         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1863         * troff/node.cc (output_file::trailer): New function.
1864         (troff_output_file::~troff_output_file): Move most code into...
1865         (troff_output_file::trailer): New function.
1866         (class troff_output_file): Delete page_length member. Declare
1867         trailer().
1868         (troff_output_file::really_begin_page): Use current page length
1869         for final V command.
1871         * tbl/main.cc (struct options): New decimal_point_char member.
1872         (options::options): Initialize this.
1873         (process_options): Implement decimalpoint option.
1874         (process_data): Pass decimal_point_char option to table::table.
1875         * tbl/table.h (class table): New decimal_point_char member.
1876         (table::table): Add additional argument.
1877         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1878         second argument specifying decimal point character.  Use this
1879         instead of '.'.
1880         (table::table): Initialize decimal_point_char.
1881         (table::add_entry): Change call to find_dot.
1883         * troff/input.cc (get_copy, token::next): Implement \V.
1884         (interpolate_environment_variable): New function.
1886 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1888         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1889         * pic/pic.y: Likewise.
1891         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1892         Add casts to int.
1893         * refer/ref.cc (reference::insert_field, reference::delete_field):
1894         Likewise.
1895         * troff/number.cc (parse_term): Likewise.
1897         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1898         * configure.in: Use GROFF_PROG_YACC.
1900         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1901         and g++.
1902         * Makefile.in (OPTIMIZE): New define.
1903         (DEBUG): Empty by default.
1904         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1906         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1907         (GROFF_ARRAY_DELETE): Likewise.
1908         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1910         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1912         * devps/psstrip.sed: Use different delimiter on last line (so that
1913         it works with BSD 4.4 sed.)
1915 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1917         * devps/psstrip.sed: Delete comments.
1919         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1920         optind, opterr, optarg.
1921         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1922         opterr, optarg.
1924 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1926         * Makefile.in (check): Dummy target.
1928 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1930         * Version 1.07 released.
1932         * Integrate mm 1.11.
1934         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1935         where start_col was meant.
1937 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1939         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1941 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1943         * troff/input.cc (token::next): Make \z\o'...' and similar things
1944         work.
1946         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1947         constants.
1948         (environment): Add margin_character_flags member.
1949         * env.cc (environment::environment(symbol),
1950         environment::environment(const environment *): Initialize
1951         margin_character_flags.
1952         (margin_character): Rewrite.
1953         (environment::output_line): Add a margin character if
1954         margin_character_flags is non-zero.  Turn off the
1955         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1956         zero, use margin_character_node without copying and then set
1957         margin_character_node to 0.
1959         * devps/DESC.in: Change minimum size to 1000.
1961 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
1963         * troff/symbol.h (symbol::hash): Change return type to unsigned
1964         long.
1965         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1966         Add casts to int.
1968         * test-groff: Use -r rather than -x.
1970         * grops/psfig.diff: Include in distribution again.
1972 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
1974         * Makefile.in (dist): Use gzip.
1976 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
1978         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1979         unistd.h as well as in stdlib.h.
1980         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1981         defined; otherwise include <sys/types.h> and <unistd.h> if
1982         UNISTD_H_DECLARES_GETOPT is defined.
1984         * configure.in: use builtin(include, ... rather than include(...
1985         * configure: Regenerate with autoconf 1.3.
1987         * libdriver/print.cc (printer::adjust_arc_center): Use new
1988         algorithm suggested by Andy Fyfe.
1990         * libdriver/printer.cc (printer::adjust_arc_center): New function.
1991         * include/printer.h: Declare this.
1992         * grops/ps.cc (ps_printer::draw): Use it.
1993         * grodvi/dvi.cc (dvi_printer::draw): Use it.
1995 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
1997         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1999 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2001         * eqn/main.cc (main): Handle "eqn -".
2003 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2005         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2007         * mm: Integrate version 1.08.
2009         * pic/troff.cc (troff_output::finish_picture): Set
2010         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2011         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2012         if it's not defined. Check whether the register is non-zero rather
2013         than whether it's not defined.
2014         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2016         * indxbib/indxbib.cc: Move all signal handling into...
2017         * indxbib/signal.c: New file.
2018         * configure.in: Call AC_RETSIGTYPE.
2020         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2021         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2022         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2024         * troff/input.cc (token::token, token::operator=): Work round SGI
2025         C++ bug.
2026         * pic/object.cc (position::position): Likewise.
2028 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2030         * pic/pic.h: Move declaration of hypot().
2032 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2034         * pic/pic.h: Declare hypot().
2036         * pic/pic.h: Define M_PI if necessary.
2038 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2040         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2041         `.ta T' feature.
2043         * devps/prologue.ps (RE): Handle the possibility that the old font
2044         doesn't have a FontName entry.
2046 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2048         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2049         (@C): Use @fam not fam.
2051 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2053         * lookbib/lookbib.cc (main): Change type of start to const char *.
2054         * lkbib/lkbib.cc (main): Likewise.
2056         * eqn/lex.cc (definition::definition): Don't use member
2057         initializer syntax for members of anonymous unions.
2059         * troff/input.cc (input_stack::backtrace): Change type of to const
2060         char *.
2062 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2064         * include/stringclass.h (class string): Declare inline friend
2065         functions as inline in class declaration.
2066         * troff/hvunits.h (class hunits, class vunits): Likewise.
2067         * include/refid.h (class reference_id): Likewise
2068         * troff/troff.h (points_to_units(units), scale(units, double)):
2069         Delete declarations.
2070         * libdriver/input.cc (get_char): Delete declaration.
2071         * include/lib.h: Change 2nd argument of getopt from const char **
2072         to char **.
2073         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2074         char **' before assigning to a `const char **'.
2075         * tbl/table.cc: Delete extra declarations of prints().
2077 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2079         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2080         char **' before assigning to a `const char **'.
2082         * libgroff/errarg.cc (errarg::errarg): Don't use member
2083         initializer syntax for members of anonymous unions.
2085 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2087         * mm: Integrate version 1.07.
2089 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2091         * troff/input.c (translate2): Rename to
2092         (translate_no_transparent).
2093         (init_input_requests): Rename tr2 to trnt.
2095 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2097         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2098         (charinfo::set_translation, charinfo::set_special_translation):
2099         Add second argument that specifies value for
2100         transparent_translate.
2101         (charinfo::get_translation, charinfo::get_special_translation):
2102         Add optional second argument that specifies whether translation is
2103         being used for transparent throughput.
2104         * troff/input.cc (charinfo::set_translation,
2105         charinfo::set_special_translation): Handle second argument.
2106         (charinfo::charinfo): Initialize transparent_translate.
2107         (translate): Split main part off into
2108         (do_translate): New function.  Pass argument saying whether
2109         translation applies to transparent throughput.
2110         (translate2): New request.
2111         (init_input_requests): Bind translate2 to `tr2'.
2113 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2115         * tbl/table.h (class table): Add `nokeep' flag.
2116         * tbl/main.cc (process_options): Handle `nokeep' option.
2117         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2118         table::do_bottom): Don't output keep/release macro definitions or
2119         calls when `nokeep' option has been specified.
2121 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2123         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2125 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2127         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2128         block_entry::divert, alphabetic_block_entry::divert): Add extra
2129         argument giving column separation.
2130         (table::compute_widths): Pass column separation to
2131         table_entry::divert().
2132         (block_entry::do_divert): If an entry spans multiple columns and a
2133         minimumum width has been specified for each column, then set the
2134         line length to the sum of the widths (plus possibly the column
2135         separations).
2137         * troff/input.cc (set_escape_char): Don't set the escape_char
2138         until after calling has_arg().
2140 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2142         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2143         case.
2145         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2146         in case where r > nrows - 1.
2148         * tbl/table.cc (BODY_HEIGHT): Deleted.
2149         (LINE_SEP): New definition.
2150         (table::print_single_hline, table::print_double_hline,
2151         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2152         table::do_row, table::do_top): Use LINE_SEP space before a line
2153         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2155         * tbl/table.cc (text_entry::print_contents): New function.
2156         (text_string_name, right_text_string_name): Deleted.
2157         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2158         (simple_text_entry::do_width, numeric_text_entry::do_width,
2159         alphabetic_text_entry::do_width): Don't store the contents of the
2160         entry in a string.
2161         (left_text_entry::simple_print, right_text_entry::simple_print,
2162         center_text_entry::simple_print,
2163         alphabetic_text_entry::simple_print,
2164         numeric_text_entry::simple_print): Print the entry directly
2165         instead of using the stored string.
2167 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2169         * devps/Makefile: Strip PostScript files.
2170         * devps/prologue: Rename to...
2171         * devps/prologue.ps.
2172         * devps/psstrip.sed: New file.
2173         * devps/download: Use .pfa rather than .ps for installed versions
2174         of fonts.
2176 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2178         * troff/env.cc (input_trap): Give a warning if the argument is out
2179         of range.
2181         * troff/env.cc (adjust): Treat negative argument as missing. Round
2182         argument > 5 down to 5.
2184         * troff/env.cc (center, right_justify): Make negative argument zero.
2186         * troff/div.cc (page_offset, vertical_position_traps): Treat
2187         invalid argument as missing.
2188         * troff/env.cc (line_spacing, line_length, title_length, indent,
2189         underline, hyphen_line_max_request, control_char,
2190         no_break_control_char, widow_control_request, adjust, input_trap,
2191         point_size): Likewise.
2192         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2193         constant_space): Likewise.
2194         * troff/input.cc (compatible, shift, warn_request,
2195         set_escape_char): Likewise.
2197         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2198         * tbl/table.cc (table::table): Likewise.
2200         * Makefile.dev (install_dev): depends on $(DEVFILES).
2202 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2204         * devX75, devX75-12, devX100, devX100-12: New directories.
2205         * Makefile.in: Add these to DEVDIRS.
2207         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2208         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2209         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2210         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2211         targets.
2212         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2213         (uninstall): New target.
2214         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2215         uninstall_prog, uninstall_dev): New targets.
2217         * troff/div.cc (return_request): Treat an invalid argument as
2218         missing.
2220 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2222         * tmac/tmac.e ((f): Set up the environment even when there's a
2223         current diversion.  Transperently throughput a call to @N.
2224         (@N): New macro.
2226 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2228         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2229         up to vertical resolution.
2231         * tbl/table.cc (table::do_row): Change row number after printing
2232         stuff list.
2234         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2236 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2238         * Rename CHANGES to NEWS.
2240 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2242         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2244 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2246         * man.ultrix: Removed.
2248 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2250         * Makefile.comm (extraclean): Delete files whose names begin with
2251         `='.
2253         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2254         aligned text.
2256 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2258         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2259         * troff/div.cc (page_length, need_space, space_request): Treat
2260         invalid optional argument as missing.
2261         * troff/env.cc (number_lines): If the first argument is present
2262         but not a number, turn on line numbering, don't change the next
2263         line number and parse the remaining arguments.
2265         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2267 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2269         * eqn/box.h: Change declaration accordingly.
2270         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2271         the specified size was bad but don't give an error.  Check for
2272         overflow.
2273         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2274         * eqn/lex (do_size): Likewise.
2276 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2278         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2279         compatible headers.
2281 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2283         * tbl/table.cc (table::init_output): Improve error message when
2284         table won't fit on one page.
2286 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2288         * pic/troff.cc (troff_output::start_picture): Generate line
2289         containing a horizontal motion equal to the width of the picture.
2291         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2292         using GROFF_COMMAND_PREFIX environment variable.
2294 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2296         * mdate.sh: Use $NF rather than $(NF).
2298 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2300         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2302         * eqn/main.cc (main): Output code to check that geqn was given the
2303         correct -T option.
2305 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2307         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2308         `ln -s ../Makefile .; make; rm -f Makefile'.
2310         * troff/hyphen: Rename to...
2311         * troff/hyphen.us:
2312         * troff/input.cc (main): Delete -H option. Don't call
2313         read_hyphen_file().
2314         * troff/env.cc: Include searchpath.h and macropath.h.
2315         (exception_dictionary): Deleted.
2316         (ht): Deleted.
2317         (read_hyphen_file): Deleted.
2318         (hyphenation_language): New struct.
2319         (class trie, class hyphen_trie): Move declarations up.
2320         (trie_node::~trie_node): Deleted.
2321         (trie::delete_trie_node): New function.
2322         (trie::do_delete): New pure virtual function.
2323         (hyphen_trie::do_delete): New function.
2324         (trie::~trie): New function.
2325         (hyphen_trie::~hyphen_trie): New function.
2326         (trie::clear): No need to chcek that tp is not 0.
2327         (current_language, language_dictionary): New variables.
2328         (hyphen_word): Give an error if no current language.  Use
2329         exceptions dictionary in current language.
2330         (hyphen_trie::read_patterns_file): Find file using macro_path.
2331         Allow comments (starting with %) in patterns file.  Don't make it
2332         a fatal error if the file can't be found.
2333         (hyphenate): Return if no current language.  Get the exceptions
2334         dictionary and the hyphenation patterns from the current language.
2335         (set_hyphenation_language): New variable.
2336         (hyphenation_patterns_file): New function.
2337         (hyphenation_language_reg): New class.
2338         (hyphenation_language_reg::get_string): New function.
2339         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2340         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2341         register.
2342         * groff/groff.cc (main, help, synopsis): Delete -H option.
2343         * include/Makefile.sub: Don't define HYPHENFILE.
2344         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2345         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2346         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2347         hyphenation patterns.
2349 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2351         * eqn/neqn.sh: New file.
2352         * eqn/Makefile.sub: Handle neqn.sh.
2354         * eqn/eqn.h: Declare `nroff' variable.
2355         * eqn/box.cc (param_table): Add `nroff' param.
2356         (nroff): Define it.
2357         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2358         variable.
2359         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2361         * troff/troff.h (WARN_FONT): New warning.
2362         (WARN_TOTAL): Change accordingly.
2363         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2364         (warning_table): Add WARN_FONT.
2365         * troff/node.cc (mount_font_no_translate): Pass argument to
2366         font::load_font.  If this is non-zero, give a warning.
2367         Don't give an error message when accessing a font that has already
2368         been found to be invalid.
2369         * include/font.h (font::load, font::load_font): Add additional
2370         optional argument which suppresses error message if the font is
2371         not found.
2372         * libgroff/font.cc (font::load_font): Handle additional argument.
2373         (font::load): Add additional argument. If this is non-null, set it
2374         to 1 and don't give error message.
2376         * include/printer.h (printer::end_page): Add argument giving
2377         length of page.
2378         * libdriver/input.cc (do_file): Pass this.
2379         * grops/ps.cc (ps_printer::end_page): Add argument.
2380         * grodvi/dvi.cc (dvi_printer::end_page,
2381         draw_dvi_printer::end_page): Add argument.
2382         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2383         columns_per_page members. New member nlines.
2384         (DEFAULT_LINES_PER_PAGE): Deleted.
2385         (tty_printer::tty_printer): Don't compute lines_per_page from
2386         font::paperlength. Don't compute columns_per_page from
2387         font::paperwidth.
2388         (tty_printer::add_char): Don't check horizontal position against
2389         columns_per_page. Grow glyphs vector if neccessary.
2390         (tty_printer::end_page): Add argument giving page_length in units.
2391         Discard lines past end of page.
2393 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2395         * tmac/tmac.tty-char: Fix definition of \(/l.
2397         * tmac/tmac.X: Define \(en.
2399 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2401         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2402         lpq, then use lp rather than lpr.
2404         * tmac/tmac.s (par@reset): Don't call `ad'.
2405         (par*env-init): Call `ad'.
2407 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2409         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2410         date.
2412         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2413         * indxbib/indxbib.cc: Likewise.
2415 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2417         * libgroff/putenv.c: New file.
2418         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2419         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2420         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2421         stdlib.h with AC_HAVE_HEADERS.
2423 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2425         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2426         does not exist.
2428 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2430         * eqn/box.cc (gsize): Make it an int.
2431         (set_gsize): Parse argument handling increment or decrement.
2432         (box::top_level): Convert gsize to a string.
2434         * troff/input.cc (exit_troff): Make buf unsigned char [].
2435         Call to make_temp_iterator casts buf to char*.
2437         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2439         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2440         * Makefile.cpg (depend.temp): Likewise.
2442         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2444         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2446 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2448         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2450 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2452         * Version 1.06 released.
2454         * Integrate mm 1.04.
2456 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2458         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2460 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2462         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2463         ligatures command.
2464         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2465         afmtodit. Regenerate.
2467         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2468         @f back past the current position.
2470         * tmac/tmac.e: Change calls to @R so that comments are not part of
2471         arguments.
2473 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2475         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2477         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2478         check that we can link a call to a function declared in <stdio.h>.
2479         (GROFF_UNISTD_H): New macro.
2480         * configure.in: Call it.
2481         * Makefile.in: Document it.
2482         * include/posix.h: New file.
2483         * troff/troff.h: Don't include <osfcn.h>
2484         * troff/input.cc: Include posix.h.
2485         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2486         osfcn.h.
2487         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2488         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2489         <fcntl.h>.
2490         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2491         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2492         * libbib/search.cc (O_RDONLY): Delete definition.
2493         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2494         Don't include <osfcn.h>.
2496         * acgroff.m4 (GROFF_TIME_T): New macro.
2497         * configure.in: Call it.
2498         * Makefile.in: Document it.
2500         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2501         * configure.in: Call it.
2502         * Makefile.in: Document -DTRADITIONAL_CPP.
2503         * include/ptable.h: Don't include generic.h.
2504         (name2): Define it.
2506         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2507         Afterwards remove [T1 and [T2.
2508         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2509         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2510         (ref*add-T2): Renamed from ref*add-T.
2511         (ref*add-T1): New macro.
2513 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2515         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2517         * libbib/index.cc: Include <fcntl.h>.
2518         (O_RDONLY): Define if necessary.
2519         (make_index_search_item, index_search_item_iterator::get_tag,
2520         index_search_item::check_files): Use O_RDONLY.
2521         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2522         (O_RDONLY): Define if necessary.
2523         (search_list::add_file): Use O_RDONLY.
2524         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2525         <sys/stat.h>.
2526         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2527         (main): Use these.
2529         * libbib/index.cc (S_ISREG): Define it if necessary.
2530         (index_search_item::load): Use S_ISREG.
2532         * include/driver.h: Include <errno.h>.
2534 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2536         * eqn/box.cc (body_height): Increase default value to 85.
2537         (body_depth): Increase default value to 35.
2539 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2541         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2542         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2543         protected from expansion with \E.
2545         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2547         * Makefile (Makefile): New target.
2549         * Makefile.sub (configure, distfiles): New targets.
2551         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2552         construct.
2554 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2556         * eqn/box.cc (param_table): Add body_height and body_depth.
2558         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2560 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2562         * psbb/Makefile.sub: Don't link with libgroff.a.
2564         * acgroff.m4 (GROFF_PUTENV): New macro.
2565         * configure.in: Call GROFF_PUTENV.
2566         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2567         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2568         is defined.
2570         * troff/env.cc (distribute_space): Rename force_forward argument
2571         to force_reverse.  Reverse the list if force_reverse is true.
2573 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2575         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2577         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2578         height or depth to be negative.  Guard against SUP_RAISE quantity
2579         being negative.
2581 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2583         * devps/generate/textmap: Add `an' (arrowhorizex).
2584         * tmac/tmac.ps: \(an overlaps horizontally.
2585         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2587         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2588         * devps/textmap: Add arrowvertex.
2589         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2590         updownarrow delimiters.
2591         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2593         * tbl/table.cc (simple_entry::position_vertically,
2594         block_entry::position_vertically):  For a centered entry, perform
2595         the motion in two stages.
2597         * refer/refer.cc (split_punct): Don't call lookup_token if there
2598         is no token.
2600 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2602         * troff/input.cc (token::next): Delete token_node after copying
2603         token.
2605         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2606         cur_point_size.
2608         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2610         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2612 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2614         * grops/ps.cc (usage): -b option takes an argument.
2616         * devps/prologue (PLG): New procedure.
2617         * grops/ps.cc (main, usage): New -g option.
2618         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2619         length using PLG.
2621 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2623         * include/cset.h: Include <limits.h> if we have it.
2625         * libgroff/illegal.cc: New file.
2626         * include/lib.h (illegal_input_char): Use table.
2627         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2628         * pic/lex.cc (ARG1): Renumber to 14.
2629         * eqn/lex.cc (ARG1: Likewise.
2631         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2632         (eg 1.05.90) correctly.
2634 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2636         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2637         Rename $r and $R registers to $v and $V.
2638         ($r, $R): Initialize to 0.
2639         (@v, @V): New macros.
2640         (sz): Call @v.
2641         (@M): Call @V.
2643         * troff/input.cc (main, usage): Add -R option that says not to
2644         load troffrc.
2645         * eqn/main.cc (main, usage): Rename -n to -R.
2647 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2649         * devps/DESC.in: Leave font positions 5-9 blank.
2650         * devdvi/DESC.in: Likewise.
2652         * grog/grog.pl: Handle `.PS <file' correctly.
2654         * troff/input.cc (input_stack::push): Improve error message when
2655         input stack limit exceeded.
2657 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2659         * refer/refer.cc (main): Fix typo in handling of `a' option.
2661         * refer/refer.cc (do_bib): In state START after a newline remain
2662         in state START.
2664         * groff/groff.sh: Deleted.
2665         * groff/Makefile.sub: Delete handling of groff.sh.
2667         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2668         to determine whether to use \X'ps:...'.
2669         * tmac/troffrc: Set 0p register to 0.
2670         * tmac/tmac.ps: Set 0p register to 1.
2672         * groff/groff.cc: Support -X option. Give warning for -TXps and
2673         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2674         * tmac/troffrc: Support -r.X=1.
2676         * pic/troff.cc (troff_output::dot): Don't test
2677         zero_length_line_flag.
2679 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2681         * include/lib.h: Declare getopt() and friends unless
2682         STDLIB_H_DECLARES_GETOPT is defined.
2684         * doc/chars.tr: Delete.
2685         * man/groff_char.man: New file.
2687 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2689         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2690         user has changed register format.
2692 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2694         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2695         `postpro' command in DESC file.  Get spooler command from `print'
2696         command in DESC file.  Execute spooler command with /bin/sh.
2698         * groff/groff.cc: Split Unix-specific parts into...
2699         * groff/pipeline.c: New file.
2701         * LICENSE: Delete.
2702         * COPYING: New file.
2703         * all files: Update copyright notices.
2705         * Rearrange files.  Redo Makefiles.  Use autoconf.
2707 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2709         * troff/input.c (charinfo_to_node_list): Interpret character
2710         definition with escape_char of `\'.
2712 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2714         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2715         Define INT_DIGITS as big enough for 64-bit integer.
2716         * lib/strtol.c: Don't include lib.h.
2717         * lib/lib.h: Delete ifdef __cplusplus stuff.
2719 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2721         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2722         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2723         get DESC from current directory.
2725 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2727         * tbl/main.c (main): Always reset the line number when reading
2728         from stdin.
2730         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2731         table::define_bottom_macro, table::do_row, table::do_top): Round
2732         vertical spacing up to vertical resolution.
2734 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2736         * ps/ps.h (enum resource_type): Avoid comma at end of
2737         enumerator-list.
2738         * dvi/dvi.c (class dvi_printer): Likewise.
2739         * dvi/tfmtodit.c (gf::load): Likewise.
2740         * refer/label.y (struct expression): Likewise.
2741         * refer/refer.c (class label_processing_state): Likewise.
2742         * refer/indxbib.c (do_file): Likewise.
2743         * troff/troff.c (enum warning_type): Likewise.
2744         * tbl/main.c (process_data): Likewise.
2745         * troff/charinfo.h (class charinfo):
2747 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2749         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2751 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2753         * groff.c: Move to new groff subdirectory.
2754         * groff/Makefile: New file.
2755         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2757         * man/mdate.sh: Use ls -L if supported.
2759         * Consolidate all header files produced by gendef into lib/defs.h.
2760         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2761         Don't include path.h.
2762         * lib/Makefile (path.h): Don't generate.
2763         * troff/input.c: Include defs.h. Don't include config.h.
2764         * troff/Makefile (config.h): Don't generate.
2765         * refer/index.h: Don't include suffix.h.
2766         * refer/index.c: Include defs.h.
2767         * refer/indxbib.c: Include defs.h.
2768         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2769         defs.h.
2770         * refer/Makefile (suffix.h, path.h): Don't generate.
2771         * groff.c: Don't include config.h. Include defs.h.
2772         * Makefile (config.h): Don't generate.
2773         (lib/defs.h): Generate.
2774         (topclean): Remove lib/defs.h.
2776 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2778         * lib/malloc.c, lib/getpagesize.h: Deleted.
2779         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2780         related stuff.
2781         * lib/Makefile: Delete malloc-related stuff.
2782         * lib/new.c: Workaround COOKIE_BUG if necessary.
2784         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2785         needed header files directly.
2786         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2787         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2789 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2791         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2792         argument.
2793         * lib/font (font::load_desc, font::load): Don't split argument of
2794         unknown command.
2795         (font::handle_unknown_font_command): Change type.
2796         * ps/ps.c (ps_font::handle_unknown_font_command,
2797         handle_unknown_desc_command): Change type.
2798         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2800 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2802         * lib/font.h (font::handle_unknown_font_command): Add file and
2803         line arguments.
2804         * lib/font.c (font::handle_unknown_font_command):
2805         * ps/ps.c (ps_font::handle_unknown_font_command):
2806         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2807         lineno arguments.  Use _with_file_and_line functions for error
2808         reporting.
2810         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2811         data member.
2812         * lib/font.c (font::set_unknown_desc_command_handler): New
2813         function.
2814         (font::load_desc): For unknown commands, call
2815         unknown_desc_command_handler if not null.
2816         * lib/font.h (class font): Declare them.
2817         (FONT_COMMAND_HANDLER): New typedef.
2818         * ps/ps.c (handle_unknown_desc_command): New function.
2819         (main): Set bflag if we had a -b option. Call
2820         font::set_unknown_desc_command_handler.
2821         (broken.h): Don't include.
2822         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2823         submake 
2824         * ps/devps/Makefile: Add `broken' command to DESC file using
2825         BROKEN_SPOOLER_FLAGS.
2827         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2829         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2831         * macros/tmac.e (@R, @S): New macros.
2832         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2833         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2834         Declare $H, $[0-9], .. macros with @S.
2835         Declare |0, |1, |2, |3 strings with @S.
2837         * macros/tmac.e (@S): Rename to @U.
2839         * macros/tmac.e (@z): Define @b and bp as empty instead of
2840         deleting them,
2842         * macros/tmac.e (@m): Deleted.
2843         (@h): Don't call @m.
2844         (@z): Don't set @m trap.
2846         * macros/tmac.e ($h, $f): Define |z as empty string.
2848         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2849         (@q): Likewise.
2851         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2852         removing them.
2853         ()f): Likewise for * register.
2855         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2856         argument is missing, don't change $R.  Call sr with three
2857         arguments when initializing.
2859 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2861         * macros/tmac.e (sr): New macro.
2862         Initialize $r and $R using sr.
2864         * macros/tmac.e (,): Delete \*(#[.
2866         * troff/env.c (set_tabs): Read the tab type even if the position
2867         is bad.  Allow the position of the first tab stop to be negative.
2869 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2871         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2872         _POSIX_VERSION.
2873         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2874         rather than -DPATHCONF_MISSING.
2875         * Makefile: Get rid of PATHCONF_MISSING.
2877         * refer/map.c: New file.
2878         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2879         to map_len.
2880         * refer/Makefile: Handle map.c.
2881         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2883 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2885         * Makefile: RANLIB should be `true' if there is no ranlib.
2886         * lib/Makefile (libgroff.a): Simplify.
2887         * driver/Makefile (libdriver.a): Simplify.
2889         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2890         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2891         defined.
2893 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2895         * troff/env.c (compare_ranges): Declare as extern "C".
2897         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2899         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2901 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2903         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2904         but conditionalize use of \X based on \*(.T.
2905         (grops_output::*): Deleted.
2906         * pic/output.h: Delete declaration of make_grops_output.
2907         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2908         by default. -n sets it to 0.
2909         (usage): Corresponding changes.
2910         * groff.c (main): Don't pass -x or -p to pic.
2911         * groff.sh: Likewise.
2913         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2914         to be non-zero.
2916         * ps/devps/afmtodit: Change calculation of asc_boundary and
2917         desc_boundary.  Make these bounds inclusive.
2918         * ps/devps: Regenerate font files.
2920 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2922         * macros/tmac.latin1: New file.
2923         * macros/tmac.tty-char: Use tmac.latin1.
2924         (tmac.tty-tr): Deleted.
2925         * macros/Makefile: Install tmac.latin1.
2926         * macros/tmac.dvi: Use tmac.latin1.
2927         * macros/troffrc: Translate \[char160] onto no-break space here.
2928         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2930 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2932         * macros/tmac.Xps: Use `do' request.
2934         * macros/tmac.ps: Use `do' request.
2936         * macros/tmac.e (@C): Use `do' request.
2938         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2939         * macros/Makefile: Install tmac.X*.
2941         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2942         * tty/Makefile: Don't install tmac.tty*.
2943         * macros/Makefile: Install tmac.tty*.
2945         * dvi/tmac.dvi: Move to macros.
2946         * dvi/Makefile: Don't install tmac.dvi.
2947         * macros/Makefile: Install tmac.dvi.
2949         * ps/tmac.ps*: Move to macros.
2950         * ps/Makefile: Don't install tmac.ps*.
2951         * macros/Makefile: Install tmac.ps*.
2953         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2954         option.
2955         * macros/eqnrc: Set draw_lines parameter based on device.
2956         * groff.c: Don't pass -D flag to eqn.
2957         * groff.sh: Likewise.
2958         * eqn/main.c: Warn about use of -D.
2960         * troff/input.c (process_startup_file): New function.
2961         (main): Call process_startup_file().
2962         * macros/troffrc: New file.
2963         * macros/Makefile: Install troffrc.
2964         * groff.c (main): Don't pass extra -m option to troff. For a 
2965         pseudo device pass the name of the pseudo device to troff using
2966         -d.
2967         * groff.sh: Likewise.
2968         * groff.c (possible_command::prepend_arg): Deleted.
2970         * troff/input.c (do_request): New function.
2971         (init_input_requests): Bind "do" to do_request.
2973         * eqn/main.c (main): Instead of loading eqnchar from device directory,
2974         load eqnrc from macro directory.
2975         * macros/eqnrc: New file.
2976         * macros/Makefile: Install eqnrc.
2977         * ps/devps/eqnchar: Deleted.
2978         * ps/devps/Makefile: Don't install eqnchar.
2979         * dvi/devdvi/eqnchar: Deleted.
2980         * dvi/devdvi/Makefile: Don't install eqnchar.
2981         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2982         variable optM.
2984         * lib/device.[ch]: New files.
2985         * lib/font.h (font::set_device_name, font::get_device_name):
2986         Deleted.
2987         * lib/fontfile.c: Use device.h.
2988         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2989         * troff/input.c: Delete definition of `device'.
2990         (main): Don't initialize device.
2991         * troff/troff.h: Include device.h rather than declaring device.
2992         * troff/Makefile: No need to handle DEVICE.
2993         * driver/input.c: Include device.h. Don't use
2994         font::{set,get}_device_name.
2995         * groff.c, Makefile: Rename device.h to config.h.
2996         * groff.c: Use library device variable.
2997         * eqn/main.c: Use library device variable.
2998         * eqn/Makefile: No need to handle DEVICE.
3000         * lib/searchpath.[ch]: New files.
3001         * lib/Makefile: Handle searchpath.[ch].
3002         * troff/input.c (open_file, init_dirs): Deleted.
3003         (macro_dirs): Deleted.
3004         (open_mac_file, macro_source): Use class search_path.
3005         (add_string, struct string_list): Move definition.
3006         (main): Change -M option to use macro_path. Delete call to
3007         init_dirs().
3008         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3009         Rewrite to use class search_path.
3010         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3011         * lib/Makefile: fontfile.c depends on searchpath.h.
3012         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3013         MACROPATH.
3014         * lib/macropath.[ch]: New files.
3015         * troff/Makefile: No need to handle MACROPATH.
3017         * troff/input.c: Delete DUMP code.
3018         * lib/fontfile.c, lib/font.h: Delete
3019         font::forget_command_line_font_dirs.
3021         * troff/input.c (push_token): New function.
3022         (handle_first_page_transition): Use push_token().
3023         (process_input_stack): Change handling of a space at the beginning
3024         of the line.
3026 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3028         * troff/input.c (font_dirs): Delete unused variable.
3030         * eqn/lex.c (do_set): Correct error messages.
3032 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3034         * troff/input.c (do_define_string): Allow the string name to be
3035         followed immediately by a tab.
3036         (define_character): Likewise.
3038 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3040         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3041         be negative.
3043         * troff/input.c (input_iterator::is_file): New virtual function.
3044         (file_iterator::is_file): New function.
3045         (input_stack::end_file): New function.
3046         (input_stack::next_file): Handle the situation where there is no
3047         file on the input stack correctly.  Avoid making two passes over
3048         the input stack.
3049         (next_file): Make the filename optional; in this case call
3050         input_stack::end_file().
3052 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3054         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3055         produce a real _ charater when the current font is CW and _
3056         otherwise.
3058         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3059         expression to work around gcc 2.2 bug.
3061 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3063         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3065         * troff/env.c (environment::add_padding): New function.
3066         (environment::add_char): Use add_padding().
3067         (environment::space): Likewise.
3068         (environment::wrap_up_field): Add some padding if there is none
3069         and there's no current tab.
3070         * troff/env.h: Declare environment::add_padding.
3072 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3074         * pic/pic.y: undef fmod and rand before declaring them.
3076 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3078         * troff/input.c (main): If the DESC file specifies a font name of
3079         0, then leave the corresponding font position empty.
3081         * nroff.sh: New file.
3082         * Makefile (install.nobin): Install nroff.sh.
3084         * tty/devlatin1/R.proto: Add ao as synonym for de.
3085         * tty/tmac.tty-char: Define ao as o.
3087         * tty/dev{ascii,latin1}/R.proto: Add aq.
3088         * tty/tmac.tty-char: Delete definition of aq.
3090 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3092         * troff/input.c (init_charset_table): Don't translate 0240.
3093         * ps/tmac.ps: Translate char160 to space.
3094         * dvi/tmac.dvi: Likewise.
3095         * tty/tmac.tty: Likewise.
3097 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3099         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3101         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3102         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3103         \(oe, \(r?, \(r!.
3105         * tty/tmac.tty-char: Add \(ah.
3107         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3108         No need to define \(FM and \(!/. Conditionalize all character
3109         definitions.
3111         * ps/devps/lgreekmap: Add +h, +f, +p.
3113         * ps/tmac.psnew: New file.
3114         * ps/Makefile: Install tmac.psnew.
3116         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3117         character definitions in compatible mode.
3119         * troff/input.c (remove_character): New function.
3120         (init_input_requests): Bind remove_character to "rchar".
3122         * ps/tmac.psold: New file.
3123         * ps/Makefile: Install tmac.psold.
3124         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3125         characters into tmac.psold.  Make these definitions unconditional.
3127         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3129         * ps/tmac.ps: Don't define \('c and \('C.
3131         * ps/devps/textmap: Move Greek characters to...
3132         * ps/devps/symbolchars:
3134 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3136         * ps/devps/text.enc: Add quotesingle.
3137         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3138         * tty/tmac.tty-char: Likewise.
3139         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3140         * dvi/devdvi/texi.map: Add Fn.
3141         * dvi/devdvi/msam.map: Add lz.
3142         * dvi/tmac.dvi: Handle Bq, bq, aq.
3144         * pic/lex.c (get_token): Recognize 'th.
3145         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3147 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3149         * ps/devps/textmap: Move di, mu, +- to...
3150         * ps/devps/symbolchars:
3152         * macros/tmac.s (@XS): Don't call par@reset or fi.
3153         (XA): Call LP. Turn off adjustment. Reduce line length.
3155         * macros/tmac.s: Initially alias XS to LP.
3156         (XS): Rename to @XS.
3157         (cov*ab-init): Alias XS to @XS.
3159 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3161         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3162         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3163         (token::is_size, token::changes_env): Deleted.
3164         * troff/number.c (parse_term): No need to process \s explicitly.
3165         Call tok.next() only after scale indicator has been processed.
3166         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3167         \f etc explicitly.
3168         (token::next): Handle \s, \f, \S, \H immediately rather than
3169         returning them as tokens.
3170         (token::operator==, token::description, token::add_to_node_list,
3171         token::process): Remove handling of deleted tokens.
3173         * troff/env.c (environment::add_char): When adding padding
3174         indicator character, call start_line() if necessary.
3176 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3178         * ps/devps/afmtodit: Don't output 0 kerns.
3180         * ps/devps/afmtodit: Remove directory from name of encoding in
3181         font description file.
3183         * ps/devps/afmtodit: Improve error messages.
3185         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3187         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3188         * ps/devps/FontMakefile: Deleted.
3189         * ps/devps/afmname: New file.
3191         * ps/devps/symbol.sed: New file.
3192         * ps/devps/symbol.diff: Deleted.
3193         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3194         Generate zapfdr.afm from zapfd.afm.
3196         * tty/tmac.tty (tty-char): Prefix definition with ".
3198         * macros/tmac.an (TP): Don't start a diversion if one has already
3199         been started.
3201         * tty/tmac.tty-char: Add Latin-1 characters.
3203         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3205 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3207         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3208         Move declaration of struct horizontal_span.
3210         * tbl/table.c (table::table): Initialize span_list.
3211         (table::~table): Delete span_list.
3213         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3215         * ps/devps/Makefile: Avoid dependency on GNU make.
3217         * ps/tmac.ps: Check that character does not already exist before
3218         defining it.
3220         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3221         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3222         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3223         files.
3225         * tty/tmac.tty-char: New file.
3226         * tty/Makefile: Install tmac.tty-char.
3227         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3228         tmac.tty-char.
3230         * tty/tmac.tty: Fix definition of \(34.
3232         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3233         bracket-drawing characters onto |. Add *o.
3235         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3236         only if current_field.
3238         * troff/dictionary.c (dictionary::lookup): Free old_table after
3239         rehashing. 
3241 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3243         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3244         whose glyphs are identical to glyphs of some Roman character.
3246         * tty/devlatin1/R.proto (bu): Deleted.
3247         * tty/devascii/R.proto (bu): Deleted.
3248         * tty/tmac.tty: Add definition of \(bu.
3250         * eqn/main.c (do_file): Pass FILE as argument.
3251         (main): Automatically load eqnchar.  New options -F and -n.
3252         Pass do_file an opened FILE.
3253         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3254         No need to include font.h.
3255         * groff.sh: Likewise.  Don't need to use - for standard input.
3256         Prefix files with -- if first file starts with -.
3258         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3260         * troff/env.c (environment::possibly_break_line): Don't set line
3261         to 0 across call to output_line().  Don't call output_line() until
3262         after discarding nodes after break.
3264 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3266         * request.h (macro::empty): Declare it.
3267         * input.c (macro::empty): New method.
3268         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3269         macro is empty.
3271 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3273         * troff/env.c (environment::start_field): Decrement space_total
3274         when a space is frozen.
3276 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3278         * macros/tmac.an (R): Delete macro.
3280         * troff/input.c (get_copy, token::next): Support \# (like \" but
3281         newline is ignored).
3283         * troff/input.c (token::next): Fix error message in 'Y' case.
3285 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3287         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3288         a delimiter name.
3290 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3292         * c++test.c: Include <osfcn.h>.
3294         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3295         <errno.h> doesn't.
3297 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3299         * tbl/table.c (table::divide_span): Don't count column separation
3300         if expand was specified.
3302         * tbl/main.c (process_format): Don't ignore width specs in
3303         continued format.  Give warning for changing equal widths or
3304         column separation in continued format.
3305         (process_data): Set column separation, minimum width, equal
3306         columns at end of table.
3308 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3310         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3311         node::add_discretionary_hyphen): Use soft_hyphen_char.
3312         (set_soft_hyphen_char): New function.
3313         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3315         * Makefile (c++tested): Give more helpful message if test fails.
3317 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3319         * troff/input.c (init_charset_table): Translate 0240 to
3320         an unbreakable space.
3322         * troff/token.h (token::hyphen_indicator): New function.
3323         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3324         translation.
3325         * troff/input.c (translate): Allow translation to \%.
3326         * troff/node.c (node::add_char): Handle
3327         TRANSLATE_HYPHEN_INDICATOR.     
3328         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3330         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3331         for \(hy.
3333         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3335 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3337         * groff.c (run_commands): If the last command gets a SIGPIPE send
3338         a SIGPIPE to all children than haven't yet terminated.  When
3339         command terminates, set pid field to -1.
3341 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3343         * groff.c (main): Pass an appropriate -filename option to gxditview.
3345 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3347         * Makefile.bd (install): Remove existing program before copying.
3349         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3350         programs which have Unix counterparts to be installed with
3351         user-specified prefix.
3353         * troff/input.c (exit_troff): Don't check if exit_started.
3354         (exit_request): Don't call exit_troff if exit_started.
3356         * Makefile.bd (install.mm): Rename to install.dwbmm.
3358 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3360         * driver/input.c (do_file): Add missing break for '#' case.
3362 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3364         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3365         then add the boundaries back.
3367         * troff/input.c (exit_troff): Return immediately if already
3368         exiting.
3370         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3371         end macro.
3372         (pg*end-page): If the text has ended and there are no more
3373         footnotes or keeps, exit.
3375         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3377         * troff/input.c (init_charset_table): Make \(rq transparent by
3378         default.
3380         * macros/tmac.an: Define lq and rq strings.
3382         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3384 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3386         * troff/env.c (environment::final_break): New function.
3387         (environment::newline): Set prev_line_interrupted to 2 if
3388         exit_started.
3389         * troff/env.h: Declare environment::final_break.
3390         * troff/input.c (exit_troff): Call environment::final_break()
3391         instead of environment::do_break().
3393         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3394         doesn't already exist.
3395         * macros/man.local: New file.
3396         * macros/tmac.an: Load man.local.
3397         * macros/man.ultrix: New file.
3399 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3401         * troff/input.c (exit_groff): Rename to...
3402         (exit_troff): New function.
3404         * troff/div.c (exit_started, done_end_macro,
3405         seen_last_page_ejector): New global variables.
3406         (began_page_in_end_macro): New static variable.
3407         (exit_flag): Deleted.
3408         (top_level_diversion::top_level_diversion): Initialize
3409         last_page_count.
3410         (top_level_diversion): More elaborate test for whether
3411         cleanup_and_exit() should be called.
3412         Set began_page_in_end_macro if the end macro isn't yet finished.
3413         * troff/div.h (top_level_diversion::last_page_count): New data
3414         member.
3415         (top_level_diversion::set_last_page): New function.
3416         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3417         * troff/env.c (do_break): Zero prev_line_interrupted.
3418         * troff/input.c (exit_flag): Delete declaration.
3419         (LAST_PAGE_EJECTOR): New magic cookie.
3420         (token::next): Handle LAST_PAGE_EJECTOR.
3421         (exit_groff): Set exit_started and done_end_macro instead of
3422         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3423         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3424         another ejection after setting seen_last_page_ejector.
3426 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3428         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3430         * macros/tmac.e (TH): Make sure there's room for the initial
3431         header.
3433         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3434         Set FVS in points rather than units.
3436 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3438         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3439         position of empty slots.
3441 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3443         * ps/devps/S: Fix height and depth of parenrightex.
3444         * ps/devps/symbol.diff: Regenerate.
3446 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3448         * tmac.e (u): Do underlining as in -mgs.
3450 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3452         * tty/tty.c (tty_printer::end_page): If overstriking is
3453         suppressed, still turn overstruck horizontal and vertical lines
3454         into +.
3456         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3457         2.1.
3459         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3461 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3463         * Version 1.05 released.
3465 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3467         * tty/tty.c: Instead of keeping an array of glyphs and then
3468         sorting it, keep a ordered linked list of glyphs for each line.
3470         * driver/driver.h: Include stddef.h.
3472         * tty/tty.c (compare_glyph):
3473         * refer/refer.c (rcompare):
3474         * troff/env.c (compare_ranges): Arguments of qsort comparison
3475         function should be const void *.
3477         * troff/number.c (parse_term):
3478         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3479         switch statement.
3481         * refer/label.y (consider_authors): Don't access variables
3482         constructed under a condition outside that condition: put braces
3483         round for statement containing declaration; redeclare use of same
3484         variable later.
3486         * pic/pic.y (text_expr): Delete production that allows
3487         parenthesised text_expr.
3488         (expr): Allow a conditional_expr to appear in parentheses.
3489         (conditional_expr): Rename to any_expr.
3491         * mm: Install new version 1.01 from jh.
3493         * lib/font.c (font::get_width): Cache scaled widths.
3494         (font::font): Initialize widths_cache.
3495         (font::~font): Destroy widths_cache.
3496         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3498 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3500         * c++test.c, c++test.ref: New files.
3501         * Makefile: Check that the C++ compiler works.
3503         * ps/tmac.pspic (PSPIC): Do a break.
3505         * ps/tmac.ps: Move definition of PSPIC into...
3506         * ps/tmac.pspic: New file.
3507         (PSPIC): Draw box around picture, but make it invisible to grops.
3508         * ps/tmac.ps: Load tmac.pspic.
3509         * ps/Makefile: Install tmac.pspic.
3511 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3513         * lib/font.c (scale_round): If n is negative,
3514         subtract .5 before truncating floating point result.
3516         * lib/fontfile.c: Include <errno.h>.
3518 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3520         * driver/input.c (get_char): Inline. Don't update current_lineno.
3521         Change callers to up date current_lineno if necessary.
3522         Use get_char() instead of getc(current_file).
3524 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3526         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3528 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3530         * tty/tty.c (tmac.tty): Define \(rg as (R).
3532 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3534         * lib/lib.h: New define a_delete.
3535         * Use a_delete instead of delete when deleting an array of objects
3536         without destructors.
3538         * lib/lib.h: Rename adelete to ad_delete.
3539         * Change uses of adelete.
3541 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3543         * eqn/eqn.y: Include lib.h.
3545         * troff/node.c (grow_font_table): Delete old_font_table.
3547         * mm: Install new version from jh.
3549 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3551         * tbl/table.h (format_type): Make global instead of local to class
3552         entry_format.  Prefix enumerators with FORMAT_.
3553         * tbl/table.c, tbl/main.c: Corresponding changes.
3554         * refer/token.h (token_type): Make global.  Prefix enumerators
3555         with TOKEN_.
3556         * refer/token.[ch]: Corresponding changes.
3557         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3559         * troff/div.c (node::set_vertical_size): Don't name argument.
3561 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3563         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3564         * lib/lib.h: Define adelete accordingly.
3565         * pic/object.c (graphic_object::graphic_object):
3566         * tbl/main.c (format::~format):
3567         * tbl/table.c (table::~table):
3568         * refer/ref.c (reference::~reference, reference::merge,
3569         reference::insert_field, reference::delete_field): Use adelete.
3571         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3572         * refer/token.h:
3573         * tbl/table.h: Corresponding changes.
3575         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3576         Ensure total_angle is positive.
3578 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3580         * refer/ref.c (reference::merge, reference::insert_field,
3581         reference::delete_field): Avoid delete[0].
3583         * refer/token.c (init_special_chars): Move calls to cmupper
3584         outside calls to init_two_char_letter to work around bug in gcc
3585         2.0.
3587 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3589         * lib/new.c (operator new): Use __builtin_new for g++.
3591         * pic/object.c (graphic_object::~graphic_object):  Don't use
3592         delete [] on 0.
3594         * pic/object.c (output::compute_scale): Initialize max_width and
3595         max_height.
3597 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3599         * troff/input.c (write_request): Call fflush.
3601         * troff/node.h (class composite_node): Move declaration to node.c
3602         * troff/input.c (charinfo_to_node): Rename to ...
3603         (charinfo_to_node_list): Return node list rather than composite
3604         node.
3605         * troff/node.c (make_composite_node): New function.
3606         (make_node, add_char): Call make_composite_node instead of
3607         charinfo_to_node.
3608         (class composite_node): Add a tfont * member.  Delete font_size
3609         member.
3610         (composite_node::composite_node, composite_node::copy,
3611         composite_node::size): Corresponding changes.
3612         (composite_node::tprint): Provide constant spacing, emboldening
3613         and track kerning as specified in tfont.
3614         (composite_node::width): Change width calculation accordingly.
3615         * troff/env.h (environment::composite): New member.
3616         (environment::is_composite, environment::set_composite): New
3617         functions.
3618         * troff/env.c (environment::environment): Initialize composite.
3619         * troff/input.c (charinfo_to_node): Call
3620         environment::set_composite.
3621         * troff/node.c (make_composite_node, make_glyph_node): Use the
3622         plain version of the tfont if the environment is composite.
3624         * troff/node.c (font_info::get_space_width): Additional argument
3625         giving space_size.  Handle constant space correctly. Scale by
3626         space_size unless constant spaced.
3627         (env_sentence_space_width): New function.
3628         * troff/node.h: Declare it.
3629         * troff/env.h (environment::get_space_size,
3630         environment::get_sentence_space_size,
3631         environment::get_narrow_space_width,
3632         environment::get_half_narrow_space_width): Make inline.
3633         (environment::get_space_width): Make inline.  Just call
3634         env_space_width.
3635         * troff/env.c: Delete definitions for funtions made inline.
3636         (environment::space_newline, environment::space): Use
3637         env_sentence_space_width(). Don't scale by space_size.
3638         * troff/node.h: Move declarations of env*space_width() functions
3639         into env.h.
3641 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3643         * macros/tmac.s (PS): Don't try to set negative indent.
3645 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3647         * pic/pic.y: Fix min function.
3649 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3651         * man/mdate.sh: Clear LANGUAGE.
3653 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3655         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3656         * pic/lex.c: New COMMAND keyword.
3657         * pic/pic.y (print_args, print_arg): New rules.
3658         (placeless_element): Use print_args for PRINT.
3659         New COMMAND element.
3661 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3663         * troff/input.c (terminal): Handle missing argument correctly.
3665         * pic/pic.y (text_expr): New rule.
3667         * pic/pic.y: Implement := operator.
3669 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3671         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3672         mdoc.
3674 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3676         * ps/devps/dingbatsrmap: Include this in the distribution.
3678         * macros/tmac.doc: Replace with new version from 2nd Networking
3679         Release. Fix loading of doc-* files.
3680         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3681         * macros/tmac.doc.old: New file.  Apply fixes that had been
3682         applied to old tmac.doc.
3683         * macros/tmac.andoc: Check that we're running under groff.
3684         * macros/Makefile: Rework.
3686 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3688         * tbl/table.h (format_type): 
3689         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3690         typedef to make these types visible at file scope.
3691         * Makefile: Add NESTED_TYPES configuration option.
3693         * troff/div.c (mark): At the top level use the value of
3694         nl_reg_contents rather than the current vertical position.
3696 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3698         * tty/tty.c: Implement \D for horizontal or vertical lines.
3699         (tty_printer::set_char): Use vec_used+2 as serial number.
3700         Don't allow size of vector to exceed USHRT_MAX-2.
3701         Split off part into...
3702         (tty_printer::add_char): New function.
3703         (tty_printer::draw): New function.
3704         (compare_glyph): Handle equal serial numbers.
3705         (tty_printer::end_page): Handle overstruck characters from \D.
3706         (main, usage): Implement -d option.
3708 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3710         * tbl/main.c (process_format):
3711         * eqn/text.c (split_text):
3712         * troff/input.c (token::next): Use inner block for declarations
3713         with initializers in switch statement.
3715 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3717         * pic/common.c (common_output::dash_line): Cope with zero-length
3718         lines.
3720 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3722         * Version 1.04 released.
3724 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3726         * macros/tmac.an (TH): Define a macro an-init to define variables
3727         based on command line arguments.
3728         (an-header): Call it.
3730 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3732         * Makefile (install.mm): Rename to install.dwbmm.
3734         * Makefile: Integrate mm.
3735         * mm: New directory.
3737 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3739         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3740         <sys/types.h>.
3742         * pic/troff.c (troff_output::simple_spline,
3743         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3744         shadowing parameter.
3746         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3748         * lib/ptable.h: Add explicit casts when converting from unsigned
3749         long to unsigned.
3751         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3752         * dvi/devdvi/Makefile: Install SA, SB.
3754         * refer/indxbib.c: Add declaration of mktemp.
3756         * refer/lookbib.c: Add declaration of isatty.
3758 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3760         * pic/lex.c (interpolate_macro_with_args):  While collecting
3761         arguments, keep track of whether we're in a string.
3763 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3765         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3766         down with \v, so as to avoid problems with top of page trap
3767         setting no space mode.
3769 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3771         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3773 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3775         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3776         Improve error message.
3778 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3780         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3781         printf("%03o");
3783 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3785         * groff.c (possible_command::execp): Always use _exit() after a
3786         failed exec.
3788         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3789         NO_SYS_WAIT_H   configuration options.
3790         * groff.c: Use these options.  Use POSIX-style macros to extract
3791         fields from the status returned by wait().
3793 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3795         * tbl/table.c (table::compute_separation_factor): Allow the
3796         separation factor to drop to 0.
3798 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3800         * refer/search.c: Include <errno.h>.
3802 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3804         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3806         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3807         C++. 
3809         * pic/lex.c (input_stack::bol): Move definition out of class body.
3811         * pic/main.c: On MSDOS munge argv[0].
3813         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3815         * lib/ptable.c (hash_string): Use unsigned long rather than
3816         unsigned.
3817         (next_ptable_size): Use unsigned rather than int.  Give an error
3818         message if we've hit the largest table size.
3819         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3820         table size.
3822         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3823         flags as const unisgned long rather than as enums.
3825         * pic/output.c: Deleted.
3827         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3829         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3830         Add additional argument.
3831         (line_entry::note_double_vrule_on_{left,right}): Set value of
3832         douvle_vrule_on_{right,left} flag according to argument.
3833         (simple_line_entry::simple_print,
3834         simple_line_entry::double_line_print): If adjacent to double vrule
3835         on a corner extend rather than shorten the rule by half the double
3836         vrule sep.
3838         * troff/number.c (parse_term): In checking for overflow, handle the
3839         case where the current horizontal position is negative.
3841 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3843         * pic/object.c (draw_arrow): Check for object having zero length.
3845 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3847         * eqn/main.c (do_file): Split off inline equation handling into...
3848         (inline_equation): New function.  Search for starting delimiter
3849         using...
3850         (delim_search): New function. Don't recognize a delimiter that
3851         occurs in the name of an escape sequence, number register, string
3852         etc.
3854 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3856         * eqn/delim.c (delim_box::compute_metrics): Don't call
3857         define_extensible_string if left is 0.
3858         (delim_box::output):  Don't print the left delimiter if left is 0.
3859         (delim_box::debug_print): Check for left == 0 before calling printf.
3861 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3863         * troff/Makefile (majorminor.c): Include only digits in
3864         minor_version.
3866 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3868         * refer/dirnamemax.c: new file.
3869         * refer/genlimits.c: Deleted.
3870         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3871         Don't check path length.
3872         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3873         * Makefile: Add PATHCONF_MISSING option.
3875         * refer/indxbib.c (get_cwd): New function.
3876         (main): Use get_cwd().
3877         * lib/getcwd.c: New file.
3878         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3879         GETCWD in SUBFLAGS.
3880         * lib/Makefile: Compile getcwd.o.
3882         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3883         userdict.
3885         * refer/indxbib.c (main): Check success of mktemp.
3887         * lib/tmpfile.c: New file.
3888         * lib/Makefile: Add tmpfile.c.
3889         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3890         * ps/ps.h: Delete declaration of mktemp().
3891         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3892         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3893         * driver/driver.h: No need now to include errno.h.
3895         * everywhere: Set errno to 0 before calling fopen().
3897         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3898         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3899         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3901 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3903         * troff/env.h (translate_space_to_dummy): Declare it.
3904         * troff/env.c (environment::space_newline, environment::space):
3905         If translate_space_to_dummy is set then make the width of spaces 0.
3906         * troff/input.c (translate): If the second character of a
3907         translation is a space, translate to unbreakable space.  If the
3908         first character is a space, set or clear translate_space_to_dummy
3909         according to whether the second character is \&.  Weird!
3911 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3913         * groff.c (run_commands): Don't use non-zero exit code because a
3914         command gets SIGPIPE.
3916         * groff.c, groff.sh: Use -mXps with -TXps.
3918         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3919         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3920         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3921         (ps_printer::special): New specials invis and endinvis.
3922         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3923         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3924         (ps_printer::end_page): Check that invis_count == 0.
3925         (ps_printer::invis_count): New member.
3926         (ps_printer::ps_printer): Initialize invis_count to 0.
3928         * troff/env.c (environment::hyphenate_line): Hyphenation
3929         indicator at beginning of word inhibits splitting after -, \(em
3930         etc.
3932         * pic/pic.y (element): Allow another element to follow } without
3933         any intervening separator.
3935 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3937         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3939 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3941         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3942         declaration of wait() in header files.
3943         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3945         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3947         * lib/lib.h: Declare return type of strerror as char *.
3949         * man/Makefile: Add g flag to sed substitutions.
3950         * Makefile (shgroff, bindist): Likewise.
3952 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3954         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3955         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3956         userdict.
3958 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3960         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3961         userdict.
3963 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
3965         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3966         group.
3968 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
3970         * troff/input.c (define_number_reg):  If currently undefined,
3971         don't define it if the argument is an invalid expression.
3973         * Makefile: Ignore return value of `if' commands without `else'
3974         parts.
3976         * Makefile: Split up CPPDEFINES into a series of separate
3977         configuration options.
3979         * troff/input.c (init_registers): Use time_t instead of long
3980         unless LONG_FOR_TIME_T is defined.  Use returned result rather
3981         than passing pointer.
3982         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3984         * lib/Makefile (fontpath.h): Use gendef.
3986 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
3988         * troff/input.c (input_iterator::shift): Delete argument name.
3989         * troff/node.c (suppress_output_file::really_begin_page,
3990         suppress_output_file::really_transparent_char, node::ascii_print,
3991         node::tprint): Delete names of unused arguments.
3993 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
3995         * refer/label.y (string):  Pass $4 to command_error.
3997 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
3999         * Version 1.03 released.
4001 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4003         * Makefile: Pass definition of SHELL in SUBFLAGS.
4005         * gendef: New file.
4006         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4007         ps/Makefile: Use gendef to construct header files that are
4008         constructed from the Makefile.
4010         * macros/Makefile: make all should build stripped version of tmac.e.
4012         * refer/Makefile (clean): Remove y.output.
4014 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4016         * ps/pfbtops.c (main): Add -v option which prints out a version
4017         number.
4018         * ps/Makefile (pfbtops): Link with libgroff.a.
4020 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4022         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4023         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4025         * refer/lkbib.c (main): Always terminate reference with blank
4026         line.
4027         * refer/lookbib.c (main): Likewise.
4029         * refer/linear.c (file_buffer::load): Check that the file is not a
4030         binary file.
4032         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4033         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4034         Delete second inclusion of <sys/param.h>.
4036 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4038         * troff/token.h (token::special): Deleted.
4040         * tbl/main.c (process_format): Rework so that opt->tab_char is
4041         recognized only when appropriate.
4043         * ps/Makefile (clean): Remove pfbtops.
4045 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4047         * lib/font.c (text_file::next): Don't return if we have got a
4048         blank line.
4050 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4052         * refer/refer.c (store_reference): Get hash code from old_table[i]
4053         when rehashing the table.
4055 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4057         * eqn/box.c (box::top_level): Save size and prev size using \R and
4058         restore it afterwards. Set the size to the size at the beginning
4059         of the line.
4060         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4061         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4063         * refer/Makefile (limits.h): Use ./genlimits.
4065 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4067         * refer/index.c: Delete declarations of stat() and fstat().
4069 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4071         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4073 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4075         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4077 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4079         * troff/input.c (token::get_char): Handle \e.
4081         * refer/linear.c: Delete declarations of fstat() and stat().
4083 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4085         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4086         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4088 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4090         * troff/input.c (do_define_macro): Improve error handling for end
4091         of file while defining macro.
4093 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4095         * eqn/box.h: Fix declaration of set_gsize.
4096         * eqn/box.c (set_gsize): Make argument const char *.
4097         (gsize): Declare as char *.
4098         * eqn/main.c (main): Don't convert gsize to int.
4099         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4101         * Version 1.02 released.
4103 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4105         * macros/tmac.andoc: New file.
4106         * macros/Makefile: Install tmac.andoc.
4108         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4109         operator new and delete on OP_DELETE_BROKEN not being defined.
4110         * Makefile: Mention OP_DELETE_BROKEN.
4112 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4114         * Makefile (bindist): Pass SUBFLAGS.
4116 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4118         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4120         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4121         parameter.
4123         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4125         * ps/ps.h, ps/psrm.c: Make comment_table and
4126         header_comment_table local to resource_manager::process_file.
4128         * groff.sh: With -TXps pass -printCommand option to gxditview.
4130         * groff.c (possible_command::print): Implement using
4131         append_arg_to_string.
4133         * xditview: Merge in new implementation with own ChangeLog.
4135 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4137         * groff.c (main): Implement PRINT_OPTION.
4138         (append_arg_to_string): New command.
4139         (device_table): Set PRINT_OPTION flag for Xps.
4141 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4143         * troff/groff.h: Rename to troff.h.
4145         * pic/lex.c (lookup_keyword, docmp): New functions.
4146         (get_token): Use new lookup_keyword.
4147         Don't include key.h.
4148         * pic/key.[ch], pic/pic.gperf: Deleted.
4149         * pic/Makefile: Remove gperf stuff.
4151         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4152         into output.h.
4153         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4155         * troff/Makefile, troff/node.c: Move definition of
4156         STORE_WIDTH into node.c.
4158         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4160 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4162         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4163         dvi/devdvi/texb.map: Add lq and rq.
4164         dvi/devdvi: Regenerate fonts.
4165         * ps/devps/textmap: Add lq and rq.
4166         * ps/devps: Regenerate fonts.
4167         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4168         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4170         * pic/object.c (position_rectangle): When checking radius
4171         cope with possiblity that width or height is negative.
4172         (box_object::box_object): Have separate xrad and yrad with
4173         signs matching signs of dim components.
4174         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4175         (box_object::print): With rounded boxes use absolute values
4176         for dim and rad arguments.
4178         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4179         in fontpath.h.
4181         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4183         * various files: Add explicit destructors to keep Saber CC +d
4184         happy.
4186 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4188         * eqn/box.c (box::top_level): Restore fonts correctly after
4189         font changes in line containing inline equation.  Also
4190         restore previous font as well as current font.
4191         * eqn/pbox.h: Define necessary string and register names.
4193         * troff/input.c (token::next): Case 'R' calls do_register.
4194         (do_register): New function.
4196 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4198         * groff.c, groff.sh: Support Xps device.  Allow each device
4199         to have a pseudo_name and a real_name.
4201         * groff.c (run_commands): Don't print `Broken pipe' messages.
4203         * ps/pfbtops.c: New file.
4204         * ps/Makefile: Add pfbtops.
4206         * troff/number.c (parse_term): Improved error message.
4208 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4210         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4212         * Makefile: Integrate refer.
4213         * refer: New directory.
4214         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4215         man/lkbib.man: New files.
4216         * man/Makefile: Support refer man pages.
4218         * lib/lib.h: Declare is_prime.
4219         * lib/prime.c: New file.
4221         * troff/input.c (macro_source): New function.
4222         (init_input_requests): Bind "mso" to macro_source.
4224         * troff/env.c (environment::possibly_break_line): Maintain
4225         pointer to pointer to node to be split in ndp so as to avoid
4226         using address of freed node.
4228         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4229         pointer to first node to be hyphenated in startp so as to
4230         avoid using address of freed node.
4232         * troff/env.c (class trie, class hyphen_trie): Make the
4233         elements of the trie be of type char not unsigned char.
4234         Declare arguments to be const char* instead of unsigned char *.
4235         
4236         * troff/env.c (hyphenate): Initialize hbuf[0].
4238         * troff/input.c (set_string): Declare p to be char * and cast
4239         *p to unsigned char when necessary.
4241         * troff/input.c (do_define_macro): Declare s to be const
4242         char*. Cast element to unisgned char when necessary, Declare
4243         d to be an int.  Handle EOF better.
4245         * troff/Makefile, troff/input.c: Different scheme for passing
4246         definitions of MACROPATH, HYPHENFILE and DEVICE.
4248 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4250         * tty/devascii/R.proto: Delete entry for em.
4251         * tty/devlatin1/R.proto: Likewise.
4253 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4255         * troff/input.c (translate): Stop when we get a space. Treat eof
4256         like newline.
4258         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4260 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4262         * tbl/main.c (process_format): A font name following a `f'
4263         modifier that starts with a digit can be only one character long.
4264         Also deal with EOF on the second character of the font name.
4266 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4268         * troff/input.c (token::next): Turn \~ into an
4269         unbreakable_space_node.
4270         * troff/node.c (unbreakable_space_node): New class.
4271         * troff/node.h: Declare it.
4273 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4275         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4276         it's >= 0, before outputting it as a single byte.
4278 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4280         * lib/font.c: Make font_char_metric::code an int.
4281         (font::get_code): Change return type to int.
4282         (font::load): Allow code to be arbitrary integer.
4283         * lib/font.h (font::get_code): Change return type to int.
4284         (font::number_to_index): Change argument type to int.
4285         * troff/input.c (token::next):  In case 'N', allow any value.
4286         Store value in token::val.
4287         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4288         (token::get_char, token::add_to_node_list, token::process): Get
4289         number from val.
4290         (charinfo::set_number): Change argument to int.
4291         (charinfo::get_number):  Require that NUMBERED flag be set.
4292         (get_charinfo_by_number): Store numbered characters not between 0
4293         and 255 in a dictionary.
4294         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4295         to int.
4296         (charinfo::number): Change type to int.
4297         (charinfo::set_number): Change type of set_number to int.
4298         * troff/node.c (troff_output_file::put_char_width,
4299         troff_output_file::put_char): Test whether character is numbered
4300         using charinfo::numbered().
4301         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4302         values of num.
4303         * lib/nametoindex.c: New implementation to cope with arbitrary
4304         number characters.
4306         * troff/input.c (token::operator==): Test val for
4307         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4308         TOKEN_SIZE.
4310         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4311         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4313 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4315         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4316         variable.
4318         * all Makefiles: rm targets of cp and >.
4320         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4321         it.
4323         * eqn/lex.c (def_table): Add dollar.
4325 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4327         * troff/input.c (do_width): Push back newline before closing delim
4328         like do_bracket.
4330 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4332         * groff.c (possible_command::prepend_arg): New function.
4333         (main): Prepend device -m option.
4334         * groff.sh: Put device -m options before command-line options.
4336 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4338         * macros/tmac.an (IP): Quote argument to TP.
4340         * ps/ps.c (main): New option -b, which sets...
4341         (broken_flags): New variable.
4342         (ps_printer::~ps_printer): Incorporate the setup section in the
4343         prolog if (broken_flags & NO_SETUP_SECTION).
4344         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4345         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4346         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4347         ps_printer::print_needed_font_comment,
4348         ps_printer::print_supplied_font_comment,
4349         ps_printer::print_include_font_comments,
4350         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4351         ps_printer::read_download_file, read_document_fonts, add_font,
4352         skip_line, parse_fonts_arg, document_font::document_font,
4353         document_font::~document_font, document_font::download,
4354         ps_output::include_file):  Deleted.
4355         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4356         rather than %!PS-Adobe-2.0.  Make calls to
4357         resource_manager::need_font for each font that we used. Replace
4358         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4359         print_supplied_font_comment, print_needed_font_comment by call to
4360         resource_manager::print_header_comments. Output %%Orientation
4361         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4362         Don't output the prolog directly.  Instead call
4363         resource_manager::output_prolog.  Only define #copies when ncopies
4364         > 1.  Delete calls to print_include_font_comments  and
4365         download_fonts.  Add call to resource_manager::document_setup.
4366         (ps_printer::do_file): Call resource_manager::import_file instead
4367         of including it ourselves.
4368         (ps_printer::do_import): Likewise.  Also don't call
4369         merge_import_fonts. Push userdict on the dictionary stack before
4370         and pop it afterwards.
4371         Move declaration of ps_output into ps.h.
4372         * ps/psrm.c: New file implementing resource_manager class.
4373         * ps/ps.h: New file declaring ps_output and resource_manager
4374         classes.
4375         * ps/devps/zapfdr.ps:
4376         * ps/devps/symbolsl.ps:
4377         * ps/devps/prologue:  Use 3.0 conventions.
4378         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4379         Add default definition of BROKEN_SPOOLER_FLAGS.
4380         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4381         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4383 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4385         * etc/grog.pl: New file.
4386         * Makefile (GROG): New variable.
4387         Add GROG to SUBFLAGS.
4388         * etc/Makefile (GROG): New variable.
4389         (install.nobin): Install $(GROG) rather than grog.sh.
4391 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4393         * eqn/special.c (special_box::compute_metrics): Make the input and
4394         output strings the same.  Get the new height and depth from the
4395         predefined height and depth registers.  Also make subscript kern
4396         and skew available.
4397         (special_box::compute_subscript_kern, special_box::compute_skew):
4398         New functions.
4400         * eqn/box.c (pointer_box::compute_skew,
4401         simple_box::compute_metrics, box::top_level)
4402         * eqn/text.c (prime_box::compute_metrics,
4403         prime_box::comput_subscript_kern)
4404         * eqn/limit.c (limit_box::compute_metrics):
4405         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4406         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4407         negative numbers in `nr' requests with a leading 0.
4409 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4411         * eqn/special.c: New file.
4412         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4413         Add new rule for simple.
4414         * eqn/lex.c (token_table): Add SPECIAL.
4415         * eqn/box.h: Declare make_special_box.
4416         * eqn/Makefile: Add special.[co].
4418 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4420         * ps/devps/prologue: Possibly set packing to true while defining.
4421         Create grops dictionary here.  Initialize local variables before
4422         defining procedures.
4423         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4424         the dictionary stack. Set strokeadjust and overprint to false if
4425         the relevant operators are defined.
4426         (PEND): New procedure.
4427         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4428         prologue.  Do everything else in the setup section.
4429         (ps_printer::do_import): Just call PBEGIN and PEND around the
4430         picture. Also push userdict before, and pop it afterwards.
4432 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4434         * troff/node.c (bracket_node::tprint): Brackets were being printed
4435         1m too low.
4437         * macros/tmac.an (SH, SS): Set fill mode.
4439 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4441         * troff/div.c (top_level_diversion::begin_page): Set
4442         high_water_mark to 0.
4444 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4446         * man/mdate.sh: New file.
4447         * man/mdate.c: Deleted.
4448         * man/Makefile: Use mdate.sh instead of mdate.
4449         (mdate): Deleted.
4451         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4453 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4455         * man/mdate.c: New file.
4456         * man/*.man: Replace modification date by @MDATE@.
4457         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4458         (mdate): New target.
4460         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4461         Remove illegal input characters.
4463 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4465         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4467 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4469         * troff/div.c (begin_page): Change behaviour when
4470         !first_page_begun and !break_flag.
4472         * troff/input.c (do_name_test): Return 0 if argument is empty.
4474         * troff/input.c (read_long_escape_name): Require closing ] to be
4475         at same input level as opening [.
4477         * troff/input.c (read_increment_and_escape_name): New function.
4478         (get_copy, process_input_stack): Use this for \n.
4480 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4482         * troff/div.c (top_level_diversion::begin_page): Ignore the
4483         current value of page_number if !first_page_begun.
4485         * groff.c (main): Fix declaration of buf.
4487         * troff/input.c (do_name_test): New function.
4488         (token::next): Implement \A.
4489         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4490         (token::description, token::add_to_node_list, token::process):
4491         Handle TOKEN_ESCAPE.
4492         * troff/token.h: New token TOKEN_ESCAPE.
4494 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4496         * pic/main.c (do_picture): Allow space before and after filename
4497         following `<'.  Check that the filename is not empty.
4499 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4501         * Version 1.01 released. 
4503         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4505         * dvi/tmac.dvi: ftr HR to H.
4507         * macros/tmac.e: Round up computation of $r.
4509         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4510         Use \n(.s instead of \n[.s].
4512         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4513         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4514         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4515         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4516         short names in the char definitions.
4518         * ps/tmac.ps: Don't give up completely in compatibility mode.
4519         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4520         quote in front of \n(.s. Add u to factors inside \s[...].
4522 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4524         * tty/tmac.tty: Call the nroff request.
4526         * macros/tmac.e ((x, )x):  Better definitions that work properly
4527         in a diversion.
4528         (@0, @1): Helper macros for (x.
4530         * macros/tmac.e ($s, hl): Use \l rather than \D.
4532         * tty/tmac.tty: Make it work better in compatibility mode.
4533         (pchar): Rename to tty-char.
4535         * macros/tmac.e (@E): New macro.
4536         (r, i, b, rb, bi): Use @E.
4538         * macros/tmac.e (@F): Don't use (;...) syntax.
4540         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4541         it was modified for groff.
4543         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4545         * macros/tmac.e (<., .>): Removed.
4546         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4548         * macros/tmac.e: Remove check that groff is being used.
4550         * macros/tmac.e (@C): Change families only if using groff; turn
4551         compatibility mode off while changing familes. Save compatibility
4552         mode before changing families and restore it afterwards.
4554         * macros/tmac.e (@h): Remove test for offset + line length.
4556         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4557         (lo, th, ac): Define to call @S instead of using als.
4559         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4560         the ratio of the vertical spacing to the point size in units
4561         expressed as a percentage.  Use these instead of $10r and $10R,
4562         Delete $10r and $10R.
4564         * lib/font.c (font::load): In default computation of space_width,
4565         divide by sizescale.  Use scale_round.
4567         * macros/tmac.an (TP): Don't call `nf'.
4568         (an-do-tag): Don't call `fi'.
4570 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4572         * troff/input.c (process_input_stack): Handle the case where
4573         spaces at the beginning of an input line are followed by a
4574         newline.
4576 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4578         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4579         * groff.sh: Use pic -x with the dvi device.
4581         * dvi/devdvi/FontMakefile (H): Don't use -s.
4583         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4584         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4585         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4586         in FONTS.
4588 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4590         * ps/psfig.diff: New file.
4591         * ps/tmac.psfig: New file.
4593 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4595         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4596         (]-): Don't call ref*do-tl.
4598         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4600         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4601         (fn@do-FS): Rename to fn*do-FS.
4603         * troff/input.c (transparent_translate): New function.
4604         (process_input_stack): Apply transparent_translate before calling
4605         diversion::transparent_output(unsigned char).
4607 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4609         * troff/input.c (do_define_macro): Define the macro before calling
4610         skip_line.
4612         * xditview/Makefile: Add DEVICES variable.  Change install target
4613         to use this.
4615 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4617         * groff.c (run_commands): Handle the possibility that there are
4618         child processes other than those forked by us.
4620 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4622         * lib/string.c (string::append): New function.
4623         * lib/stringclass.h: Declare it.
4625 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4627         * eqn/main.c (main): New option -N which sets
4628         no_newline_in_delim_flag. 
4629         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4630         in delimiters.
4631         * groff.c (main): Pass -N on to eqn.
4632         (help, synopsis): Mention -N.
4633         * groff.sh: Implement -N.
4635 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4637         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4638         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4639         (XP): Allow as initializer.
4641 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4643         * troff/env.c (environment::wrap_up_field): If field_spaces are
4644         non-zero and we have a current_tab, subtract padding from
4645         tab_distance.  If this makes tab_distance <= 0, use the next tab
4646         stop instead.  If there isn't any next tab or it's a left tab,
4647         wrap up the current tab.
4648         (environment::start_field): Initialize tab_precedes_field.
4649         (environment::wrap_up_tab): If there's a current field, update
4650         pre_field_width, field_distance and tab_precedes_field.
4651         * troff/env.h (environment::tab_precedes_field): New member.
4653 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4655         * ps/ps.c (ps_printer::do_file): New function.
4656         (ps_printer::special): Bind to `file' special.
4657         (ps_printer::do_exec): Set ndefined_styles to 0.
4659 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4661         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4662         Avoid stripping first character from the start of unrecognized
4663         escapes.  Use lex_error instead of error to report errors.
4664         * eqn/lex.c (get_token): Rework handling of escapes.
4665         (lex_error): Move declaration into...
4666         * eqn/eqn.h.
4668         * xditview/xditview.c (main): Make -page option work.
4670         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4672 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4674         * macros/tmac.s (B2): Correct size of box.
4676 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4678         * macros/tmac.s (B2): Postpone drawing the box until in the
4679         top-level diversion.
4681         * tty/tmac.tty: Add font translations for C, CR, CW.
4683         * groff.c (synopsis, help): Document -i.
4684         * groff.sh: Implement -i.
4686         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4687         Simplify the construction of SN.
4689         * troff/number.c (parse_term): Give `|' a higher precedence.
4690         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4691         accordingly.
4693         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4695 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4697         * lib/string.c (string::move): New function.
4698         * lib/stringclass.h: Declare it.
4700 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4702         * troff/env.c (distribute_space): Add optional argument
4703         `force_forward'.
4704         (environment::wrap_up_field): Call distribute_space with
4705         `force_forward' argument of 1.
4707 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4709         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4710         Inline it.  Move reallocation into...
4711         (string::grow1): New function.
4712         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4713         dependencies to include library header files.
4714         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4716 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4718         * macros/tmac.s (@NH): Use the same number registers than -ms does
4719         for the heading level counters.  Use the same string that -ms does
4720         for the number for this heading.
4722 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4724         * lib/new.c (operator new): Cast result of malloc to char *.
4726         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4727         is not null.
4729 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4731         * groff.c (main): Support -i.
4733 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4735         * pic/pic.h: Include <osfcn.h>.
4737         * ps/ps.c: Add declaration of mktemp.
4739         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4740         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4741         argument as union wait *.
4742         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4743         argument to union wait *.
4745 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4747         * tty/tmac.tty: Add definition of \(co.
4749         * pic/object.c (make_arc): Only increase radius when radius
4750         strictly less than d.
4751         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4752         more than once.
4754         * troff/env.c (environment::environment(symbol),
4755         environment::environment(const environment *)):  Initialize
4756         input_trap_count.
4758 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4760         * tbl/main.c (main): Add exit(0).
4762         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4764         * pic/main.c (main):
4765         * eqn/main.c (main):
4766         * tbl/main.c (main):
4767         * etc/soelim.c (main):
4768         * driver/printer.c (printer::~printer):
4769         * troff/node.c (real_output_file::~real_output_file,
4770         real_output_file::flush):  Check for errors on stdout.
4772         * most files: Add 1991 to copyright notice.
4774         * macros/tmac.s: Don't test \n(.x and \n(.y.
4776         * troff/input.c (token::next): Rename `escape_char' label to
4777         `handle_escape_char' and `normal_char' label to
4778         `handle_normal_char'.
4780 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4782         * groff.c (main, synopsis, help): Support -a option.
4783         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4784         to trflags while parsing options.
4786 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4788         * troff/number.c (parse_term): With `m', `M' and `n' scale
4789         indicators, convert scale factor to hunits before scaling.
4791 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4793         * lib/font.c (scale_round): Better test for overflow when n is
4794         negative.
4796 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4798         * tbl/main.c (process_format): Add second argument of type
4799         options*. Change callers.  Allow opt->tab_char as well as '\t'
4800         between format items.
4802 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4804         * macros/tmac.an (PD): With no arguments, make sure register PD is
4805         at least \n[.V].
4806         (TH): Call PD with no argument, instead of setting register PD
4807         directly.
4809 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4811         * Version 1.00 released.
4813 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4815         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4817         * dvi/devdvi/DESC: Mount CW instead of CR.
4819         * dvi/tmac.dvi: Add definition of \(tm.
4821         * dvi/devdvi/texsy.map: Add lh, and rh.
4822         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4823         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4825         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4826         * dvi/devdvi/Makefile: Install H.
4827         * dvi/devdvi/H: New file.
4829 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4831         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4832         be 0.
4834 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4836         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4838         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4840         * macros/tmac.s (@EN): Handle the case where the equation is empty
4841         but the label is not.
4843 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4845         * troff/groff.h: New warning category WARN_SPACE.
4846         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4847         WARN_SPACE to warning_table.
4848         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4849         is longer than two characters and is not defined, but the first
4850         two characters do make a defined name.
4852         * PROBLEMS: New file.
4854         * CHANGES: New file.
4855         * README-0.6, README-1.00: Deleted.
4857         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4858         * xditview/devX75/Makefile: Make devX75-12.
4859         * xditview/devX100/Makefile: Make devX100-12.
4861         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4862         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4864 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4866         * README-0.7: Rename to README-1.00.
4868         * macros/tmac.pic: New file.
4869         * macros/Makefile (install.nobin): Install tmac.pic.
4871 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4873         * troff/env.c (hyphen_word): Correct the test for whether the
4874         token is a hyphen.  Reset npos to 0.
4876         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4878 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4880         * macros/tmac.s (ds*common-end): Call par*reset.
4881         (PE): Likewise.
4882         (par@reset-indent): Deleted.
4884         * macros/tmac.s (@IP): Divert the label.
4886 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4888         * xditview/draw.c (setGC): Use a line width of .1m rather than
4889         .04m by default; round rather than truncate value.
4891         * tbl/table.c (class empty_entry): New class.
4892         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4893         (table::add_entry): Represent empty entries by objects of type
4894         empty_entry.
4895         (table_entry::line_type): Return -1.
4896         (table::determine_row_type): Ignore entries with line_type 0.
4897         Treat type -1 as non-lines.
4899 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4901         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4902         macros/tmac.s: Rename \(-d to \(Sd.
4904 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4906         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4907         * xditview/libXdvi/DviChar.c: Likewise.
4908         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4910 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4912         * troff/div.c (top_level_diversion::begin_page): Call
4913         init_output() if the_output is 0.
4915 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4917         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4918         ESCAPE_c.
4919         (get_copy): Turn \E into ESCAPE_E.
4920         (token::process, asciify): Handle ESCAPE_E.
4922         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4923         (RD): New macro.
4924         (DS): Implement `.DS R'.
4926 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4928         * macros/tmac.s (FS): New macro.
4930         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4932         * macros/tmac.s (cov*tl-init): Remove after first execution
4933         instead of aliasing to @nop.  Call top of page macro explicitly
4934         instead of setting trap; call @init first.  Set pg@top as top of
4935         page macro.
4936         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4937         cov*auto-init as top of page trap. 
4938         (TL, LP): Do a break instead of calling cov*tl-init.
4939         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4940         @FE; in this case also give a warning and always start another
4941         page. No need to set pg@top here.
4942         (cov*tl-init): Rename to cov*first-page-init.
4944         * macros/tmac.s (RP): Do `.pn 0'.
4945         (cov*tl-init): With RP format don't do `.pn 0'.
4947         * macros/tmac.s (pg@cs-top): Set no space mode.
4949         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4950         (cov*ab-init): Alias TL, AU and AI to these.
4952 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4954         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4955         (@EN): Do nothing unless \n[dl] is > 0.
4957 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4959         * pic/object.c (ellipse_object::radius): New function.
4961         * VERSION: Change version to 0.7.
4963         * tbl/table.c (block_entry::do_divert): Declare return type as
4964         void.
4965         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4967 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
4969         * troff/column.c: New file.
4970         * troff/Makefile: Corresponding changes.
4972         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
4973         Friend of vunits.
4975         * troff/div.c (top_level_diversion::space): If the space causes
4976         the first-page transition and springs a trap, truncate the space
4977         to 0.
4979 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
4981         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4982         the document.
4984         * pic/troff.c (troff_output::line_thickness,
4985         troff_output::set_fill): Do a horizontal motion to compensate for
4986         the width of the \D escape sequence.
4988 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
4990         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4991         (not X75).
4993         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
4994         to printf.
4996         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4997         Supply empty definition.
4998         (text_entry::simple_print, simple_text_entry::simple_print):
4999         Delete declarations.
5000         (table::add_entry): Represent empty entries by objects of type
5001         `simple_entry'.
5003 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5005         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5007         * tbl/table.c (left_text_entry::add_tab): New function.
5009         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5010         initialize like LP.
5012 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5014         * troff/env.c (environment::start_field): Give an error message if
5015         there is no next tab.
5017 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5019         * troff/env.c (hyphenate): Skip initial elements with zero
5020         hyphenation code.
5022         * macros/tmac.s (par@init): Keep VS in points rather than units.
5024 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5026         * pic/main.c (main): Implement `-c' option.
5027         * pic/output.h: Declare make_tpic_output().
5028         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5029         protected.
5030         (tpic_output): New class.
5031         (tpic_output::tpic_output, tpic_output::set_pen_size,
5032         tpic_output::command, make_tpic_output): New functions.
5034 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5036         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5037         if they're not already defined.
5038         * tbl/table.c (init_output): Don't test \n(.g.
5040         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5041         `d', `r' and `c' conditions even in compatibility mode.
5043 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5045         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5046         box.
5048 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5050         * troff/env.h (environment::prev_line_interrupted): New member.
5051         (environment::get_prev_line_interrupted): New function.
5052         * troff/env.c (environment::newline): Set prev_line_interrupted.
5053         (environment::environment(const environment *),
5054         environment::environment(symbol)): Initialize
5055         prev_line_interrupted.
5056         * troff/input.c (process_input_stack): Don't give special
5057         treatment to space and newline at the beginning of the line if the
5058         previous line was interrupted.
5060 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5062         * eqn/eqn.y: Disallow PRIME by itself.
5063         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5064         PRIME.
5065         (def_table): Remove definition of '.  Define prime to be `.
5067         * eqn/eqn.y: Split off part of rule `script' into a new rule
5068         `nonsup'.
5070 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5072         * macros/tmac.s ({, }): New string aliases.
5074 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5076         * README-0.7: New file.
5078 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5080         * macros/tmac.s: New file.
5081         * man/groff_ms.man: New file.
5082         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5083         * Makefile.bd: Similarily.
5084         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5085         definition of TMAC_S.
5086         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5087         * macros/TODO: New file.
5089 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5091         * troff/env.c (right_justify): New function.
5092         (init_env_requests): Bind this to request "rj".
5093         (center_lines): Set right_justify_lines to 0. If we get a bad
5094         integer, center 1 line.
5095         (environment::environment(symbol), environment::environment(const
5096         environment *)): Initialize right_justify_lines.
5097         (environment::get_right_justify_lines): New function.
5098         (init_env_requests): Bind this to number_register ".rj".
5100         * troff/env.c (environment::choose_breakpoint): Implement
5101         hyphenation_margin and hyphenation_space.
5102         (environment::get_hyphenation_space,
5103         environment::get_hyphenation_margin): New functions.
5104         (init_env_requests): Bind these to .hys and .hym.
5105         (hyphenation_space_request, hyphenation_margin_request): New
5106         functions
5107         (init_env_requests): Bind these to hys and hym.
5108         (environment::environment(symbol), environment::environment(const
5109         environment *)): Initialize hyphenation_margin and
5110         hyphenation_space.
5111         * troff/env.h: Corresponding changes to class environment.
5113 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5115         * troff/div.c (blank_line): Always do a break.
5117         * eqn/box.c (do_text): Turn off escapes while appending text to
5118         string.
5120 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5122         * troff/input.c (while_break_request, while_continue_request): New
5123         functions.
5124         (init_input_requests): Bind these to "break" and "continue".
5125         (while_depth, while_break_flag): New variables.
5126         (while_request): Update while_depth.  Break out of loop if
5127         while_break_flag is set.
5129 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5131         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5132         rather than 0.
5134 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5136         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5138         * stringify: New file.
5139         * Makefile (groff.o): Use stringify.
5141         * xditview/tmac.X: Remove definition of \(rn.
5142         * xditview/libXdvi/DviChar.c: Remove radicalex from
5143         Adobe_symbol_map.
5145 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5147         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5148         (alphabetic_block_entry::alphabetic_block_entry,
5149         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5150         New functions.
5151         (block_entry::divert): Split off body into ...
5152         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5153         from the line length; also update the span width to dl+2n, and the
5154         alphabetic span width to dl.
5156         * driver/input.c (do_file):  While reading argument to D command,
5157         when expanding buffer, multiply szp by sizeof(int) rather than 2
5158         in the argument to memcpy.
5160         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5161         width of alphabetic columns.
5163 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5165         * troff/node.c (lookup_family): Supply second argument to lookup.
5167         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5168         search, return immediately if v is 0.
5170         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5171         (troff_output::start_picture): Set this reg.
5172         (troff_output::end_picture): Remove this reg
5173         * eqn/box.c (box::extra_space): Don't produce `\x's if
5174         EQN_NO_EXTRA_SPACE_REG is defined.
5176         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5177         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5178         character.
5180 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5182         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5183         requests.
5185         * troff/div.c (top_level_diversion::top_level_diversion):
5186         Initialize page_number to 0.
5188 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5190         * groff/troff (environment::environment(const environment *)):
5191         Initialize name to e->name, rather than "anonymous".
5193 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5195         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5196         requested_page.  Split middle part into ...
5197         (FindPage): New function.
5198         (SetValues): If we don't yet know the last page, and the requested
5199         page is greater than the current page, call FindPage.
5200         Update the font_map_string before doing this.
5202         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5203         Translate \(lh and \(rh into left and right double arrows.
5205         * troff/node.c (class hyphen_inhibitor_node): New class.
5206         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5207         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5208         hyphen_inhibitor_node::type,
5209         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5210         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5211         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5212         word.
5214 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5216         * troff/node.h (dummy_node::get_hyphenation_type,
5217         transparent_dummy_node::get_hyphenation_type):  Declare them.
5218         * troff/node.c: (dummy_node::get_hyphenation_type,
5219         transparent_dummy_node::get_hyphenation_type): New functions.
5221 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5223         * xditview/libXdvi/draw.c: If M_PI not defined after including
5224         math.h, then define it.
5226         * xditview/Makefile: Add definition of AR. Pass it to the submake
5227         in libXdvi.
5228         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5230 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5232         * troff/dictionary.h (object_dictionary::alias): Declare return
5233         value as int.
5234         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5235         if the old name was defined.
5236         * troff/input.c (alias_macro): Give a warning if the old name was
5237         not defined.
5238         * troff/reg.c (alias_reg): Likewise.
5240 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5242         * troff/input.c (token::next): Delete implementation of \R.
5244         * macros/Makefile: Strip comments from tmac.e while installing it.
5246         * troff/input.c: New variable `nroff_mode'.
5247         (troff_request, nroff_request): New functions.
5248         (init_input_requests): Bind `troff' and `nroff' to troff_request
5249         and nroff_request.
5250         (do_if_request): Compute results of t and n conditions from
5251         nroff_mode.
5253         * text/text.c (split_text): Fix typo in >=.
5255         * eqn/lex.c: Add definition of `==' to def_table.
5257 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5259         * pic/tex.c (tex_output::start_picture): Change the definitions of
5260         \graph and \graphtemp so that they work properly with Plain TeX.
5262         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5263         argument to `ar' is not less than the first.
5265         * pic/pic.y: Allow a comma between elements of the variable list
5266         in the argument to `reset'.
5268         * pic/object.c (arc_object::arc_object): Fix computation of
5269         radius.
5271         * eqn/main.c (main): Add exit(0).
5273 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5275         * troff/div.c (begin_page): Test no_space_mode after doing the
5276         break, but still push the page ejector cookie before doing the
5277         break.  Also set the next page number after doing the break.
5278         
5279         * xditview/xditview.c (NewFile): Don't set the title and icon name
5280         if this is the first file and its name is `-'.
5281         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5282         the X75 and X100 devices.
5283         (main): If a device has the XT_OPTION flag set and there's exactly
5284         one file argument, pass the driver -xrm and -title options to set
5285         the icon name and window title to the name of the file.
5287         * troff/env.c (environment_switch): If there was an argument but
5288         it wasn't a valid number or name, then pop an environment but
5289         don't give an error message on underflow.
5291         * troff/number.c (start_number): Correct spelling in error message.
5293         * troff/input.c (token::delimiter): Don't print an error message
5294         if err is false.
5296         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5297         ParseDrawFunction if dw->display_enable is true.
5299 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5301         * pic/pic.y: Parse text positioning like normal attributes, so as
5302         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5303         positioning attribute.
5305 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5307         * tbl/main.c (process_data): When in state START while reading a
5308         text block, don't change to state MIDDLE if c is a newline.
5310 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5312         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5313         so as to avoid shadowing parameter.
5315 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5317         * tbl/table.c (trim_space): Deleted.
5318         (table::add_entry): Don't call trim_space.
5320 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5322         * VERSION: Change version to 0.6.
5324         * troff/number.c (parse_expr): Make == work.
5326 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5328         * man/grog.man: New file.
5329         * man/Makefile: Add grog.n to MAN1PAGES.
5330         * etc/grog.sh: New file.
5331         * etc/Makefile: Install grog.sh as grog.
5333 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5335         * troff/input.c (token::next): Implement \E.
5337 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5339         * xditview/tmac.X: Change font translations to match tmac.ps.
5341         * troff/input.c (non_empty_name_warning): Don't give a warning if
5342         `\{' terminates the name.
5344 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5346         * ps/devps/symbol.diff: New file.
5347         * ps/devps/FontMakefile: Mention symbol.diff.
5349 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5351         * troff/node.c (font_position): Use get_long_name to read the
5352         external_name.
5354         * troff/env.c (environment_switch): If we get a number that's < 0
5355         or >= NENVIRONMENTS, treat it like a name.
5356         Change NENVIRONMENTS to 10.
5358         * troff/groff.h: Remove definition of FONTS_MAX.
5359         * troff/node.h (class font_family): Make map a pointer instead of
5360         an array. Add a map_size member. Make it a class. Make nm const
5361         and public. Make invalidate_fontno a friend.
5362         * troff/node.c: Define font_table_size. Make font_info a pointer
5363         rather than an array.
5364         (class troff_output_file): Allocate font_position dynamically. Add
5365         nfont_positions member.
5366         (troff_output_file::set_font): Grow font_position if necessary.
5367         (troff_output_file::~troff_output_file): Delete font_position.
5368         (troff_output_file::troff_output_file): Allocate font_position.
5369         (grow_font_table): New function.
5370         (troff_output_file::really_begin_page,
5371         troff_output_file:really_copy_page): Use nfont_positions rather
5372         than FONTS_MAX.
5373         (mount_font_no_translate, mount_style): Call grow_font_table if
5374         necessary.
5375         (font_family::font_family): Allocate map.
5376         (font_family::make_definite): Grow map if necessary. Use
5377         font_table_size instead of FONTS_MAX.
5378         (font_family::~font_family): New function.
5379         (invalidate_fontno): Use font_family::map_size.
5380         (get_fontno, env_space_width, env_half_narrow_space_width,
5381         env_narrow_space_width, symbol_fotno, is_good_fontno,
5382         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5383         FONTS_MAX.
5384         (next_available_font_position): Never return 0.
5386 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5388         * ps/tmac.ps: Add font translations for compatibility with dpost.
5390 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5392         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5393         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5394         Move definitions baseline_sep, shift_down, column_sep,
5395         matrix_side_sep into...
5396         * eqn/box.c: Add them to param_table.
5397         * eqn/pbox.h: Add declarations to pbox.h.
5399         * troff/input.c (set_string): Cast value to unsigned char *.
5401         * troff/token.h (process_input_stack): Declare it static before
5402         declaring it a friend.
5404 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5406         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5407         and bottom.
5408         * dvi/devdvi/EX: Regenerate.
5410         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5411         transparent.
5413 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5415         * eqn/lex.c: In defaults_table, make definition of `dot' call
5416         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5417         accents.
5419         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5420         argument.
5421         (for_input::get, for_input::peek): Use this.
5422         (do_for): Add by_is_multiplicative argument.
5423         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5424         Change semantic value of optional_by to be a double plus a flag
5425         saying whethet the by clause is multiplicative.
5427         * eqn/lex.c (get_delimited_text): Remember location of start of
5428         definition.  Improve error handling when EOF is encountered.
5430         * lib/font.h: Rename handle_x_command to
5431         handle_unknown_font_command.
5432         * lib/font.c (font::load): Call handle_unknown_font_command for
5433         any unknown command in the font description file.  Don't call
5434         handle_x_command. Include the name of the command in the argv.
5435         Improve message for unknown command after kernpairs or charset
5436         command.
5437         * ps/ps.c (ps_font::handle_x_command): Rename to
5438         handle_unknown_font_command.  Remove message about `x download'
5439         command.  Give error message for wrong number of arguments.
5440         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5441         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5442         handle_unknown_font_command. Give an error message for wrong
5443         number of arguments.  Rename design_size to designsize.
5444         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5445         checksum', `designsize' instead of `design_size'.
5447 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5449         * eqn/*.[chy]: Change underaccent to uaccent.
5451         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5452         give it the same precedence as ACCENT.
5453         * eqn/other.c (make_underaccent_box): New function.
5454         * eqn/box.h: Declare it.
5455         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5456         def_table.
5458 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5460         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5461         (parse_init): Call reset_all.
5462         (define_variable): When defining scale reset only those
5463         pre-defined variables that are scaled.
5464         (defaults_table): Add `scale' as non-scaled value.
5466         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5467         together with the text; allow any number of positioning words;
5468         allow center as a positioning word.
5470         * pic/object.c (output::compute_scale): Get picture maximum height
5471         and width from variables called maxpswid and maxpsht.
5472         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5474 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5476         * pic/object.c (object_spec::make_text): Multiply textht by number
5477         of text items.
5479         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5480         occur.
5481         (do_sprintf): New function.
5482         (pic.gperf): Add sprintf token.
5483         (text, sprintf): New rules.
5485         * pic/pic.y: `rand()' with no arguments returns a random number
5486         in the range [0,1).
5488         * pic/pic.y: Allow a bare expression to be an attribute: change
5489         precedences to support this.  Change optional_ordinal rule to
5490         optional_ordinal_last to avoid reduce/reduce conflict.
5491         * pic/object.c (object_spec::object_spec): Initialize direction.
5493         * pic/pic.y: Implement ^ operator meaning exponentiation.
5495         * troff/node.h: Add default argument to mount_font.
5496         * troff/node.c (font_position): Read an optional third argument
5497         giving the external_name.
5498         (mount_font): Add optional argument giving the external_name.
5499         (mount_font_not_translate): Have additional argument giving
5500         external name.  Use this name to load the font.  Pass both names
5501         to font_info::font_info.
5502         (font_info::font_info): Have additional argument giving
5503         external_name.
5504         (class tfont): New member external_name.
5505         (font_info::get_tfont): Use external name to construct tfont_spec.
5507 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5509         * eqn/lex.c (init_table): Add argument giving device.  Define
5510         name of device to be "1".
5511         (do_ifdef): Counts as true if the argument has been defined with
5512         `define'.
5513         * eqn/main.c (main): Call init_table with device argument. Make
5514         device local to main.
5515         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5516         of device.
5518         * pic/lex.c (get_delimited): Allow text to be delimited by
5519         matching {}s.  Don't recognize ending delimiter within a string.
5521         * troff/input.c (get_delim_name): New function.
5522         (token::next): Implement \C.
5524         * lib/font.c (font::load): Grok ---.  Add an alias for each
5525         character based on its code.
5526         (font::get_code_width): Deleted.
5527         * lib/font.h (class font): Declare font::number_to_index().
5528         Remove declaration of font::get_code_width.
5529         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5530         to indices of named characters.
5531         (font::number_to_index): New function.
5532         * troff/input.c (font::number_to_index): New function.
5533         (get_charinfo_by_number, charinfo::get_number,
5534         charinfo::set_number): New functions.
5535         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5536         (token::process, token::description, token::get_char,
5537         token::add_to_node_list, token::operator==): Handle
5538         TOKEN_NUMBERED_CHAR.
5539         * troff/charinfo.h: Declare get_charinfo_by_number,
5540         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5541         charinfo class.
5542         (charinfo::numbered): New function.
5543         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5544         * troff/env.h (class environment): Remove declaration of ...
5545         * troff/env.c (environment::make_numbered_char_node): Deleted.
5546         * troff/node.c (make_numbered_node): Deleted.
5547         (class numbered_glyph_node): Remove.
5548         (troff_output_file::put_char_width, troff_output_file::put_char):
5549         Handle numbered chars.
5550         (troff_output_file::numbered_char): Removed.
5551         (tfont::get_code_width): Removed.
5552         (make_glyph_node): Don't search special fonts for numbered
5553         characters.
5554         * troff/node.h: Remove declaration of make_numbered_node.
5555         * driver/input.c (do_file): Handle N command.
5556         * driver/printer.h: Add declaration of ...
5557         * driver/printer.c (printer::set_numbered_char): New function.
5558         * dvi/tfmtodit.c (main): Generate unnamed entries.
5559         * ps/devps/afmtodit: Likewise.
5560         * xditview/xtotroff.c (MapFont): Likewise.
5561         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5563         * tbl/main.c (process_format): If multiple widths are specified
5564         for a column but all the widths are the same, don't give an error
5565         message.
5567         * tbl/table.c (table::do_row): If the current row is all lines and
5568         the stuff doesn't contains a line, mark the top of the row after
5569         printing stuff before the row.  If the current row is not all
5570         lines and the stuff doesn't contain a line, don't unnecessarily
5571         mark the top of the row before printing the stuff.
5572         
5573 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5575         * troff/groff.h: Remove MAX_PATH.
5576         * troff/input.c (open_file): Dynamically allocate space for the
5577         path.
5578         (open_mac_file, process_macro_file): Corresponding changes.
5580 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5582         * troff/node.h (class output_file): Make copy_file pure.  Add
5583         vspace method ifdef COLUMN. Add is_printing method.
5584         * troff/node.c: Add class printing_reg. Add class
5585         real_output_file. Derive other output_file classes from
5586         real_output_file; in these classes rename begin_page to
5587         really_begin_page, print_line to really_print_line, copy_file to
5588         really_copy_file, transparent_char to really_transparent_char.
5589         Move output_file::flush to real_output_file. Add printing member
5590         to class output_file.
5591         * troff/div.h: Remove printing member from top_level_diversion.
5592         Add vspace member function to class diversion ifdef COLUMN. Add
5593         some declarations ifdef COLUMN.
5594         * troff/div.c (top_level_diversion::copy_file,
5595         top_level_diversion::transparent_output,
5596         top_level_diversion::output): Don't test printing member before
5597         output.
5598         * troff/input.c: Handle initial variable_space_request ifdef
5599         COLUMN.
5600         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5601         but comment it out.
5603 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5605         * troff/div.c (diversion::need): Make any space forced.  If we
5606         sprung a trap, set truncated_space to minus the distance to the
5607         trap and set needed_space to the amount that was needed.
5608         (top_level_diversion::space): A forced space turns no_space_mode
5609         off.
5610         (class constant_vunits_reg): New class.
5611         (init_div_requests): Implement number registers .trunc and .ne
5612         using constant_vunits_reg.
5613         (class truncated_space_reg): Deleted.   
5615         * troff/div.h: Don't have a no_space_mode member in diversion.
5616         Instead have it in top_level_diversion.
5617         * troff/div.c (diversion::diversion): Don't initialize
5618         no_space_mode.
5619         (top_level_diversion::top_level_diversion): Initialize
5620         no_space_mode.
5621         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5622         (macro_diversion::output): Don't clear no_space_mode.
5624         * troff/input.c (diverted_space_node::reread): Don't call
5625         environment::do_break.  In fill mode, act like a blank line.
5626         (diverted_copy_file_node::reread): Don't call
5627         environment::do_break.
5629         * troff/div.c (blank_line): New function.
5630         * troff/div.h: Declare it.
5631         * troff/input.c (process_input_stack): Call it.
5633         * troff/div.c (truncated_space_reg::get_string): New function.
5634         (init_div_requests): Bind to .trunc.
5635         (space_request, top_level_diversion::space,
5636         top_level_diversion::output, macro_diversion::space,
5637         macro_diversion::output): Update truncated_space.
5638         (macro_diversion::output): Redo calculations when trap sprung.
5639         (macro_diversion::output, macro_diversion::space): No need for
5640         trap_flag.
5642         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5643         after truncating post line spacing.
5645 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5647         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5648         defined as a procedure rather than as an operator.
5650 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5652         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5654 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5656         * troff/div.c (top_level_diversion::output): Merge
5657         output_file::print_line and output_file::end_of_line member
5658         functions.
5659         * troff/div.h (class output_file):
5660         * troff/node.c (troff_output_file::print_line,
5661         troff_output_file::end_of_line, output_file::end_of_line,
5662         ascii_output_file::print_line, suppress_output_file::print_line):
5663         Corresponding changes.  
5665 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5667         * troff/input.c (token::next): Don't give a warning for `\.'.
5669         * troff/env.c (environment::get_center_lines): New function.
5670         (init_env_requests): Bind number register .ce to it.
5671         * troff/env.h: Declare it.
5672         * tbl/table.c (table::init_output): Define reset macro to restore
5673         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5674         Then do .ce 0.
5675         (table::print): If center option not given, then imply center
5676         option if SAVED_CENTER_REG > 0.
5678 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5680         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5681         Troff.ps from DOWNLOAD.
5682         
5683         * troff/Makefile: Change comment in DEFINES to avoid confusing
5684         System V make.
5686         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5687         code.  Don't try to catch errors with stopped.
5688         (check_line_lengths): New function.
5689         * ps/devps/prologue (EXEC): Deleted.
5690         (EBEGIN, EEND): New procedures.
5692 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5694         * troff/input.c: Include request.h before node.h.
5695         * troff/node.c: Likewise.
5696         * troff/env.c: Likewise.
5697         * troff/div.c: Likewise.
5698         * troff/node.h (class special_node): Store argument as a macro
5699         rather than a char *.
5700         * troff/node.c (special_node::special_node, special_node::copy):
5701         Grok this.
5702         (special_node::~special_node): Deleted.
5703         (special_node::tprint): Deleted.
5704         (special_node::tprint_start, special_node::tprint_end,
5705         special_node::tprint_char): New functions.
5706         (troff_output_file::special): Deleted.
5707         (troff_output_file::start_special, troff_output_file::end_special,
5708         troff_output_file::special_char): New functions.
5709         * troff/input.c (special_node::tprint): New function.
5710         (do_special): Use macro not char *.
5711         (do_transparent_macro): Deleted.
5712         (token::next): Don't call do_transparent_macro.
5714         * troff/input.c (token::next): Add 'Y' case.
5715         (do_transparent_macro): New function.
5716         * troff/node.c (troff_output_file::special): Handle newlines with
5717         argument using new continuation convention.
5718         * driver/input.c (get_string): Cope with continuation convention.
5719         (do_file): Don't call skip_line after calling get_string(1).
5720         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5721         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5722         arg.
5723         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5724         with +.
5726 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5728         * troff/input.c (asciify): By default, illegal input characters
5729         should return empty string.
5731         * troff/input.c (copy_file): Handle first page transition like title.
5732         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5734         * troff/input.c (token::next): Improve error message for EOF after
5735         escape character.
5736         (input_char_description): New function.
5737         (get_char_for_escape_name): Use input_char_description.
5738         (token::next): Warn about unrecognized escape sequences.
5739         (warning_table): Add WARN_ESCAPE.
5740         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5741         accordingly.
5743         * troff/token.h: Remove declaration of process_input_stack.
5745         * troff/input.c: Remove declaration of init_hyphen_requests.
5746         * troff/request.h: Correct spelling in declaration of same.
5748         * troff/input.c (token::next): Check whether escape_char is 0.
5750 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5752         * groff.c (main, usage, help): Implement -P and -L options.
5753         * groff.sh: Likewise.
5755         * troff/input.c (token::next): Use some gotos to avoid code
5756         duplication.
5758         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5759         Avoid calling symbol::symbol if name empty.
5761 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5763         * troff/input.c (init_input_requests): Make \n(.x return the major
5764         version number and \n(.y return the minor version number.
5765         * troff/Makefile: Construct file majorminor.c defining
5766         major_version and minor_version automatically from ../VERSION.
5768         * troff/node.c (class glyph_node): Make operator new and operator
5769         delete public.
5770         (class ligature_node): Similarily.
5772         * troff/input.c (operator==(const macro &, const macro &)): New
5773         function.
5774         (non_interpreted_node::same): Use this.
5775         (string_iterator::string_iterator): Make macro& argument const.
5777         * troff/input.c (input_iterator::get): New function. Don't make
5778         asciify_macro or class non_interpreted_node friends of class
5779         input_iterator.
5780         (non_interpreted_node::interpret): Use input_iterator::get.
5781         (asciify_macro): Likewise.
5783         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5784         ~non_interpreted_node): Deleted.
5785         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5786         Deleted.
5788         * troff/symbol.h: Make all symbol member functions const.
5790         * lib/strtol.c: New file.
5791         * lib/Makefile: Add strtol.c.
5792         * Makefile: Define STRTOL as strtol.o to include strtol in
5793         libgroff.a.
5795 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5797         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5799 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5801         * troff/input.c (do_special): Use input_level.
5803         * troff/token.h (TOKEN_BACKSPACE): New token.
5804         (token::backspace): New function.
5805         * troff/input.c (token::description, token::next, token::process):
5806         Grok TOKEN_BACKSPACE.
5807         (do_special): Turn TOKEN_BACKSPACE back into \b.
5809         * troff/token.h (token::leader): New function.
5810         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5812         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5814         * troff/input.c (do_special): Use token::description in error
5815         message.
5817 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5819         * troff/input.c (decode_args): Combine quoted and
5820         quote_input_level variables. Make it a for (;;) loop.
5822         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5824         * troff/input.c (read_long_escape_name): The test for whether to
5825         expand buffer was off by 1.
5826         (read_string): Similarily.
5828 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5830         * troff/input.c: Use `const int' rather than `static const int'.
5832         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5833         (macro_diversion::copy_file): New function.
5834         * troff/node.h: New class diverted_copy_file_node.
5835         * troff/node.c: Implement it.
5836         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5837         first page transition by pushing a diverted_copy_file_node.
5838         * troff/input.c (token::next, process_input_stack): Don't handle
5839         COPY_FILE_REQUEST.
5841 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5843         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5844         whether space widths need adjusting.
5846         * troff/charinfo.h: Generalize translated_to_space to
5847         special_translation so as to allow translation to \&.
5848         * troff/input.c (translate): Allow translation to \&.
5849         (charinfo::*): Corresponding changes.
5850         * troff/node.c (make_node, node::add_char): Corresponding changes.
5851         * troff/node.h (dummy_node::dummy_node): Allow optional first
5852         argument.
5854         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5855         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5856         TOKEN_REQUEST.
5857         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5858         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5859         (token::process): Grok that.
5860         * troff/input.c (copy_file): Handle first page transition like
5861         title by pushing a COPY_FILE_REQUEST cookie.
5862         (token::next, process_input_stack): Grok that.
5863         * troff/node.h (output_file::copy_file): Add x and y arguments.
5864         Make it non-pure.
5865         * troff/div.c (top_level_diversion::copy_file): Supply them.
5866         * troff/node.c (troff_output_file::copy_file): Add x and y
5867         arguments; moveto specified position.  Invalidate font_position
5868         array after copying file.
5869         (output_file::copy_file): New function.
5870         (suppressed_output_file::copy_file, ascii_output::copy_file):
5871         Removed.
5872         * troff/input.c (transparent_file): New function.
5873         (init_input_requests): Bind to "trf".
5874         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5875         (process_input_stack): Likewise.
5877         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5879         * troff/node.c (init_node_requests): New number registers .kern
5880         pointing to global_kern_mode, and .lg pointing to
5881         global_ligature_mode.
5883         * troff/node.c (ligature): Don't change it if we get a bad
5884         integer.
5886         * troff/input.c (do_define_string): Don't strip tabs.
5888         * troff/input.c (asciify_macro): Make the string_iterator auto.
5890         * troff/node.c (init_font_requests): Rename to...
5891         (init_node_requests):
5892         * troff/node.h: Change declaration.
5893         * troff/input.c (main): Change call.
5895         * troff/input.c (node::reread, diverted_space_node::reread): New
5896         methods.
5897         (process_input_stack): Call reread rather than
5898         get_diverted_space_node.
5899         * troff/node.c (node::get_diverted_space_node,
5900         diverted_space_node::get_diverted_space_node): Removed.
5901         * troff/node.h: Declare reread methods instead of
5902         get_diverted_space_node methods. Make `n' member private.
5903         * troff/input.c: (token::diverted_space): Removed.
5904         * troff/token.h: Removed declaration.
5905         
5907 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5909         * eqn/script.c (script_box::compute_metrics): Don't let
5910         SUP_RAISE_FORMAT become negative.
5912         * tbl/table.c (table::do_row): Entries that don't end in the
5913         this row shouldn't make the row non-blank.
5914         
5915         * tbl/table.c (table::make_columns_equal): Only set the width of
5916         columns which are marked as equal.
5917         
5918         * tbl/main.c (process_data): Before issuing excess data error,
5919         if last character was a newline unget it; then get it again after
5920         the error.  Also include the contents of the entry in the message.
5922         * groff.c: New file.
5923         * Makefile: Build groff from groff.c.  Make it possible to use
5924         either groff.sh or groff.c as groff.
5925         * Makefile.bd: Similarily.
5927 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5929         * groff.sh: Don't delay expansion of $@ in assignment to files.
5930         Remove occurrences of \".
5932 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5934         * all Makefiles: Simplify and rearrange.
5936         * Makefile: Handle fmod like malloc.
5937         * lib/Makefile: Similarily.
5938         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5940         * Makefile: Rename OPTIMISE to OPTIMIZE.
5942         * groff.sh: Remove assignment to PATH.
5943         * Makefile: Remove SHPATH variable.
5944         * Makefile.bd: Similarily.
5946         * groff.sh: Add -V option to print the pipeline instead of
5947         executing it.
5949 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5951         * lib/font.c: Split off file searching into ...
5952         * lib/fontfile.c: New file.
5954         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5956 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5958         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5959         Also change misleading comment.
5960         (table::do_vspan): Change similarily misleading comment.
5961         * tbl/main.c (process_data): A format row with an explicit `s'
5962         uses up a data line, even if all the other columns are `_' or `='.
5964         * troff/input.c (token::description): Fix description of
5965         TOKEN_DUMMY and TOKEN_EMPTY.
5967 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
5969         * groff.sh: Fix description of -Z in help message.
5971 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
5973         * pic/object.c (object_spec::make_object): Allow negative and zero
5974         line thicknesses.
5975         * pic/pic.y: Give linethick default value of -1.0.
5976         * pic/troff.c (troff_output::troff_output): Initialize
5977         last_line_thickness to BAD_THICKNESS.
5978         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5979         (troff_output::line_thickness): Canonicalize negative thicknesses
5980         to RELATIVE_THICKNESS.
5981         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5982         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5983         to -1.0.
5984         (tex_output::start_picture): Set pen_size to -2.0.
5986         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5987         0, then use 0 linewidth.
5988         (ps_printer::ps_printer): Initialize line_thickness to -1.
5990         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5992         * ps/devps/symbolchars: Remove `or'.
5993         * ps/tmac.ps: Implement \(or with .char.
5995         * ps/devps/symbolchars: Move most characters into textmap.
5996         * ps/devps/textmap: Add names for troff bracket characters. Remove
5997         ul, ru, br, bv.
5999         * ps/devps/TSymbol.ps: Removed.
6000         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6001         * ps/tmac.ps: Do with .char what TSymbol did.
6002         * ps/devps/download: Remove TSymbol.
6004         * ps/devps/T: Removed.
6005         * ps/devps/Troff.ps: Removed.
6006         * ps/devps/Troff.afm: Removed.
6007         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6008         * ps/devps/download: Remove Troff.
6009         * ps/devps/FontMakefile: Remove T target.
6010         * ps/devps/DESC-A4: Remove T from font list.
6011         * ps/devps/DESC-letter: Likewise.
6013         * troff/input.c (macro_to_node): Rename to ...
6014         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6015         character's definition while processing it.
6016         * troff/node.c (node::add_char, make_node): Change calls to
6017         macro_to_node accordingly.
6019         * troff/input.c (token::next): Translate \_ to \(ul.
6021         * tty/devascii/R.proto: Add `|'.
6022         * tty/devlatin1/R.proto: Likewise.
6024 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6026         * man: Put the version number in all the man pages.
6028 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6030         * Makefile.bd: New file.
6031         * README.bd: New file.
6033         * VERSION: New file.
6034         * lib/version.c: Removed.
6035         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6036         in clean target.
6038         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6039         environment variable.
6041         * all Makefiles: Split install target into install.bin for
6042         binaries, and install.nobin for everything else.
6043         * Makefile: Add bindist target.
6045         * man/afmtodit.man: New file.
6046         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6047         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6048         in BINDIR.
6049         * ps/Makefile: Pass BINDIR to make install in devps.
6051         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6052         the space character.
6054         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6056 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6058         * ps/ps.c: Redo font downloading.
6059         * ps/devps/download: New file.
6060         * ps/devps/Makefile: Add download to DEVICEFILES.
6061         * ps/devps/afmtodit: Remove -d option.
6062         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6063         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6064         * ps/devps/zapfdr.ps: Likewise.
6065         * ps/devps/TSymbol.ps: Likewise.
6067 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6069         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6071 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6073         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6074         then strip the first line if it starts with %.
6075         * Makefile: Add a comment about this.
6077         * man/tfmtodit.man: New file.
6078         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6079         * dvi/Makefile: Install tfmtodit in BINDIR.
6081         * dvi/tfmtodit.c (usage): Mention -v option.
6083 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6085         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6086         * troff/node.c (troff_output_file::transparent_char): Don't call
6087         flush_tbuf.
6089         * eqn: Add check_tabs method to most box classes.
6090         * eqn/box.c (box::top_level): Call check_tabs.
6092         * eqn/script.c (script_box::output): Use \Z.
6093         * eqn/limit.c (limit_box::output): Use \Z.
6095         * eqn/box.c (box::top_level): Use itoa.
6097 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6099         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6100         * dvi/devdvi/Makefile: Don't make links to CW.
6102         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6103         HX, HD.
6104         * xditview/tmac.X: Likewise.
6106         * troff/node.c: Add font translation feature.
6107         (get_font_translation): New function.
6108         (symbol_fontno): Translate the font name.
6109         (mount_font_no_translate): Rename to mount_font to this.
6110         (mount_font): New function.
6111         (font_family::make_definite): Call mount_font_no_translate instead
6112         of mount_font.
6113         (mount_style): Translate the font name.
6114         (font_translate): New function.
6115         (init_font_requests): Bind "ftr" to font_translate.
6117         * ps/devps/prologue (SN): New procedure that rounds a position to
6118         the nearest (pixel + (.25,.25)).
6119         (DL): Use SN to round endpoints.
6121         * lib/version.c: Changed version to 0.5.
6123 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6125         * Makefile: Move definition of PAGE to the very beginning, so that
6126         people are less likely to miss it.
6128 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6130         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6132         * troff/env.c (environment::choose_breakpoint): Make `can't find
6133         breakpoint' error a warning of type WARN_BREAK.  Change message to
6134         `can't break line'.
6135         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6136         code 040000.
6137         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6138         WARN_BREAK in DEFAULT_WARNING_MASK.
6140         * tty/tmac.tty: Add definition of \(+-.
6142         * groff.sh: Remove `--' option to set command.
6144         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6146         * ps/devps/eqnchar: Better definition of cdot using md.
6147         * dvi/devdvi/eqnchar:  Likewise.
6148         * xditview/devX100/eqnchar:  Likewise.
6149         * xditview/devX75/eqnchar: Likewise.
6150         * eqn/lex.c: Add definition of cdot.
6152 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6154         * troff/input.c (get_optional_char): New function.
6155         * troff/input.c (set_page_character): Use get_optional_char(),
6156         rather than has_arg() and tok.get_char(1).
6157         * troff/env.c (tab_character, leader_character, hyphen_char,
6158         field_characters): Likewise.
6159         (margin_character): Likewise.  Also always delete the
6160         margin_character_node.
6162         * troff/input.c (token::get_char): Use token::description.
6164         * troff/input.c (has_arg): Don't skip over tab and \}.
6165         * troff/number.c (start_number): Give a warning if the number
6166         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6168 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6170         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6171         functions.
6172         (get_name, get_long_name): Use these.  Rename `warn' argument to
6173         `required'.
6175         * troff/node.c (get_fontno): Test that the symbol is not null.
6177         * troff/input.c (token::description): New function.
6178         * troff/number.c (parse_term): Use token::description in `numeric
6179         expression expected' message.
6180         * troff/groff.h: Add WARN_MISSING.
6181         * troff/number.c (start_number): New function.
6182         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6183         get_incr_number): Use start_number().
6184         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6185         default.
6186         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6187         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6188         token::descripion.
6189         * troff/input.c (token::get_char): Use WARN_MISSING.
6190         * troff/input.c (token::delimiter): Use token::description.
6191         * troff/env.c (environment_switch): Back out Aug 3 change.
6192         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6193         warning.
6194         * troff/token.h (token::tab): New function.
6195         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6196         * troff/reg.c (alter_format): Likewise.
6197         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6199 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6201         * troff (most files): Redo warnings. Divide warnings into various
6202         categories; warning() has an additional first argument indicating
6203         the category it falls into.
6204         * troff/input.c (main): -w now takes an argument. New option -W.
6205         (enable_warning, disable_warning): New functions.
6207         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6208         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6210 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6212         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6213         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6214         * xditview/devX75/eqnchar: Likewise.
6215         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6217         * eqn/other.c: When bar or over applies to a single character
6218         don't produce an overline_box or an underline_box. Instead produce
6219         an accent_box or an underaccent_box, with the accent a line
6220         whose width is accent_width.  New classes underaccent_box,
6221         overline_char_box and underline_char_box.
6222         * eqn/box.h: Move overline_box, underline_box, accent_box class
6223         declarations into eqn/other.c. Add declarations of
6224         make_underline_box, make_overline_box, make_accent_box.
6225         * eqn/eqn.y: Call make_overline_box, make_underline_box
6226         make_accent_box instead of constructors.
6227         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6229         * eqn/other.c: Add accent_box::~accent_box.
6230         * eqn/box.h: Declare it.
6232         * groff.sh: With -Tps, use eqn -D.
6234         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6235         rather than \l.
6236         (underline_box::output): Similarily.
6237         (accent_box::output): Use \Z.
6239         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6240         bit smaller.)
6242 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6244         * troff/div.c (top_level_diversion::transparent_output(unsigned
6245         char)): Use asciify.
6246         * troff/input.c (asciify): Don't make it static.
6247         * troff/token.h (asciify): Declare it.
6248         
6249         * troff/input.c (get_name, get_long_name, token::get_char,
6250         token::delimiter): Add an extra default argument which says
6251         whether a warning should be printed.
6252         * troff: Pass a non-zero argument to one of these rather than
6253         printing a warning directly.
6255 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6257         * troff: Consistently use symbol::is_null.
6259         * troff/dictionary.h: Move some inline functions into
6260         dictionary.c.
6262         * troff/request.h: Move inline functions into input.c.
6263         (request_or_macro::invoke): Make it pure.
6265         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6266         * troff/input.c (init_input_requests): Use class constant_int_reg.
6267         (class compatible_reg): Deleted.
6268         * troff/div.c (init_div_requests): Use class constant_int_reg.
6269         (class last_post_line_extra_space_reg): Deleted.
6271         * troff/env.c (tab_character): Don't change the tab character if
6272         we get an invalid argument.
6273         (hyphen_char): Similarily.
6275         * troff/reg.c (alter_format): Check that nm is not null.
6277         * Makefile, groff.sh: Make it possible to customize the commands
6278         used for printing PostScript and dvi files. Also make it possible
6279         to customize the path used by groff.sh.
6281         * eqn/eqn.y: Make `left' right associative.
6283 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6285         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6286         don't have it.
6288         * pic/pic.h: Removed definition of INT_MAX.
6290         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6291         `return'.
6293         * troff/input.c (token::next):  Handle \R like \n.
6295 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6297         * ps/tmac.pc (PSPIC): Simplify.
6299         * troff/env.c (tab_stops::to_string):
6300         * pic/pic.y (object_type_name):
6301         * pic/troff.c (simple_output::line):
6302         * pic/tex.c (tex_output::spline):
6303         * pic/object.c (object_spec::make_object):
6304         * tbl/main.c (process_data):  Add cases to switch statements to
6305         avoid cfront warnings. (Some of these are spurious, since the
6306         switch already has a default case.)
6308         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6309         `ps-'.  Don't test systat; instead check number of arguments to
6310         ps-bb.
6312 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6314         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6316         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6317         Unlink the file as soon as we have opened it, so that we don't
6318         have to bother with signal handlers.
6319         (handler): Deleted.
6320         (fatal_error_exit): Deleted.
6321         (main): Don't call signal.
6323         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6324         can be ignored.
6325         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6327         * pic/pic.y:  If there is a label, or an nth construction before
6328         the first `.' in the argument to `with', ignore it and generate a
6329         warning.
6330         * pic/lex.c (lex_warning): New function.
6332         * tbl/table.c (table::init_output): In section keep and release
6333         macro, use 0 indent when diverting and the correct indent when
6334         rereading.
6336         * troff/input.c (interpolate_number_format): Do not interpolate
6337         anything if the number register is not defined.
6339         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6341 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6343         * ps/devps/prologue (PICTURE): Set components of graphics state to
6344         their default values.
6346         * ps/devps/text.enc: Add trademark
6347         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6348         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6349         * ps/devps/symbolchars: Add names for summation and product.
6351         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6352         suchthat. Add pp. Add upper-case letters.
6354         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6355         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6356         Upsilon.
6358         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6359         rA (right angle bracket) to ra.  Introduce names for double-headed
6360         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6361         * ps/devps/textmap: Likewise for ps device.
6362         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6363         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6364         * tty/devascii/R.proto: Likewise.
6365         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6366         \(uA, \(dA.
6367         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6369         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6371         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6372         def_table.
6374 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6376         * troff/div.c (when_request): Use symbol::is_null rather than
6377         has_arg to determine whether we have an argument.
6378         (change_trap): Remove the trap if we get an invalid number. Give
6379         an error if we don't get at least the macro name.
6380         (diversion_trap): Remove trap if we get an invalid name or number.
6382         * troff/env.c (environment_switch): Pop if we get an invalid
6383         symbol or numeric expression.
6385         * troff/input.c (do_define_macro):  If EOF is encoutered while
6386         defining the macro, do tok.next() before returning.
6388         * troff/token.h (has_arg): Move definition from here, to ...
6389         * troff/input.c (has_arg): ... here
6391         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6392         * troff/input.c (shift): Likewise.
6394         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6395         for `.c'.
6397         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6398         `..'.
6400         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6401         interpret_lf_args succeeds.
6403         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6404         \\.  This avoids problems with \$N.
6406         * groff.sh: Pass -C to preprocessors.
6408         * lib/lf.c (interpret_lf_args):  Be more flexible.
6410         * tbl/main.c (main): Add -C option.
6411         (table_input::get): Do not recognize TE if followed by character
6412         other than a space or newline unless -C option given.
6413         (process_input_file): Likewise for lf, TS.
6414         (process_data): Likewise for lf in text blocks.
6416         * eqn/main.c (main): Add -C option.
6417         (do_file): Don't recognize EQ, EN or lf if followed by character
6418         other than space or newline unless -C option given.
6419         * eqn/lex.c (file_input::read_line): Similarily.
6420         * eqn/eqn.h: Declare compatible_flag.
6422         * etc/soelim.c (main): Add -C option.
6423         (interpret_lf_args): Use version in libgroff.
6424         (do_file):
6426         * pic/main.c (main): Add -C option, which sets compatible_flag.
6427         (top_input::get), (top_input::peek):  If -C option not given,
6428         do not recognize .PS/.PE/.PF/.lf if followed by a character
6429         other than space or newline.
6430         * pic/lex.c (file_input::read_line): Similarily.
6431         * pic/pic.h: Add declaration of compatible_flag.
6433 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6435         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6437         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6438         derived from node.  New class space_char_hmotion_node.
6439         * troff/input.c (asciify_macro): New function.
6440         * troff/input.c (init_input_requests): New request `asciify' bound
6441         to asciify_macro.
6442         * macros/mm.diff: New file.
6443         * Makefile:  In install.mm target use `patch' to apply
6444         macros/mm.diff.
6446         * troff/input.c (macro::print_size): Just print the size in bytes.
6448         * troff/div.c (return_request): Correct the argument
6449         interpretation.
6451 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6453         * troff/node.h (class composite_node): Add sz member.
6454         * troff/node.c (composite_node::size): Return sz.
6455         * troff/input.c (macro_to_node):  Use the initial size in the
6456         environment as the size of the composite_node.
6458         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6459         default.
6461 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6463         * troff/div.c (change_trap): If we get a bad number expression,
6464         do nothing.
6466 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6468         * lib/matherr.c (matherr): Define this only if math.h defines
6469         TLOSS.
6471 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6473         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6474         no diversion trap return vunits(INT_MAX - vresolution).
6476 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6478         * troff/input.c (do_zero_width): New implementation that doesn't
6479         use a temporary environment. Use instead:
6480         (token::add_to_node_list): New function.
6481         * troff/env.c (environment::get_prev_char_height),
6482         (environment::get_prev_char_height),
6483         (environment::get_prev_char_skew): New functions.
6484         (environment::get_prev_char): New function.
6485         (environment::get_prev_char_width): Change to use get_prev_char.
6486         (init_env_request): Implement new registers .cht, .cdp, .csk.
6487         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6488         \Z being processed in a separate environment.
6490 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6492         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6494         * tbl/table.c (table::init_output): In the section release macro,
6495         give a warning message if the section won't fit on one page.
6497         * tbl/table.c (table::do_top): Emit table keep only if table is
6498         boxed.
6499         (table::do_bottom): Likewise for table release.
6500         (table::table), (table::add_vertical_rule):  Remove reference to
6501         keep member.
6502         * tbl/table.h: Remove keep member.
6504         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6505         SECTION_RELEASE_MACRO, if there's not enough space before the next
6506         trap to output the diversion, call T# ourselves, set
6507         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6508         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6509         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6510         vertical position and return to it before turning traps on again.
6511         
6512 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6514         * troff/node.c, troff/node.h: In classes derived from node,
6515         replace prev_char_width method by last_char_node method.
6516         * troff/env.c (environment::get_prev_char_width): Use
6517         node::last_char_node rather than node::get_prev_char_width.
6519         * Makefile: Added comment about -fno-inline on 68030-based
6520         Apollos.
6522         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6523         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6524         expressions using sizeof to int.
6525         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6527         * macros/tmac.e (TS):  Don't move @f back past the current
6528         position.
6530 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6532         * ps/ps.c (main): Buffer stderr.
6533         * dvi/dvi.c (main): Likewise.
6534         * tty/tty.c (main): Likewise.
6536         * ps/ps.c (ps_printer::do_import): Improve error handling.
6538         * troff/input.c (abort_request): Use asciify.
6540         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6541         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6542         type of first argument int rather than char.  This works around a
6543         bug on the 68030 based Apollo using g++ 1.37.1.
6545         * tbl/table.h (class table): Add `keep' member.
6546         * tbl/table.c (table::table): Initialize `keep'.
6547         (table::add_vertical_rule): Set `keep' to 1.
6548         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6549         (table::do_bottom): Likewise for table release macro.
6550         (table::do_row): Emit section keep macro even if the row is 0.
6552 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6554         * macros/tmac.e (@C): Preserve the font family across the change
6555         in environments.
6557 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6559         * lib/font.c: Initialize font::hor and font::vert to 1.
6560         (font::load_desc): Check the values of font::hor and font::vert.
6562         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6563         be included in a C compilation.
6564         (iftoa): Use INT_DIGITS. Include lib.h.
6565         (itoa): Likewise.
6566         (as_string): Likewise.
6567         * tbl/table.c: Removed definition of INT_DIGITS.
6568         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6569         * troff/input.c (input_input_requests): Likewise.
6570         * ps/ps.c (make_encoding_name): Likewise.
6571         (ps_printer::set_style): Likewise.
6572         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6574         * tty/devascii/R.proto: Map fm onto '.
6575         * tty/devlatin1/R.proto: Likewise.
6577 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6579         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6580         argument to \w is at a different input level.
6582         * tbl/table.c (table::init_output): Define a new macro
6583         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6584         transparently outputs itself.
6585         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6586         vpt.
6587         (table::do_row): Likewise.
6589         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6590         TRANSPARENT_STRING_NAME.
6592         * tbl/table.c (table::init_output): In the table release macro
6593         print an error message and don't produce any output if after
6594         issuing the need request the table still will not fit.  Also
6595         remove the diversion after bringing it back.
6597         * tbl/table.c (table::init_output): Define a new macro
6598         REPEATED_MARK_MACRO, like mk but if in a diversion also
6599         transparently outputs itself.
6600         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6601         is necessary because .TH might not call .T#.
6602         (table::do_top): Likewise TOP_REG.
6603         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6604         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6605         table header might contain just the two top rules.
6607 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6609         * troff/div.c: Implement new request `ptr' to print all traps.
6611         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6612         init_string_env_reg.
6613         * troff/env.c (class tab_reg): Deleted.
6615 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6617         * troff/div.c: New number register .pn returns the number of the
6618         next page as set by the pn request.
6620         * macros/tmac.an: Redid headers and footers.  Number each manual
6621         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6622         optional 5th argument to .TH which specifies the manual name and
6623         appears in the center of the header.  Understand the X, P and D
6624         registers like Sun.
6626 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6628         * troff/env.c (init_env_requests): New number register `.lt' to
6629         return the title length.
6631         * troff/node.h (class transparent_dummy_node): New class.
6632         * troff/node.c (class transparent_dummy_node): Provide member
6633         functions. 
6634         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6635         than a dummy_node.
6637         * troff/input.c (token::next): New escape sequence \).
6638         * troff/input.c (get_copy): Recognize \) in copy mode.
6640         * troff/input.c (input_stack::clear): New function.
6641         * troff/input.c (exit_request): Use input_stack::clear.
6643         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6644         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6646         * troff/env.c: Move set_page_character to input.c.  Move
6647         page_character to input.c also.
6648         * troff/env.c (title): Split off the reading of the parts of the
6649         title into read_title_parts.
6650         * troff/input.c (read_title_parts): New function.  Check the
6651         input_level when testing whether a token matches the delimiter.
6653         * troff/input.c (exit_request): New function.
6654         * troff/input.c (init_input_requests): Bind ex request to
6655         exit_request rather than exit_groff.
6657         * troff/input.c (exit_groff): Call tok.next() before
6658         process_input_stack().
6660 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6662         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6663         * troff/env.h: ditto.
6664         * troff/input.c: ditto.
6666         * troff/env.c (environment::is_empty): Test pending_lines.
6668         * troff/env.c (environment::have_pending_lines): Removed.
6670         * troff/input.c: Add request to flush pending lines from the
6671         environment.
6673         * troff/env.c, troff/env.h: Add automatic widow control feature.
6675         * troff/input.c (exit_groff):  Do process_input_stack() after
6676         do_break() but before setting exit_flag to 2.
6678         * troff/input.c: Remove FLUSH_PENDING_LINES and
6679         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6680         environment after END_TRAP token seen, but only if there aren't
6681         any more traps still unfinished.
6682         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6684 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6686         * troff/env.c: Rename the `retain_size' member of class
6687         pending_output_line to `no_fill'.
6689         * troff/env.c (title): When the line is output, make the
6690         retain_size argument !fill.
6692         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6693         * troff/node.c (space_node::get_breakpoints),
6694         (dbreak_node::get_breakpoints):  Fill this in.
6695         * troff/env.c:  Allow specification of maximum number of
6696         consecutive hyphenated lines.
6698         * troff/env.c (environment::is_empty): Add test for !current_tab.
6700 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6702         * troff/env.c (environment::hyphenate_line): Don't completely give
6703         up if the word is not to be hyphenated; continue so that breaks
6704         can be made at break_char_node's.
6706         * lib/lib.h: Only define INT_MAX if it's not already defined;
6707         undef INT_MIN if it's already defined.
6709         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6711         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6712         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6713         compiler.
6714         
6715         * macros/tmac.an (an-header): Set no-space mode.
6717         * macros/tmac.an (TH): Start a new page if necessary.
6719         * Started using ChangeLog at version 0.4.
6721 Local Variables:
6722 version-control: never
6723 End: