* Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
[s-roff.git] / ChangeLog
blobc6f77b913854b0231b3dd2203899be0439eb8ad9
1 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
3         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5 2000-03-11  Werner LEMBERG  <wl@gnu.org>
7         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8         compilers silent.
9         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10         * src/include/lib.h: Remove some spaces.
12 2000-03-10  Werner LEMBERG  <wl@gnu.org>
14         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
15         initializers from arguments (some compilers don't like this).
17 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
19         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
20         used by pic and eqn to tell grohtml where the graphic regions start
21         and end.
22         * src/libs/libgroff/Makefile.sub: Use it.
23         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
24         graphic_start() and graphic_end() from htmlindicate.cc.
26 2000-03-09  Werner LEMBERG  <wl@gnu.org>
28         * tmac/tmac.safer: Will now work correctly in compatibility mode.
29         * tmac/groff_man.man: More fixes.
31 2000-03-08  Werner LEMBERG  <wl@gnu.org>
33         * doc/Makefile: Added texput.log to the `clean' target.
34         * doc/groff.texinfo: Added info about delimiters for escapes.
36 2000-03-08  Bernd Warken  <bwarken@mayn.de>
38         * src/preproc/pic/pic.man: Add info on conversion of pic images to
39         other graphic formats.
41 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
43         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
44         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
45         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
46         files.
48 2000-03-07  Werner LEMBERG  <wl@gnu.org>
50         * doc/groff.texinfo: Spelling fixes.
52 2000-03-06  Werner LEMBERG  <wl@gnu.org>
54         * tmac/groff_man.man: Completely revised to cover everything in
55         tmac.an.
57         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
58         Other minor fixings.
59         * src/roff/troff/env.cc (environment_copy): Improve error message and
60         fix itoa->i_to_a.
61         * src/roff/troff/TODO: Updated.
63         * doc/Makefile: Bug fixes -- this is still provisional, though...
65         * tmac/eqnrc: Small fixes.
67 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
69         Adding a request `evc' to copy environments.
71         * src/roff/troff/env.cc (environment::copy, environment_copy):
72         Implement it.
73         * src/roff/troff/env.h: Add prototype.
75 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
77         Adding strsep() -- Solaris 8 doesn't have it.
79         * configure.in: Test it.
80         * src/devices/grolbp/lbp.cc: Add code.
82 2000-03-05  Werner LEMBERG  <wl@gnu.org>
84         * src/roff/troff/div.cc (macro_diversion::output,
85         top_level_diversion::output): Fixing an incompatibility with
86         original troff: \x'0' updates the .a register also.  Thanks to
87         <Andries.Brouwer@cwi.nl> for pointing this out.
88         * doc/groff.texinfo: Document it.
90         * Makefile.in: Create Makefile.dep if necessary before calling the
91         submake process to avoid warning about nonexistent file.
93         * NEWS, PROJECTS: Updated.
95 2000-03-04  Werner LEMBERG  <wl@gnu.org>
97         * tmac/troffrc: Add tmac.lbp.
99 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
101         * tmac/tmac.lbp: New file.
102         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
103         command.
105 2000-03-03  Werner LEMBERG  <wl@gnu.org>
107         * Makefile.in: Fixing $(subdir).
109         * README, NEWS: Small fixes.
111         * test-groff: Adding path to grolbp.
113         * configure.in: The (new) file src/xditview/Imakefile.in will be
114         also configured -- it is now possible to build gxditview in a
115         directory different from $srcdir.
117 2000-03-02  Blake McBride  <blake@florida-software.com>
119         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
121         * MORE.STUFF: Added website of bell labs and info about plot2dev.
123 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
125         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
126         files.
128 2000-02-29  Werner LEMBERG  <wl@gnu.org>
130         Adding GNU getopt to the groff distribution.
132         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
133         New files.
134         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
135         * aclocal.a4: Remove GROFF_GETOPT function.
136         * configure.in, Makefile.in, PROBLEMS: Update.
137         * src/include/lib.h: Replace getopt tests with getopt.h.
138         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
140         * doc/groff.texinfo: Further checking/updating.  Adding more index
141         entries.
143         * man/groff_out.man: Fix nroff mode activation (for emacs).
144         * man/groff_font.man: Add missing ligature.
146 2000-02-28  Werner LEMBERG  <wl@gnu.org>
148         * doc/groff.texinfo: Further checking/updating.  Adding more index
149         entries.
151         * src/devices/grolbp/grolbp.man: Added a comment line at the
152         beginning of the file (similar to shell scripts) which indicates
153         that `tbl' should be used as a preprocessor.
155 2000-02-27  Blake McBride  <blake@florida-software.com>
157         Adapting groff to MS Visual C++ 6.0 compiler (tested with
158         Windows NT 4.0).  Uses _MSC_VER define where necessary.
160         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
161         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
162         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
163         src/include/lib.h, src/libs/libgroff/errarg.cc,
164         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
165         src/preproc/refer/label.y, src/preproc/refer/label.cc,
166         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
167         src/roff/troff/div.cc, src/roff/troff/env.cc,
168         src/roff/troff/input.cc, src/roff/troff/node.cc,
169         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
170         if_to_a() to avoid name clashes.
171         * src/include/posix.h: Don't use unistd.h.
172         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
173         clause for integrating non-Unix xtmpfile() code.
174         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
175         structure; use "rt" for popen() in pipe_source(); add getpid()
176         dummy function.
177         * src/roff/troff/node.cc: Use special versions of popen() in
178         real_output_file() and pclose() in ~real_output_file().
180 2000-02-27  Werner LEMBERG  <wl@gnu.org>
182         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
183         LBP-8 series laser printers).  This code has been contributed by
184         Francisco Andres Verdu <pandres@dragonet.es>.
186         * src/devices/grolbp/*: The grolbp output device.
187         * font/devlpb/*: The font description files.
188         * Makefile.in: Add grolpb and devlbp subdirectories.
190         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
191         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
192         typographic fixes.
194         * doc/groff.texinfo: Further checking/updating.  Adding more index
195         entries.
197         * NEWS: Updated.
199         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
201         * man/groff_font.man: Adding info about obsolete DESC keywords.
202         * src/devices/grolj4/grolj4.man: Documenting additional DESC
203         keywords.
205 2000-02-26  Werner LEMBERG  <wl@gnu.org>
207         * src/preproc/grn/grn.man: Added info about the gremlin file format
208         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
210 2000-02-25  Werner LEMBERG  <wl@gnu.org>
212         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
213         friends to be non-integer.
215         * src/preproc/grn/grn.man: Document it.
217         * doc/groff.texinfo: Further checking/updating.  Adding more index
218         entries.
220 2000-02-24  Werner LEMBERG  <wl@gnu.org>
222         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
223         line thicknesses to be integer multiples of this value.
225         * src/preproc/grn/grn.man: Commenting out the -s option -- the
226         corresponding code doesn't work (yet).
228         * doc/groff.texinfo: Further checking/updating.  Adding more index
229         entries.
231 2000-02-23  Werner LEMBERG  <wl@gnu.org>
233         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
234         specify line thickness instead of base units.  The new default
235         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
236         thick lines respectively.
238         Removed unused variable `prevval'.
240         * src/preproc/grn/grn.man: Updated.
242 2000-02-22  Werner LEMBERG  <wl@gnu.org>
244         * src/preproc/grn/main.cc: Slight formatting.
246         * src/roff/groff/groff.man: Formatting fix.
247         * src/preproc/grn/grn.man: Ditto.
249         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
251         * doc/groff.texinfo: Further checking/updating.
253 2000-02-21  Werner LEMBERG  <wl@gnu.org>
255         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
257         * test-groff: Added grn subdir to path.
259         * doc/groff.texinfo: Some restructing and other small improvements.
261         * src/roff/groff/groff.cc (help): Fixed info string.
263 2000-02-20  Werner LEMBERG  <wl@gnu.org>
265         * doc/meref.me: Fix description of .GS request.
267         * src/roff/troff/troff.man: Fixing typo.
269         Adding the `grn' preprocessor for gremlin graphic files.
271         * src/preproc/grn/*: This is the Berkeley distribution written by
272         David Slattengren and Barry Roitblat, adapted to groff by Daniel
273         Senderowicz and Werner Lemberg.
275         * doc/grnexampl.{me,g}: A sample for grn.
277         * Makefile.in: Added subdirectory entry for grn.
279         * src/roff/groff/groff.cc: Added support for grn.  It can be now
280         called with the switch `-g'.
282         * src/roff/groff/groff.man: Updated.
284         * src/roff/grog/grog.{man,pl,sh}: Updated.
286         * NEWS: Updated.
288 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
290         * src/include/lib.h: Added xtmptemplate and made xtmpfile
291         parametrically polymorphic.
293         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
294         and the alterations to xtmpfile.
295         xtmpfile can be requested to return the filename created
296         and asked not to unlink the temp file.  The default behaviour
297         if parameters are absent is exactly the same as before.
299 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
301         A new request `length' is available which returns the length of a
302         string in a number register:
304         * src/roff/troff/input.cc (length_macro): Implement it.
305         * src/roff/troff/input.cc (init_input_requests): Register it.
307 2000-02-11  Werner LEMBERG  <wl@gnu.org>
309         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
310         of the `substring' request.
312         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
313         request.
315         * src/roff/troff/TODO, NEWS: Updated.
317 2000-02-09  Werner LEMBERG  <wl@gnu.org>
319         * src/roff/groff/groff.man: Added an example.
321 2000-02-06  Werner LEMBERG  <wl@gnu.org>
323         I've considerably modified the directory structure of the
324         distribution to get a more vertical layout.  For example, the number
325         of top level directories has been reduced from 42 to 6.
327         As a consequence, many changes, especially to the makefiles, were
328         necessary:
330         * The makefile variables `top_builddir' and `top_srcdir' have been
331         introduced.  Virtually all relative paths have been replaced with
332         absolute ones using these two variables.
334         * Dependencies (in the files `Makefile.dep') are no longer part of
335         the distribution.  Instead, they are created during a `make install'
336         in the build directory.
338         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
339         make `top_srcdir' and `top_builddir' absolute.
341         Some other changes:
343         * Man pages no depend on the files `VERSION' and `REVISION'.
345         * The added shell script `mkinstalldirs' will replace `mkdir' in
346         almost all cases.
348         * VERSION: Version number increased to 1.16.
350 2000-02-04  Werner LEMBERG  <wl@gnu.org>
352         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
354         * Makefile.in: Removed $(tmac_m) since it is no longer needed
355         (after an update of the mm stuff).
357         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
359 2000-02-03  Werner LEMBERG  <wl@gnu.org>
361         The .psbb request will now also accept Mac PS images (i.e. using LF
362         as the EOL character).
364         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
365         (with slight modifications).
366         * troff/input.cc (do_ps_file): Use it.
368         * test-groff: Add grohtml and grolj4 output devices to PATH.
370 2000-01-30  Werner LEMBERG  <wl@gnu.org>
372         * NEWS, MORE.STUFF: Updated.
374 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
376         Add the `srand' command to pic.
378         * pic/lex.cc, pic/pic.y: Implement it.
379         * pic/pic.man: Document it.
380         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
382 2000-01-30  Werner LEMBERG  <wl@gnu.org>
384         Add a new request `.psbb'.  This does exactly what the external
385         program psbb did.  It scans a PostScript image file for a
386         %%BoundingBox comment and extracts the bounding box values (in
387         PostScript units) which are then stored in the four new (read-only)
388         number registers `llx', `lly', `urx', and `ury'.
390         This will allow the usage of the .PSPIC macro without worrying
391         about unsafe behaviour of groff, i.e., it will work without the
392         `-U' switch of groff.
394         * troff/input.cc: Implement it.
395         * tmac/tmac.pspic: Use it.
396         * troff/troff.man, grops/grops.man, NEWS: Document it.
397         * psbb/*, Makefile.in: Remove it since it is no longer needed.
399         This is bloody C code simply adapted from psbb.c!  Any improvements
400         welcome.
402 2000-01-29  Werner LEMBERG  <wl@gnu.org>
404         * man/groff_font.man: Minor clarifications.
406         * NEWS: Updated.
408 2000-01-28  Werner LEMBERG  <wl@gnu.org>
410         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
412 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
414         * man/groff_font.man: Brought up to date regarding tcommand
415         extensions.
416         * libgroff/font.cc: Handle everything after `--' as a comment
417         in the font files.
418         * devps/*: Added comment delimiter inside devps font files.
420 2000-01-28  Werner LEMBERG  <wl@gnu.org>
422         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
423         \fC...\fP (which now works as expected).
425         * troff/troff.man: Fix typo.
427 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
429         Completed the pass_filenames implementation in troff.
431         * libdriver/input.cc: Will read the new `F' tcommand.
432         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
433         * troff/input.cc: Use it.
435 2000-01-26  Werner LEMBERG  <wl@gnu.org>
437         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
438         font will now be updated even if an invalid font is selected.
440 2000-01-24  Werner LEMBERG  <wl@gnu.org>
442         * doc/homepage.ms: Updated for new tmac.arkup.
444         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
446         * tmac/tmac.arkup: Cleanup.
448         Added `\&' to .HTML macro to `leave vertical mode', so to say.
450         Removed obsolete .LINK macro completely.
452         The macros .URL, .FTP, and .MAILTO now accept a third argument which
453         will be immediately appended to the second argument (to be used with
454         punctuation, for example).
456         Disabled .CDFTP macro temporarily for security reasons.
458         * tmac/groff_markup.man: Complete revision for latest changes in
459         tmac.arkup -- note that it does not yet format correctly with
460         grohtml :-(
462 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
464         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
465         * devutf8/R.proto: Add mappings for wp, lh, rh.
466         * devutf8/NOTES: Updated.
468 2000-01-23  Werner LEMBERG  <wl@gnu.org>
470         * doc/groff.texinfo: Updated version/copyright info.
472 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
474         Added support for two new directives in device descriptions:
475         `pass_filenames' (to pass the input file name to the output device)
476         and `use_charnames_in_special' (to support e.g. accented characters
477         in the `X' request).
479         * include/font.h, troff/charinfo.h: Declare it.
481         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
483         * devhtml/DESC: Use it.
485         * troff/input.cc: New function encoded_char.
487         * troff/token.h: Add test for `specialness'.
489 2000-01-21  Werner LEMBERG  <wl@gnu.org>
491         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
492         mistake from the list of files to be installed.
494 2000-01-18  Werner LEMBERG  <wl@gnu.org>
496         * README: Added info how to apply patches.
498 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
500         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
502 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
504         * troff/input.cc: Add support for troffrc-end.
506         * tbl/main.cc: Altered to issue table-start and table-end special
507         characters if using the html device.
509         * devhtml/*: Modified font files to incorporate html encoding of
510         characters.
512         * tmac/groff_markup.man: New file documenting tmac.arkup.
514         * tmac/troffrc-end: New file.  This is invoked after all user
515         specified macros.  Currently used by the html device to include
516         tmac.html.  Thus no need for users to specify -mhtml anymore.
518         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
519         (MAN7): Add groff_markup.man.
521         * tmac/tmac.an, tmac/tmac.html: Small html updates.
523         * tmac/troffrc: tmac.arkup will now be called for the html device.
525         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
526         extra device specific information about fonts.
528         * doc/homepage.ms: New file.  It is an example how an HTML home page
529         could look like with grohtml.
531         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
533 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
535         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
536         of Im, Re.
538         * devutf8/NOTES: Updated.
540 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
542         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
543         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
544         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
545         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
546         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
547         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
548         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
549         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
550         warnings.
552         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
554 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
556         grolj4: Paper size will be searched case-insensitively.
558         * include/lib.h: Add check for strcasecmp().
559         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
560         * configure.in: Check for strcasecmp().
562 2000-01-11  Werner LEMBERG  <wl@gnu.org>
564         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
565         `REVISION'.
567 2000-01-10  Werner LEMBERG  <wl@gnu.org>
569         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
570         revision scheme.
572         Add a new read-only register, `.Y', which contains the groff
573         revision.
575         * troff/input.cc (init_input_requests): Define it.
576         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
577         * doc/groff.texinfo, troff/troff.man: Document it.
579         * libgroff/Makefile.sub (version.cc): Add definition of
580         `Version_string[]', consisting of `<major>.<minor>.<revision>'
581         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
582         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
583         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
584         troff/input.cc, pfbtops/pfbtops.c: Use it.
586 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
588         Add a revision scheme to the groff package.
590         * REVISION: New file.
591         * libgroff/Makefile.sub (version.cc): Use it to define
592         `revision_string[]'.
593         * grops/psrm.cc: Use revision_string (converted to an unsigned
594         integer) in constructor of resource_manager.
596 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
598         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
599         files.
600         * Makefile.in (DEVDIRS): Add devutf8.
601         * grotty/tty.cc: Include device.h.
602         (glyph): Change type of `code' to `unsigned int'.
603         (tty_printer): New field is_utf8.  Constructor takes device argument.
604         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
605         (tty_printer::add_char): Change type of first arg to `unsigned int'.
606         (tty_printer::put_char): New function.
607         (tty_printer::end_page): Use put_char() instead of ::putchar().
608         (make_printer): Pass device to tty_printer constructor.
609         * nroff.sh: Determine default device by calling 'locale'.  As a
610         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
611         Recognize UTF-8 locales.
612         * tmac/eqnrc: Recognize utf8 like latin1.
613         * tmac/troffrc: Device utf8 needs tmac.tty.
615 2000-01-07  Werner LEMBERG  <wl@gnu.org>
617         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
619 2000-01-07  Paul Eggert  <eggert@twinsun.com>
621         Add a new predefined writeable number register, `year',
622         which contains the current year.
624         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
625         * tmac/tmac.s: Use it.
626         * troff/input.cc (init_registers): Initialize it.
628 2000-01-06  Werner LEMBERG  <wl@gnu.org>
630         * PROBLEMS: Fixed typo.
632 2000-01-04  Paul Eggert  <eggert@twinsun.com>
634         * PROBLEMS: Add Y2k advice for the yr number register.
636 2000-01-03  Paul Eggert  <eggert@twinsun.com>
638         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
640 2000-01-02  Werner LEMBERG  <wl@gnu.org>
642         * tmac/tmac.arkup: Slight modification of macros to provide better
643         appearance for non-HTML formats.
645 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
647         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
648         does not automatically translate to malloc(n) on all OSes
649         (e.g., SunOS) so do it explicitly.  Also, check the returned
650         value.
652 2000-01-01  Werner LEMBERG  <wl@gnu.org>
654         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
656         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
657         expects this variable
659 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
661         * doc/Makefile: Added instructions to create HTML and text
662         versions of some files.
664 1999-12-31  Werner LEMBERG  <wl@gnu.org>
666         * Updated INSTALL.gen.
668         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
669         better resp. correctly with non-HTML devices.
671 Version 1.15 released
672 =====================
674 1999-12-28  Werner LEMBERG  <wl@gnu.org>
676         * NEWS, VERSION: Changed to 1.15
678 1999-12-27  Paul Eggert  <eggert@twinsun.com>
680         * nroff/nroff.man: -S is safer, not safe.
682         * groff/groff.cc (main): Use `safer', not `safe', in variable
683         names.  This does not change the behavior.
685         * troff/input.cc (main): Likewise.
687         * nroff/nroff.sh: Likewise.
689         * troff/input.cc (prepend_string): New function.
690         (main): Prepend -msafer, so that we check macro libraries for
691         safety.
693         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
695 Version 1.14 released
696 =====================
698 1999-12-26  Werner LEMBERG  <wl@gnu.org>
700         * NEWS, VERSION: Changed to 1.14.
702 1999-12-24  Werner LEMBERG  <wl@gnu.org>
704         * refer/refer.cc: Fixing the last fix.
706 Version 1.13 released
707 =====================
709 1999-12-23  Werner LEMBERG  <wl@gnu.org>
711         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
712         number disappear.
714         * NEWS: Updated.
716         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
718         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
719         document conventions, the version number must be a real.
721 Version 1.12.1 released
722 =======================
724 1999-12-22  Werner LEMBERG  <wl@gnu.org>
726         * VERSION: Changed to 1.12.1.
728 1999-12-22  Alan Rooks  <arooks@istar.ca>
730         * refer/refer.cc (do_file): Slight modification to satisfy the
731         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
732         UnixWare 7.1.
734 1999-12-20  Werner LEMBERG  <wl@gnu.org>
736         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
737         notices.
739         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
740         list of unsafe requests.
742         * pic/pic.man: Fixed a typo.
744         * man/groff_out.man: Fixed a typo.
746 1999-12-18  Werner LEMBERG  <wl@gnu.org>
748         * Makefile.in: Doc fixes.
750 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
752         * groff/groff.cc: Missing `U' option added to getopt().
754         * troff/troff.man: Missing `U' option added to synopsis.
756 Version 1.12 released
757 =====================
759 1999-12-14  Werner LEMBERG  <wl@gnu.org>
761         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
762         to the synopsis.
764         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
765         with the more appropriate terms `safer' and `unsafe'.
767         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
768         sys_nerr and sys_errlist[].
770         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
772         * pic/pic.y, pic/pic.cc: Added check for fmod().
774 1999-12-13  Werner LEMBERG  <wl@gnu.org>
776         * VERSION: Changed to 1.12.
778         Here some patches from various sources; most of them taken from
779         the Debian distribution.
781         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
782         tmac/Makefile.sub: New files copied directly from the NetBSD
783         distribution.  Probably, some additional adaptation later on is
784         necessary...
786         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
787         of unsafe requests.
789         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
790         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
791         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
792         (`-S') is now the default.
794         * README, NEWS: Updated.
796 1999-12-09  Werner LEMBERG  <wl@gnu.org>
798         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
800         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
802 1999-12-06  Werner LEMBERG  <wl@gnu.org>
804         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
805         grief than relief today.  Additionally, it is against the GNU
806         coding standards.
808         * configure: Recreated.
810 1999-12-05  Werner LEMBERG  <wl@gnu.org>
812         * configure.in: Added GROFF_LIBM.
814         * configure: Recreated.
816         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
817         necessary.
819         * Makefile.in: Added definition of $(LIBM).
821         * Makefile.comm (LIBM): Removed.
823         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
825 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
827         * doc/Makefile: Added rule for generation pic.html.
829         (clean): Files produced by grohtml will be removed also.
831         * doc/pic.ms: Small fix.
833         * tmac/tmac.html: Fixed suppression of headers.
835 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
837         * tmac/tmac.html: Fixing horizontal arrows.
839         Turning off hyphenation.
841         * tmac/tmac.an: Improved support for grohtml; better indentation,
842         no footers/headers.
844 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
846         * tmac/tmac.arkup: Added CDFTP macro
848         * tmac/tmac.html: All headers are turned off for ms, me, and mm
849         macros.
851         * tmac/troffrc: Some additions for HTML stuff.
853 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
855         * tmac/tmac.html: Small changes.
857 1999-09-26  Werner LEMBERG  <wl@gnu.org>
859         * doc/groff.texinfo: Minor fixes.
861 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
863         * devhtml/TR: Changed spacewidth to 3.
865         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
867         * tmac/tmac.html: Moved markup macros to tmap.arkup.
869         * tmac/tmac.arkup: New file.
871         * grohtml/ChangeLog: New file.
873 1999-09-16  Werner LEMBERG  <wl@gnu.org>
875         * doc/groff.texinfo (Common Features): Added Copying chapter.
876         Changed format to @smallbook.
878 1999-09-15  Werner LEMBERG  <wl@gnu.org>
880         * NEWS: Added info about groff.texinfo.
882         * doc/groff.texinfo: Will now compile (using texi2dvi) without
883         warning messages.
885 1999-09-14  Werner LEMBERG  <wl@gnu.org>
887         * groff/groff.man: More updates.
889 1999-09-13  Werner LEMBERG  <wl@gnu.org>
891         * doc/groff.texinfo: New file.  This manual is still very
892         rudimentary.  It has been originally contributed by Trent
893         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
894         additions by me.
896         * INSTALL: Added information about the `doc' subdir
898         * troff/troff.man: Minor fixes.
900         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
901         reordered options.
903         * troff/input.cc (usage): Added missing `-ffam' to usage message.
905         * Makefile.in (dist): groff-$(version).tar.gz must be removed
906         also, otherwise it is included itself in another call of `make
907         dist'.
909         * groff/groff.cc (synopsis): Removed superfluous space.
911         * PROJECTS, PROBLEMS, NEWS: Updated.
913         * xditview/Makefile: Removed.
915         * VERSION: Updated to 1.12beta.
917         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
919         * README: Updated: Included documentation about CVS repository,
920         mailing lists, and daily snapshots.
922         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
924 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
926         * tmac/tmac.an: If the tag didn't fit into the space that the
927         macro `TP' specifies, the rest of the tag went into the space for
928         the next line.
930 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
932         * grolj4/lj4.cc: Added duplex printing (option `-d').
934         * grolj4/grolj4.man: Document duplex printing.
936 1999-09-12  Werner LEMBERG  <wl@gnu.org>
938         * doc/Makefile (pic.ps): Fixed rule which caused problems with
939         non-GNUish sed programs.
941         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
942         definition.
944         * configure.in (LIBS): Added `-lc'
946         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
948         * pic/tex.cc (solid_arc): Casting M_PI to double.
950         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
952         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
953         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
954         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
956         * groff/groff_man.man: New file.  This manual page was originally
957         written for the Debian GNU/Linux system by Susan G. Kleinmann
958         <sgk@debian.org>.
960         * eqn/list.cc (list_box::compute_metrics,
961         list_box::compute_sublist_width): Removed variable declaration to
962         avoid shadowing warnings.
964         * grops/psrm.cc (resource_manager::process_file): Ditto.
966         * tfmtodit/tfmtodit.cc (main): Ditto.
968         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
969         to avoid shadowing warnings.
971         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
972         shadowing loop variable.
974         * groff/groff.man, troff/troff.man: Added doc about grohtml.
976 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
978         New grohtml frontend to convert groff input to html.
980         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
982         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
984         * tmac/eqnrc: Added html device.
986         * tmac/tmac.html: New file.
988         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
989         (troff_output::start_picture, troff_output::finish_picture),
990         tbl/main.cc (process_input_file):
991         Surrounded output with `graphics_start' and `graphics_end' so that
992         the html driver can identify non-text portions.
994         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
995         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
996         grotty/tty.ps (tty_printer::set_char): Additional parameter
997         `name'.
999         * include/printer.h: Class printer: New function
1000         set_char_and_width; new variables (is_char_named, is_named_set,
1001         named_command, named_char_s, named_char_n) to hold information
1002         about named characters -- needed by the html driver.
1004         * libdriver/printer.cc (printer::set_ascii_char,
1005         printer::set_special_char): Use set_char_and_width.
1007         * devhtml/*: New device files for html driver.
1009         * grohtml/*: New driver grohtml.
1011 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1013         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1014         default strings.
1016 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1018         * libgroff/string.cc (search): Small fix to test against NULL
1019         pointer.
1021 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1023         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1024         \b'abc') were stacked in reverse order when processed in a
1025         diversion.
1027         * troff/node.h: Added `*last' to struct `node' to make the above
1028         fix work.
1030         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1031         The default scale for the 'f' and 't' graphics functions were 'm'
1032         rather than 'u' (i.e., no scaling).
1034 1999-09-11  Peter Miller  <peterm@jna.com.au>
1036         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1037         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1038         defining include paths.
1040         * soelim/soelim.cc (include_path_append): New function.
1042 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1044         * tbl/main.cc (process_options): Unix (at least Documenter's
1045         Workbench) tbl allows arbitrary non-alpha characters between
1046         options.
1048 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1050         Y2k fixes.  Don't assume that the current year precedes 2000.
1052         * doc/meref.me: Add \n(y2, \n(y4.
1054         * tmac/doc-common (Yr): New number register.
1055         (Dd): Don't assume current year precedes 2000.
1057         * tmac/tmac.e (td): Likewise.
1058         (y2, y4): New number registers.
1060         * pic/pic.man: Update reference for pic paper to May, 1991
1061         version.
1063 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1065         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1066         Removed quotation marks which prevented correct expansion of
1067         $(tmac_wrap).
1069         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1071 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1073         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1074         `config.cache'.
1076         * Removed configure.old.
1078 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1080         * VERSION: Updated to 1.11.1
1082 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1084         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1086         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1087         added quotations around $(tmac_wrap) to avoid syntax error if
1088         variable is empty.
1090         * configure: Newly generated using autoconf 2.13.
1092         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1094 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1096         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1097         doc/Makefile. doc/pic.ms, groff/groff.man:
1098         Prepare for 1.11 release.  No code changes.
1099         Documentation for pic added (doc/pic.ms).
1101 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1103         * Version 1.10 released.
1105 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1107         * afmtodit/afmtodit.pl: Avoid comment on first line.
1109 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1111         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1112         * configure.in: Call it.
1114         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1115         (distfiles): Doesn't depend on config.log or config.cache.
1117 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1119         * grog/grog.sh: Use print "" rather than print in END rule.
1121 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1123         * tbl/main.cc (process_data): Don't give error for excess data
1124         entries that are comments.
1126 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1128         * tbl/main.cc (process_data): Fix case where new for-scope rules
1129         silently change meaning of code.
1131 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1133         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1134         of non-zero hyphenation codes.
1136 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1138         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1140 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1142         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1144 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1146         * tmac/tmac.andoc: Make it work in compatibility mode.
1148         * refer/token.h (token_info::is_range_sep): New function.
1149         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1150         * refer/ref.cc (reference::output): More sophisticated check for
1151         multiple pages.
1153         * devps/prologue.ps (MANUAL): New procedure.
1154         * grops/ps.cc (main): New -m option.
1155         (usage): Include -m.
1156         (ps_printer::~ps_printer): Implement -m.
1158         * aclocal.m4 (GROFF_G): New macro.
1159         * configure.in: Call it.
1160         * Makefile.in (g): Provided by configure.
1162         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1164         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1165         translations.
1167         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1168         (tmac_m, tmac_s): Deleted.
1169         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1170         tmac_s_prefix): New variables.
1171         (MDEFINES): Change accordingly.
1172         * Makefile.comm (.man.n): Use new TMAC_* variables.
1173         * configure.in (GROFF_TMAC): Call.
1174         * aclocal.m4 (GROFF_TMAC): Define.
1175         * tmac/Makefile.sub (stamp_wrap): New target.
1176         (install_data, uninstall_sub): Handle macro wrapping.
1178 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1180         * tbl/main.cc (main): Ignore -T option.
1182 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1184         * devlj4/generate/special.map: Add definition of \(nb.
1186         * tmac/tmac.dvi: Add definition of \(nb.
1188         * troff/dictionary.c (dictionary::dictionary): association::v gets
1189         initialized by association::association.
1191         * tmac/Makefile.sub: Avoid using temporary files when installing.
1193         * troff/env.cc (environment::set_font): Make bad font number a
1194         warning.
1196         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1198         * Makefile.in (datadir): Use share rather than lib.
1200         * groff/groff.cc (basename): Rename to xbasename.
1202 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1204         * Makefile (CCLIBS): Don't use.
1205         * Makefile.ccpg: Likewise.
1207         * acgroff.m4: Rename to...
1208         * aclocal.m4: Modify extensively for autoconf 2.
1209         * configure.in: Likewise.
1210         * Makefile.in: Likewise.
1212         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1213         defined.
1214         (xstrsignal): Check for definition of NSIG. Conditionalize
1215         on SYS_SIGLIST_DECLARED.  Make return type const.
1217 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1219         * troff/input.cc (interpolate_macro): Rephrase missing space
1220         warning.
1222 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1224         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1225         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1226         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1227         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1228         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1229         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1230         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1231         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1232         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1233         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1234         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1235         Fix 'for' scoping.
1237 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1239         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1240         string_iterator.
1241         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1242         file.
1243         (macro_iterator::macro_iterator): Add additional argument.
1245 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1247         * troff/div.cc (vertical_size::vertical_size): In place of integer
1248         specifying line spacing use cunits specifying post vertical
1249         space.
1250         (macro_diversion::output, top_level_diversion::output): Likewise.
1251         * troff/div.h: Change declarations accordingly.
1252         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1253         field.
1254         (pending_output_line::pending_output_line,
1255         pending_output_line::output, environment::output,
1256         environment::output_line, environment::output_title,
1257         environment::hyphenate_line):  In place of
1258         integer specifying line spacing use cunits specifying post vertical
1259         space.
1260         (environment::environment): Add post_vertical_spacing and
1261         prev_post_vertical_spacing arguments.
1262         (environment::get_post_vertical_spacing): New function.
1263         (environment::total_post_vertical_spacing): New function.
1264         (environment::post_vertical_spacing): New function.
1265         (init_env_requests): Initialize pvs request and .pvs register.
1266         * troff/env.h: Change declarations.
1268 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1270         * tmac/tmac.pspic: Immediately remove the temporary file.
1272 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1274         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1275         height is specified.
1277 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1279         * tbl/table.c (struct vertical rule, class table_entry): Use int
1280         not short for start_row and end_row.
1282 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1284         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1285         functions.
1286         (diverted_space_node::reread, process_input_stack): Call
1287         trapping_blank_line() rather than blank_line().
1288         (init_input_requests): Bind "blm" to blank_line_macro().
1290         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1292 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1294         * troff/env.cc (environment::possibly_break_line): Require that
1295         width total excluding width of final space node be greater than
1296         the target text length.
1298 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1300         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1302 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1304         * troff/node.cc (charinfo_node): New class.
1305         (glyph_node, composite_node): Derive from charinfo_node.  Change
1306         member functions accordingly.
1308 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1310         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1312 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1314         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1316         * devps/generate/textmap (notsubset): Add.
1318         * tmac/tmac.a4: New file.
1320 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1322         * pic/main.cc (had_parse_error): New variable.
1323         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1324         returns non-zero.
1325         (main): Return 1 if had_parse_error is true.
1327 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1329         * grolj4/lj4.cc (main): Avoid use of strtoul.
1331 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1333         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1334         iso_8859_1 or $LESSCHARSET is latin1.
1336 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1338         * hpftodit: New directory.
1339         * Makefile.in (CCPROGDIRS): Add hpftodit.
1340         * devlj4/generate: New directory.
1342 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1344         * configure.in: Don't use AC_VFORK.
1345         * groff/pipeline.c (run_pipeline): Use fork() always.
1347 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1349         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1351         * Makefile.in (CCPROGDIRS): Add grolj4.
1352         (DEVDIRS): Add devlj4.
1353         * grolj4, devlj4: New directories.
1354         * tmac/troffrc: Handle lj4.
1355         * tmac/tmac.lj4: New file.
1357 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1359         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1361 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1363         * troff/input.cc (do_if_request): At end of second string, switch
1364         environments before getting next token.
1366 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1368         * devps/psstrip.sed: Split rule that strips whitespace on either
1369         side of delimiters.
1371 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1373         * troff/node.h (font_family::make_definition): Add return value to
1374         declaration.  * troff/symbol.h (symbol::operator==,
1375         symbol::operator!=): Likewise.
1377 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1379         * groff/groff.cc (main, help, synopsis): Handle -S.
1380         (possible_command::insert_arg): New function.
1382         * tmac/tmac.safer: New file.
1383         * tmac/msafer.man: New file.
1384         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1386 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1388         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1389         * pic/pic.y (placeless_element): Avoid unsafe operations if
1390         `safer_flag' is set.
1391         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1393 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1395         * eqn/lex.cc (get_token): Put call to add_context() in block to
1396         work around Sun C++ 4.0 bug.
1398         * include/stringclass.h (operator +): Use ?: instead of `if' to
1399         work around Sun C++ 4.0 bug.
1401 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1403         * tbl/main.cc (process_format): Accept - as a synonym for the _
1404         key letter.
1406         * libbib/index.cc (minus_one): Don't declare as const.
1408 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1410         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1412 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1414         * troff/input.cc (write_macro_request): New function.
1415         (init_input_requests): Bind write_macro_request to writem.
1417 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1419         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1420         equation.
1422         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1424         * tmac/tmac.s (@TS): Renamed from TS.
1425         (TS): Call LP then TS again.
1426         (cov*ab-init): Alias @TS to TS.
1428         * tmac/tmac.s: Allow QP or RS to initialize.
1430         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1431         Move initializations of PS and LL here.
1432         (par@init): Don't initialize HY.  Avoid changing environment 0.
1433         (par*env-init): Don't all par@reset.
1435 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1437         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1439 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1441         * Makefile.in (MDEFINES): Add LDFLAGS.
1442         (LDFLAGS): Add definition line.
1444 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1446         * troff/input.cc (get_optional_char): Split off error check into...
1447         (check_missing_character): New function.
1448         * troff/token.h: Declare it.
1449         * troff/env.cc (margin_character): Don't call get_optional_char.
1450         Only call tok.next() after making the node.
1452         * include/lib.h (getopt): Make 2nd argument char *const *.
1454 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1456         * nroff/conftest.sh: Deleted.
1458 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1460         * pic/make-dos-dist: Deleted.
1462 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1464         * devps/psstrip.sed: Strip comments before stripping trailing
1465         white space.
1467 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1469         * Version 1.09 released.
1471 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1473         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1475 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1477         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1479 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1481         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1482         about returning without a value.
1484         * troff/charinfo.h (charinfo::get_special_translation): Cast
1485         TRANSLATE_NONE to int.
1487         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1488         test.  Fix test so that it works with n unsigned.
1490         * pic/pic.y (defaults_table): Fully bracket initializer.
1491         * pic/lex.cc (lookup_keyword): Likewise.
1492         * eqn/lex.cc (token_table, def_table): Likewise.
1493         * eqn/box.cc (param_table): Likewise.
1494         * troff/input.cc (warning_table): Likewise.
1495         * libgroff/font.cc (table): Likewise.
1496         * grops/ps.cc (ps_printer::special): Likewise.
1497         * grops/psrm.cc (resource_manager::process_file): Likewise.
1498         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1499         * refer/command.cc (command_table): Likewise.
1500         * addftinfo/addftinfo.cc (param_table): Likewise.
1502         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1503         about temp's being unused.
1504         (unused): New function.
1506         * groff/pipeline.cc: Declare c_fatal.
1508         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1509         uchar.
1511         * libbib/index.cc (index_search_item::load): Prevent compiler
1512         warnings about fd_closer's being unused.
1513         (unused): New function.
1515 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1517         * troff/input.cc (copy_mode_error): Make `prefix' static.
1518         Fix typo.
1520         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1521         defined.
1522         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1523         HAVE_CC_OSFCN_H and modify accordingly.
1525         * troff/input.cc (init_charset_table): radicalex overlaps
1526         horizontally.
1528         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1529         udodo!hans@relay.NL.net).
1530         * groff/configure.in: Call it.
1532         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1533         * groff/configure.in: Call it.
1534         * include/lib.h: Conditionalize declaration of pclose.
1536         * troff/div.cc (last_page_number): New global variable.
1537         (top_level_diversion::begin_page): Exit if we just printed the
1538         last page.
1539         * troff/div.h (last_page_number): Declare it.
1540         * troff/input.cc (parse_output_page_list): Set last_page_number.
1542         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1543         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1544         tmac/tmac.X: Likewise.
1545         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1546         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1548 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1550         * tmac/doc-ditroff (hK): Remove groff specific code which
1551         prevented page-breaks between separate manual entries.  If this is
1552         the first page, don't set the page number to 1.
1554         * acgroff.m4 (GROFF_POSIX): New macro.
1555         * configure.in: Use it.
1557         * troff/node.cc (class real_output_file,
1558         real_output_file::real_output_file,
1559         real_output_file::~real_output_file): Conditionalize use of
1560         popen/pclose on POPEN_MISSING.
1561         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1562         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1563         (pipe_source): Similarily.
1565         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1567         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1568         presence of declarations by trying to compile example with
1569         conflicting declarations.  (gcc only gives a warning for missing
1570         declarations.)
1572 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1574         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1575         (from Ulrich Lauther).
1577 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1579         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1581 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1583         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1584         pointers and ints have different sizes.
1586 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1588         * tmac/tmac.s (par*env-init): Call par@reset.
1590 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1592         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1593         tag.
1594         (par*push-tag-env, par*pop-tag-env): New macros.
1596 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1598         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1599         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1601         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1602         comment.  Include <time.h>.
1604 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1606         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1607         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1608         lines.
1610 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1612         * troff/input.cc (read_request): Only print a prompt if reading
1613         from the terminal.  Also clearerr on EOF if reading from the
1614         terminal.  Declare isatty.
1616 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1618         * refer/label.y: Rename map_t to map_func and extractor_t to
1619         extractor_func.
1621 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1623         * include/assert.h: Don't use volatile.
1624         * libgroff/assert.cc: Likewise.
1626 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1628         * troff/input.cc (abort_request): Look at character in tok before
1629         calling get_copy().
1631 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1633         * troff/troff.h (NO_RETURN): Deleted.
1634         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1635         * troff/input.cc (exit_troff): Likewise
1637         * Makefile.in: Remove `Making ...' messages since GNU make now
1638         gives these. 
1640         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1642 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1644         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1645         to constant 1 inch.
1647 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1649         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1651 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1653         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1654         MARK_REG if there was no left delimiter.
1656 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1658         * pic/troff.cc (troff_output::text): Set line thickness to
1659         relative before outputting text.
1661         * tmac/tmac.e (@k): Don't zero ?T.
1662         ((z): Likewise.
1664 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1666         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1668 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1670         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1671         Paul Eggert).
1673 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1675         * troff/input.cc (ignoring): New variable.
1676         (ignore): Set ignoring during call to do_define_macro.
1677         (do_define_macro): Clear ignoring before interpolating terminating
1678         macro.
1679         (copy_mode_error): New function.
1680         (get_char_for_escape_name, read_long_escape_name,
1681         interpolate_arg): Use copy_mode_error.
1682         (warning_table): Add WARN_IG.
1683         * troff/troff.h (WARN_IG): Declare.
1684         (WARN_TOTAL): Change accordingly.
1686         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1687         * groff/groff.cc (strsignal): Delete declaration.
1689 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1691         * troff/div.cc (page_offset): Use 'm' as default scaling.
1693 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1695         * nroff/nroff.sh: Ignore -u.
1697 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1699         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1701 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1703         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1704         drawing box.
1705         (B2): With -Tascii, leave additional vertical space before
1706         and after. Ensure that the left and right indent is restored to
1707         what it was even if the point size changes.  Don't call
1708         par@finish. Change the indent, line length and title length
1709         directly.  With -Tascii, make the width of the box 1n less.
1710         (B1): Remember 1n at the current point size.  Don't call
1711         par@reset.  Change the indent, line length and title length
1712         directly.  Ensure that the temporary indent is preserved.
1713         (par*box-mark-top): Turn off no spacing mode.
1715 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1717         * Makefile.in (dist): Use .gz suffix.
1719 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1721         * troff/input.cc (main): Add return 0.
1722         * pic/main.cc (main): Use return instead of exit.
1723         * tbl/main.cc (main): Likewise.
1724         * eqn/main.cc (main): Likewise.
1725         * grops/ps.cc (main): Likewise.
1726         * grotty/tty.cc (main): Likewise.
1727         * groff/groff.cc (main): Likewise.
1728         * grodvi/dvi.cc (main): Likewise.
1729         * refer/refer.cc (main): Likewise.
1730         * indxbib/indxbib.cc (main): Likewise.
1731         * lkbib/lkbib.cc (main): Likewise.
1732         * soelim/soelim.cc (main): Likewise.
1733         * addftinfo/addftinfo.cc (main): Likewise.
1734         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1735         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1737         * troff/token.h (process_input_stack): Don't declare as static.
1738         * troff/input.cc: Likewise.
1740         * troff/node.c (invalidate_fontno): Make it a static member of
1741         class font_family.  Change callers.
1742         * troff/node.c: Change declaration.
1744         * tbl/main.cc (struct input_entry_format): Add explicit public
1745         specifier.
1746         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1747         struct double_hline_stuff): Likewise.
1748         * tbl/table.h (struct entry_format): Likewise.
1749         * pic/object.h (struct saved_state): Likewise.
1751         * include/stringclass.h: Add forward declarations of friend
1752         functions that are later declared as inline.  Don't include inline
1753         specifier in friend declaration.
1755         * libgroff/lib.h: Declare popen and pclose.
1756         * acgroff.m4 (GROFF_POPEN): New macro.
1757         * configure.in: Call it.
1759         * include/lib.h (PI): New constant. Undef first if necessary.
1760         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1761         * grops/ps.cc (degrees, radians): Likewise.
1762         * libgroff/font.cc (font::get_skew): Likewise.
1764         * grops/ps.cc (is_ascii): New function.
1765         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1766         isprint.
1767         (ps_printer::define_encoding): Use csspace.
1768         * libgroff/strtol.c (ISASCII): New macro.
1769         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1770         Use ISASCII rather than isascii.
1771         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1772         * libgroff/cset.cc: Likewise.
1773         * libdriver/input.cc: Include cset.h.
1774         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1775         than isdigit().
1777         * refer/refer.cc (main): Use %ld rather than %d for longs.
1779         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1780         S_ISREG macro.
1782         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1784 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1786         * troff/input.cc (hyphenation_code): Skip white space between
1787         char/code pairs.
1789 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1791         * tbl/table.h (table::entry_list_tailp): New member.
1792         (table::table): Initialize it.
1793         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1794         behaviour.
1796 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1798         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1799         with negative horizontal positions. Remove casts of glyph::hpos to
1800         int.
1801         (USHRT_MAX): Delete definition.
1802         (SHRT_MAX, SHRT_MIN): New definitions.
1803         (glyph::hpos): Change type to short.
1804         (tty_printer::end_page): Output multiple backspaces if necessary.
1805          Remove casts of glyph::hpos to int.
1806         
1807 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1809         * tmac/tmac.s (@RT): New definition.
1811 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1813         * refer/refer.cc (do_file): Make sure current_filename is set when
1814         filename is "-".
1816         * pic/common.cc (common_output::dot_line): Handle zero length
1817         lines.
1819 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1821         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1822         (par@init): Initialize \n[HY].
1824 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1826         * troff/dictionary.cc (dictionary::remove): Continue when
1827         r < j < i.
1829 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1831         * Makefile.com (.y.cc): Avoid ending up with two versions of
1832         $(YTABH).
1834 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1836         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1837         (\(,C): Likewise.  Also fix typo.
1839 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1841         * lib.h: Delete extraneous semi-colon.
1843         * Add pso request: `so' from a pipe.
1844         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1845         (file_iterator::close): New function.
1846         (file_iterator::~file_iterator, file_iterator::next_file): Use
1847         file_iterator::close.
1848         (file_iterator::backtrace): Say `process' rather than `file' when
1849         the stream is popened.
1850         (pipe_source): New function.
1851         (init_input_requests): Bind ".pso" to pipe_source.
1853 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1855         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1857         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1858         digits in lower case.
1860 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1862         * Version 1.08 released.
1864         * Makefile.in (dist): Insert || true after ln -s commands that
1865         might fail.
1867         * mm: Update to mm 1.16.
1869         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1870         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1871         SH_SCRIPT_SED_CMD.
1872         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1873         MDEFINES.
1874         * nroff/Makefile.sub (nroff): New target.
1875         (install_data): Install nroff.
1876         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1877         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1879 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1881         * eqn/Makefile.sub (neqn): Add chmod +x.
1883         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1885 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1887         * troff/input.cc (string_iterator::string_iterator()): Initialize
1888         lineno and count.
1890 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1892         * troff/div.cc (macro_diversion::space,
1893         top_level_diversion::space): Don't set high_water_mark.
1894         (macro_diversion::output, top_level_diversion::output): Don't
1895         include post line space in high water mark.
1897 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1899         * eqn/eqn.y: Don't define YYDEBUG.
1900         * pic/pic.y: Likewise.
1902 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1904         * tmac/tmac.e ([3): Add space after comma following editors.
1905         Change double spaces to single spaces.
1906         ([4): Change double spaces to single spaces.
1908         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1909         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1910         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1911         after %!PS-Adobe- (for Newsprint).
1913         * troff/div.cc (top_level_diversion::begin_page): When
1914         before_first_page is 1, set page_number to 1.
1916 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1918         * eqn/box.cc (box::top_level): Protect equation with \&.
1920 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1922         * groff/groff.cc (possible_command::set_name): Delete old name.
1924         * groff/groff.cc (possible_command::~possible_command): Use
1925         a_delete.
1927         * troff/node.cc (troff_output_file::begun_page): New member.
1928         (troff_output_file::troff_output_file): Initialize it.
1929         (troff_output_file::really_begin_page): Only output V command if a
1930         page has been begun.
1932         * pic/pic.y (placeless_element): Delete argument to PRINT after
1933         use.
1935 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1937         * Make wrapman work.
1938         * troff/div.h (class top_level_diversion): Replace
1939         first_page_begun by before_first_page (with opposite sense).
1940         * Change first_page_begun to before_first_page inverting sense.
1941         * troff/div.cc (class nl_reg): New class.
1942         (init_div_requests): Use class nl_reg for \n(nl.
1943         (top_level_diversion::begin_page): Don't call
1944         output_file::begin_page if before_first_page is 2;
1945         reset before_first_page afterwards.  If have_next_page_number is
1946         false, then always increment page_number.
1947         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1948         Restore compatibility mode after loading, and then disable
1949         compatibility mode in TH.
1951 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1953         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1954         past last line.
1955         * troff/node.h (output_file::trailer): Declare.
1956         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1957         * troff/node.cc (output_file::trailer): New function.
1958         (troff_output_file::~troff_output_file): Move most code into...
1959         (troff_output_file::trailer): New function.
1960         (class troff_output_file): Delete page_length member. Declare
1961         trailer().
1962         (troff_output_file::really_begin_page): Use current page length
1963         for final V command.
1965         * tbl/main.cc (struct options): New decimal_point_char member.
1966         (options::options): Initialize this.
1967         (process_options): Implement decimalpoint option.
1968         (process_data): Pass decimal_point_char option to table::table.
1969         * tbl/table.h (class table): New decimal_point_char member.
1970         (table::table): Add additional argument.
1971         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1972         second argument specifying decimal point character.  Use this
1973         instead of '.'.
1974         (table::table): Initialize decimal_point_char.
1975         (table::add_entry): Change call to find_dot.
1977         * troff/input.cc (get_copy, token::next): Implement \V.
1978         (interpolate_environment_variable): New function.
1980 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1982         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1983         * pic/pic.y: Likewise.
1985         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1986         Add casts to int.
1987         * refer/ref.cc (reference::insert_field, reference::delete_field):
1988         Likewise.
1989         * troff/number.cc (parse_term): Likewise.
1991         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1992         * configure.in: Use GROFF_PROG_YACC.
1994         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1995         and g++.
1996         * Makefile.in (OPTIMIZE): New define.
1997         (DEBUG): Empty by default.
1998         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2000         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2001         (GROFF_ARRAY_DELETE): Likewise.
2002         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2004         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2006         * devps/psstrip.sed: Use different delimiter on last line (so that
2007         it works with BSD 4.4 sed.)
2009 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2011         * devps/psstrip.sed: Delete comments.
2013         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2014         optind, opterr, optarg.
2015         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2016         opterr, optarg.
2018 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2020         * Makefile.in (check): Dummy target.
2022 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2024         * Version 1.07 released.
2026         * Integrate mm 1.11.
2028         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2029         where start_col was meant.
2031 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2033         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2035 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2037         * troff/input.cc (token::next): Make \z\o'...' and similar things
2038         work.
2040         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2041         constants.
2042         (environment): Add margin_character_flags member.
2043         * env.cc (environment::environment(symbol),
2044         environment::environment(const environment *): Initialize
2045         margin_character_flags.
2046         (margin_character): Rewrite.
2047         (environment::output_line): Add a margin character if
2048         margin_character_flags is non-zero.  Turn off the
2049         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2050         zero, use margin_character_node without copying and then set
2051         margin_character_node to 0.
2053         * devps/DESC.in: Change minimum size to 1000.
2055 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2057         * troff/symbol.h (symbol::hash): Change return type to unsigned
2058         long.
2059         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2060         Add casts to int.
2062         * test-groff: Use -r rather than -x.
2064         * grops/psfig.diff: Include in distribution again.
2066 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2068         * Makefile.in (dist): Use gzip.
2070 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2072         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2073         unistd.h as well as in stdlib.h.
2074         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2075         defined; otherwise include <sys/types.h> and <unistd.h> if
2076         UNISTD_H_DECLARES_GETOPT is defined.
2078         * configure.in: use builtin(include, ... rather than include(...
2079         * configure: Regenerate with autoconf 1.3.
2081         * libdriver/print.cc (printer::adjust_arc_center): Use new
2082         algorithm suggested by Andy Fyfe.
2084         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2085         * include/printer.h: Declare this.
2086         * grops/ps.cc (ps_printer::draw): Use it.
2087         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2089 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2091         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2093 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2095         * eqn/main.cc (main): Handle "eqn -".
2097 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2099         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2101         * mm: Integrate version 1.08.
2103         * pic/troff.cc (troff_output::finish_picture): Set
2104         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2105         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2106         if it's not defined. Check whether the register is non-zero rather
2107         than whether it's not defined.
2108         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2110         * indxbib/indxbib.cc: Move all signal handling into...
2111         * indxbib/signal.c: New file.
2112         * configure.in: Call AC_RETSIGTYPE.
2114         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2115         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2116         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2118         * troff/input.cc (token::token, token::operator=): Work round SGI
2119         C++ bug.
2120         * pic/object.cc (position::position): Likewise.
2122 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2124         * pic/pic.h: Move declaration of hypot().
2126 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2128         * pic/pic.h: Declare hypot().
2130         * pic/pic.h: Define M_PI if necessary.
2132 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2134         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2135         `.ta T' feature.
2137         * devps/prologue.ps (RE): Handle the possibility that the old font
2138         doesn't have a FontName entry.
2140 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2142         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2143         (@C): Use @fam not fam.
2145 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2147         * lookbib/lookbib.cc (main): Change type of start to const char *.
2148         * lkbib/lkbib.cc (main): Likewise.
2150         * eqn/lex.cc (definition::definition): Don't use member
2151         initializer syntax for members of anonymous unions.
2153         * troff/input.cc (input_stack::backtrace): Change type of to const
2154         char *.
2156 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2158         * include/stringclass.h (class string): Declare inline friend
2159         functions as inline in class declaration.
2160         * troff/hvunits.h (class hunits, class vunits): Likewise.
2161         * include/refid.h (class reference_id): Likewise
2162         * troff/troff.h (points_to_units(units), scale(units, double)):
2163         Delete declarations.
2164         * libdriver/input.cc (get_char): Delete declaration.
2165         * include/lib.h: Change 2nd argument of getopt from const char **
2166         to char **.
2167         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2168         char **' before assigning to a `const char **'.
2169         * tbl/table.cc: Delete extra declarations of prints().
2171 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2173         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2174         char **' before assigning to a `const char **'.
2176         * libgroff/errarg.cc (errarg::errarg): Don't use member
2177         initializer syntax for members of anonymous unions.
2179 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2181         * mm: Integrate version 1.07.
2183 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2185         * troff/input.c (translate2): Rename to
2186         (translate_no_transparent).
2187         (init_input_requests): Rename tr2 to trnt.
2189 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2191         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2192         (charinfo::set_translation, charinfo::set_special_translation):
2193         Add second argument that specifies value for
2194         transparent_translate.
2195         (charinfo::get_translation, charinfo::get_special_translation):
2196         Add optional second argument that specifies whether translation is
2197         being used for transparent throughput.
2198         * troff/input.cc (charinfo::set_translation,
2199         charinfo::set_special_translation): Handle second argument.
2200         (charinfo::charinfo): Initialize transparent_translate.
2201         (translate): Split main part off into
2202         (do_translate): New function.  Pass argument saying whether
2203         translation applies to transparent throughput.
2204         (translate2): New request.
2205         (init_input_requests): Bind translate2 to `tr2'.
2207 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2209         * tbl/table.h (class table): Add `nokeep' flag.
2210         * tbl/main.cc (process_options): Handle `nokeep' option.
2211         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2212         table::do_bottom): Don't output keep/release macro definitions or
2213         calls when `nokeep' option has been specified.
2215 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2217         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2219 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2221         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2222         block_entry::divert, alphabetic_block_entry::divert): Add extra
2223         argument giving column separation.
2224         (table::compute_widths): Pass column separation to
2225         table_entry::divert().
2226         (block_entry::do_divert): If an entry spans multiple columns and a
2227         minimumum width has been specified for each column, then set the
2228         line length to the sum of the widths (plus possibly the column
2229         separations).
2231         * troff/input.cc (set_escape_char): Don't set the escape_char
2232         until after calling has_arg().
2234 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2236         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2237         case.
2239         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2240         in case where r > nrows - 1.
2242         * tbl/table.cc (BODY_HEIGHT): Deleted.
2243         (LINE_SEP): New definition.
2244         (table::print_single_hline, table::print_double_hline,
2245         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2246         table::do_row, table::do_top): Use LINE_SEP space before a line
2247         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2249         * tbl/table.cc (text_entry::print_contents): New function.
2250         (text_string_name, right_text_string_name): Deleted.
2251         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2252         (simple_text_entry::do_width, numeric_text_entry::do_width,
2253         alphabetic_text_entry::do_width): Don't store the contents of the
2254         entry in a string.
2255         (left_text_entry::simple_print, right_text_entry::simple_print,
2256         center_text_entry::simple_print,
2257         alphabetic_text_entry::simple_print,
2258         numeric_text_entry::simple_print): Print the entry directly
2259         instead of using the stored string.
2261 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2263         * devps/Makefile: Strip PostScript files.
2264         * devps/prologue: Rename to...
2265         * devps/prologue.ps.
2266         * devps/psstrip.sed: New file.
2267         * devps/download: Use .pfa rather than .ps for installed versions
2268         of fonts.
2270 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2272         * troff/env.cc (input_trap): Give a warning if the argument is out
2273         of range.
2275         * troff/env.cc (adjust): Treat negative argument as missing. Round
2276         argument > 5 down to 5.
2278         * troff/env.cc (center, right_justify): Make negative argument zero.
2280         * troff/div.cc (page_offset, vertical_position_traps): Treat
2281         invalid argument as missing.
2282         * troff/env.cc (line_spacing, line_length, title_length, indent,
2283         underline, hyphen_line_max_request, control_char,
2284         no_break_control_char, widow_control_request, adjust, input_trap,
2285         point_size): Likewise.
2286         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2287         constant_space): Likewise.
2288         * troff/input.cc (compatible, shift, warn_request,
2289         set_escape_char): Likewise.
2291         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2292         * tbl/table.cc (table::table): Likewise.
2294         * Makefile.dev (install_dev): depends on $(DEVFILES).
2296 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2298         * devX75, devX75-12, devX100, devX100-12: New directories.
2299         * Makefile.in: Add these to DEVDIRS.
2301         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2302         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2303         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2304         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2305         targets.
2306         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2307         (uninstall): New target.
2308         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2309         uninstall_prog, uninstall_dev): New targets.
2311         * troff/div.cc (return_request): Treat an invalid argument as
2312         missing.
2314 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2316         * tmac/tmac.e ((f): Set up the environment even when there's a
2317         current diversion.  Transperently throughput a call to @N.
2318         (@N): New macro.
2320 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2322         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2323         up to vertical resolution.
2325         * tbl/table.cc (table::do_row): Change row number after printing
2326         stuff list.
2328         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2330 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2332         * Rename CHANGES to NEWS.
2334 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2336         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2338 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2340         * man.ultrix: Removed.
2342 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2344         * Makefile.comm (extraclean): Delete files whose names begin with
2345         `='.
2347         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2348         aligned text.
2350 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2352         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2353         * troff/div.cc (page_length, need_space, space_request): Treat
2354         invalid optional argument as missing.
2355         * troff/env.cc (number_lines): If the first argument is present
2356         but not a number, turn on line numbering, don't change the next
2357         line number and parse the remaining arguments.
2359         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2361 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2363         * eqn/box.h: Change declaration accordingly.
2364         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2365         the specified size was bad but don't give an error.  Check for
2366         overflow.
2367         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2368         * eqn/lex (do_size): Likewise.
2370 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2372         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2373         compatible headers.
2375 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2377         * tbl/table.cc (table::init_output): Improve error message when
2378         table won't fit on one page.
2380 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2382         * pic/troff.cc (troff_output::start_picture): Generate line
2383         containing a horizontal motion equal to the width of the picture.
2385         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2386         using GROFF_COMMAND_PREFIX environment variable.
2388 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2390         * mdate.sh: Use $NF rather than $(NF).
2392 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2394         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2396         * eqn/main.cc (main): Output code to check that geqn was given the
2397         correct -T option.
2399 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2401         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2402         `ln -s ../Makefile .; make; rm -f Makefile'.
2404         * troff/hyphen: Rename to...
2405         * troff/hyphen.us:
2406         * troff/input.cc (main): Delete -H option. Don't call
2407         read_hyphen_file().
2408         * troff/env.cc: Include searchpath.h and macropath.h.
2409         (exception_dictionary): Deleted.
2410         (ht): Deleted.
2411         (read_hyphen_file): Deleted.
2412         (hyphenation_language): New struct.
2413         (class trie, class hyphen_trie): Move declarations up.
2414         (trie_node::~trie_node): Deleted.
2415         (trie::delete_trie_node): New function.
2416         (trie::do_delete): New pure virtual function.
2417         (hyphen_trie::do_delete): New function.
2418         (trie::~trie): New function.
2419         (hyphen_trie::~hyphen_trie): New function.
2420         (trie::clear): No need to chcek that tp is not 0.
2421         (current_language, language_dictionary): New variables.
2422         (hyphen_word): Give an error if no current language.  Use
2423         exceptions dictionary in current language.
2424         (hyphen_trie::read_patterns_file): Find file using macro_path.
2425         Allow comments (starting with %) in patterns file.  Don't make it
2426         a fatal error if the file can't be found.
2427         (hyphenate): Return if no current language.  Get the exceptions
2428         dictionary and the hyphenation patterns from the current language.
2429         (set_hyphenation_language): New variable.
2430         (hyphenation_patterns_file): New function.
2431         (hyphenation_language_reg): New class.
2432         (hyphenation_language_reg::get_string): New function.
2433         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2434         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2435         register.
2436         * groff/groff.cc (main, help, synopsis): Delete -H option.
2437         * include/Makefile.sub: Don't define HYPHENFILE.
2438         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2439         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2440         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2441         hyphenation patterns.
2443 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2445         * eqn/neqn.sh: New file.
2446         * eqn/Makefile.sub: Handle neqn.sh.
2448         * eqn/eqn.h: Declare `nroff' variable.
2449         * eqn/box.cc (param_table): Add `nroff' param.
2450         (nroff): Define it.
2451         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2452         variable.
2453         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2455         * troff/troff.h (WARN_FONT): New warning.
2456         (WARN_TOTAL): Change accordingly.
2457         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2458         (warning_table): Add WARN_FONT.
2459         * troff/node.cc (mount_font_no_translate): Pass argument to
2460         font::load_font.  If this is non-zero, give a warning.
2461         Don't give an error message when accessing a font that has already
2462         been found to be invalid.
2463         * include/font.h (font::load, font::load_font): Add additional
2464         optional argument which suppresses error message if the font is
2465         not found.
2466         * libgroff/font.cc (font::load_font): Handle additional argument.
2467         (font::load): Add additional argument. If this is non-null, set it
2468         to 1 and don't give error message.
2470         * include/printer.h (printer::end_page): Add argument giving
2471         length of page.
2472         * libdriver/input.cc (do_file): Pass this.
2473         * grops/ps.cc (ps_printer::end_page): Add argument.
2474         * grodvi/dvi.cc (dvi_printer::end_page,
2475         draw_dvi_printer::end_page): Add argument.
2476         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2477         columns_per_page members. New member nlines.
2478         (DEFAULT_LINES_PER_PAGE): Deleted.
2479         (tty_printer::tty_printer): Don't compute lines_per_page from
2480         font::paperlength. Don't compute columns_per_page from
2481         font::paperwidth.
2482         (tty_printer::add_char): Don't check horizontal position against
2483         columns_per_page. Grow glyphs vector if neccessary.
2484         (tty_printer::end_page): Add argument giving page_length in units.
2485         Discard lines past end of page.
2487 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2489         * tmac/tmac.tty-char: Fix definition of \(/l.
2491         * tmac/tmac.X: Define \(en.
2493 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2495         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2496         lpq, then use lp rather than lpr.
2498         * tmac/tmac.s (par@reset): Don't call `ad'.
2499         (par*env-init): Call `ad'.
2501 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2503         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2504         date.
2506         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2507         * indxbib/indxbib.cc: Likewise.
2509 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2511         * libgroff/putenv.c: New file.
2512         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2513         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2514         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2515         stdlib.h with AC_HAVE_HEADERS.
2517 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2519         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2520         does not exist.
2522 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2524         * eqn/box.cc (gsize): Make it an int.
2525         (set_gsize): Parse argument handling increment or decrement.
2526         (box::top_level): Convert gsize to a string.
2528         * troff/input.cc (exit_troff): Make buf unsigned char [].
2529         Call to make_temp_iterator casts buf to char*.
2531         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2533         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2534         * Makefile.cpg (depend.temp): Likewise.
2536         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2538         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2540 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2542         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2544 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2546         * Version 1.06 released.
2548         * Integrate mm 1.04.
2550 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2552         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2554 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2556         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2557         ligatures command.
2558         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2559         afmtodit. Regenerate.
2561         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2562         @f back past the current position.
2564         * tmac/tmac.e: Change calls to @R so that comments are not part of
2565         arguments.
2567 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2569         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2571         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2572         check that we can link a call to a function declared in <stdio.h>.
2573         (GROFF_UNISTD_H): New macro.
2574         * configure.in: Call it.
2575         * Makefile.in: Document it.
2576         * include/posix.h: New file.
2577         * troff/troff.h: Don't include <osfcn.h>
2578         * troff/input.cc: Include posix.h.
2579         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2580         osfcn.h.
2581         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2582         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2583         <fcntl.h>.
2584         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2585         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2586         * libbib/search.cc (O_RDONLY): Delete definition.
2587         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2588         Don't include <osfcn.h>.
2590         * acgroff.m4 (GROFF_TIME_T): New macro.
2591         * configure.in: Call it.
2592         * Makefile.in: Document it.
2594         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2595         * configure.in: Call it.
2596         * Makefile.in: Document -DTRADITIONAL_CPP.
2597         * include/ptable.h: Don't include generic.h.
2598         (name2): Define it.
2600         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2601         Afterwards remove [T1 and [T2.
2602         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2603         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2604         (ref*add-T2): Renamed from ref*add-T.
2605         (ref*add-T1): New macro.
2607 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2609         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2611         * libbib/index.cc: Include <fcntl.h>.
2612         (O_RDONLY): Define if necessary.
2613         (make_index_search_item, index_search_item_iterator::get_tag,
2614         index_search_item::check_files): Use O_RDONLY.
2615         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2616         (O_RDONLY): Define if necessary.
2617         (search_list::add_file): Use O_RDONLY.
2618         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2619         <sys/stat.h>.
2620         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2621         (main): Use these.
2623         * libbib/index.cc (S_ISREG): Define it if necessary.
2624         (index_search_item::load): Use S_ISREG.
2626         * include/driver.h: Include <errno.h>.
2628 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2630         * eqn/box.cc (body_height): Increase default value to 85.
2631         (body_depth): Increase default value to 35.
2633 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2635         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2636         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2637         protected from expansion with \E.
2639         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2641         * Makefile (Makefile): New target.
2643         * Makefile.sub (configure, distfiles): New targets.
2645         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2646         construct.
2648 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2650         * eqn/box.cc (param_table): Add body_height and body_depth.
2652         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2654 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2656         * psbb/Makefile.sub: Don't link with libgroff.a.
2658         * acgroff.m4 (GROFF_PUTENV): New macro.
2659         * configure.in: Call GROFF_PUTENV.
2660         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2661         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2662         is defined.
2664         * troff/env.cc (distribute_space): Rename force_forward argument
2665         to force_reverse.  Reverse the list if force_reverse is true.
2667 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2669         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2671         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2672         height or depth to be negative.  Guard against SUP_RAISE quantity
2673         being negative.
2675 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2677         * devps/generate/textmap: Add `an' (arrowhorizex).
2678         * tmac/tmac.ps: \(an overlaps horizontally.
2679         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2681         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2682         * devps/textmap: Add arrowvertex.
2683         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2684         updownarrow delimiters.
2685         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2687         * tbl/table.cc (simple_entry::position_vertically,
2688         block_entry::position_vertically):  For a centered entry, perform
2689         the motion in two stages.
2691         * refer/refer.cc (split_punct): Don't call lookup_token if there
2692         is no token.
2694 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2696         * troff/input.cc (token::next): Delete token_node after copying
2697         token.
2699         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2700         cur_point_size.
2702         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2704         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2706 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2708         * grops/ps.cc (usage): -b option takes an argument.
2710         * devps/prologue (PLG): New procedure.
2711         * grops/ps.cc (main, usage): New -g option.
2712         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2713         length using PLG.
2715 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2717         * include/cset.h: Include <limits.h> if we have it.
2719         * libgroff/illegal.cc: New file.
2720         * include/lib.h (illegal_input_char): Use table.
2721         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2722         * pic/lex.cc (ARG1): Renumber to 14.
2723         * eqn/lex.cc (ARG1: Likewise.
2725         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2726         (eg 1.05.90) correctly.
2728 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2730         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2731         Rename $r and $R registers to $v and $V.
2732         ($r, $R): Initialize to 0.
2733         (@v, @V): New macros.
2734         (sz): Call @v.
2735         (@M): Call @V.
2737         * troff/input.cc (main, usage): Add -R option that says not to
2738         load troffrc.
2739         * eqn/main.cc (main, usage): Rename -n to -R.
2741 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2743         * devps/DESC.in: Leave font positions 5-9 blank.
2744         * devdvi/DESC.in: Likewise.
2746         * grog/grog.pl: Handle `.PS <file' correctly.
2748         * troff/input.cc (input_stack::push): Improve error message when
2749         input stack limit exceeded.
2751 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2753         * refer/refer.cc (main): Fix typo in handling of `a' option.
2755         * refer/refer.cc (do_bib): In state START after a newline remain
2756         in state START.
2758         * groff/groff.sh: Deleted.
2759         * groff/Makefile.sub: Delete handling of groff.sh.
2761         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2762         to determine whether to use \X'ps:...'.
2763         * tmac/troffrc: Set 0p register to 0.
2764         * tmac/tmac.ps: Set 0p register to 1.
2766         * groff/groff.cc: Support -X option. Give warning for -TXps and
2767         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2768         * tmac/troffrc: Support -r.X=1.
2770         * pic/troff.cc (troff_output::dot): Don't test
2771         zero_length_line_flag.
2773 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2775         * include/lib.h: Declare getopt() and friends unless
2776         STDLIB_H_DECLARES_GETOPT is defined.
2778         * doc/chars.tr: Delete.
2779         * man/groff_char.man: New file.
2781 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2783         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2784         user has changed register format.
2786 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2788         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2789         `postpro' command in DESC file.  Get spooler command from `print'
2790         command in DESC file.  Execute spooler command with /bin/sh.
2792         * groff/groff.cc: Split Unix-specific parts into...
2793         * groff/pipeline.c: New file.
2795         * LICENSE: Delete.
2796         * COPYING: New file.
2797         * all files: Update copyright notices.
2799         * Rearrange files.  Redo Makefiles.  Use autoconf.
2801 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2803         * troff/input.c (charinfo_to_node_list): Interpret character
2804         definition with escape_char of `\'.
2806 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2808         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2809         Define INT_DIGITS as big enough for 64-bit integer.
2810         * lib/strtol.c: Don't include lib.h.
2811         * lib/lib.h: Delete ifdef __cplusplus stuff.
2813 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2815         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2816         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2817         get DESC from current directory.
2819 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2821         * tbl/main.c (main): Always reset the line number when reading
2822         from stdin.
2824         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2825         table::define_bottom_macro, table::do_row, table::do_top): Round
2826         vertical spacing up to vertical resolution.
2828 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2830         * ps/ps.h (enum resource_type): Avoid comma at end of
2831         enumerator-list.
2832         * dvi/dvi.c (class dvi_printer): Likewise.
2833         * dvi/tfmtodit.c (gf::load): Likewise.
2834         * refer/label.y (struct expression): Likewise.
2835         * refer/refer.c (class label_processing_state): Likewise.
2836         * refer/indxbib.c (do_file): Likewise.
2837         * troff/troff.c (enum warning_type): Likewise.
2838         * tbl/main.c (process_data): Likewise.
2839         * troff/charinfo.h (class charinfo):
2841 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2843         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2845 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2847         * groff.c: Move to new groff subdirectory.
2848         * groff/Makefile: New file.
2849         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2851         * man/mdate.sh: Use ls -L if supported.
2853         * Consolidate all header files produced by gendef into lib/defs.h.
2854         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2855         Don't include path.h.
2856         * lib/Makefile (path.h): Don't generate.
2857         * troff/input.c: Include defs.h. Don't include config.h.
2858         * troff/Makefile (config.h): Don't generate.
2859         * refer/index.h: Don't include suffix.h.
2860         * refer/index.c: Include defs.h.
2861         * refer/indxbib.c: Include defs.h.
2862         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2863         defs.h.
2864         * refer/Makefile (suffix.h, path.h): Don't generate.
2865         * groff.c: Don't include config.h. Include defs.h.
2866         * Makefile (config.h): Don't generate.
2867         (lib/defs.h): Generate.
2868         (topclean): Remove lib/defs.h.
2870 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2872         * lib/malloc.c, lib/getpagesize.h: Deleted.
2873         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2874         related stuff.
2875         * lib/Makefile: Delete malloc-related stuff.
2876         * lib/new.c: Workaround COOKIE_BUG if necessary.
2878         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2879         needed header files directly.
2880         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2881         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2883 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2885         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2886         argument.
2887         * lib/font (font::load_desc, font::load): Don't split argument of
2888         unknown command.
2889         (font::handle_unknown_font_command): Change type.
2890         * ps/ps.c (ps_font::handle_unknown_font_command,
2891         handle_unknown_desc_command): Change type.
2892         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2894 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2896         * lib/font.h (font::handle_unknown_font_command): Add file and
2897         line arguments.
2898         * lib/font.c (font::handle_unknown_font_command):
2899         * ps/ps.c (ps_font::handle_unknown_font_command):
2900         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2901         lineno arguments.  Use _with_file_and_line functions for error
2902         reporting.
2904         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2905         data member.
2906         * lib/font.c (font::set_unknown_desc_command_handler): New
2907         function.
2908         (font::load_desc): For unknown commands, call
2909         unknown_desc_command_handler if not null.
2910         * lib/font.h (class font): Declare them.
2911         (FONT_COMMAND_HANDLER): New typedef.
2912         * ps/ps.c (handle_unknown_desc_command): New function.
2913         (main): Set bflag if we had a -b option. Call
2914         font::set_unknown_desc_command_handler.
2915         (broken.h): Don't include.
2916         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2917         submake 
2918         * ps/devps/Makefile: Add `broken' command to DESC file using
2919         BROKEN_SPOOLER_FLAGS.
2921         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2923         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2925         * macros/tmac.e (@R, @S): New macros.
2926         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2927         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2928         Declare $H, $[0-9], .. macros with @S.
2929         Declare |0, |1, |2, |3 strings with @S.
2931         * macros/tmac.e (@S): Rename to @U.
2933         * macros/tmac.e (@z): Define @b and bp as empty instead of
2934         deleting them,
2936         * macros/tmac.e (@m): Deleted.
2937         (@h): Don't call @m.
2938         (@z): Don't set @m trap.
2940         * macros/tmac.e ($h, $f): Define |z as empty string.
2942         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2943         (@q): Likewise.
2945         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2946         removing them.
2947         ()f): Likewise for * register.
2949         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2950         argument is missing, don't change $R.  Call sr with three
2951         arguments when initializing.
2953 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2955         * macros/tmac.e (sr): New macro.
2956         Initialize $r and $R using sr.
2958         * macros/tmac.e (,): Delete \*(#[.
2960         * troff/env.c (set_tabs): Read the tab type even if the position
2961         is bad.  Allow the position of the first tab stop to be negative.
2963 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2965         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2966         _POSIX_VERSION.
2967         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2968         rather than -DPATHCONF_MISSING.
2969         * Makefile: Get rid of PATHCONF_MISSING.
2971         * refer/map.c: New file.
2972         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2973         to map_len.
2974         * refer/Makefile: Handle map.c.
2975         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2977 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2979         * Makefile: RANLIB should be `true' if there is no ranlib.
2980         * lib/Makefile (libgroff.a): Simplify.
2981         * driver/Makefile (libdriver.a): Simplify.
2983         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2984         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2985         defined.
2987 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2989         * troff/env.c (compare_ranges): Declare as extern "C".
2991         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2993         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2995 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2997         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2998         but conditionalize use of \X based on \*(.T.
2999         (grops_output::*): Deleted.
3000         * pic/output.h: Delete declaration of make_grops_output.
3001         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3002         by default. -n sets it to 0.
3003         (usage): Corresponding changes.
3004         * groff.c (main): Don't pass -x or -p to pic.
3005         * groff.sh: Likewise.
3007         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3008         to be non-zero.
3010         * ps/devps/afmtodit: Change calculation of asc_boundary and
3011         desc_boundary.  Make these bounds inclusive.
3012         * ps/devps: Regenerate font files.
3014 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3016         * macros/tmac.latin1: New file.
3017         * macros/tmac.tty-char: Use tmac.latin1.
3018         (tmac.tty-tr): Deleted.
3019         * macros/Makefile: Install tmac.latin1.
3020         * macros/tmac.dvi: Use tmac.latin1.
3021         * macros/troffrc: Translate \[char160] onto no-break space here.
3022         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3024 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3026         * macros/tmac.Xps: Use `do' request.
3028         * macros/tmac.ps: Use `do' request.
3030         * macros/tmac.e (@C): Use `do' request.
3032         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3033         * macros/Makefile: Install tmac.X*.
3035         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3036         * tty/Makefile: Don't install tmac.tty*.
3037         * macros/Makefile: Install tmac.tty*.
3039         * dvi/tmac.dvi: Move to macros.
3040         * dvi/Makefile: Don't install tmac.dvi.
3041         * macros/Makefile: Install tmac.dvi.
3043         * ps/tmac.ps*: Move to macros.
3044         * ps/Makefile: Don't install tmac.ps*.
3045         * macros/Makefile: Install tmac.ps*.
3047         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3048         option.
3049         * macros/eqnrc: Set draw_lines parameter based on device.
3050         * groff.c: Don't pass -D flag to eqn.
3051         * groff.sh: Likewise.
3052         * eqn/main.c: Warn about use of -D.
3054         * troff/input.c (process_startup_file): New function.
3055         (main): Call process_startup_file().
3056         * macros/troffrc: New file.
3057         * macros/Makefile: Install troffrc.
3058         * groff.c (main): Don't pass extra -m option to troff. For a 
3059         pseudo device pass the name of the pseudo device to troff using
3060         -d.
3061         * groff.sh: Likewise.
3062         * groff.c (possible_command::prepend_arg): Deleted.
3064         * troff/input.c (do_request): New function.
3065         (init_input_requests): Bind "do" to do_request.
3067         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3068         load eqnrc from macro directory.
3069         * macros/eqnrc: New file.
3070         * macros/Makefile: Install eqnrc.
3071         * ps/devps/eqnchar: Deleted.
3072         * ps/devps/Makefile: Don't install eqnchar.
3073         * dvi/devdvi/eqnchar: Deleted.
3074         * dvi/devdvi/Makefile: Don't install eqnchar.
3075         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3076         variable optM.
3078         * lib/device.[ch]: New files.
3079         * lib/font.h (font::set_device_name, font::get_device_name):
3080         Deleted.
3081         * lib/fontfile.c: Use device.h.
3082         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3083         * troff/input.c: Delete definition of `device'.
3084         (main): Don't initialize device.
3085         * troff/troff.h: Include device.h rather than declaring device.
3086         * troff/Makefile: No need to handle DEVICE.
3087         * driver/input.c: Include device.h. Don't use
3088         font::{set,get}_device_name.
3089         * groff.c, Makefile: Rename device.h to config.h.
3090         * groff.c: Use library device variable.
3091         * eqn/main.c: Use library device variable.
3092         * eqn/Makefile: No need to handle DEVICE.
3094         * lib/searchpath.[ch]: New files.
3095         * lib/Makefile: Handle searchpath.[ch].
3096         * troff/input.c (open_file, init_dirs): Deleted.
3097         (macro_dirs): Deleted.
3098         (open_mac_file, macro_source): Use class search_path.
3099         (add_string, struct string_list): Move definition.
3100         (main): Change -M option to use macro_path. Delete call to
3101         init_dirs().
3102         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3103         Rewrite to use class search_path.
3104         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3105         * lib/Makefile: fontfile.c depends on searchpath.h.
3106         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3107         MACROPATH.
3108         * lib/macropath.[ch]: New files.
3109         * troff/Makefile: No need to handle MACROPATH.
3111         * troff/input.c: Delete DUMP code.
3112         * lib/fontfile.c, lib/font.h: Delete
3113         font::forget_command_line_font_dirs.
3115         * troff/input.c (push_token): New function.
3116         (handle_first_page_transition): Use push_token().
3117         (process_input_stack): Change handling of a space at the beginning
3118         of the line.
3120 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3122         * troff/input.c (font_dirs): Delete unused variable.
3124         * eqn/lex.c (do_set): Correct error messages.
3126 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3128         * troff/input.c (do_define_string): Allow the string name to be
3129         followed immediately by a tab.
3130         (define_character): Likewise.
3132 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3134         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3135         be negative.
3137         * troff/input.c (input_iterator::is_file): New virtual function.
3138         (file_iterator::is_file): New function.
3139         (input_stack::end_file): New function.
3140         (input_stack::next_file): Handle the situation where there is no
3141         file on the input stack correctly.  Avoid making two passes over
3142         the input stack.
3143         (next_file): Make the filename optional; in this case call
3144         input_stack::end_file().
3146 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3148         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3149         produce a real _ charater when the current font is CW and _
3150         otherwise.
3152         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3153         expression to work around gcc 2.2 bug.
3155 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3157         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3159         * troff/env.c (environment::add_padding): New function.
3160         (environment::add_char): Use add_padding().
3161         (environment::space): Likewise.
3162         (environment::wrap_up_field): Add some padding if there is none
3163         and there's no current tab.
3164         * troff/env.h: Declare environment::add_padding.
3166 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3168         * pic/pic.y: undef fmod and rand before declaring them.
3170 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3172         * troff/input.c (main): If the DESC file specifies a font name of
3173         0, then leave the corresponding font position empty.
3175         * nroff.sh: New file.
3176         * Makefile (install.nobin): Install nroff.sh.
3178         * tty/devlatin1/R.proto: Add ao as synonym for de.
3179         * tty/tmac.tty-char: Define ao as o.
3181         * tty/dev{ascii,latin1}/R.proto: Add aq.
3182         * tty/tmac.tty-char: Delete definition of aq.
3184 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3186         * troff/input.c (init_charset_table): Don't translate 0240.
3187         * ps/tmac.ps: Translate char160 to space.
3188         * dvi/tmac.dvi: Likewise.
3189         * tty/tmac.tty: Likewise.
3191 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3193         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3195         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3196         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3197         \(oe, \(r?, \(r!.
3199         * tty/tmac.tty-char: Add \(ah.
3201         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3202         No need to define \(FM and \(!/. Conditionalize all character
3203         definitions.
3205         * ps/devps/lgreekmap: Add +h, +f, +p.
3207         * ps/tmac.psnew: New file.
3208         * ps/Makefile: Install tmac.psnew.
3210         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3211         character definitions in compatible mode.
3213         * troff/input.c (remove_character): New function.
3214         (init_input_requests): Bind remove_character to "rchar".
3216         * ps/tmac.psold: New file.
3217         * ps/Makefile: Install tmac.psold.
3218         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3219         characters into tmac.psold.  Make these definitions unconditional.
3221         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3223         * ps/tmac.ps: Don't define \('c and \('C.
3225         * ps/devps/textmap: Move Greek characters to...
3226         * ps/devps/symbolchars:
3228 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3230         * ps/devps/text.enc: Add quotesingle.
3231         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3232         * tty/tmac.tty-char: Likewise.
3233         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3234         * dvi/devdvi/texi.map: Add Fn.
3235         * dvi/devdvi/msam.map: Add lz.
3236         * dvi/tmac.dvi: Handle Bq, bq, aq.
3238         * pic/lex.c (get_token): Recognize 'th.
3239         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3241 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3243         * ps/devps/textmap: Move di, mu, +- to...
3244         * ps/devps/symbolchars:
3246         * macros/tmac.s (@XS): Don't call par@reset or fi.
3247         (XA): Call LP. Turn off adjustment. Reduce line length.
3249         * macros/tmac.s: Initially alias XS to LP.
3250         (XS): Rename to @XS.
3251         (cov*ab-init): Alias XS to @XS.
3253 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3255         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3256         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3257         (token::is_size, token::changes_env): Deleted.
3258         * troff/number.c (parse_term): No need to process \s explicitly.
3259         Call tok.next() only after scale indicator has been processed.
3260         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3261         \f etc explicitly.
3262         (token::next): Handle \s, \f, \S, \H immediately rather than
3263         returning them as tokens.
3264         (token::operator==, token::description, token::add_to_node_list,
3265         token::process): Remove handling of deleted tokens.
3267         * troff/env.c (environment::add_char): When adding padding
3268         indicator character, call start_line() if necessary.
3270 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3272         * ps/devps/afmtodit: Don't output 0 kerns.
3274         * ps/devps/afmtodit: Remove directory from name of encoding in
3275         font description file.
3277         * ps/devps/afmtodit: Improve error messages.
3279         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3281         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3282         * ps/devps/FontMakefile: Deleted.
3283         * ps/devps/afmname: New file.
3285         * ps/devps/symbol.sed: New file.
3286         * ps/devps/symbol.diff: Deleted.
3287         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3288         Generate zapfdr.afm from zapfd.afm.
3290         * tty/tmac.tty (tty-char): Prefix definition with ".
3292         * macros/tmac.an (TP): Don't start a diversion if one has already
3293         been started.
3295         * tty/tmac.tty-char: Add Latin-1 characters.
3297         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3299 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3301         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3302         Move declaration of struct horizontal_span.
3304         * tbl/table.c (table::table): Initialize span_list.
3305         (table::~table): Delete span_list.
3307         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3309         * ps/devps/Makefile: Avoid dependency on GNU make.
3311         * ps/tmac.ps: Check that character does not already exist before
3312         defining it.
3314         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3315         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3316         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3317         files.
3319         * tty/tmac.tty-char: New file.
3320         * tty/Makefile: Install tmac.tty-char.
3321         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3322         tmac.tty-char.
3324         * tty/tmac.tty: Fix definition of \(34.
3326         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3327         bracket-drawing characters onto |. Add *o.
3329         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3330         only if current_field.
3332         * troff/dictionary.c (dictionary::lookup): Free old_table after
3333         rehashing. 
3335 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3337         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3338         whose glyphs are identical to glyphs of some Roman character.
3340         * tty/devlatin1/R.proto (bu): Deleted.
3341         * tty/devascii/R.proto (bu): Deleted.
3342         * tty/tmac.tty: Add definition of \(bu.
3344         * eqn/main.c (do_file): Pass FILE as argument.
3345         (main): Automatically load eqnchar.  New options -F and -n.
3346         Pass do_file an opened FILE.
3347         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3348         No need to include font.h.
3349         * groff.sh: Likewise.  Don't need to use - for standard input.
3350         Prefix files with -- if first file starts with -.
3352         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3354         * troff/env.c (environment::possibly_break_line): Don't set line
3355         to 0 across call to output_line().  Don't call output_line() until
3356         after discarding nodes after break.
3358 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3360         * request.h (macro::empty): Declare it.
3361         * input.c (macro::empty): New method.
3362         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3363         macro is empty.
3365 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3367         * troff/env.c (environment::start_field): Decrement space_total
3368         when a space is frozen.
3370 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3372         * macros/tmac.an (R): Delete macro.
3374         * troff/input.c (get_copy, token::next): Support \# (like \" but
3375         newline is ignored).
3377         * troff/input.c (token::next): Fix error message in 'Y' case.
3379 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3381         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3382         a delimiter name.
3384 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3386         * c++test.c: Include <osfcn.h>.
3388         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3389         <errno.h> doesn't.
3391 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3393         * tbl/table.c (table::divide_span): Don't count column separation
3394         if expand was specified.
3396         * tbl/main.c (process_format): Don't ignore width specs in
3397         continued format.  Give warning for changing equal widths or
3398         column separation in continued format.
3399         (process_data): Set column separation, minimum width, equal
3400         columns at end of table.
3402 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3404         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3405         node::add_discretionary_hyphen): Use soft_hyphen_char.
3406         (set_soft_hyphen_char): New function.
3407         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3409         * Makefile (c++tested): Give more helpful message if test fails.
3411 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3413         * troff/input.c (init_charset_table): Translate 0240 to
3414         an unbreakable space.
3416         * troff/token.h (token::hyphen_indicator): New function.
3417         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3418         translation.
3419         * troff/input.c (translate): Allow translation to \%.
3420         * troff/node.c (node::add_char): Handle
3421         TRANSLATE_HYPHEN_INDICATOR.     
3422         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3424         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3425         for \(hy.
3427         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3429 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3431         * groff.c (run_commands): If the last command gets a SIGPIPE send
3432         a SIGPIPE to all children than haven't yet terminated.  When
3433         command terminates, set pid field to -1.
3435 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3437         * groff.c (main): Pass an appropriate -filename option to gxditview.
3439 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3441         * Makefile.bd (install): Remove existing program before copying.
3443         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3444         programs which have Unix counterparts to be installed with
3445         user-specified prefix.
3447         * troff/input.c (exit_troff): Don't check if exit_started.
3448         (exit_request): Don't call exit_troff if exit_started.
3450         * Makefile.bd (install.mm): Rename to install.dwbmm.
3452 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3454         * driver/input.c (do_file): Add missing break for '#' case.
3456 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3458         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3459         then add the boundaries back.
3461         * troff/input.c (exit_troff): Return immediately if already
3462         exiting.
3464         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3465         end macro.
3466         (pg*end-page): If the text has ended and there are no more
3467         footnotes or keeps, exit.
3469         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3471         * troff/input.c (init_charset_table): Make \(rq transparent by
3472         default.
3474         * macros/tmac.an: Define lq and rq strings.
3476         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3478 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3480         * troff/env.c (environment::final_break): New function.
3481         (environment::newline): Set prev_line_interrupted to 2 if
3482         exit_started.
3483         * troff/env.h: Declare environment::final_break.
3484         * troff/input.c (exit_troff): Call environment::final_break()
3485         instead of environment::do_break().
3487         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3488         doesn't already exist.
3489         * macros/man.local: New file.
3490         * macros/tmac.an: Load man.local.
3491         * macros/man.ultrix: New file.
3493 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3495         * troff/input.c (exit_groff): Rename to...
3496         (exit_troff): New function.
3498         * troff/div.c (exit_started, done_end_macro,
3499         seen_last_page_ejector): New global variables.
3500         (began_page_in_end_macro): New static variable.
3501         (exit_flag): Deleted.
3502         (top_level_diversion::top_level_diversion): Initialize
3503         last_page_count.
3504         (top_level_diversion): More elaborate test for whether
3505         cleanup_and_exit() should be called.
3506         Set began_page_in_end_macro if the end macro isn't yet finished.
3507         * troff/div.h (top_level_diversion::last_page_count): New data
3508         member.
3509         (top_level_diversion::set_last_page): New function.
3510         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3511         * troff/env.c (do_break): Zero prev_line_interrupted.
3512         * troff/input.c (exit_flag): Delete declaration.
3513         (LAST_PAGE_EJECTOR): New magic cookie.
3514         (token::next): Handle LAST_PAGE_EJECTOR.
3515         (exit_groff): Set exit_started and done_end_macro instead of
3516         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3517         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3518         another ejection after setting seen_last_page_ejector.
3520 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3522         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3524         * macros/tmac.e (TH): Make sure there's room for the initial
3525         header.
3527         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3528         Set FVS in points rather than units.
3530 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3532         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3533         position of empty slots.
3535 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3537         * ps/devps/S: Fix height and depth of parenrightex.
3538         * ps/devps/symbol.diff: Regenerate.
3540 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3542         * tmac.e (u): Do underlining as in -mgs.
3544 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3546         * tty/tty.c (tty_printer::end_page): If overstriking is
3547         suppressed, still turn overstruck horizontal and vertical lines
3548         into +.
3550         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3551         2.1.
3553         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3555 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3557         * Version 1.05 released.
3559 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3561         * tty/tty.c: Instead of keeping an array of glyphs and then
3562         sorting it, keep a ordered linked list of glyphs for each line.
3564         * driver/driver.h: Include stddef.h.
3566         * tty/tty.c (compare_glyph):
3567         * refer/refer.c (rcompare):
3568         * troff/env.c (compare_ranges): Arguments of qsort comparison
3569         function should be const void *.
3571         * troff/number.c (parse_term):
3572         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3573         switch statement.
3575         * refer/label.y (consider_authors): Don't access variables
3576         constructed under a condition outside that condition: put braces
3577         round for statement containing declaration; redeclare use of same
3578         variable later.
3580         * pic/pic.y (text_expr): Delete production that allows
3581         parenthesised text_expr.
3582         (expr): Allow a conditional_expr to appear in parentheses.
3583         (conditional_expr): Rename to any_expr.
3585         * mm: Install new version 1.01 from jh.
3587         * lib/font.c (font::get_width): Cache scaled widths.
3588         (font::font): Initialize widths_cache.
3589         (font::~font): Destroy widths_cache.
3590         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3592 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3594         * c++test.c, c++test.ref: New files.
3595         * Makefile: Check that the C++ compiler works.
3597         * ps/tmac.pspic (PSPIC): Do a break.
3599         * ps/tmac.ps: Move definition of PSPIC into...
3600         * ps/tmac.pspic: New file.
3601         (PSPIC): Draw box around picture, but make it invisible to grops.
3602         * ps/tmac.ps: Load tmac.pspic.
3603         * ps/Makefile: Install tmac.pspic.
3605 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3607         * lib/font.c (scale_round): If n is negative,
3608         subtract .5 before truncating floating point result.
3610         * lib/fontfile.c: Include <errno.h>.
3612 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3614         * driver/input.c (get_char): Inline. Don't update current_lineno.
3615         Change callers to up date current_lineno if necessary.
3616         Use get_char() instead of getc(current_file).
3618 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3620         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3622 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3624         * tty/tty.c (tmac.tty): Define \(rg as (R).
3626 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3628         * lib/lib.h: New define a_delete.
3629         * Use a_delete instead of delete when deleting an array of objects
3630         without destructors.
3632         * lib/lib.h: Rename adelete to ad_delete.
3633         * Change uses of adelete.
3635 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3637         * eqn/eqn.y: Include lib.h.
3639         * troff/node.c (grow_font_table): Delete old_font_table.
3641         * mm: Install new version from jh.
3643 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3645         * tbl/table.h (format_type): Make global instead of local to class
3646         entry_format.  Prefix enumerators with FORMAT_.
3647         * tbl/table.c, tbl/main.c: Corresponding changes.
3648         * refer/token.h (token_type): Make global.  Prefix enumerators
3649         with TOKEN_.
3650         * refer/token.[ch]: Corresponding changes.
3651         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3653         * troff/div.c (node::set_vertical_size): Don't name argument.
3655 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3657         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3658         * lib/lib.h: Define adelete accordingly.
3659         * pic/object.c (graphic_object::graphic_object):
3660         * tbl/main.c (format::~format):
3661         * tbl/table.c (table::~table):
3662         * refer/ref.c (reference::~reference, reference::merge,
3663         reference::insert_field, reference::delete_field): Use adelete.
3665         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3666         * refer/token.h:
3667         * tbl/table.h: Corresponding changes.
3669         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3670         Ensure total_angle is positive.
3672 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3674         * refer/ref.c (reference::merge, reference::insert_field,
3675         reference::delete_field): Avoid delete[0].
3677         * refer/token.c (init_special_chars): Move calls to cmupper
3678         outside calls to init_two_char_letter to work around bug in gcc
3679         2.0.
3681 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3683         * lib/new.c (operator new): Use __builtin_new for g++.
3685         * pic/object.c (graphic_object::~graphic_object):  Don't use
3686         delete [] on 0.
3688         * pic/object.c (output::compute_scale): Initialize max_width and
3689         max_height.
3691 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3693         * troff/input.c (write_request): Call fflush.
3695         * troff/node.h (class composite_node): Move declaration to node.c
3696         * troff/input.c (charinfo_to_node): Rename to ...
3697         (charinfo_to_node_list): Return node list rather than composite
3698         node.
3699         * troff/node.c (make_composite_node): New function.
3700         (make_node, add_char): Call make_composite_node instead of
3701         charinfo_to_node.
3702         (class composite_node): Add a tfont * member.  Delete font_size
3703         member.
3704         (composite_node::composite_node, composite_node::copy,
3705         composite_node::size): Corresponding changes.
3706         (composite_node::tprint): Provide constant spacing, emboldening
3707         and track kerning as specified in tfont.
3708         (composite_node::width): Change width calculation accordingly.
3709         * troff/env.h (environment::composite): New member.
3710         (environment::is_composite, environment::set_composite): New
3711         functions.
3712         * troff/env.c (environment::environment): Initialize composite.
3713         * troff/input.c (charinfo_to_node): Call
3714         environment::set_composite.
3715         * troff/node.c (make_composite_node, make_glyph_node): Use the
3716         plain version of the tfont if the environment is composite.
3718         * troff/node.c (font_info::get_space_width): Additional argument
3719         giving space_size.  Handle constant space correctly. Scale by
3720         space_size unless constant spaced.
3721         (env_sentence_space_width): New function.
3722         * troff/node.h: Declare it.
3723         * troff/env.h (environment::get_space_size,
3724         environment::get_sentence_space_size,
3725         environment::get_narrow_space_width,
3726         environment::get_half_narrow_space_width): Make inline.
3727         (environment::get_space_width): Make inline.  Just call
3728         env_space_width.
3729         * troff/env.c: Delete definitions for funtions made inline.
3730         (environment::space_newline, environment::space): Use
3731         env_sentence_space_width(). Don't scale by space_size.
3732         * troff/node.h: Move declarations of env*space_width() functions
3733         into env.h.
3735 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3737         * macros/tmac.s (PS): Don't try to set negative indent.
3739 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3741         * pic/pic.y: Fix min function.
3743 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3745         * man/mdate.sh: Clear LANGUAGE.
3747 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3749         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3750         * pic/lex.c: New COMMAND keyword.
3751         * pic/pic.y (print_args, print_arg): New rules.
3752         (placeless_element): Use print_args for PRINT.
3753         New COMMAND element.
3755 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3757         * troff/input.c (terminal): Handle missing argument correctly.
3759         * pic/pic.y (text_expr): New rule.
3761         * pic/pic.y: Implement := operator.
3763 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3765         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3766         mdoc.
3768 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3770         * ps/devps/dingbatsrmap: Include this in the distribution.
3772         * macros/tmac.doc: Replace with new version from 2nd Networking
3773         Release. Fix loading of doc-* files.
3774         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3775         * macros/tmac.doc.old: New file.  Apply fixes that had been
3776         applied to old tmac.doc.
3777         * macros/tmac.andoc: Check that we're running under groff.
3778         * macros/Makefile: Rework.
3780 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3782         * tbl/table.h (format_type): 
3783         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3784         typedef to make these types visible at file scope.
3785         * Makefile: Add NESTED_TYPES configuration option.
3787         * troff/div.c (mark): At the top level use the value of
3788         nl_reg_contents rather than the current vertical position.
3790 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3792         * tty/tty.c: Implement \D for horizontal or vertical lines.
3793         (tty_printer::set_char): Use vec_used+2 as serial number.
3794         Don't allow size of vector to exceed USHRT_MAX-2.
3795         Split off part into...
3796         (tty_printer::add_char): New function.
3797         (tty_printer::draw): New function.
3798         (compare_glyph): Handle equal serial numbers.
3799         (tty_printer::end_page): Handle overstruck characters from \D.
3800         (main, usage): Implement -d option.
3802 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3804         * tbl/main.c (process_format):
3805         * eqn/text.c (split_text):
3806         * troff/input.c (token::next): Use inner block for declarations
3807         with initializers in switch statement.
3809 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3811         * pic/common.c (common_output::dash_line): Cope with zero-length
3812         lines.
3814 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3816         * Version 1.04 released.
3818 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3820         * macros/tmac.an (TH): Define a macro an-init to define variables
3821         based on command line arguments.
3822         (an-header): Call it.
3824 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3826         * Makefile (install.mm): Rename to install.dwbmm.
3828         * Makefile: Integrate mm.
3829         * mm: New directory.
3831 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3833         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3834         <sys/types.h>.
3836         * pic/troff.c (troff_output::simple_spline,
3837         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3838         shadowing parameter.
3840         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3842         * lib/ptable.h: Add explicit casts when converting from unsigned
3843         long to unsigned.
3845         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3846         * dvi/devdvi/Makefile: Install SA, SB.
3848         * refer/indxbib.c: Add declaration of mktemp.
3850         * refer/lookbib.c: Add declaration of isatty.
3852 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3854         * pic/lex.c (interpolate_macro_with_args):  While collecting
3855         arguments, keep track of whether we're in a string.
3857 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3859         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3860         down with \v, so as to avoid problems with top of page trap
3861         setting no space mode.
3863 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3865         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3867 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3869         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3870         Improve error message.
3872 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3874         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3875         printf("%03o");
3877 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3879         * groff.c (possible_command::execp): Always use _exit() after a
3880         failed exec.
3882         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3883         NO_SYS_WAIT_H   configuration options.
3884         * groff.c: Use these options.  Use POSIX-style macros to extract
3885         fields from the status returned by wait().
3887 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3889         * tbl/table.c (table::compute_separation_factor): Allow the
3890         separation factor to drop to 0.
3892 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3894         * refer/search.c: Include <errno.h>.
3896 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3898         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3900         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3901         C++. 
3903         * pic/lex.c (input_stack::bol): Move definition out of class body.
3905         * pic/main.c: On MSDOS munge argv[0].
3907         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3909         * lib/ptable.c (hash_string): Use unsigned long rather than
3910         unsigned.
3911         (next_ptable_size): Use unsigned rather than int.  Give an error
3912         message if we've hit the largest table size.
3913         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3914         table size.
3916         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3917         flags as const unisgned long rather than as enums.
3919         * pic/output.c: Deleted.
3921         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3923         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3924         Add additional argument.
3925         (line_entry::note_double_vrule_on_{left,right}): Set value of
3926         douvle_vrule_on_{right,left} flag according to argument.
3927         (simple_line_entry::simple_print,
3928         simple_line_entry::double_line_print): If adjacent to double vrule
3929         on a corner extend rather than shorten the rule by half the double
3930         vrule sep.
3932         * troff/number.c (parse_term): In checking for overflow, handle the
3933         case where the current horizontal position is negative.
3935 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3937         * pic/object.c (draw_arrow): Check for object having zero length.
3939 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3941         * eqn/main.c (do_file): Split off inline equation handling into...
3942         (inline_equation): New function.  Search for starting delimiter
3943         using...
3944         (delim_search): New function. Don't recognize a delimiter that
3945         occurs in the name of an escape sequence, number register, string
3946         etc.
3948 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3950         * eqn/delim.c (delim_box::compute_metrics): Don't call
3951         define_extensible_string if left is 0.
3952         (delim_box::output):  Don't print the left delimiter if left is 0.
3953         (delim_box::debug_print): Check for left == 0 before calling printf.
3955 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3957         * troff/Makefile (majorminor.c): Include only digits in
3958         minor_version.
3960 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3962         * refer/dirnamemax.c: new file.
3963         * refer/genlimits.c: Deleted.
3964         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3965         Don't check path length.
3966         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3967         * Makefile: Add PATHCONF_MISSING option.
3969         * refer/indxbib.c (get_cwd): New function.
3970         (main): Use get_cwd().
3971         * lib/getcwd.c: New file.
3972         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3973         GETCWD in SUBFLAGS.
3974         * lib/Makefile: Compile getcwd.o.
3976         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3977         userdict.
3979         * refer/indxbib.c (main): Check success of mktemp.
3981         * lib/tmpfile.c: New file.
3982         * lib/Makefile: Add tmpfile.c.
3983         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3984         * ps/ps.h: Delete declaration of mktemp().
3985         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3986         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3987         * driver/driver.h: No need now to include errno.h.
3989         * everywhere: Set errno to 0 before calling fopen().
3991         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3992         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3993         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3995 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3997         * troff/env.h (translate_space_to_dummy): Declare it.
3998         * troff/env.c (environment::space_newline, environment::space):
3999         If translate_space_to_dummy is set then make the width of spaces 0.
4000         * troff/input.c (translate): If the second character of a
4001         translation is a space, translate to unbreakable space.  If the
4002         first character is a space, set or clear translate_space_to_dummy
4003         according to whether the second character is \&.  Weird!
4005 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4007         * groff.c (run_commands): Don't use non-zero exit code because a
4008         command gets SIGPIPE.
4010         * groff.c, groff.sh: Use -mXps with -TXps.
4012         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4013         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4014         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4015         (ps_printer::special): New specials invis and endinvis.
4016         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4017         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4018         (ps_printer::end_page): Check that invis_count == 0.
4019         (ps_printer::invis_count): New member.
4020         (ps_printer::ps_printer): Initialize invis_count to 0.
4022         * troff/env.c (environment::hyphenate_line): Hyphenation
4023         indicator at beginning of word inhibits splitting after -, \(em
4024         etc.
4026         * pic/pic.y (element): Allow another element to follow } without
4027         any intervening separator.
4029 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4031         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4033 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4035         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4036         declaration of wait() in header files.
4037         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4039         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4041         * lib/lib.h: Declare return type of strerror as char *.
4043         * man/Makefile: Add g flag to sed substitutions.
4044         * Makefile (shgroff, bindist): Likewise.
4046 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4048         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4049         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4050         userdict.
4052 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4054         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4055         userdict.
4057 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4059         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4060         group.
4062 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4064         * troff/input.c (define_number_reg):  If currently undefined,
4065         don't define it if the argument is an invalid expression.
4067         * Makefile: Ignore return value of `if' commands without `else'
4068         parts.
4070         * Makefile: Split up CPPDEFINES into a series of separate
4071         configuration options.
4073         * troff/input.c (init_registers): Use time_t instead of long
4074         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4075         than passing pointer.
4076         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4078         * lib/Makefile (fontpath.h): Use gendef.
4080 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4082         * troff/input.c (input_iterator::shift): Delete argument name.
4083         * troff/node.c (suppress_output_file::really_begin_page,
4084         suppress_output_file::really_transparent_char, node::ascii_print,
4085         node::tprint): Delete names of unused arguments.
4087 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4089         * refer/label.y (string):  Pass $4 to command_error.
4091 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4093         * Version 1.03 released.
4095 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4097         * Makefile: Pass definition of SHELL in SUBFLAGS.
4099         * gendef: New file.
4100         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4101         ps/Makefile: Use gendef to construct header files that are
4102         constructed from the Makefile.
4104         * macros/Makefile: make all should build stripped version of tmac.e.
4106         * refer/Makefile (clean): Remove y.output.
4108 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4110         * ps/pfbtops.c (main): Add -v option which prints out a version
4111         number.
4112         * ps/Makefile (pfbtops): Link with libgroff.a.
4114 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4116         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4117         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4119         * refer/lkbib.c (main): Always terminate reference with blank
4120         line.
4121         * refer/lookbib.c (main): Likewise.
4123         * refer/linear.c (file_buffer::load): Check that the file is not a
4124         binary file.
4126         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4127         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4128         Delete second inclusion of <sys/param.h>.
4130 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4132         * troff/token.h (token::special): Deleted.
4134         * tbl/main.c (process_format): Rework so that opt->tab_char is
4135         recognized only when appropriate.
4137         * ps/Makefile (clean): Remove pfbtops.
4139 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4141         * lib/font.c (text_file::next): Don't return if we have got a
4142         blank line.
4144 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4146         * refer/refer.c (store_reference): Get hash code from old_table[i]
4147         when rehashing the table.
4149 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4151         * eqn/box.c (box::top_level): Save size and prev size using \R and
4152         restore it afterwards. Set the size to the size at the beginning
4153         of the line.
4154         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4155         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4157         * refer/Makefile (limits.h): Use ./genlimits.
4159 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4161         * refer/index.c: Delete declarations of stat() and fstat().
4163 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4165         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4167 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4169         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4171 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4173         * troff/input.c (token::get_char): Handle \e.
4175         * refer/linear.c: Delete declarations of fstat() and stat().
4177 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4179         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4180         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4182 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4184         * troff/input.c (do_define_macro): Improve error handling for end
4185         of file while defining macro.
4187 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4189         * eqn/box.h: Fix declaration of set_gsize.
4190         * eqn/box.c (set_gsize): Make argument const char *.
4191         (gsize): Declare as char *.
4192         * eqn/main.c (main): Don't convert gsize to int.
4193         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4195         * Version 1.02 released.
4197 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4199         * macros/tmac.andoc: New file.
4200         * macros/Makefile: Install tmac.andoc.
4202         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4203         operator new and delete on OP_DELETE_BROKEN not being defined.
4204         * Makefile: Mention OP_DELETE_BROKEN.
4206 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4208         * Makefile (bindist): Pass SUBFLAGS.
4210 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4212         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4214         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4215         parameter.
4217         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4219         * ps/ps.h, ps/psrm.c: Make comment_table and
4220         header_comment_table local to resource_manager::process_file.
4222         * groff.sh: With -TXps pass -printCommand option to gxditview.
4224         * groff.c (possible_command::print): Implement using
4225         append_arg_to_string.
4227         * xditview: Merge in new implementation with own ChangeLog.
4229 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4231         * groff.c (main): Implement PRINT_OPTION.
4232         (append_arg_to_string): New command.
4233         (device_table): Set PRINT_OPTION flag for Xps.
4235 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4237         * troff/groff.h: Rename to troff.h.
4239         * pic/lex.c (lookup_keyword, docmp): New functions.
4240         (get_token): Use new lookup_keyword.
4241         Don't include key.h.
4242         * pic/key.[ch], pic/pic.gperf: Deleted.
4243         * pic/Makefile: Remove gperf stuff.
4245         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4246         into output.h.
4247         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4249         * troff/Makefile, troff/node.c: Move definition of
4250         STORE_WIDTH into node.c.
4252         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4254 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4256         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4257         dvi/devdvi/texb.map: Add lq and rq.
4258         dvi/devdvi: Regenerate fonts.
4259         * ps/devps/textmap: Add lq and rq.
4260         * ps/devps: Regenerate fonts.
4261         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4262         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4264         * pic/object.c (position_rectangle): When checking radius
4265         cope with possiblity that width or height is negative.
4266         (box_object::box_object): Have separate xrad and yrad with
4267         signs matching signs of dim components.
4268         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4269         (box_object::print): With rounded boxes use absolute values
4270         for dim and rad arguments.
4272         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4273         in fontpath.h.
4275         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4277         * various files: Add explicit destructors to keep Saber CC +d
4278         happy.
4280 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4282         * eqn/box.c (box::top_level): Restore fonts correctly after
4283         font changes in line containing inline equation.  Also
4284         restore previous font as well as current font.
4285         * eqn/pbox.h: Define necessary string and register names.
4287         * troff/input.c (token::next): Case 'R' calls do_register.
4288         (do_register): New function.
4290 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4292         * groff.c, groff.sh: Support Xps device.  Allow each device
4293         to have a pseudo_name and a real_name.
4295         * groff.c (run_commands): Don't print `Broken pipe' messages.
4297         * ps/pfbtops.c: New file.
4298         * ps/Makefile: Add pfbtops.
4300         * troff/number.c (parse_term): Improved error message.
4302 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4304         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4306         * Makefile: Integrate refer.
4307         * refer: New directory.
4308         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4309         man/lkbib.man: New files.
4310         * man/Makefile: Support refer man pages.
4312         * lib/lib.h: Declare is_prime.
4313         * lib/prime.c: New file.
4315         * troff/input.c (macro_source): New function.
4316         (init_input_requests): Bind "mso" to macro_source.
4318         * troff/env.c (environment::possibly_break_line): Maintain
4319         pointer to pointer to node to be split in ndp so as to avoid
4320         using address of freed node.
4322         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4323         pointer to first node to be hyphenated in startp so as to
4324         avoid using address of freed node.
4326         * troff/env.c (class trie, class hyphen_trie): Make the
4327         elements of the trie be of type char not unsigned char.
4328         Declare arguments to be const char* instead of unsigned char *.
4329         
4330         * troff/env.c (hyphenate): Initialize hbuf[0].
4332         * troff/input.c (set_string): Declare p to be char * and cast
4333         *p to unsigned char when necessary.
4335         * troff/input.c (do_define_macro): Declare s to be const
4336         char*. Cast element to unisgned char when necessary, Declare
4337         d to be an int.  Handle EOF better.
4339         * troff/Makefile, troff/input.c: Different scheme for passing
4340         definitions of MACROPATH, HYPHENFILE and DEVICE.
4342 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4344         * tty/devascii/R.proto: Delete entry for em.
4345         * tty/devlatin1/R.proto: Likewise.
4347 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4349         * troff/input.c (translate): Stop when we get a space. Treat eof
4350         like newline.
4352         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4354 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4356         * tbl/main.c (process_format): A font name following a `f'
4357         modifier that starts with a digit can be only one character long.
4358         Also deal with EOF on the second character of the font name.
4360 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4362         * troff/input.c (token::next): Turn \~ into an
4363         unbreakable_space_node.
4364         * troff/node.c (unbreakable_space_node): New class.
4365         * troff/node.h: Declare it.
4367 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4369         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4370         it's >= 0, before outputting it as a single byte.
4372 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4374         * lib/font.c: Make font_char_metric::code an int.
4375         (font::get_code): Change return type to int.
4376         (font::load): Allow code to be arbitrary integer.
4377         * lib/font.h (font::get_code): Change return type to int.
4378         (font::number_to_index): Change argument type to int.
4379         * troff/input.c (token::next):  In case 'N', allow any value.
4380         Store value in token::val.
4381         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4382         (token::get_char, token::add_to_node_list, token::process): Get
4383         number from val.
4384         (charinfo::set_number): Change argument to int.
4385         (charinfo::get_number):  Require that NUMBERED flag be set.
4386         (get_charinfo_by_number): Store numbered characters not between 0
4387         and 255 in a dictionary.
4388         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4389         to int.
4390         (charinfo::number): Change type to int.
4391         (charinfo::set_number): Change type of set_number to int.
4392         * troff/node.c (troff_output_file::put_char_width,
4393         troff_output_file::put_char): Test whether character is numbered
4394         using charinfo::numbered().
4395         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4396         values of num.
4397         * lib/nametoindex.c: New implementation to cope with arbitrary
4398         number characters.
4400         * troff/input.c (token::operator==): Test val for
4401         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4402         TOKEN_SIZE.
4404         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4405         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4407 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4409         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4410         variable.
4412         * all Makefiles: rm targets of cp and >.
4414         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4415         it.
4417         * eqn/lex.c (def_table): Add dollar.
4419 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4421         * troff/input.c (do_width): Push back newline before closing delim
4422         like do_bracket.
4424 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4426         * groff.c (possible_command::prepend_arg): New function.
4427         (main): Prepend device -m option.
4428         * groff.sh: Put device -m options before command-line options.
4430 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4432         * macros/tmac.an (IP): Quote argument to TP.
4434         * ps/ps.c (main): New option -b, which sets...
4435         (broken_flags): New variable.
4436         (ps_printer::~ps_printer): Incorporate the setup section in the
4437         prolog if (broken_flags & NO_SETUP_SECTION).
4438         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4439         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4440         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4441         ps_printer::print_needed_font_comment,
4442         ps_printer::print_supplied_font_comment,
4443         ps_printer::print_include_font_comments,
4444         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4445         ps_printer::read_download_file, read_document_fonts, add_font,
4446         skip_line, parse_fonts_arg, document_font::document_font,
4447         document_font::~document_font, document_font::download,
4448         ps_output::include_file):  Deleted.
4449         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4450         rather than %!PS-Adobe-2.0.  Make calls to
4451         resource_manager::need_font for each font that we used. Replace
4452         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4453         print_supplied_font_comment, print_needed_font_comment by call to
4454         resource_manager::print_header_comments. Output %%Orientation
4455         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4456         Don't output the prolog directly.  Instead call
4457         resource_manager::output_prolog.  Only define #copies when ncopies
4458         > 1.  Delete calls to print_include_font_comments  and
4459         download_fonts.  Add call to resource_manager::document_setup.
4460         (ps_printer::do_file): Call resource_manager::import_file instead
4461         of including it ourselves.
4462         (ps_printer::do_import): Likewise.  Also don't call
4463         merge_import_fonts. Push userdict on the dictionary stack before
4464         and pop it afterwards.
4465         Move declaration of ps_output into ps.h.
4466         * ps/psrm.c: New file implementing resource_manager class.
4467         * ps/ps.h: New file declaring ps_output and resource_manager
4468         classes.
4469         * ps/devps/zapfdr.ps:
4470         * ps/devps/symbolsl.ps:
4471         * ps/devps/prologue:  Use 3.0 conventions.
4472         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4473         Add default definition of BROKEN_SPOOLER_FLAGS.
4474         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4475         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4477 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4479         * etc/grog.pl: New file.
4480         * Makefile (GROG): New variable.
4481         Add GROG to SUBFLAGS.
4482         * etc/Makefile (GROG): New variable.
4483         (install.nobin): Install $(GROG) rather than grog.sh.
4485 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4487         * eqn/special.c (special_box::compute_metrics): Make the input and
4488         output strings the same.  Get the new height and depth from the
4489         predefined height and depth registers.  Also make subscript kern
4490         and skew available.
4491         (special_box::compute_subscript_kern, special_box::compute_skew):
4492         New functions.
4494         * eqn/box.c (pointer_box::compute_skew,
4495         simple_box::compute_metrics, box::top_level)
4496         * eqn/text.c (prime_box::compute_metrics,
4497         prime_box::comput_subscript_kern)
4498         * eqn/limit.c (limit_box::compute_metrics):
4499         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4500         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4501         negative numbers in `nr' requests with a leading 0.
4503 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4505         * eqn/special.c: New file.
4506         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4507         Add new rule for simple.
4508         * eqn/lex.c (token_table): Add SPECIAL.
4509         * eqn/box.h: Declare make_special_box.
4510         * eqn/Makefile: Add special.[co].
4512 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4514         * ps/devps/prologue: Possibly set packing to true while defining.
4515         Create grops dictionary here.  Initialize local variables before
4516         defining procedures.
4517         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4518         the dictionary stack. Set strokeadjust and overprint to false if
4519         the relevant operators are defined.
4520         (PEND): New procedure.
4521         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4522         prologue.  Do everything else in the setup section.
4523         (ps_printer::do_import): Just call PBEGIN and PEND around the
4524         picture. Also push userdict before, and pop it afterwards.
4526 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4528         * troff/node.c (bracket_node::tprint): Brackets were being printed
4529         1m too low.
4531         * macros/tmac.an (SH, SS): Set fill mode.
4533 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4535         * troff/div.c (top_level_diversion::begin_page): Set
4536         high_water_mark to 0.
4538 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4540         * man/mdate.sh: New file.
4541         * man/mdate.c: Deleted.
4542         * man/Makefile: Use mdate.sh instead of mdate.
4543         (mdate): Deleted.
4545         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4547 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4549         * man/mdate.c: New file.
4550         * man/*.man: Replace modification date by @MDATE@.
4551         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4552         (mdate): New target.
4554         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4555         Remove illegal input characters.
4557 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4559         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4561 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4563         * troff/div.c (begin_page): Change behaviour when
4564         !first_page_begun and !break_flag.
4566         * troff/input.c (do_name_test): Return 0 if argument is empty.
4568         * troff/input.c (read_long_escape_name): Require closing ] to be
4569         at same input level as opening [.
4571         * troff/input.c (read_increment_and_escape_name): New function.
4572         (get_copy, process_input_stack): Use this for \n.
4574 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4576         * troff/div.c (top_level_diversion::begin_page): Ignore the
4577         current value of page_number if !first_page_begun.
4579         * groff.c (main): Fix declaration of buf.
4581         * troff/input.c (do_name_test): New function.
4582         (token::next): Implement \A.
4583         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4584         (token::description, token::add_to_node_list, token::process):
4585         Handle TOKEN_ESCAPE.
4586         * troff/token.h: New token TOKEN_ESCAPE.
4588 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4590         * pic/main.c (do_picture): Allow space before and after filename
4591         following `<'.  Check that the filename is not empty.
4593 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4595         * Version 1.01 released. 
4597         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4599         * dvi/tmac.dvi: ftr HR to H.
4601         * macros/tmac.e: Round up computation of $r.
4603         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4604         Use \n(.s instead of \n[.s].
4606         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4607         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4608         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4609         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4610         short names in the char definitions.
4612         * ps/tmac.ps: Don't give up completely in compatibility mode.
4613         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4614         quote in front of \n(.s. Add u to factors inside \s[...].
4616 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4618         * tty/tmac.tty: Call the nroff request.
4620         * macros/tmac.e ((x, )x):  Better definitions that work properly
4621         in a diversion.
4622         (@0, @1): Helper macros for (x.
4624         * macros/tmac.e ($s, hl): Use \l rather than \D.
4626         * tty/tmac.tty: Make it work better in compatibility mode.
4627         (pchar): Rename to tty-char.
4629         * macros/tmac.e (@E): New macro.
4630         (r, i, b, rb, bi): Use @E.
4632         * macros/tmac.e (@F): Don't use (;...) syntax.
4634         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4635         it was modified for groff.
4637         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4639         * macros/tmac.e (<., .>): Removed.
4640         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4642         * macros/tmac.e: Remove check that groff is being used.
4644         * macros/tmac.e (@C): Change families only if using groff; turn
4645         compatibility mode off while changing familes. Save compatibility
4646         mode before changing families and restore it afterwards.
4648         * macros/tmac.e (@h): Remove test for offset + line length.
4650         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4651         (lo, th, ac): Define to call @S instead of using als.
4653         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4654         the ratio of the vertical spacing to the point size in units
4655         expressed as a percentage.  Use these instead of $10r and $10R,
4656         Delete $10r and $10R.
4658         * lib/font.c (font::load): In default computation of space_width,
4659         divide by sizescale.  Use scale_round.
4661         * macros/tmac.an (TP): Don't call `nf'.
4662         (an-do-tag): Don't call `fi'.
4664 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4666         * troff/input.c (process_input_stack): Handle the case where
4667         spaces at the beginning of an input line are followed by a
4668         newline.
4670 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4672         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4673         * groff.sh: Use pic -x with the dvi device.
4675         * dvi/devdvi/FontMakefile (H): Don't use -s.
4677         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4678         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4679         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4680         in FONTS.
4682 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4684         * ps/psfig.diff: New file.
4685         * ps/tmac.psfig: New file.
4687 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4689         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4690         (]-): Don't call ref*do-tl.
4692         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4694         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4695         (fn@do-FS): Rename to fn*do-FS.
4697         * troff/input.c (transparent_translate): New function.
4698         (process_input_stack): Apply transparent_translate before calling
4699         diversion::transparent_output(unsigned char).
4701 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4703         * troff/input.c (do_define_macro): Define the macro before calling
4704         skip_line.
4706         * xditview/Makefile: Add DEVICES variable.  Change install target
4707         to use this.
4709 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4711         * groff.c (run_commands): Handle the possibility that there are
4712         child processes other than those forked by us.
4714 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4716         * lib/string.c (string::append): New function.
4717         * lib/stringclass.h: Declare it.
4719 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4721         * eqn/main.c (main): New option -N which sets
4722         no_newline_in_delim_flag. 
4723         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4724         in delimiters.
4725         * groff.c (main): Pass -N on to eqn.
4726         (help, synopsis): Mention -N.
4727         * groff.sh: Implement -N.
4729 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4731         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4732         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4733         (XP): Allow as initializer.
4735 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4737         * troff/env.c (environment::wrap_up_field): If field_spaces are
4738         non-zero and we have a current_tab, subtract padding from
4739         tab_distance.  If this makes tab_distance <= 0, use the next tab
4740         stop instead.  If there isn't any next tab or it's a left tab,
4741         wrap up the current tab.
4742         (environment::start_field): Initialize tab_precedes_field.
4743         (environment::wrap_up_tab): If there's a current field, update
4744         pre_field_width, field_distance and tab_precedes_field.
4745         * troff/env.h (environment::tab_precedes_field): New member.
4747 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4749         * ps/ps.c (ps_printer::do_file): New function.
4750         (ps_printer::special): Bind to `file' special.
4751         (ps_printer::do_exec): Set ndefined_styles to 0.
4753 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4755         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4756         Avoid stripping first character from the start of unrecognized
4757         escapes.  Use lex_error instead of error to report errors.
4758         * eqn/lex.c (get_token): Rework handling of escapes.
4759         (lex_error): Move declaration into...
4760         * eqn/eqn.h.
4762         * xditview/xditview.c (main): Make -page option work.
4764         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4766 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4768         * macros/tmac.s (B2): Correct size of box.
4770 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4772         * macros/tmac.s (B2): Postpone drawing the box until in the
4773         top-level diversion.
4775         * tty/tmac.tty: Add font translations for C, CR, CW.
4777         * groff.c (synopsis, help): Document -i.
4778         * groff.sh: Implement -i.
4780         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4781         Simplify the construction of SN.
4783         * troff/number.c (parse_term): Give `|' a higher precedence.
4784         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4785         accordingly.
4787         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4789 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4791         * lib/string.c (string::move): New function.
4792         * lib/stringclass.h: Declare it.
4794 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4796         * troff/env.c (distribute_space): Add optional argument
4797         `force_forward'.
4798         (environment::wrap_up_field): Call distribute_space with
4799         `force_forward' argument of 1.
4801 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4803         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4804         Inline it.  Move reallocation into...
4805         (string::grow1): New function.
4806         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4807         dependencies to include library header files.
4808         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4810 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4812         * macros/tmac.s (@NH): Use the same number registers than -ms does
4813         for the heading level counters.  Use the same string that -ms does
4814         for the number for this heading.
4816 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4818         * lib/new.c (operator new): Cast result of malloc to char *.
4820         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4821         is not null.
4823 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4825         * groff.c (main): Support -i.
4827 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4829         * pic/pic.h: Include <osfcn.h>.
4831         * ps/ps.c: Add declaration of mktemp.
4833         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4834         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4835         argument as union wait *.
4836         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4837         argument to union wait *.
4839 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4841         * tty/tmac.tty: Add definition of \(co.
4843         * pic/object.c (make_arc): Only increase radius when radius
4844         strictly less than d.
4845         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4846         more than once.
4848         * troff/env.c (environment::environment(symbol),
4849         environment::environment(const environment *)):  Initialize
4850         input_trap_count.
4852 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4854         * tbl/main.c (main): Add exit(0).
4856         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4858         * pic/main.c (main):
4859         * eqn/main.c (main):
4860         * tbl/main.c (main):
4861         * etc/soelim.c (main):
4862         * driver/printer.c (printer::~printer):
4863         * troff/node.c (real_output_file::~real_output_file,
4864         real_output_file::flush):  Check for errors on stdout.
4866         * most files: Add 1991 to copyright notice.
4868         * macros/tmac.s: Don't test \n(.x and \n(.y.
4870         * troff/input.c (token::next): Rename `escape_char' label to
4871         `handle_escape_char' and `normal_char' label to
4872         `handle_normal_char'.
4874 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4876         * groff.c (main, synopsis, help): Support -a option.
4877         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4878         to trflags while parsing options.
4880 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4882         * troff/number.c (parse_term): With `m', `M' and `n' scale
4883         indicators, convert scale factor to hunits before scaling.
4885 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4887         * lib/font.c (scale_round): Better test for overflow when n is
4888         negative.
4890 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4892         * tbl/main.c (process_format): Add second argument of type
4893         options*. Change callers.  Allow opt->tab_char as well as '\t'
4894         between format items.
4896 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4898         * macros/tmac.an (PD): With no arguments, make sure register PD is
4899         at least \n[.V].
4900         (TH): Call PD with no argument, instead of setting register PD
4901         directly.
4903 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4905         * Version 1.00 released.
4907 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4909         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4911         * dvi/devdvi/DESC: Mount CW instead of CR.
4913         * dvi/tmac.dvi: Add definition of \(tm.
4915         * dvi/devdvi/texsy.map: Add lh, and rh.
4916         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4917         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4919         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4920         * dvi/devdvi/Makefile: Install H.
4921         * dvi/devdvi/H: New file.
4923 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4925         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4926         be 0.
4928 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4930         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4932         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4934         * macros/tmac.s (@EN): Handle the case where the equation is empty
4935         but the label is not.
4937 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4939         * troff/groff.h: New warning category WARN_SPACE.
4940         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4941         WARN_SPACE to warning_table.
4942         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4943         is longer than two characters and is not defined, but the first
4944         two characters do make a defined name.
4946         * PROBLEMS: New file.
4948         * CHANGES: New file.
4949         * README-0.6, README-1.00: Deleted.
4951         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4952         * xditview/devX75/Makefile: Make devX75-12.
4953         * xditview/devX100/Makefile: Make devX100-12.
4955         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4956         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4958 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4960         * README-0.7: Rename to README-1.00.
4962         * macros/tmac.pic: New file.
4963         * macros/Makefile (install.nobin): Install tmac.pic.
4965 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4967         * troff/env.c (hyphen_word): Correct the test for whether the
4968         token is a hyphen.  Reset npos to 0.
4970         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4972 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4974         * macros/tmac.s (ds*common-end): Call par*reset.
4975         (PE): Likewise.
4976         (par@reset-indent): Deleted.
4978         * macros/tmac.s (@IP): Divert the label.
4980 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4982         * xditview/draw.c (setGC): Use a line width of .1m rather than
4983         .04m by default; round rather than truncate value.
4985         * tbl/table.c (class empty_entry): New class.
4986         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4987         (table::add_entry): Represent empty entries by objects of type
4988         empty_entry.
4989         (table_entry::line_type): Return -1.
4990         (table::determine_row_type): Ignore entries with line_type 0.
4991         Treat type -1 as non-lines.
4993 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4995         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4996         macros/tmac.s: Rename \(-d to \(Sd.
4998 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5000         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5001         * xditview/libXdvi/DviChar.c: Likewise.
5002         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5004 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5006         * troff/div.c (top_level_diversion::begin_page): Call
5007         init_output() if the_output is 0.
5009 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5011         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5012         ESCAPE_c.
5013         (get_copy): Turn \E into ESCAPE_E.
5014         (token::process, asciify): Handle ESCAPE_E.
5016         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5017         (RD): New macro.
5018         (DS): Implement `.DS R'.
5020 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5022         * macros/tmac.s (FS): New macro.
5024         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5026         * macros/tmac.s (cov*tl-init): Remove after first execution
5027         instead of aliasing to @nop.  Call top of page macro explicitly
5028         instead of setting trap; call @init first.  Set pg@top as top of
5029         page macro.
5030         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5031         cov*auto-init as top of page trap. 
5032         (TL, LP): Do a break instead of calling cov*tl-init.
5033         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5034         @FE; in this case also give a warning and always start another
5035         page. No need to set pg@top here.
5036         (cov*tl-init): Rename to cov*first-page-init.
5038         * macros/tmac.s (RP): Do `.pn 0'.
5039         (cov*tl-init): With RP format don't do `.pn 0'.
5041         * macros/tmac.s (pg@cs-top): Set no space mode.
5043         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5044         (cov*ab-init): Alias TL, AU and AI to these.
5046 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5048         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5049         (@EN): Do nothing unless \n[dl] is > 0.
5051 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5053         * pic/object.c (ellipse_object::radius): New function.
5055         * VERSION: Change version to 0.7.
5057         * tbl/table.c (block_entry::do_divert): Declare return type as
5058         void.
5059         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5061 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5063         * troff/column.c: New file.
5064         * troff/Makefile: Corresponding changes.
5066         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5067         Friend of vunits.
5069         * troff/div.c (top_level_diversion::space): If the space causes
5070         the first-page transition and springs a trap, truncate the space
5071         to 0.
5073 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5075         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5076         the document.
5078         * pic/troff.c (troff_output::line_thickness,
5079         troff_output::set_fill): Do a horizontal motion to compensate for
5080         the width of the \D escape sequence.
5082 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5084         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5085         (not X75).
5087         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5088         to printf.
5090         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5091         Supply empty definition.
5092         (text_entry::simple_print, simple_text_entry::simple_print):
5093         Delete declarations.
5094         (table::add_entry): Represent empty entries by objects of type
5095         `simple_entry'.
5097 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5099         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5101         * tbl/table.c (left_text_entry::add_tab): New function.
5103         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5104         initialize like LP.
5106 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5108         * troff/env.c (environment::start_field): Give an error message if
5109         there is no next tab.
5111 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5113         * troff/env.c (hyphenate): Skip initial elements with zero
5114         hyphenation code.
5116         * macros/tmac.s (par@init): Keep VS in points rather than units.
5118 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5120         * pic/main.c (main): Implement `-c' option.
5121         * pic/output.h: Declare make_tpic_output().
5122         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5123         protected.
5124         (tpic_output): New class.
5125         (tpic_output::tpic_output, tpic_output::set_pen_size,
5126         tpic_output::command, make_tpic_output): New functions.
5128 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5130         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5131         if they're not already defined.
5132         * tbl/table.c (init_output): Don't test \n(.g.
5134         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5135         `d', `r' and `c' conditions even in compatibility mode.
5137 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5139         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5140         box.
5142 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5144         * troff/env.h (environment::prev_line_interrupted): New member.
5145         (environment::get_prev_line_interrupted): New function.
5146         * troff/env.c (environment::newline): Set prev_line_interrupted.
5147         (environment::environment(const environment *),
5148         environment::environment(symbol)): Initialize
5149         prev_line_interrupted.
5150         * troff/input.c (process_input_stack): Don't give special
5151         treatment to space and newline at the beginning of the line if the
5152         previous line was interrupted.
5154 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5156         * eqn/eqn.y: Disallow PRIME by itself.
5157         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5158         PRIME.
5159         (def_table): Remove definition of '.  Define prime to be `.
5161         * eqn/eqn.y: Split off part of rule `script' into a new rule
5162         `nonsup'.
5164 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5166         * macros/tmac.s ({, }): New string aliases.
5168 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5170         * README-0.7: New file.
5172 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5174         * macros/tmac.s: New file.
5175         * man/groff_ms.man: New file.
5176         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5177         * Makefile.bd: Similarily.
5178         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5179         definition of TMAC_S.
5180         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5181         * macros/TODO: New file.
5183 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5185         * troff/env.c (right_justify): New function.
5186         (init_env_requests): Bind this to request "rj".
5187         (center_lines): Set right_justify_lines to 0. If we get a bad
5188         integer, center 1 line.
5189         (environment::environment(symbol), environment::environment(const
5190         environment *)): Initialize right_justify_lines.
5191         (environment::get_right_justify_lines): New function.
5192         (init_env_requests): Bind this to number_register ".rj".
5194         * troff/env.c (environment::choose_breakpoint): Implement
5195         hyphenation_margin and hyphenation_space.
5196         (environment::get_hyphenation_space,
5197         environment::get_hyphenation_margin): New functions.
5198         (init_env_requests): Bind these to .hys and .hym.
5199         (hyphenation_space_request, hyphenation_margin_request): New
5200         functions
5201         (init_env_requests): Bind these to hys and hym.
5202         (environment::environment(symbol), environment::environment(const
5203         environment *)): Initialize hyphenation_margin and
5204         hyphenation_space.
5205         * troff/env.h: Corresponding changes to class environment.
5207 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5209         * troff/div.c (blank_line): Always do a break.
5211         * eqn/box.c (do_text): Turn off escapes while appending text to
5212         string.
5214 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5216         * troff/input.c (while_break_request, while_continue_request): New
5217         functions.
5218         (init_input_requests): Bind these to "break" and "continue".
5219         (while_depth, while_break_flag): New variables.
5220         (while_request): Update while_depth.  Break out of loop if
5221         while_break_flag is set.
5223 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5225         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5226         rather than 0.
5228 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5230         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5232         * stringify: New file.
5233         * Makefile (groff.o): Use stringify.
5235         * xditview/tmac.X: Remove definition of \(rn.
5236         * xditview/libXdvi/DviChar.c: Remove radicalex from
5237         Adobe_symbol_map.
5239 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5241         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5242         (alphabetic_block_entry::alphabetic_block_entry,
5243         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5244         New functions.
5245         (block_entry::divert): Split off body into ...
5246         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5247         from the line length; also update the span width to dl+2n, and the
5248         alphabetic span width to dl.
5250         * driver/input.c (do_file):  While reading argument to D command,
5251         when expanding buffer, multiply szp by sizeof(int) rather than 2
5252         in the argument to memcpy.
5254         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5255         width of alphabetic columns.
5257 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5259         * troff/node.c (lookup_family): Supply second argument to lookup.
5261         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5262         search, return immediately if v is 0.
5264         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5265         (troff_output::start_picture): Set this reg.
5266         (troff_output::end_picture): Remove this reg
5267         * eqn/box.c (box::extra_space): Don't produce `\x's if
5268         EQN_NO_EXTRA_SPACE_REG is defined.
5270         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5271         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5272         character.
5274 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5276         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5277         requests.
5279         * troff/div.c (top_level_diversion::top_level_diversion):
5280         Initialize page_number to 0.
5282 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5284         * groff/troff (environment::environment(const environment *)):
5285         Initialize name to e->name, rather than "anonymous".
5287 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5289         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5290         requested_page.  Split middle part into ...
5291         (FindPage): New function.
5292         (SetValues): If we don't yet know the last page, and the requested
5293         page is greater than the current page, call FindPage.
5294         Update the font_map_string before doing this.
5296         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5297         Translate \(lh and \(rh into left and right double arrows.
5299         * troff/node.c (class hyphen_inhibitor_node): New class.
5300         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5301         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5302         hyphen_inhibitor_node::type,
5303         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5304         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5305         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5306         word.
5308 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5310         * troff/node.h (dummy_node::get_hyphenation_type,
5311         transparent_dummy_node::get_hyphenation_type):  Declare them.
5312         * troff/node.c: (dummy_node::get_hyphenation_type,
5313         transparent_dummy_node::get_hyphenation_type): New functions.
5315 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5317         * xditview/libXdvi/draw.c: If M_PI not defined after including
5318         math.h, then define it.
5320         * xditview/Makefile: Add definition of AR. Pass it to the submake
5321         in libXdvi.
5322         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5324 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5326         * troff/dictionary.h (object_dictionary::alias): Declare return
5327         value as int.
5328         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5329         if the old name was defined.
5330         * troff/input.c (alias_macro): Give a warning if the old name was
5331         not defined.
5332         * troff/reg.c (alias_reg): Likewise.
5334 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5336         * troff/input.c (token::next): Delete implementation of \R.
5338         * macros/Makefile: Strip comments from tmac.e while installing it.
5340         * troff/input.c: New variable `nroff_mode'.
5341         (troff_request, nroff_request): New functions.
5342         (init_input_requests): Bind `troff' and `nroff' to troff_request
5343         and nroff_request.
5344         (do_if_request): Compute results of t and n conditions from
5345         nroff_mode.
5347         * text/text.c (split_text): Fix typo in >=.
5349         * eqn/lex.c: Add definition of `==' to def_table.
5351 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5353         * pic/tex.c (tex_output::start_picture): Change the definitions of
5354         \graph and \graphtemp so that they work properly with Plain TeX.
5356         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5357         argument to `ar' is not less than the first.
5359         * pic/pic.y: Allow a comma between elements of the variable list
5360         in the argument to `reset'.
5362         * pic/object.c (arc_object::arc_object): Fix computation of
5363         radius.
5365         * eqn/main.c (main): Add exit(0).
5367 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5369         * troff/div.c (begin_page): Test no_space_mode after doing the
5370         break, but still push the page ejector cookie before doing the
5371         break.  Also set the next page number after doing the break.
5372         
5373         * xditview/xditview.c (NewFile): Don't set the title and icon name
5374         if this is the first file and its name is `-'.
5375         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5376         the X75 and X100 devices.
5377         (main): If a device has the XT_OPTION flag set and there's exactly
5378         one file argument, pass the driver -xrm and -title options to set
5379         the icon name and window title to the name of the file.
5381         * troff/env.c (environment_switch): If there was an argument but
5382         it wasn't a valid number or name, then pop an environment but
5383         don't give an error message on underflow.
5385         * troff/number.c (start_number): Correct spelling in error message.
5387         * troff/input.c (token::delimiter): Don't print an error message
5388         if err is false.
5390         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5391         ParseDrawFunction if dw->display_enable is true.
5393 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5395         * pic/pic.y: Parse text positioning like normal attributes, so as
5396         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5397         positioning attribute.
5399 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5401         * tbl/main.c (process_data): When in state START while reading a
5402         text block, don't change to state MIDDLE if c is a newline.
5404 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5406         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5407         so as to avoid shadowing parameter.
5409 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5411         * tbl/table.c (trim_space): Deleted.
5412         (table::add_entry): Don't call trim_space.
5414 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5416         * VERSION: Change version to 0.6.
5418         * troff/number.c (parse_expr): Make == work.
5420 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5422         * man/grog.man: New file.
5423         * man/Makefile: Add grog.n to MAN1PAGES.
5424         * etc/grog.sh: New file.
5425         * etc/Makefile: Install grog.sh as grog.
5427 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5429         * troff/input.c (token::next): Implement \E.
5431 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5433         * xditview/tmac.X: Change font translations to match tmac.ps.
5435         * troff/input.c (non_empty_name_warning): Don't give a warning if
5436         `\{' terminates the name.
5438 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5440         * ps/devps/symbol.diff: New file.
5441         * ps/devps/FontMakefile: Mention symbol.diff.
5443 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5445         * troff/node.c (font_position): Use get_long_name to read the
5446         external_name.
5448         * troff/env.c (environment_switch): If we get a number that's < 0
5449         or >= NENVIRONMENTS, treat it like a name.
5450         Change NENVIRONMENTS to 10.
5452         * troff/groff.h: Remove definition of FONTS_MAX.
5453         * troff/node.h (class font_family): Make map a pointer instead of
5454         an array. Add a map_size member. Make it a class. Make nm const
5455         and public. Make invalidate_fontno a friend.
5456         * troff/node.c: Define font_table_size. Make font_info a pointer
5457         rather than an array.
5458         (class troff_output_file): Allocate font_position dynamically. Add
5459         nfont_positions member.
5460         (troff_output_file::set_font): Grow font_position if necessary.
5461         (troff_output_file::~troff_output_file): Delete font_position.
5462         (troff_output_file::troff_output_file): Allocate font_position.
5463         (grow_font_table): New function.
5464         (troff_output_file::really_begin_page,
5465         troff_output_file:really_copy_page): Use nfont_positions rather
5466         than FONTS_MAX.
5467         (mount_font_no_translate, mount_style): Call grow_font_table if
5468         necessary.
5469         (font_family::font_family): Allocate map.
5470         (font_family::make_definite): Grow map if necessary. Use
5471         font_table_size instead of FONTS_MAX.
5472         (font_family::~font_family): New function.
5473         (invalidate_fontno): Use font_family::map_size.
5474         (get_fontno, env_space_width, env_half_narrow_space_width,
5475         env_narrow_space_width, symbol_fotno, is_good_fontno,
5476         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5477         FONTS_MAX.
5478         (next_available_font_position): Never return 0.
5480 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5482         * ps/tmac.ps: Add font translations for compatibility with dpost.
5484 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5486         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5487         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5488         Move definitions baseline_sep, shift_down, column_sep,
5489         matrix_side_sep into...
5490         * eqn/box.c: Add them to param_table.
5491         * eqn/pbox.h: Add declarations to pbox.h.
5493         * troff/input.c (set_string): Cast value to unsigned char *.
5495         * troff/token.h (process_input_stack): Declare it static before
5496         declaring it a friend.
5498 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5500         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5501         and bottom.
5502         * dvi/devdvi/EX: Regenerate.
5504         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5505         transparent.
5507 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5509         * eqn/lex.c: In defaults_table, make definition of `dot' call
5510         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5511         accents.
5513         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5514         argument.
5515         (for_input::get, for_input::peek): Use this.
5516         (do_for): Add by_is_multiplicative argument.
5517         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5518         Change semantic value of optional_by to be a double plus a flag
5519         saying whethet the by clause is multiplicative.
5521         * eqn/lex.c (get_delimited_text): Remember location of start of
5522         definition.  Improve error handling when EOF is encountered.
5524         * lib/font.h: Rename handle_x_command to
5525         handle_unknown_font_command.
5526         * lib/font.c (font::load): Call handle_unknown_font_command for
5527         any unknown command in the font description file.  Don't call
5528         handle_x_command. Include the name of the command in the argv.
5529         Improve message for unknown command after kernpairs or charset
5530         command.
5531         * ps/ps.c (ps_font::handle_x_command): Rename to
5532         handle_unknown_font_command.  Remove message about `x download'
5533         command.  Give error message for wrong number of arguments.
5534         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5535         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5536         handle_unknown_font_command. Give an error message for wrong
5537         number of arguments.  Rename design_size to designsize.
5538         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5539         checksum', `designsize' instead of `design_size'.
5541 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5543         * eqn/*.[chy]: Change underaccent to uaccent.
5545         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5546         give it the same precedence as ACCENT.
5547         * eqn/other.c (make_underaccent_box): New function.
5548         * eqn/box.h: Declare it.
5549         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5550         def_table.
5552 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5554         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5555         (parse_init): Call reset_all.
5556         (define_variable): When defining scale reset only those
5557         pre-defined variables that are scaled.
5558         (defaults_table): Add `scale' as non-scaled value.
5560         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5561         together with the text; allow any number of positioning words;
5562         allow center as a positioning word.
5564         * pic/object.c (output::compute_scale): Get picture maximum height
5565         and width from variables called maxpswid and maxpsht.
5566         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5568 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5570         * pic/object.c (object_spec::make_text): Multiply textht by number
5571         of text items.
5573         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5574         occur.
5575         (do_sprintf): New function.
5576         (pic.gperf): Add sprintf token.
5577         (text, sprintf): New rules.
5579         * pic/pic.y: `rand()' with no arguments returns a random number
5580         in the range [0,1).
5582         * pic/pic.y: Allow a bare expression to be an attribute: change
5583         precedences to support this.  Change optional_ordinal rule to
5584         optional_ordinal_last to avoid reduce/reduce conflict.
5585         * pic/object.c (object_spec::object_spec): Initialize direction.
5587         * pic/pic.y: Implement ^ operator meaning exponentiation.
5589         * troff/node.h: Add default argument to mount_font.
5590         * troff/node.c (font_position): Read an optional third argument
5591         giving the external_name.
5592         (mount_font): Add optional argument giving the external_name.
5593         (mount_font_not_translate): Have additional argument giving
5594         external name.  Use this name to load the font.  Pass both names
5595         to font_info::font_info.
5596         (font_info::font_info): Have additional argument giving
5597         external_name.
5598         (class tfont): New member external_name.
5599         (font_info::get_tfont): Use external name to construct tfont_spec.
5601 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5603         * eqn/lex.c (init_table): Add argument giving device.  Define
5604         name of device to be "1".
5605         (do_ifdef): Counts as true if the argument has been defined with
5606         `define'.
5607         * eqn/main.c (main): Call init_table with device argument. Make
5608         device local to main.
5609         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5610         of device.
5612         * pic/lex.c (get_delimited): Allow text to be delimited by
5613         matching {}s.  Don't recognize ending delimiter within a string.
5615         * troff/input.c (get_delim_name): New function.
5616         (token::next): Implement \C.
5618         * lib/font.c (font::load): Grok ---.  Add an alias for each
5619         character based on its code.
5620         (font::get_code_width): Deleted.
5621         * lib/font.h (class font): Declare font::number_to_index().
5622         Remove declaration of font::get_code_width.
5623         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5624         to indices of named characters.
5625         (font::number_to_index): New function.
5626         * troff/input.c (font::number_to_index): New function.
5627         (get_charinfo_by_number, charinfo::get_number,
5628         charinfo::set_number): New functions.
5629         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5630         (token::process, token::description, token::get_char,
5631         token::add_to_node_list, token::operator==): Handle
5632         TOKEN_NUMBERED_CHAR.
5633         * troff/charinfo.h: Declare get_charinfo_by_number,
5634         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5635         charinfo class.
5636         (charinfo::numbered): New function.
5637         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5638         * troff/env.h (class environment): Remove declaration of ...
5639         * troff/env.c (environment::make_numbered_char_node): Deleted.
5640         * troff/node.c (make_numbered_node): Deleted.
5641         (class numbered_glyph_node): Remove.
5642         (troff_output_file::put_char_width, troff_output_file::put_char):
5643         Handle numbered chars.
5644         (troff_output_file::numbered_char): Removed.
5645         (tfont::get_code_width): Removed.
5646         (make_glyph_node): Don't search special fonts for numbered
5647         characters.
5648         * troff/node.h: Remove declaration of make_numbered_node.
5649         * driver/input.c (do_file): Handle N command.
5650         * driver/printer.h: Add declaration of ...
5651         * driver/printer.c (printer::set_numbered_char): New function.
5652         * dvi/tfmtodit.c (main): Generate unnamed entries.
5653         * ps/devps/afmtodit: Likewise.
5654         * xditview/xtotroff.c (MapFont): Likewise.
5655         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5657         * tbl/main.c (process_format): If multiple widths are specified
5658         for a column but all the widths are the same, don't give an error
5659         message.
5661         * tbl/table.c (table::do_row): If the current row is all lines and
5662         the stuff doesn't contains a line, mark the top of the row after
5663         printing stuff before the row.  If the current row is not all
5664         lines and the stuff doesn't contain a line, don't unnecessarily
5665         mark the top of the row before printing the stuff.
5666         
5667 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5669         * troff/groff.h: Remove MAX_PATH.
5670         * troff/input.c (open_file): Dynamically allocate space for the
5671         path.
5672         (open_mac_file, process_macro_file): Corresponding changes.
5674 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5676         * troff/node.h (class output_file): Make copy_file pure.  Add
5677         vspace method ifdef COLUMN. Add is_printing method.
5678         * troff/node.c: Add class printing_reg. Add class
5679         real_output_file. Derive other output_file classes from
5680         real_output_file; in these classes rename begin_page to
5681         really_begin_page, print_line to really_print_line, copy_file to
5682         really_copy_file, transparent_char to really_transparent_char.
5683         Move output_file::flush to real_output_file. Add printing member
5684         to class output_file.
5685         * troff/div.h: Remove printing member from top_level_diversion.
5686         Add vspace member function to class diversion ifdef COLUMN. Add
5687         some declarations ifdef COLUMN.
5688         * troff/div.c (top_level_diversion::copy_file,
5689         top_level_diversion::transparent_output,
5690         top_level_diversion::output): Don't test printing member before
5691         output.
5692         * troff/input.c: Handle initial variable_space_request ifdef
5693         COLUMN.
5694         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5695         but comment it out.
5697 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5699         * troff/div.c (diversion::need): Make any space forced.  If we
5700         sprung a trap, set truncated_space to minus the distance to the
5701         trap and set needed_space to the amount that was needed.
5702         (top_level_diversion::space): A forced space turns no_space_mode
5703         off.
5704         (class constant_vunits_reg): New class.
5705         (init_div_requests): Implement number registers .trunc and .ne
5706         using constant_vunits_reg.
5707         (class truncated_space_reg): Deleted.   
5709         * troff/div.h: Don't have a no_space_mode member in diversion.
5710         Instead have it in top_level_diversion.
5711         * troff/div.c (diversion::diversion): Don't initialize
5712         no_space_mode.
5713         (top_level_diversion::top_level_diversion): Initialize
5714         no_space_mode.
5715         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5716         (macro_diversion::output): Don't clear no_space_mode.
5718         * troff/input.c (diverted_space_node::reread): Don't call
5719         environment::do_break.  In fill mode, act like a blank line.
5720         (diverted_copy_file_node::reread): Don't call
5721         environment::do_break.
5723         * troff/div.c (blank_line): New function.
5724         * troff/div.h: Declare it.
5725         * troff/input.c (process_input_stack): Call it.
5727         * troff/div.c (truncated_space_reg::get_string): New function.
5728         (init_div_requests): Bind to .trunc.
5729         (space_request, top_level_diversion::space,
5730         top_level_diversion::output, macro_diversion::space,
5731         macro_diversion::output): Update truncated_space.
5732         (macro_diversion::output): Redo calculations when trap sprung.
5733         (macro_diversion::output, macro_diversion::space): No need for
5734         trap_flag.
5736         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5737         after truncating post line spacing.
5739 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5741         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5742         defined as a procedure rather than as an operator.
5744 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5746         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5748 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5750         * troff/div.c (top_level_diversion::output): Merge
5751         output_file::print_line and output_file::end_of_line member
5752         functions.
5753         * troff/div.h (class output_file):
5754         * troff/node.c (troff_output_file::print_line,
5755         troff_output_file::end_of_line, output_file::end_of_line,
5756         ascii_output_file::print_line, suppress_output_file::print_line):
5757         Corresponding changes.  
5759 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5761         * troff/input.c (token::next): Don't give a warning for `\.'.
5763         * troff/env.c (environment::get_center_lines): New function.
5764         (init_env_requests): Bind number register .ce to it.
5765         * troff/env.h: Declare it.
5766         * tbl/table.c (table::init_output): Define reset macro to restore
5767         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5768         Then do .ce 0.
5769         (table::print): If center option not given, then imply center
5770         option if SAVED_CENTER_REG > 0.
5772 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5774         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5775         Troff.ps from DOWNLOAD.
5776         
5777         * troff/Makefile: Change comment in DEFINES to avoid confusing
5778         System V make.
5780         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5781         code.  Don't try to catch errors with stopped.
5782         (check_line_lengths): New function.
5783         * ps/devps/prologue (EXEC): Deleted.
5784         (EBEGIN, EEND): New procedures.
5786 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5788         * troff/input.c: Include request.h before node.h.
5789         * troff/node.c: Likewise.
5790         * troff/env.c: Likewise.
5791         * troff/div.c: Likewise.
5792         * troff/node.h (class special_node): Store argument as a macro
5793         rather than a char *.
5794         * troff/node.c (special_node::special_node, special_node::copy):
5795         Grok this.
5796         (special_node::~special_node): Deleted.
5797         (special_node::tprint): Deleted.
5798         (special_node::tprint_start, special_node::tprint_end,
5799         special_node::tprint_char): New functions.
5800         (troff_output_file::special): Deleted.
5801         (troff_output_file::start_special, troff_output_file::end_special,
5802         troff_output_file::special_char): New functions.
5803         * troff/input.c (special_node::tprint): New function.
5804         (do_special): Use macro not char *.
5805         (do_transparent_macro): Deleted.
5806         (token::next): Don't call do_transparent_macro.
5808         * troff/input.c (token::next): Add 'Y' case.
5809         (do_transparent_macro): New function.
5810         * troff/node.c (troff_output_file::special): Handle newlines with
5811         argument using new continuation convention.
5812         * driver/input.c (get_string): Cope with continuation convention.
5813         (do_file): Don't call skip_line after calling get_string(1).
5814         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5815         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5816         arg.
5817         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5818         with +.
5820 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5822         * troff/input.c (asciify): By default, illegal input characters
5823         should return empty string.
5825         * troff/input.c (copy_file): Handle first page transition like title.
5826         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5828         * troff/input.c (token::next): Improve error message for EOF after
5829         escape character.
5830         (input_char_description): New function.
5831         (get_char_for_escape_name): Use input_char_description.
5832         (token::next): Warn about unrecognized escape sequences.
5833         (warning_table): Add WARN_ESCAPE.
5834         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5835         accordingly.
5837         * troff/token.h: Remove declaration of process_input_stack.
5839         * troff/input.c: Remove declaration of init_hyphen_requests.
5840         * troff/request.h: Correct spelling in declaration of same.
5842         * troff/input.c (token::next): Check whether escape_char is 0.
5844 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5846         * groff.c (main, usage, help): Implement -P and -L options.
5847         * groff.sh: Likewise.
5849         * troff/input.c (token::next): Use some gotos to avoid code
5850         duplication.
5852         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5853         Avoid calling symbol::symbol if name empty.
5855 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5857         * troff/input.c (init_input_requests): Make \n(.x return the major
5858         version number and \n(.y return the minor version number.
5859         * troff/Makefile: Construct file majorminor.c defining
5860         major_version and minor_version automatically from ../VERSION.
5862         * troff/node.c (class glyph_node): Make operator new and operator
5863         delete public.
5864         (class ligature_node): Similarily.
5866         * troff/input.c (operator==(const macro &, const macro &)): New
5867         function.
5868         (non_interpreted_node::same): Use this.
5869         (string_iterator::string_iterator): Make macro& argument const.
5871         * troff/input.c (input_iterator::get): New function. Don't make
5872         asciify_macro or class non_interpreted_node friends of class
5873         input_iterator.
5874         (non_interpreted_node::interpret): Use input_iterator::get.
5875         (asciify_macro): Likewise.
5877         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5878         ~non_interpreted_node): Deleted.
5879         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5880         Deleted.
5882         * troff/symbol.h: Make all symbol member functions const.
5884         * lib/strtol.c: New file.
5885         * lib/Makefile: Add strtol.c.
5886         * Makefile: Define STRTOL as strtol.o to include strtol in
5887         libgroff.a.
5889 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5891         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5893 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5895         * troff/input.c (do_special): Use input_level.
5897         * troff/token.h (TOKEN_BACKSPACE): New token.
5898         (token::backspace): New function.
5899         * troff/input.c (token::description, token::next, token::process):
5900         Grok TOKEN_BACKSPACE.
5901         (do_special): Turn TOKEN_BACKSPACE back into \b.
5903         * troff/token.h (token::leader): New function.
5904         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5906         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5908         * troff/input.c (do_special): Use token::description in error
5909         message.
5911 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5913         * troff/input.c (decode_args): Combine quoted and
5914         quote_input_level variables. Make it a for (;;) loop.
5916         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5918         * troff/input.c (read_long_escape_name): The test for whether to
5919         expand buffer was off by 1.
5920         (read_string): Similarily.
5922 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5924         * troff/input.c: Use `const int' rather than `static const int'.
5926         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5927         (macro_diversion::copy_file): New function.
5928         * troff/node.h: New class diverted_copy_file_node.
5929         * troff/node.c: Implement it.
5930         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5931         first page transition by pushing a diverted_copy_file_node.
5932         * troff/input.c (token::next, process_input_stack): Don't handle
5933         COPY_FILE_REQUEST.
5935 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5937         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5938         whether space widths need adjusting.
5940         * troff/charinfo.h: Generalize translated_to_space to
5941         special_translation so as to allow translation to \&.
5942         * troff/input.c (translate): Allow translation to \&.
5943         (charinfo::*): Corresponding changes.
5944         * troff/node.c (make_node, node::add_char): Corresponding changes.
5945         * troff/node.h (dummy_node::dummy_node): Allow optional first
5946         argument.
5948         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5949         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5950         TOKEN_REQUEST.
5951         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5952         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5953         (token::process): Grok that.
5954         * troff/input.c (copy_file): Handle first page transition like
5955         title by pushing a COPY_FILE_REQUEST cookie.
5956         (token::next, process_input_stack): Grok that.
5957         * troff/node.h (output_file::copy_file): Add x and y arguments.
5958         Make it non-pure.
5959         * troff/div.c (top_level_diversion::copy_file): Supply them.
5960         * troff/node.c (troff_output_file::copy_file): Add x and y
5961         arguments; moveto specified position.  Invalidate font_position
5962         array after copying file.
5963         (output_file::copy_file): New function.
5964         (suppressed_output_file::copy_file, ascii_output::copy_file):
5965         Removed.
5966         * troff/input.c (transparent_file): New function.
5967         (init_input_requests): Bind to "trf".
5968         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5969         (process_input_stack): Likewise.
5971         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5973         * troff/node.c (init_node_requests): New number registers .kern
5974         pointing to global_kern_mode, and .lg pointing to
5975         global_ligature_mode.
5977         * troff/node.c (ligature): Don't change it if we get a bad
5978         integer.
5980         * troff/input.c (do_define_string): Don't strip tabs.
5982         * troff/input.c (asciify_macro): Make the string_iterator auto.
5984         * troff/node.c (init_font_requests): Rename to...
5985         (init_node_requests):
5986         * troff/node.h: Change declaration.
5987         * troff/input.c (main): Change call.
5989         * troff/input.c (node::reread, diverted_space_node::reread): New
5990         methods.
5991         (process_input_stack): Call reread rather than
5992         get_diverted_space_node.
5993         * troff/node.c (node::get_diverted_space_node,
5994         diverted_space_node::get_diverted_space_node): Removed.
5995         * troff/node.h: Declare reread methods instead of
5996         get_diverted_space_node methods. Make `n' member private.
5997         * troff/input.c: (token::diverted_space): Removed.
5998         * troff/token.h: Removed declaration.
5999         
6001 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6003         * eqn/script.c (script_box::compute_metrics): Don't let
6004         SUP_RAISE_FORMAT become negative.
6006         * tbl/table.c (table::do_row): Entries that don't end in the
6007         this row shouldn't make the row non-blank.
6008         
6009         * tbl/table.c (table::make_columns_equal): Only set the width of
6010         columns which are marked as equal.
6011         
6012         * tbl/main.c (process_data): Before issuing excess data error,
6013         if last character was a newline unget it; then get it again after
6014         the error.  Also include the contents of the entry in the message.
6016         * groff.c: New file.
6017         * Makefile: Build groff from groff.c.  Make it possible to use
6018         either groff.sh or groff.c as groff.
6019         * Makefile.bd: Similarily.
6021 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6023         * groff.sh: Don't delay expansion of $@ in assignment to files.
6024         Remove occurrences of \".
6026 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6028         * all Makefiles: Simplify and rearrange.
6030         * Makefile: Handle fmod like malloc.
6031         * lib/Makefile: Similarily.
6032         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6034         * Makefile: Rename OPTIMISE to OPTIMIZE.
6036         * groff.sh: Remove assignment to PATH.
6037         * Makefile: Remove SHPATH variable.
6038         * Makefile.bd: Similarily.
6040         * groff.sh: Add -V option to print the pipeline instead of
6041         executing it.
6043 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6045         * lib/font.c: Split off file searching into ...
6046         * lib/fontfile.c: New file.
6048         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6050 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6052         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6053         Also change misleading comment.
6054         (table::do_vspan): Change similarily misleading comment.
6055         * tbl/main.c (process_data): A format row with an explicit `s'
6056         uses up a data line, even if all the other columns are `_' or `='.
6058         * troff/input.c (token::description): Fix description of
6059         TOKEN_DUMMY and TOKEN_EMPTY.
6061 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6063         * groff.sh: Fix description of -Z in help message.
6065 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6067         * pic/object.c (object_spec::make_object): Allow negative and zero
6068         line thicknesses.
6069         * pic/pic.y: Give linethick default value of -1.0.
6070         * pic/troff.c (troff_output::troff_output): Initialize
6071         last_line_thickness to BAD_THICKNESS.
6072         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6073         (troff_output::line_thickness): Canonicalize negative thicknesses
6074         to RELATIVE_THICKNESS.
6075         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6076         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6077         to -1.0.
6078         (tex_output::start_picture): Set pen_size to -2.0.
6080         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6081         0, then use 0 linewidth.
6082         (ps_printer::ps_printer): Initialize line_thickness to -1.
6084         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6086         * ps/devps/symbolchars: Remove `or'.
6087         * ps/tmac.ps: Implement \(or with .char.
6089         * ps/devps/symbolchars: Move most characters into textmap.
6090         * ps/devps/textmap: Add names for troff bracket characters. Remove
6091         ul, ru, br, bv.
6093         * ps/devps/TSymbol.ps: Removed.
6094         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6095         * ps/tmac.ps: Do with .char what TSymbol did.
6096         * ps/devps/download: Remove TSymbol.
6098         * ps/devps/T: Removed.
6099         * ps/devps/Troff.ps: Removed.
6100         * ps/devps/Troff.afm: Removed.
6101         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6102         * ps/devps/download: Remove Troff.
6103         * ps/devps/FontMakefile: Remove T target.
6104         * ps/devps/DESC-A4: Remove T from font list.
6105         * ps/devps/DESC-letter: Likewise.
6107         * troff/input.c (macro_to_node): Rename to ...
6108         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6109         character's definition while processing it.
6110         * troff/node.c (node::add_char, make_node): Change calls to
6111         macro_to_node accordingly.
6113         * troff/input.c (token::next): Translate \_ to \(ul.
6115         * tty/devascii/R.proto: Add `|'.
6116         * tty/devlatin1/R.proto: Likewise.
6118 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6120         * man: Put the version number in all the man pages.
6122 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6124         * Makefile.bd: New file.
6125         * README.bd: New file.
6127         * VERSION: New file.
6128         * lib/version.c: Removed.
6129         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6130         in clean target.
6132         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6133         environment variable.
6135         * all Makefiles: Split install target into install.bin for
6136         binaries, and install.nobin for everything else.
6137         * Makefile: Add bindist target.
6139         * man/afmtodit.man: New file.
6140         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6141         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6142         in BINDIR.
6143         * ps/Makefile: Pass BINDIR to make install in devps.
6145         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6146         the space character.
6148         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6150 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6152         * ps/ps.c: Redo font downloading.
6153         * ps/devps/download: New file.
6154         * ps/devps/Makefile: Add download to DEVICEFILES.
6155         * ps/devps/afmtodit: Remove -d option.
6156         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6157         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6158         * ps/devps/zapfdr.ps: Likewise.
6159         * ps/devps/TSymbol.ps: Likewise.
6161 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6163         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6165 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6167         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6168         then strip the first line if it starts with %.
6169         * Makefile: Add a comment about this.
6171         * man/tfmtodit.man: New file.
6172         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6173         * dvi/Makefile: Install tfmtodit in BINDIR.
6175         * dvi/tfmtodit.c (usage): Mention -v option.
6177 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6179         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6180         * troff/node.c (troff_output_file::transparent_char): Don't call
6181         flush_tbuf.
6183         * eqn: Add check_tabs method to most box classes.
6184         * eqn/box.c (box::top_level): Call check_tabs.
6186         * eqn/script.c (script_box::output): Use \Z.
6187         * eqn/limit.c (limit_box::output): Use \Z.
6189         * eqn/box.c (box::top_level): Use itoa.
6191 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6193         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6194         * dvi/devdvi/Makefile: Don't make links to CW.
6196         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6197         HX, HD.
6198         * xditview/tmac.X: Likewise.
6200         * troff/node.c: Add font translation feature.
6201         (get_font_translation): New function.
6202         (symbol_fontno): Translate the font name.
6203         (mount_font_no_translate): Rename to mount_font to this.
6204         (mount_font): New function.
6205         (font_family::make_definite): Call mount_font_no_translate instead
6206         of mount_font.
6207         (mount_style): Translate the font name.
6208         (font_translate): New function.
6209         (init_font_requests): Bind "ftr" to font_translate.
6211         * ps/devps/prologue (SN): New procedure that rounds a position to
6212         the nearest (pixel + (.25,.25)).
6213         (DL): Use SN to round endpoints.
6215         * lib/version.c: Changed version to 0.5.
6217 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6219         * Makefile: Move definition of PAGE to the very beginning, so that
6220         people are less likely to miss it.
6222 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6224         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6226         * troff/env.c (environment::choose_breakpoint): Make `can't find
6227         breakpoint' error a warning of type WARN_BREAK.  Change message to
6228         `can't break line'.
6229         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6230         code 040000.
6231         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6232         WARN_BREAK in DEFAULT_WARNING_MASK.
6234         * tty/tmac.tty: Add definition of \(+-.
6236         * groff.sh: Remove `--' option to set command.
6238         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6240         * ps/devps/eqnchar: Better definition of cdot using md.
6241         * dvi/devdvi/eqnchar:  Likewise.
6242         * xditview/devX100/eqnchar:  Likewise.
6243         * xditview/devX75/eqnchar: Likewise.
6244         * eqn/lex.c: Add definition of cdot.
6246 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6248         * troff/input.c (get_optional_char): New function.
6249         * troff/input.c (set_page_character): Use get_optional_char(),
6250         rather than has_arg() and tok.get_char(1).
6251         * troff/env.c (tab_character, leader_character, hyphen_char,
6252         field_characters): Likewise.
6253         (margin_character): Likewise.  Also always delete the
6254         margin_character_node.
6256         * troff/input.c (token::get_char): Use token::description.
6258         * troff/input.c (has_arg): Don't skip over tab and \}.
6259         * troff/number.c (start_number): Give a warning if the number
6260         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6262 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6264         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6265         functions.
6266         (get_name, get_long_name): Use these.  Rename `warn' argument to
6267         `required'.
6269         * troff/node.c (get_fontno): Test that the symbol is not null.
6271         * troff/input.c (token::description): New function.
6272         * troff/number.c (parse_term): Use token::description in `numeric
6273         expression expected' message.
6274         * troff/groff.h: Add WARN_MISSING.
6275         * troff/number.c (start_number): New function.
6276         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6277         get_incr_number): Use start_number().
6278         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6279         default.
6280         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6281         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6282         token::descripion.
6283         * troff/input.c (token::get_char): Use WARN_MISSING.
6284         * troff/input.c (token::delimiter): Use token::description.
6285         * troff/env.c (environment_switch): Back out Aug 3 change.
6286         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6287         warning.
6288         * troff/token.h (token::tab): New function.
6289         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6290         * troff/reg.c (alter_format): Likewise.
6291         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6293 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6295         * troff (most files): Redo warnings. Divide warnings into various
6296         categories; warning() has an additional first argument indicating
6297         the category it falls into.
6298         * troff/input.c (main): -w now takes an argument. New option -W.
6299         (enable_warning, disable_warning): New functions.
6301         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6302         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6304 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6306         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6307         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6308         * xditview/devX75/eqnchar: Likewise.
6309         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6311         * eqn/other.c: When bar or over applies to a single character
6312         don't produce an overline_box or an underline_box. Instead produce
6313         an accent_box or an underaccent_box, with the accent a line
6314         whose width is accent_width.  New classes underaccent_box,
6315         overline_char_box and underline_char_box.
6316         * eqn/box.h: Move overline_box, underline_box, accent_box class
6317         declarations into eqn/other.c. Add declarations of
6318         make_underline_box, make_overline_box, make_accent_box.
6319         * eqn/eqn.y: Call make_overline_box, make_underline_box
6320         make_accent_box instead of constructors.
6321         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6323         * eqn/other.c: Add accent_box::~accent_box.
6324         * eqn/box.h: Declare it.
6326         * groff.sh: With -Tps, use eqn -D.
6328         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6329         rather than \l.
6330         (underline_box::output): Similarily.
6331         (accent_box::output): Use \Z.
6333         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6334         bit smaller.)
6336 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6338         * troff/div.c (top_level_diversion::transparent_output(unsigned
6339         char)): Use asciify.
6340         * troff/input.c (asciify): Don't make it static.
6341         * troff/token.h (asciify): Declare it.
6342         
6343         * troff/input.c (get_name, get_long_name, token::get_char,
6344         token::delimiter): Add an extra default argument which says
6345         whether a warning should be printed.
6346         * troff: Pass a non-zero argument to one of these rather than
6347         printing a warning directly.
6349 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6351         * troff: Consistently use symbol::is_null.
6353         * troff/dictionary.h: Move some inline functions into
6354         dictionary.c.
6356         * troff/request.h: Move inline functions into input.c.
6357         (request_or_macro::invoke): Make it pure.
6359         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6360         * troff/input.c (init_input_requests): Use class constant_int_reg.
6361         (class compatible_reg): Deleted.
6362         * troff/div.c (init_div_requests): Use class constant_int_reg.
6363         (class last_post_line_extra_space_reg): Deleted.
6365         * troff/env.c (tab_character): Don't change the tab character if
6366         we get an invalid argument.
6367         (hyphen_char): Similarily.
6369         * troff/reg.c (alter_format): Check that nm is not null.
6371         * Makefile, groff.sh: Make it possible to customize the commands
6372         used for printing PostScript and dvi files. Also make it possible
6373         to customize the path used by groff.sh.
6375         * eqn/eqn.y: Make `left' right associative.
6377 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6379         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6380         don't have it.
6382         * pic/pic.h: Removed definition of INT_MAX.
6384         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6385         `return'.
6387         * troff/input.c (token::next):  Handle \R like \n.
6389 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6391         * ps/tmac.pc (PSPIC): Simplify.
6393         * troff/env.c (tab_stops::to_string):
6394         * pic/pic.y (object_type_name):
6395         * pic/troff.c (simple_output::line):
6396         * pic/tex.c (tex_output::spline):
6397         * pic/object.c (object_spec::make_object):
6398         * tbl/main.c (process_data):  Add cases to switch statements to
6399         avoid cfront warnings. (Some of these are spurious, since the
6400         switch already has a default case.)
6402         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6403         `ps-'.  Don't test systat; instead check number of arguments to
6404         ps-bb.
6406 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6408         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6410         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6411         Unlink the file as soon as we have opened it, so that we don't
6412         have to bother with signal handlers.
6413         (handler): Deleted.
6414         (fatal_error_exit): Deleted.
6415         (main): Don't call signal.
6417         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6418         can be ignored.
6419         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6421         * pic/pic.y:  If there is a label, or an nth construction before
6422         the first `.' in the argument to `with', ignore it and generate a
6423         warning.
6424         * pic/lex.c (lex_warning): New function.
6426         * tbl/table.c (table::init_output): In section keep and release
6427         macro, use 0 indent when diverting and the correct indent when
6428         rereading.
6430         * troff/input.c (interpolate_number_format): Do not interpolate
6431         anything if the number register is not defined.
6433         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6435 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6437         * ps/devps/prologue (PICTURE): Set components of graphics state to
6438         their default values.
6440         * ps/devps/text.enc: Add trademark
6441         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6442         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6443         * ps/devps/symbolchars: Add names for summation and product.
6445         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6446         suchthat. Add pp. Add upper-case letters.
6448         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6449         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6450         Upsilon.
6452         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6453         rA (right angle bracket) to ra.  Introduce names for double-headed
6454         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6455         * ps/devps/textmap: Likewise for ps device.
6456         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6457         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6458         * tty/devascii/R.proto: Likewise.
6459         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6460         \(uA, \(dA.
6461         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6463         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6465         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6466         def_table.
6468 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6470         * troff/div.c (when_request): Use symbol::is_null rather than
6471         has_arg to determine whether we have an argument.
6472         (change_trap): Remove the trap if we get an invalid number. Give
6473         an error if we don't get at least the macro name.
6474         (diversion_trap): Remove trap if we get an invalid name or number.
6476         * troff/env.c (environment_switch): Pop if we get an invalid
6477         symbol or numeric expression.
6479         * troff/input.c (do_define_macro):  If EOF is encoutered while
6480         defining the macro, do tok.next() before returning.
6482         * troff/token.h (has_arg): Move definition from here, to ...
6483         * troff/input.c (has_arg): ... here
6485         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6486         * troff/input.c (shift): Likewise.
6488         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6489         for `.c'.
6491         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6492         `..'.
6494         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6495         interpret_lf_args succeeds.
6497         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6498         \\.  This avoids problems with \$N.
6500         * groff.sh: Pass -C to preprocessors.
6502         * lib/lf.c (interpret_lf_args):  Be more flexible.
6504         * tbl/main.c (main): Add -C option.
6505         (table_input::get): Do not recognize TE if followed by character
6506         other than a space or newline unless -C option given.
6507         (process_input_file): Likewise for lf, TS.
6508         (process_data): Likewise for lf in text blocks.
6510         * eqn/main.c (main): Add -C option.
6511         (do_file): Don't recognize EQ, EN or lf if followed by character
6512         other than space or newline unless -C option given.
6513         * eqn/lex.c (file_input::read_line): Similarily.
6514         * eqn/eqn.h: Declare compatible_flag.
6516         * etc/soelim.c (main): Add -C option.
6517         (interpret_lf_args): Use version in libgroff.
6518         (do_file):
6520         * pic/main.c (main): Add -C option, which sets compatible_flag.
6521         (top_input::get), (top_input::peek):  If -C option not given,
6522         do not recognize .PS/.PE/.PF/.lf if followed by a character
6523         other than space or newline.
6524         * pic/lex.c (file_input::read_line): Similarily.
6525         * pic/pic.h: Add declaration of compatible_flag.
6527 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6529         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6531         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6532         derived from node.  New class space_char_hmotion_node.
6533         * troff/input.c (asciify_macro): New function.
6534         * troff/input.c (init_input_requests): New request `asciify' bound
6535         to asciify_macro.
6536         * macros/mm.diff: New file.
6537         * Makefile:  In install.mm target use `patch' to apply
6538         macros/mm.diff.
6540         * troff/input.c (macro::print_size): Just print the size in bytes.
6542         * troff/div.c (return_request): Correct the argument
6543         interpretation.
6545 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6547         * troff/node.h (class composite_node): Add sz member.
6548         * troff/node.c (composite_node::size): Return sz.
6549         * troff/input.c (macro_to_node):  Use the initial size in the
6550         environment as the size of the composite_node.
6552         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6553         default.
6555 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6557         * troff/div.c (change_trap): If we get a bad number expression,
6558         do nothing.
6560 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6562         * lib/matherr.c (matherr): Define this only if math.h defines
6563         TLOSS.
6565 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6567         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6568         no diversion trap return vunits(INT_MAX - vresolution).
6570 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6572         * troff/input.c (do_zero_width): New implementation that doesn't
6573         use a temporary environment. Use instead:
6574         (token::add_to_node_list): New function.
6575         * troff/env.c (environment::get_prev_char_height),
6576         (environment::get_prev_char_height),
6577         (environment::get_prev_char_skew): New functions.
6578         (environment::get_prev_char): New function.
6579         (environment::get_prev_char_width): Change to use get_prev_char.
6580         (init_env_request): Implement new registers .cht, .cdp, .csk.
6581         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6582         \Z being processed in a separate environment.
6584 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6586         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6588         * tbl/table.c (table::init_output): In the section release macro,
6589         give a warning message if the section won't fit on one page.
6591         * tbl/table.c (table::do_top): Emit table keep only if table is
6592         boxed.
6593         (table::do_bottom): Likewise for table release.
6594         (table::table), (table::add_vertical_rule):  Remove reference to
6595         keep member.
6596         * tbl/table.h: Remove keep member.
6598         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6599         SECTION_RELEASE_MACRO, if there's not enough space before the next
6600         trap to output the diversion, call T# ourselves, set
6601         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6602         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6603         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6604         vertical position and return to it before turning traps on again.
6605         
6606 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6608         * troff/node.c, troff/node.h: In classes derived from node,
6609         replace prev_char_width method by last_char_node method.
6610         * troff/env.c (environment::get_prev_char_width): Use
6611         node::last_char_node rather than node::get_prev_char_width.
6613         * Makefile: Added comment about -fno-inline on 68030-based
6614         Apollos.
6616         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6617         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6618         expressions using sizeof to int.
6619         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6621         * macros/tmac.e (TS):  Don't move @f back past the current
6622         position.
6624 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6626         * ps/ps.c (main): Buffer stderr.
6627         * dvi/dvi.c (main): Likewise.
6628         * tty/tty.c (main): Likewise.
6630         * ps/ps.c (ps_printer::do_import): Improve error handling.
6632         * troff/input.c (abort_request): Use asciify.
6634         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6635         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6636         type of first argument int rather than char.  This works around a
6637         bug on the 68030 based Apollo using g++ 1.37.1.
6639         * tbl/table.h (class table): Add `keep' member.
6640         * tbl/table.c (table::table): Initialize `keep'.
6641         (table::add_vertical_rule): Set `keep' to 1.
6642         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6643         (table::do_bottom): Likewise for table release macro.
6644         (table::do_row): Emit section keep macro even if the row is 0.
6646 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6648         * macros/tmac.e (@C): Preserve the font family across the change
6649         in environments.
6651 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6653         * lib/font.c: Initialize font::hor and font::vert to 1.
6654         (font::load_desc): Check the values of font::hor and font::vert.
6656         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6657         be included in a C compilation.
6658         (iftoa): Use INT_DIGITS. Include lib.h.
6659         (itoa): Likewise.
6660         (as_string): Likewise.
6661         * tbl/table.c: Removed definition of INT_DIGITS.
6662         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6663         * troff/input.c (input_input_requests): Likewise.
6664         * ps/ps.c (make_encoding_name): Likewise.
6665         (ps_printer::set_style): Likewise.
6666         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6668         * tty/devascii/R.proto: Map fm onto '.
6669         * tty/devlatin1/R.proto: Likewise.
6671 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6673         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6674         argument to \w is at a different input level.
6676         * tbl/table.c (table::init_output): Define a new macro
6677         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6678         transparently outputs itself.
6679         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6680         vpt.
6681         (table::do_row): Likewise.
6683         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6684         TRANSPARENT_STRING_NAME.
6686         * tbl/table.c (table::init_output): In the table release macro
6687         print an error message and don't produce any output if after
6688         issuing the need request the table still will not fit.  Also
6689         remove the diversion after bringing it back.
6691         * tbl/table.c (table::init_output): Define a new macro
6692         REPEATED_MARK_MACRO, like mk but if in a diversion also
6693         transparently outputs itself.
6694         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6695         is necessary because .TH might not call .T#.
6696         (table::do_top): Likewise TOP_REG.
6697         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6698         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6699         table header might contain just the two top rules.
6701 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6703         * troff/div.c: Implement new request `ptr' to print all traps.
6705         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6706         init_string_env_reg.
6707         * troff/env.c (class tab_reg): Deleted.
6709 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6711         * troff/div.c: New number register .pn returns the number of the
6712         next page as set by the pn request.
6714         * macros/tmac.an: Redid headers and footers.  Number each manual
6715         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6716         optional 5th argument to .TH which specifies the manual name and
6717         appears in the center of the header.  Understand the X, P and D
6718         registers like Sun.
6720 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6722         * troff/env.c (init_env_requests): New number register `.lt' to
6723         return the title length.
6725         * troff/node.h (class transparent_dummy_node): New class.
6726         * troff/node.c (class transparent_dummy_node): Provide member
6727         functions. 
6728         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6729         than a dummy_node.
6731         * troff/input.c (token::next): New escape sequence \).
6732         * troff/input.c (get_copy): Recognize \) in copy mode.
6734         * troff/input.c (input_stack::clear): New function.
6735         * troff/input.c (exit_request): Use input_stack::clear.
6737         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6738         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6740         * troff/env.c: Move set_page_character to input.c.  Move
6741         page_character to input.c also.
6742         * troff/env.c (title): Split off the reading of the parts of the
6743         title into read_title_parts.
6744         * troff/input.c (read_title_parts): New function.  Check the
6745         input_level when testing whether a token matches the delimiter.
6747         * troff/input.c (exit_request): New function.
6748         * troff/input.c (init_input_requests): Bind ex request to
6749         exit_request rather than exit_groff.
6751         * troff/input.c (exit_groff): Call tok.next() before
6752         process_input_stack().
6754 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6756         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6757         * troff/env.h: ditto.
6758         * troff/input.c: ditto.
6760         * troff/env.c (environment::is_empty): Test pending_lines.
6762         * troff/env.c (environment::have_pending_lines): Removed.
6764         * troff/input.c: Add request to flush pending lines from the
6765         environment.
6767         * troff/env.c, troff/env.h: Add automatic widow control feature.
6769         * troff/input.c (exit_groff):  Do process_input_stack() after
6770         do_break() but before setting exit_flag to 2.
6772         * troff/input.c: Remove FLUSH_PENDING_LINES and
6773         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6774         environment after END_TRAP token seen, but only if there aren't
6775         any more traps still unfinished.
6776         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6778 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6780         * troff/env.c: Rename the `retain_size' member of class
6781         pending_output_line to `no_fill'.
6783         * troff/env.c (title): When the line is output, make the
6784         retain_size argument !fill.
6786         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6787         * troff/node.c (space_node::get_breakpoints),
6788         (dbreak_node::get_breakpoints):  Fill this in.
6789         * troff/env.c:  Allow specification of maximum number of
6790         consecutive hyphenated lines.
6792         * troff/env.c (environment::is_empty): Add test for !current_tab.
6794 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6796         * troff/env.c (environment::hyphenate_line): Don't completely give
6797         up if the word is not to be hyphenated; continue so that breaks
6798         can be made at break_char_node's.
6800         * lib/lib.h: Only define INT_MAX if it's not already defined;
6801         undef INT_MIN if it's already defined.
6803         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6805         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6806         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6807         compiler.
6808         
6809         * macros/tmac.an (an-header): Set no-space mode.
6811         * macros/tmac.an (TH): Start a new page if necessary.
6813         * Started using ChangeLog at version 0.4.
6815 Local Variables:
6816 version-control: never
6817 End: