* src/preproc/grn/grn.man: Added info about the gremlin file format
[s-roff.git] / ChangeLog
blob5fb62565f2f7059b33186433b12ca7b2738040b9
1 2000-02-26  Werner LEMBERG  <wl@gnu.org>
3         * src/preproc/grn/grn.man: Added info about the gremlin file format
4         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6 2000-02-25  Werner LEMBERG  <wl@gnu.org>
8         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9         friends to be non-integer.
11         * src/preproc/grn/grn.man: Document it.
13         * doc/groff.texinfo: Further checking/updating.  Adding more index
14         entries.
16 2000-02-24  Werner LEMBERG  <wl@gnu.org>
18         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
19         line thicknesses to be integer multiples of this value.
21         * src/preproc/grn/grn.man: Commenting out the -s option -- the
22         corresponding code doesn't work (yet).
24         * doc/groff.texinfo: Further checking/updating.  Adding more index
25         entries.
27 2000-02-23  Werner LEMBERG  <wl@gnu.org>
29         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
30         specify line thickness instead of base units.  The new default
31         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
32         thick lines respectively.
34         Removed unused variable `prevval'.
36         * src/preproc/grn/grn.man: Updated.
38 2000-02-22  Werner LEMBERG  <wl@gnu.org>
40         * src/preproc/grn/main.cc: Slight formatting.
42         * src/roff/groff/groff.man: Formatting fix.
43         * src/preproc/grn/grn.man: Ditto.
45         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
47         * doc/groff.texinfo: Further checking/updating.
49 2000-02-21  Werner LEMBERG  <wl@gnu.org>
51         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
53         * test-groff: Added grn subdir to path.
55         * doc/groff.texinfo: Some restructing and other small improvements.
57         * src/roff/groff/groff.cc (help): Fixed info string.
59 2000-02-20  Werner LEMBERG  <wl@gnu.org>
61         * doc/meref.me: Fix description of .GS request.
63         * src/roff/troff/troff.man: Fixing typo.
65         Adding the `grn' preprocessor for gremlin graphic files.
67         * src/preproc/grn/*: This is the Berkeley distribution written by
68         David Slattengren and Barry Roitblat, adapted to groff by Daniel
69         Senderowicz and Werner Lemberg.
71         * doc/grnexampl.{me,g}: A sample for grn.
73         * Makefile.in: Added subdirectory entry for grn.
75         * src/roff/groff/groff.cc: Added support for grn.  It can be now
76         called with the switch `-g'.
78         * src/roff/groff/groff.man: Updated.
80         * src/roff/grog/grog.{man,pl,sh}: Updated.
82         * NEWS: Updated.
84 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
86         * src/include/lib.h: Added xtmptemplate and made xtmpfile
87         parametrically polymorphic.
89         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
90         and the alterations to xtmpfile.
91         xtmpfile can be requested to return the filename created
92         and asked not to unlink the temp file.  The default behaviour
93         if parameters are absent is exactly the same as before.
95 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
97         A new request `length' is available which returns the length of a
98         string in a number register:
100         * src/roff/troff/input.cc (length_macro): Implement it.
101         * src/roff/troff/input.cc (init_input_requests): Register it.
103 2000-02-11  Werner LEMBERG  <wl@gnu.org>
105         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
106         of the `substring' request.
108         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
109         request.
111         * src/roff/troff/TODO, NEWS: Updated.
113 2000-02-09  Werner LEMBERG  <wl@gnu.org>
115         * src/roff/groff/groff.man: Added an example.
117 2000-02-06  Werner LEMBERG  <wl@gnu.org>
119         I've considerably modified the directory structure of the
120         distribution to get a more vertical layout.  For example, the number
121         of top level directories has been reduced from 42 to 6.
123         As a consequence, many changes, especially to the makefiles, were
124         necessary:
126         * The makefile variables `top_builddir' and `top_srcdir' have been
127         introduced.  Virtually all relative paths have been replaced with
128         absolute ones using these two variables.
130         * Dependencies (in the files `Makefile.dep') are no longer part of
131         the distribution.  Instead, they are created during a `make install'
132         in the build directory.
134         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
135         make `top_srcdir' and `top_builddir' absolute.
137         Some other changes:
139         * Man pages no depend on the files `VERSION' and `REVISION'.
141         * The added shell script `mkinstalldirs' will replace `mkdir' in
142         almost all cases.
144         * VERSION: Version number increased to 1.16.
146 2000-02-04  Werner LEMBERG  <wl@gnu.org>
148         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
150         * Makefile.in: Removed $(tmac_m) since it is no longer needed
151         (after an update of the mm stuff).
153         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
155 2000-02-03  Werner LEMBERG  <wl@gnu.org>
157         The .psbb request will now also accept Mac PS images (i.e. using LF
158         as the EOL character).
160         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
161         (with slight modifications).
162         * troff/input.cc (do_ps_file): Use it.
164         * test-groff: Add grohtml and grolj4 output devices to PATH.
166 2000-01-30  Werner LEMBERG  <wl@gnu.org>
168         * NEWS, MORE.STUFF: Updated.
170 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
172         Add the `srand' command to pic.
174         * pic/lex.cc, pic/pic.y: Implement it.
175         * pic/pic.man: Document it.
176         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
178 2000-01-30  Werner LEMBERG  <wl@gnu.org>
180         Add a new request `.psbb'.  This does exactly what the external
181         program psbb did.  It scans a PostScript image file for a
182         %%BoundingBox comment and extracts the bounding box values (in
183         PostScript units) which are then stored in the four new (read-only)
184         number registers `llx', `lly', `urx', and `ury'.
186         This will allow the usage of the .PSPIC macro without worrying
187         about unsafe behaviour of groff, i.e., it will work without the
188         `-U' switch of groff.
190         * troff/input.cc: Implement it.
191         * tmac/tmac.pspic: Use it.
192         * troff/troff.man, grops/grops.man, NEWS: Document it.
193         * psbb/*, Makefile.in: Remove it since it is no longer needed.
195         This is bloody C code simply adapted from psbb.c!  Any improvements
196         welcome.
198 2000-01-29  Werner LEMBERG  <wl@gnu.org>
200         * man/groff_font.man: Minor clarifications.
202         * NEWS: Updated.
204 2000-01-28  Werner LEMBERG  <wl@gnu.org>
206         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
208 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
210         * man/groff_font.man: Brought up to date regarding tcommand
211         extensions.
212         * libgroff/font.cc: Handle everything after `--' as a comment
213         in the font files.
214         * devps/*: Added comment delimiter inside devps font files.
216 2000-01-28  Werner LEMBERG  <wl@gnu.org>
218         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
219         \fC...\fP (which now works as expected).
221         * troff/troff.man: Fix typo.
223 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
225         Completed the pass_filenames implementation in troff.
227         * libdriver/input.cc: Will read the new `F' tcommand.
228         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
229         * troff/input.cc: Use it.
231 2000-01-26  Werner LEMBERG  <wl@gnu.org>
233         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
234         font will now be updated even if an invalid font is selected.
236 2000-01-24  Werner LEMBERG  <wl@gnu.org>
238         * doc/homepage.ms: Updated for new tmac.arkup.
240         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
242         * tmac/tmac.arkup: Cleanup.
244         Added `\&' to .HTML macro to `leave vertical mode', so to say.
246         Removed obsolete .LINK macro completely.
248         The macros .URL, .FTP, and .MAILTO now accept a third argument which
249         will be immediately appended to the second argument (to be used with
250         punctuation, for example).
252         Disabled .CDFTP macro temporarily for security reasons.
254         * tmac/groff_markup.man: Complete revision for latest changes in
255         tmac.arkup -- note that it does not yet format correctly with
256         grohtml :-(
258 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
260         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
261         * devutf8/R.proto: Add mappings for wp, lh, rh.
262         * devutf8/NOTES: Updated.
264 2000-01-23  Werner LEMBERG  <wl@gnu.org>
266         * doc/groff.texinfo: Updated version/copyright info.
268 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
270         Added support for two new directives in device descriptions:
271         `pass_filenames' (to pass the input file name to the output device)
272         and `use_charnames_in_special' (to support e.g. accented characters
273         in the `X' request).
275         * include/font.h, troff/charinfo.h: Declare it.
277         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
279         * devhtml/DESC: Use it.
281         * troff/input.cc: New function encoded_char.
283         * troff/token.h: Add test for `specialness'.
285 2000-01-21  Werner LEMBERG  <wl@gnu.org>
287         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
288         mistake from the list of files to be installed.
290 2000-01-18  Werner LEMBERG  <wl@gnu.org>
292         * README: Added info how to apply patches.
294 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
296         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
298 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
300         * troff/input.cc: Add support for troffrc-end.
302         * tbl/main.cc: Altered to issue table-start and table-end special
303         characters if using the html device.
305         * devhtml/*: Modified font files to incorporate html encoding of
306         characters.
308         * tmac/groff_markup.man: New file documenting tmac.arkup.
310         * tmac/troffrc-end: New file.  This is invoked after all user
311         specified macros.  Currently used by the html device to include
312         tmac.html.  Thus no need for users to specify -mhtml anymore.
314         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
315         (MAN7): Add groff_markup.man.
317         * tmac/tmac.an, tmac/tmac.html: Small html updates.
319         * tmac/troffrc: tmac.arkup will now be called for the html device.
321         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
322         extra device specific information about fonts.
324         * doc/homepage.ms: New file.  It is an example how an HTML home page
325         could look like with grohtml.
327         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
329 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
331         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
332         of Im, Re.
334         * devutf8/NOTES: Updated.
336 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
338         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
339         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
340         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
341         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
342         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
343         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
344         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
345         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
346         warnings.
348         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
350 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
352         grolj4: Paper size will be searched case-insensitively.
354         * grolj4/lib.h: Add check for strcasecmp().
355         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
356         * configure.in: Check for strcasecmp().
358 2000-01-11  Werner LEMBERG  <wl@gnu.org>
360         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
361         `REVISION'.
363 2000-01-10  Werner LEMBERG  <wl@gnu.org>
365         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
366         revision scheme.
368         Add a new read-only register, `.Y', which contains the groff
369         revision.
371         * troff/input.cc (init_input_requests): Define it.
372         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
373         * doc/groff.texinfo, troff/troff.man: Document it.
375         * libgroff/Makefile.sub (version.cc): Add definition of
376         `Version_string[]', consisting of `<major>.<minor>.<revision>'
377         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
378         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
379         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
380         troff/input.cc, pfbtops/pfbtops.c: Use it.
382 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
384         Add a revision scheme to the groff package.
386         * REVISION: New file.
387         * libgroff/Makefile.sub (version.cc): Use it to define
388         `revision_string[]'.
389         * grops/psrm.cc: Use revision_string (converted to an unsigned
390         integer) in constructor of resource_manager.
392 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
394         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
395         files.
396         * Makefile.in (DEVDIRS): Add devutf8.
397         * grotty/tty.cc: Include device.h.
398         (glyph): Change type of `code' to `unsigned int'.
399         (tty_printer): New field is_utf8.  Constructor takes device argument.
400         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
401         (tty_printer::add_char): Change type of first arg to `unsigned int'.
402         (tty_printer::put_char): New function.
403         (tty_printer::end_page): Use put_char() instead of ::putchar().
404         (make_printer): Pass device to tty_printer constructor.
405         * nroff.sh: Determine default device by calling 'locale'.  As a
406         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
407         Recognize UTF-8 locales.
408         * tmac/eqnrc: Recognize utf8 like latin1.
409         * tmac/troffrc: Device utf8 needs tmac.tty.
411 2000-01-07  Werner LEMBERG  <wl@gnu.org>
413         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
415 2000-01-07  Paul Eggert  <eggert@twinsun.com>
417         Add a new predefined writeable number register, `year',
418         which contains the current year.
420         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
421         * tmac/tmac.s: Use it.
422         * troff/input.cc (init_registers): Initialize it.
424 2000-01-06  Werner LEMBERG  <wl@gnu.org>
426         * PROBLEMS: Fixed typo.
428 2000-01-04  Paul Eggert  <eggert@twinsun.com>
430         * PROBLEMS: Add Y2k advice for the yr number register.
432 2000-01-03  Paul Eggert  <eggert@twinsun.com>
434         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
436 2000-01-02  Werner LEMBERG  <wl@gnu.org>
438         * tmac/tmac.arkup: Slight modification of macros to provide better
439         appearance for non-HTML formats.
441 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
443         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
444         does not automatically translate to malloc(n) on all OSes
445         (e.g., SunOS) so do it explicitly.  Also, check the returned
446         value.
448 2000-01-01  Werner LEMBERG  <wl@gnu.org>
450         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
452         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
453         expects this variable
455 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
457         * doc/Makefile: Added instructions to create HTML and text
458         versions of some files.
460 1999-12-31  Werner LEMBERG  <wl@gnu.org>
462         * Updated INSTALL.gen.
464         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
465         better resp. correctly with non-HTML devices.
467 Version 1.15 released
468 =====================
470 1999-12-28  Werner LEMBERG  <wl@gnu.org>
472         * NEWS, VERSION: Changed to 1.15
474 1999-12-27  Paul Eggert  <eggert@twinsun.com>
476         * nroff/nroff.man: -S is safer, not safe.
478         * groff/groff.cc (main): Use `safer', not `safe', in variable
479         names.  This does not change the behavior.
481         * troff/input.cc (main): Likewise.
483         * nroff/nroff.sh: Likewise.
485         * troff/input.cc (prepend_string): New function.
486         (main): Prepend -msafer, so that we check macro libraries for
487         safety.
489         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
491 Version 1.14 released
492 =====================
494 1999-12-26  Werner LEMBERG  <wl@gnu.org>
496         * NEWS, VERSION: Changed to 1.14.
498 1999-12-24  Werner LEMBERG  <wl@gnu.org>
500         * refer/refer.cc: Fixing the last fix.
502 Version 1.13 released
503 =====================
505 1999-12-23  Werner LEMBERG  <wl@gnu.org>
507         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
508         number disappear.
510         * NEWS: Updated.
512         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
514         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
515         document conventions, the version number must be a real.
517 Version 1.12.1 released
518 =======================
520 1999-12-22  Werner LEMBERG  <wl@gnu.org>
522         * VERSION: Changed to 1.12.1.
524 1999-12-22  Alan Rooks  <arooks@istar.ca>
526         * refer/refer.cc (do_file): Slight modification to satisfy the
527         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
528         UnixWare 7.1.
530 1999-12-20  Werner LEMBERG  <wl@gnu.org>
532         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
533         notices.
535         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
536         list of unsafe requests.
538         * pic/pic.man: Fixed a typo.
540         * man/groff_out.man: Fixed a typo.
542 1999-12-18  Werner LEMBERG  <wl@gnu.org>
544         * Makefile.in: Doc fixes.
546 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
548         * groff/groff.cc: Missing `U' option added to getopt().
550         * troff/troff.man: Missing `U' option added to synopsis.
552 Version 1.12 released
553 =====================
555 1999-12-14  Werner LEMBERG  <wl@gnu.org>
557         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
558         to the synopsis.
560         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
561         with the more appropriate terms `safer' and `unsafe'.
563         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
564         sys_nerr and sys_errlist[].
566         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
568         * pic/pic.y, pic/pic.cc: Added check for fmod().
570 1999-12-13  Werner LEMBERG  <wl@gnu.org>
572         * VERSION: Changed to 1.12.
574         Here some patches from various sources; most of them taken from
575         the Debian distribution.
577         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
578         tmac/Makefile.sub: New files copied directly from the NetBSD
579         distribution.  Probably, some additional adaptation later on is
580         necessary...
582         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
583         of unsafe requests.
585         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
586         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
587         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
588         (`-S') is now the default.
590         * README, NEWS: Updated.
592 1999-12-09  Werner LEMBERG  <wl@gnu.org>
594         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
596         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
598 1999-12-06  Werner LEMBERG  <wl@gnu.org>
600         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
601         grief than relief today.  Additionally, it is against the GNU
602         coding standards.
604         * configure: Recreated.
606 1999-12-05  Werner LEMBERG  <wl@gnu.org>
608         * configure.in: Added GROFF_LIBM.
610         * configure: Recreated.
612         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
613         necessary.
615         * Makefile.in: Added definition of $(LIBM).
617         * Makefile.comm (LIBM): Removed.
619         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
621 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
623         * doc/Makefile: Added rule for generation pic.html.
625         (clean): Files produced by grohtml will be removed also.
627         * doc/pic.ms: Small fix.
629         * tmac/tmac.html: Fixed suppression of headers.
631 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
633         * tmac/tmac.html: Fixing horizontal arrows.
635         Turning off hyphenation.
637         * tmac/tmac.an: Improved support for grohtml; better indentation,
638         no footers/headers.
640 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
642         * tmac/tmac.arkup: Added CDFTP macro
644         * tmac/tmac.html: All headers are turned off for ms, me, and mm
645         macros.
647         * tmac/troffrc: Some additions for HTML stuff.
649 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
651         * tmac/tmac.html: Small changes.
653 1999-09-26  Werner LEMBERG  <wl@gnu.org>
655         * doc/groff.texinfo: Minor fixes.
657 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
659         * devhtml/TR: Changed spacewidth to 3.
661         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
663         * tmac/tmac.html: Moved markup macros to tmap.arkup.
665         * tmac/tmac.arkup: New file.
667         * grohtml/ChangeLog: New file.
669 1999-09-16  Werner LEMBERG  <wl@gnu.org>
671         * doc/groff.texinfo (Common Features): Added Copying chapter.
672         Changed format to @smallbook.
674 1999-09-15  Werner LEMBERG  <wl@gnu.org>
676         * NEWS: Added info about groff.texinfo.
678         * doc/groff.texinfo: Will now compile (using texi2dvi) without
679         warning messages.
681 1999-09-14  Werner LEMBERG  <wl@gnu.org>
683         * groff/groff.man: More updates.
685 1999-09-13  Werner LEMBERG  <wl@gnu.org>
687         * doc/groff.texinfo: New file.  This manual is still very
688         rudimentary.  It has been originally contributed by Trent
689         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
690         additions by me.
692         * INSTALL: Added information about the `doc' subdir
694         * troff/troff.man: Minor fixes.
696         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
697         reordered options.
699         * troff/input.cc (usage): Added missing `-ffam' to usage message.
701         * Makefile.in (dist): groff-$(version).tar.gz must be removed
702         also, otherwise it is included itself in another call of `make
703         dist'.
705         * groff/groff.cc (synopsis): Removed superfluous space.
707         * PROJECTS, PROBLEMS, NEWS: Updated.
709         * xditview/Makefile: Removed.
711         * VERSION: Updated to 1.12beta.
713         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
715         * README: Updated: Included documentation about CVS repository,
716         mailing lists, and daily snapshots.
718         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
720 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
722         * tmac/tmac.an: If the tag didn't fit into the space that the
723         macro `TP' specifies, the rest of the tag went into the space for
724         the next line.
726 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
728         * grolj4/lj4.cc: Added duplex printing (option `-d').
730         * grolj4/grolj4.man: Document duplex printing.
732 1999-09-12  Werner LEMBERG  <wl@gnu.org>
734         * doc/Makefile (pic.ps): Fixed rule which caused problems with
735         non-GNUish sed programs.
737         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
738         definition.
740         * configure.in (LIBS): Added `-lc'
742         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
744         * pic/tex.cc (solid_arc): Casting M_PI to double.
746         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
748         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
749         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
750         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
752         * groff/groff_man.man: New file.  This manual page was originally
753         written for the Debian GNU/Linux system by Susan G. Kleinmann
754         <sgk@debian.org>.
756         * eqn/list.cc (list_box::compute_metrics,
757         list_box::compute_sublist_width): Removed variable declaration to
758         avoid shadowing warnings.
760         * grops/psrm.cc (resource_manager::process_file): Ditto.
762         * tfmtodit/tfmtodit.cc (main): Ditto.
764         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
765         to avoid shadowing warnings.
767         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
768         shadowing loop variable.
770         * groff/groff.man, troff/troff.man: Added doc about grohtml.
772 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
774         New grohtml frontend to convert groff input to html.
776         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
778         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
780         * tmac/eqnrc: Added html device.
782         * tmac/tmac.html: New file.
784         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
785         (troff_output::start_picture, troff_output::finish_picture),
786         tbl/main.cc (process_input_file):
787         Surrounded output with `graphics_start' and `graphics_end' so that
788         the html driver can identify non-text portions.
790         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
791         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
792         grotty/tty.ps (tty_printer::set_char): Additional parameter
793         `name'.
795         * include/printer.h: Class printer: New function
796         set_char_and_width; new variables (is_char_named, is_named_set,
797         named_command, named_char_s, named_char_n) to hold information
798         about named characters -- needed by the html driver.
800         * libdriver/printer.cc (printer::set_ascii_char,
801         printer::set_special_char): Use set_char_and_width.
803         * devhtml/*: New device files for html driver.
805         * grohtml/*: New driver grohtml.
807 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
809         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
810         default strings.
812 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
814         * libgroff/string.cc (search): Small fix to test against NULL
815         pointer.
817 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
819         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
820         \b'abc') were stacked in reverse order when processed in a
821         diversion.
823         * troff/node.h: Added `*last' to struct `node' to make the above
824         fix work.
826         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
827         The default scale for the 'f' and 't' graphics functions were 'm'
828         rather than 'u' (i.e., no scaling).
830 1999-09-11  Peter Miller  <peterm@jna.com.au>
832         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
833         do_file), soelim/soelim.man: Added `-I file' option to soelim,
834         defining include paths.
836         * soelim/soelim.cc (include_path_append): New function.
838 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
840         * tbl/main.cc (process_options): Unix (at least Documenter's
841         Workbench) tbl allows arbitrary non-alpha characters between
842         options.
844 1999-09-11  Paul Eggert  <eggert@twinsun.com>
846         Y2k fixes.  Don't assume that the current year precedes 2000.
848         * doc/meref.me: Add \n(y2, \n(y4.
850         * tmac/doc-common (Yr): New number register.
851         (Dd): Don't assume current year precedes 2000.
853         * tmac/tmac.e (td): Likewise.
854         (y2, y4): New number registers.
856         * pic/pic.man: Update reference for pic paper to May, 1991
857         version.
859 1999-09-11  Werner LEMBERG  <wl@gnu.org>
861         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
862         Removed quotation marks which prevented correct expansion of
863         $(tmac_wrap).
865         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
867 1999-09-10  Werner LEMBERG  <wl@gnu.org>
869         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
870         `config.cache'.
872         * Removed configure.old.
874 1999-08-31  Werner LEMBERG  <wl@gnu.org>
876         * VERSION: Updated to 1.11.1
878 1999-05-27  Werner LEMBERG  <wl@gnu.org>
880         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
882         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
883         added quotations around $(tmac_wrap) to avoid syntax error if
884         variable is empty.
886         * configure: Newly generated using autoconf 2.13.
888         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
890 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
892         * README, PROJECTS, NEWS, INSTALL, VERSION, 
893         doc/Makefile. doc/pic.ms, groff/groff.man:
894         Prepare for 1.11 release.  No code changes.
895         Documentation for pic added (doc/pic.ms).
897 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
899         * Version 1.10 released.
901 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
903         * afmtodit/afmtodit.pl: Avoid comment on first line.
905 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
907         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
908         * configure.in: Call it.
910         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
911         (distfiles): Doesn't depend on config.log or config.cache.
913 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
915         * grog/grog.sh: Use print "" rather than print in END rule.
917 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
919         * tbl/main.cc (process_data): Don't give error for excess data
920         entries that are comments.
922 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
924         * tbl/main.cc (process_data): Fix case where new for-scope rules
925         silently change meaning of code.
927 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
929         * troff/env.cc (hyphenate): Loop over all consecutive sequences
930         of non-zero hyphenation codes.
932 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
934         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
936 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
938         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
940 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
942         * tmac/tmac.andoc: Make it work in compatibility mode.
944         * refer/token.h (token_info::is_range_sep): New function.
945         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
946         * refer/ref.cc (reference::output): More sophisticated check for
947         multiple pages.
949         * devps/prologue.ps (MANUAL): New procedure.
950         * grops/ps.cc (main): New -m option.
951         (usage): Include -m.
952         (ps_printer::~ps_printer): Implement -m.
954         * aclocal.m4 (GROFF_G): New macro.
955         * configure.in: Call it.
956         * Makefile.in (g): Provided by configure.
958         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
960         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
961         translations.
963         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
964         (tmac_m, tmac_s): Deleted.
965         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
966         tmac_s_prefix): New variables.
967         (MDEFINES): Change accordingly.
968         * Makefile.comm (.man.n): Use new TMAC_* variables.
969         * configure.in (GROFF_TMAC): Call.
970         * aclocal.m4 (GROFF_TMAC): Define.
971         * tmac/Makefile.sub (stamp_wrap): New target.
972         (install_data, uninstall_sub): Handle macro wrapping.
974 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
976         * tbl/main.cc (main): Ignore -T option.
978 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
980         * devlj4/generate/special.map: Add definition of \(nb.
982         * tmac/tmac.dvi: Add definition of \(nb.
984         * troff/dictionary.c (dictionary::dictionary): association::v gets
985         initialized by association::association.
987         * tmac/Makefile.sub: Avoid using temporary files when installing.
989         * troff/env.cc (environment::set_font): Make bad font number a
990         warning.
992         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
994         * Makefile.in (datadir): Use share rather than lib.
996         * groff/groff.cc (basename): Rename to xbasename.
998 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1000         * Makefile (CCLIBS): Don't use.
1001         * Makefile.ccpg: Likewise.
1003         * acgroff.m4: Rename to...
1004         * aclocal.m4: Modify extensively for autoconf 2.
1005         * configure.in: Likewise.
1006         * Makefile.in: Likewise.
1008         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1009         defined.
1010         (xstrsignal): Check for definition of NSIG. Conditionalize
1011         on SYS_SIGLIST_DECLARED.  Make return type const.
1013 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1015         * troff/input.cc (interpolate_macro): Rephrase missing space
1016         warning.
1018 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1020         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1021         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1022         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1023         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1024         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1025         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1026         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1027         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1028         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1029         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1030         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1031         Fix 'for' scoping.
1033 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1035         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1036         string_iterator.
1037         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1038         file.
1039         (macro_iterator::macro_iterator): Add additional argument.
1041 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1043         * troff/div.cc (vertical_size::vertical_size): In place of integer
1044         specifying line spacing use cunits specifying post vertical
1045         space.
1046         (macro_diversion::output, top_level_diversion::output): Likewise.
1047         * troff/div.h: Change declarations accordingly.
1048         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1049         field.
1050         (pending_output_line::pending_output_line,
1051         pending_output_line::output, environment::output,
1052         environment::output_line, environment::output_title,
1053         environment::hyphenate_line):  In place of
1054         integer specifying line spacing use cunits specifying post vertical
1055         space.
1056         (environment::environment): Add post_vertical_spacing and
1057         prev_post_vertical_spacing arguments.
1058         (environment::get_post_vertical_spacing): New function.
1059         (environment::total_post_vertical_spacing): New function.
1060         (environment::post_vertical_spacing): New function.
1061         (init_env_requests): Initialize pvs request and .pvs register.
1062         * troff/env.h: Change declarations.
1064 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1066         * tmac/tmac.pspic: Immediately remove the temporary file.
1068 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1070         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1071         height is specified.
1073 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1075         * tbl/table.c (struct vertical rule, class table_entry): Use int
1076         not short for start_row and end_row.
1078 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1080         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1081         functions.
1082         (diverted_space_node::reread, process_input_stack): Call
1083         trapping_blank_line() rather than blank_line().
1084         (init_input_requests): Bind "blm" to blank_line_macro().
1086         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1088 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1090         * troff/env.cc (environment::possibly_break_line): Require that
1091         width total excluding width of final space node be greater than
1092         the target text length.
1094 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1096         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1098 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1100         * troff/node.cc (charinfo_node): New class.
1101         (glyph_node, composite_node): Derive from charinfo_node.  Change
1102         member functions accordingly.
1104 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1106         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1108 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1110         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1112         * devps/generate/textmap (notsubset): Add.
1114         * tmac/tmac.a4: New file.
1116 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1118         * pic/main.cc (had_parse_error): New variable.
1119         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1120         returns non-zero.
1121         (main): Return 1 if had_parse_error is true.
1123 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1125         * grolj4/lj4.cc (main): Avoid use of strtoul.
1127 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1129         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1130         iso_8859_1 or $LESSCHARSET is latin1.
1132 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1134         * hpftodit: New directory.
1135         * Makefile.in (CCPROGDIRS): Add hpftodit.
1136         * devlj4/generate: New directory.
1138 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1140         * configure.in: Don't use AC_VFORK.
1141         * groff/pipeline.c (run_pipeline): Use fork() always.
1143 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1145         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1147         * Makefile.in (CCPROGDIRS): Add grolj4.
1148         (DEVDIRS): Add devlj4.
1149         * grolj4, devlj4: New directories.
1150         * tmac/troffrc: Handle lj4.
1151         * tmac/tmac.lj4: New file.
1153 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1155         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1157 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1159         * troff/input.cc (do_if_request): At end of second string, switch
1160         environments before getting next token.
1162 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1164         * devps/psstrip.sed: Split rule that strips whitespace on either
1165         side of delimiters.
1167 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1169         * troff/node.h (font_family::make_definition): Add return value to
1170         declaration.  * troff/symbol.h (symbol::operator==,
1171         symbol::operator!=): Likewise.
1173 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1175         * groff/groff.cc (main, help, synopsis): Handle -S.
1176         (possible_command::insert_arg): New function.
1178         * tmac/tmac.safer: New file.
1179         * tmac/msafer.man: New file.
1180         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1182 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1184         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1185         * pic/pic.y (placeless_element): Avoid unsafe operations if
1186         `safer_flag' is set.
1187         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1189 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1191         * eqn/lex.cc (get_token): Put call to add_context() in block to
1192         work around Sun C++ 4.0 bug.
1194         * include/stringclass.h (operator +): Use ?: instead of `if' to
1195         work around Sun C++ 4.0 bug.
1197 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1199         * tbl/main.cc (process_format): Accept - as a synonym for the _
1200         key letter.
1202         * libbib/index.cc (minus_one): Don't declare as const.
1204 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1206         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1208 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1210         * troff/input.cc (write_macro_request): New function.
1211         (init_input_requests): Bind write_macro_request to writem.
1213 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1215         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1216         equation.
1218         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1220         * tmac/tmac.s (@TS): Renamed from TS.
1221         (TS): Call LP then TS again.
1222         (cov*ab-init): Alias @TS to TS.
1224         * tmac/tmac.s: Allow QP or RS to initialize.
1226         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1227         Move initializations of PS and LL here.
1228         (par@init): Don't initialize HY.  Avoid changing environment 0.
1229         (par*env-init): Don't all par@reset.
1231 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1233         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1235 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1237         * Makefile.in (MDEFINES): Add LDFLAGS.
1238         (LDFLAGS): Add definition line.
1240 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1242         * troff/input.cc (get_optional_char): Split off error check into...
1243         (check_missing_character): New function.
1244         * troff/token.h: Declare it.
1245         * troff/env.cc (margin_character): Don't call get_optional_char.
1246         Only call tok.next() after making the node.
1248         * include/lib.h (getopt): Make 2nd argument char *const *.
1250 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1252         * nroff/conftest.sh: Deleted.
1254 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1256         * pic/make-dos-dist: Deleted.
1258 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1260         * devps/psstrip.sed: Strip comments before stripping trailing
1261         white space.
1263 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1265         * Version 1.09 released.
1267 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1269         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1271 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1273         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1275 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1277         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1278         about returning without a value.
1280         * troff/charinfo.h (charinfo::get_special_translation): Cast
1281         TRANSLATE_NONE to int.
1283         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1284         test.  Fix test so that it works with n unsigned.
1286         * pic/pic.y (defaults_table): Fully bracket initializer.
1287         * pic/lex.cc (lookup_keyword): Likewise.
1288         * eqn/lex.cc (token_table, def_table): Likewise.
1289         * eqn/box.cc (param_table): Likewise.
1290         * troff/input.cc (warning_table): Likewise.
1291         * libgroff/font.cc (table): Likewise.
1292         * grops/ps.cc (ps_printer::special): Likewise.
1293         * grops/psrm.cc (resource_manager::process_file): Likewise.
1294         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1295         * refer/command.cc (command_table): Likewise.
1296         * addftinfo/addftinfo.cc (param_table): Likewise.
1298         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1299         about temp's being unused.
1300         (unused): New function.
1302         * groff/pipeline.cc: Declare c_fatal.
1304         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1305         uchar.
1307         * libbib/index.cc (index_search_item::load): Prevent compiler
1308         warnings about fd_closer's being unused.
1309         (unused): New function.
1311 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1313         * troff/input.cc (copy_mode_error): Make `prefix' static.
1314         Fix typo.
1316         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1317         defined.
1318         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1319         HAVE_CC_OSFCN_H and modify accordingly.
1321         * troff/input.cc (init_charset_table): radicalex overlaps
1322         horizontally.
1324         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1325         udodo!hans@relay.NL.net).
1326         * groff/configure.in: Call it.
1328         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1329         * groff/configure.in: Call it.
1330         * include/lib.h: Conditionalize declaration of pclose.
1332         * troff/div.cc (last_page_number): New global variable.
1333         (top_level_diversion::begin_page): Exit if we just printed the
1334         last page.
1335         * troff/div.h (last_page_number): Declare it.
1336         * troff/input.cc (parse_output_page_list): Set last_page_number.
1338         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1339         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1340         tmac/tmac.X: Likewise.
1341         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1342         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1344 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1346         * tmac/doc-ditroff (hK): Remove groff specific code which
1347         prevented page-breaks between separate manual entries.  If this is
1348         the first page, don't set the page number to 1.
1350         * acgroff.m4 (GROFF_POSIX): New macro.
1351         * configure.in: Use it.
1353         * troff/node.cc (class real_output_file,
1354         real_output_file::real_output_file,
1355         real_output_file::~real_output_file): Conditionalize use of
1356         popen/pclose on POPEN_MISSING.
1357         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1358         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1359         (pipe_source): Similarily.
1361         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1363         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1364         presence of declarations by trying to compile example with
1365         conflicting declarations.  (gcc only gives a warning for missing
1366         declarations.)
1368 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1370         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1371         (from Ulrich Lauther).
1373 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1375         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1377 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1379         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1380         pointers and ints have different sizes.
1382 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1384         * tmac/tmac.s (par*env-init): Call par@reset.
1386 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1388         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1389         tag.
1390         (par*push-tag-env, par*pop-tag-env): New macros.
1392 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1394         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1395         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1397         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1398         comment.  Include <time.h>.
1400 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1402         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1403         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1404         lines.
1406 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1408         * troff/input.cc (read_request): Only print a prompt if reading
1409         from the terminal.  Also clearerr on EOF if reading from the
1410         terminal.  Declare isatty.
1412 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1414         * refer/label.y: Rename map_t to map_func and extractor_t to
1415         extractor_func.
1417 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1419         * include/assert.h: Don't use volatile.
1420         * libgroff/assert.cc: Likewise.
1422 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1424         * troff/input.cc (abort_request): Look at character in tok before
1425         calling get_copy().
1427 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1429         * troff/troff.h (NO_RETURN): Deleted.
1430         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1431         * troff/input.cc (exit_troff): Likewise
1433         * Makefile.in: Remove `Making ...' messages since GNU make now
1434         gives these. 
1436         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1438 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1440         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1441         to constant 1 inch.
1443 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1445         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1447 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1449         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1450         MARK_REG if there was no left delimiter.
1452 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1454         * pic/troff.cc (troff_output::text): Set line thickness to
1455         relative before outputting text.
1457         * tmac/tmac.e (@k): Don't zero ?T.
1458         ((z): Likewise.
1460 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1462         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1464 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1466         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1467         Paul Eggert).
1469 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1471         * troff/input.cc (ignoring): New variable.
1472         (ignore): Set ignoring during call to do_define_macro.
1473         (do_define_macro): Clear ignoring before interpolating terminating
1474         macro.
1475         (copy_mode_error): New function.
1476         (get_char_for_escape_name, read_long_escape_name,
1477         interpolate_arg): Use copy_mode_error.
1478         (warning_table): Add WARN_IG.
1479         * troff/troff.h (WARN_IG): Declare.
1480         (WARN_TOTAL): Change accordingly.
1482         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1483         * groff/groff.cc (strsignal): Delete declaration.
1485 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1487         * troff/div.cc (page_offset): Use 'm' as default scaling.
1489 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1491         * nroff/nroff.sh: Ignore -u.
1493 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1495         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1497 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1499         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1500         drawing box.
1501         (B2): With -Tascii, leave additional vertical space before
1502         and after. Ensure that the left and right indent is restored to
1503         what it was even if the point size changes.  Don't call
1504         par@finish. Change the indent, line length and title length
1505         directly.  With -Tascii, make the width of the box 1n less.
1506         (B1): Remember 1n at the current point size.  Don't call
1507         par@reset.  Change the indent, line length and title length
1508         directly.  Ensure that the temporary indent is preserved.
1509         (par*box-mark-top): Turn off no spacing mode.
1511 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1513         * Makefile.in (dist): Use .gz suffix.
1515 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1517         * troff/input.cc (main): Add return 0.
1518         * pic/main.cc (main): Use return instead of exit.
1519         * tbl/main.cc (main): Likewise.
1520         * eqn/main.cc (main): Likewise.
1521         * grops/ps.cc (main): Likewise.
1522         * grotty/tty.cc (main): Likewise.
1523         * groff/groff.cc (main): Likewise.
1524         * grodvi/dvi.cc (main): Likewise.
1525         * refer/refer.cc (main): Likewise.
1526         * indxbib/indxbib.cc (main): Likewise.
1527         * lkbib/lkbib.cc (main): Likewise.
1528         * soelim/soelim.cc (main): Likewise.
1529         * addftinfo/addftinfo.cc (main): Likewise.
1530         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1531         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1533         * troff/token.h (process_input_stack): Don't declare as static.
1534         * troff/input.cc: Likewise.
1536         * troff/node.c (invalidate_fontno): Make it a static member of
1537         class font_family.  Change callers.
1538         * troff/node.c: Change declaration.
1540         * tbl/main.cc (struct input_entry_format): Add explicit public
1541         specifier.
1542         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1543         struct double_hline_stuff): Likewise.
1544         * tbl/table.h (struct entry_format): Likewise.
1545         * pic/object.h (struct saved_state): Likewise.
1547         * include/stringclass.h: Add forward declarations of friend
1548         functions that are later declared as inline.  Don't include inline
1549         specifier in friend declaration.
1551         * libgroff/lib.h: Declare popen and pclose.
1552         * acgroff.m4 (GROFF_POPEN): New macro.
1553         * configure.in: Call it.
1555         * include/lib.h (PI): New constant. Undef first if necessary.
1556         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1557         * grops/ps.cc (degrees, radians): Likewise.
1558         * libgroff/font.cc (font::get_skew): Likewise.
1560         * grops/ps.cc (is_ascii): New function.
1561         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1562         isprint.
1563         (ps_printer::define_encoding): Use csspace.
1564         * libgroff/strtol.c (ISASCII): New macro.
1565         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1566         Use ISASCII rather than isascii.
1567         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1568         * libgroff/cset.cc: Likewise.
1569         * libdriver/input.cc: Include cset.h.
1570         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1571         than isdigit().
1573         * refer/refer.cc (main): Use %ld rather than %d for longs.
1575         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1576         S_ISREG macro.
1578         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1580 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1582         * troff/input.cc (hyphenation_code): Skip white space between
1583         char/code pairs.
1585 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1587         * tbl/table.h (table::entry_list_tailp): New member.
1588         (table::table): Initialize it.
1589         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1590         behaviour.
1592 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1594         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1595         with negative horizontal positions. Remove casts of glyph::hpos to
1596         int.
1597         (USHRT_MAX): Delete definition.
1598         (SHRT_MAX, SHRT_MIN): New definitions.
1599         (glyph::hpos): Change type to short.
1600         (tty_printer::end_page): Output multiple backspaces if necessary.
1601          Remove casts of glyph::hpos to int.
1602         
1603 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1605         * tmac/tmac.s (@RT): New definition.
1607 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1609         * refer/refer.cc (do_file): Make sure current_filename is set when
1610         filename is "-".
1612         * pic/common.cc (common_output::dot_line): Handle zero length
1613         lines.
1615 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1617         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1618         (par@init): Initialize \n[HY].
1620 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1622         * troff/dictionary.cc (dictionary::remove): Continue when
1623         r < j < i.
1625 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1627         * Makefile.com (.y.cc): Avoid ending up with two versions of
1628         $(YTABH).
1630 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1632         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1633         (\(,C): Likewise.  Also fix typo.
1635 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1637         * lib.h: Delete extraneous semi-colon.
1639         * Add pso request: `so' from a pipe.
1640         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1641         (file_iterator::close): New function.
1642         (file_iterator::~file_iterator, file_iterator::next_file): Use
1643         file_iterator::close.
1644         (file_iterator::backtrace): Say `process' rather than `file' when
1645         the stream is popened.
1646         (pipe_source): New function.
1647         (init_input_requests): Bind ".pso" to pipe_source.
1649 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1651         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1653         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1654         digits in lower case.
1656 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1658         * Version 1.08 released.
1660         * Makefile.in (dist): Insert || true after ln -s commands that
1661         might fail.
1663         * mm: Update to mm 1.16.
1665         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1666         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1667         SH_SCRIPT_SED_CMD.
1668         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1669         MDEFINES.
1670         * nroff/Makefile.sub (nroff): New target.
1671         (install_data): Install nroff.
1672         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1673         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1675 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1677         * eqn/Makefile.sub (neqn): Add chmod +x.
1679         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1681 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1683         * troff/input.cc (string_iterator::string_iterator()): Initialize
1684         lineno and count.
1686 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1688         * troff/div.cc (macro_diversion::space,
1689         top_level_diversion::space): Don't set high_water_mark.
1690         (macro_diversion::output, top_level_diversion::output): Don't
1691         include post line space in high water mark.
1693 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1695         * eqn/eqn.y: Don't define YYDEBUG.
1696         * pic/pic.y: Likewise.
1698 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1700         * tmac/tmac.e ([3): Add space after comma following editors.
1701         Change double spaces to single spaces.
1702         ([4): Change double spaces to single spaces.
1704         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1705         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1706         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1707         after %!PS-Adobe- (for Newsprint).
1709         * troff/div.cc (top_level_diversion::begin_page): When
1710         before_first_page is 1, set page_number to 1.
1712 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1714         * eqn/box.cc (box::top_level): Protect equation with \&.
1716 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1718         * groff/groff.cc (possible_command::set_name): Delete old name.
1720         * groff/groff.cc (possible_command::~possible_command): Use
1721         a_delete.
1723         * troff/node.cc (troff_output_file::begun_page): New member.
1724         (troff_output_file::troff_output_file): Initialize it.
1725         (troff_output_file::really_begin_page): Only output V command if a
1726         page has been begun.
1728         * pic/pic.y (placeless_element): Delete argument to PRINT after
1729         use.
1731 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1733         * Make wrapman work.
1734         * troff/div.h (class top_level_diversion): Replace
1735         first_page_begun by before_first_page (with opposite sense).
1736         * Change first_page_begun to before_first_page inverting sense.
1737         * troff/div.cc (class nl_reg): New class.
1738         (init_div_requests): Use class nl_reg for \n(nl.
1739         (top_level_diversion::begin_page): Don't call
1740         output_file::begin_page if before_first_page is 2;
1741         reset before_first_page afterwards.  If have_next_page_number is
1742         false, then always increment page_number.
1743         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1744         Restore compatibility mode after loading, and then disable
1745         compatibility mode in TH.
1747 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1749         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1750         past last line.
1751         * troff/node.h (output_file::trailer): Declare.
1752         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1753         * troff/node.cc (output_file::trailer): New function.
1754         (troff_output_file::~troff_output_file): Move most code into...
1755         (troff_output_file::trailer): New function.
1756         (class troff_output_file): Delete page_length member. Declare
1757         trailer().
1758         (troff_output_file::really_begin_page): Use current page length
1759         for final V command.
1761         * tbl/main.cc (struct options): New decimal_point_char member.
1762         (options::options): Initialize this.
1763         (process_options): Implement decimalpoint option.
1764         (process_data): Pass decimal_point_char option to table::table.
1765         * tbl/table.h (class table): New decimal_point_char member.
1766         (table::table): Add additional argument.
1767         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1768         second argument specifying decimal point character.  Use this
1769         instead of '.'.
1770         (table::table): Initialize decimal_point_char.
1771         (table::add_entry): Change call to find_dot.
1773         * troff/input.cc (get_copy, token::next): Implement \V.
1774         (interpolate_environment_variable): New function.
1776 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1778         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1779         * pic/pic.y: Likewise.
1781         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1782         Add casts to int.
1783         * refer/ref.cc (reference::insert_field, reference::delete_field):
1784         Likewise.
1785         * troff/number.cc (parse_term): Likewise.
1787         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1788         * configure.in: Use GROFF_PROG_YACC.
1790         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1791         and g++.
1792         * Makefile.in (OPTIMIZE): New define.
1793         (DEBUG): Empty by default.
1794         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1796         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1797         (GROFF_ARRAY_DELETE): Likewise.
1798         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1800         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1802         * devps/psstrip.sed: Use different delimiter on last line (so that
1803         it works with BSD 4.4 sed.)
1805 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1807         * devps/psstrip.sed: Delete comments.
1809         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1810         optind, opterr, optarg.
1811         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1812         opterr, optarg.
1814 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1816         * Makefile.in (check): Dummy target.
1818 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1820         * Version 1.07 released.
1822         * Integrate mm 1.11.
1824         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1825         where start_col was meant.
1827 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1829         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1831 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1833         * troff/input.cc (token::next): Make \z\o'...' and similar things
1834         work.
1836         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1837         constants.
1838         (environment): Add margin_character_flags member.
1839         * env.cc (environment::environment(symbol),
1840         environment::environment(const environment *): Initialize
1841         margin_character_flags.
1842         (margin_character): Rewrite.
1843         (environment::output_line): Add a margin character if
1844         margin_character_flags is non-zero.  Turn off the
1845         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1846         zero, use margin_character_node without copying and then set
1847         margin_character_node to 0.
1849         * devps/DESC.in: Change minimum size to 1000.
1851 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
1853         * troff/symbol.h (symbol::hash): Change return type to unsigned
1854         long.
1855         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1856         Add casts to int.
1858         * test-groff: Use -r rather than -x.
1860         * grops/psfig.diff: Include in distribution again.
1862 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
1864         * Makefile.in (dist): Use gzip.
1866 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
1868         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1869         unistd.h as well as in stdlib.h.
1870         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1871         defined; otherwise include <sys/types.h> and <unistd.h> if
1872         UNISTD_H_DECLARES_GETOPT is defined.
1874         * configure.in: use builtin(include, ... rather than include(...
1875         * configure: Regenerate with autoconf 1.3.
1877         * libdriver/print.cc (printer::adjust_arc_center): Use new
1878         algorithm suggested by Andy Fyfe.
1880         * libdriver/printer.cc (printer::adjust_arc_center): New function.
1881         * include/printer.h: Declare this.
1882         * grops/ps.cc (ps_printer::draw): Use it.
1883         * grodvi/dvi.cc (dvi_printer::draw): Use it.
1885 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
1887         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1889 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
1891         * eqn/main.cc (main): Handle "eqn -".
1893 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
1895         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1897         * mm: Integrate version 1.08.
1899         * pic/troff.cc (troff_output::finish_picture): Set
1900         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1901         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1902         if it's not defined. Check whether the register is non-zero rather
1903         than whether it's not defined.
1904         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1906         * indxbib/indxbib.cc: Move all signal handling into...
1907         * indxbib/signal.c: New file.
1908         * configure.in: Call AC_RETSIGTYPE.
1910         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1911         * configure.in: Call GROFF_STRUCT_EXCEPTION.
1912         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1914         * troff/input.cc (token::token, token::operator=): Work round SGI
1915         C++ bug.
1916         * pic/object.cc (position::position): Likewise.
1918 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
1920         * pic/pic.h: Move declaration of hypot().
1922 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
1924         * pic/pic.h: Declare hypot().
1926         * pic/pic.h: Define M_PI if necessary.
1928 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
1930         * tmac/tmac.e (re): Add alternative version that doesn't use groff
1931         `.ta T' feature.
1933         * devps/prologue.ps (RE): Handle the possibility that the old font
1934         doesn't have a FontName entry.
1936 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
1938         * tmac/tmac.e (fam): Redefine to set family in environment 2.
1939         (@C): Use @fam not fam.
1941 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
1943         * lookbib/lookbib.cc (main): Change type of start to const char *.
1944         * lkbib/lkbib.cc (main): Likewise.
1946         * eqn/lex.cc (definition::definition): Don't use member
1947         initializer syntax for members of anonymous unions.
1949         * troff/input.cc (input_stack::backtrace): Change type of to const
1950         char *.
1952 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
1954         * include/stringclass.h (class string): Declare inline friend
1955         functions as inline in class declaration.
1956         * troff/hvunits.h (class hunits, class vunits): Likewise.
1957         * include/refid.h (class reference_id): Likewise
1958         * troff/troff.h (points_to_units(units), scale(units, double)):
1959         Delete declarations.
1960         * libdriver/input.cc (get_char): Delete declaration.
1961         * include/lib.h: Change 2nd argument of getopt from const char **
1962         to char **.
1963         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1964         char **' before assigning to a `const char **'.
1965         * tbl/table.cc: Delete extra declarations of prints().
1967 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
1969         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1970         char **' before assigning to a `const char **'.
1972         * libgroff/errarg.cc (errarg::errarg): Don't use member
1973         initializer syntax for members of anonymous unions.
1975 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
1977         * mm: Integrate version 1.07.
1979 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
1981         * troff/input.c (translate2): Rename to
1982         (translate_no_transparent).
1983         (init_input_requests): Rename tr2 to trnt.
1985 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
1987         * troff/charinfo.h (class charinfo): Add transparent_translate field.
1988         (charinfo::set_translation, charinfo::set_special_translation):
1989         Add second argument that specifies value for
1990         transparent_translate.
1991         (charinfo::get_translation, charinfo::get_special_translation):
1992         Add optional second argument that specifies whether translation is
1993         being used for transparent throughput.
1994         * troff/input.cc (charinfo::set_translation,
1995         charinfo::set_special_translation): Handle second argument.
1996         (charinfo::charinfo): Initialize transparent_translate.
1997         (translate): Split main part off into
1998         (do_translate): New function.  Pass argument saying whether
1999         translation applies to transparent throughput.
2000         (translate2): New request.
2001         (init_input_requests): Bind translate2 to `tr2'.
2003 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2005         * tbl/table.h (class table): Add `nokeep' flag.
2006         * tbl/main.cc (process_options): Handle `nokeep' option.
2007         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2008         table::do_bottom): Don't output keep/release macro definitions or
2009         calls when `nokeep' option has been specified.
2011 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2013         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2015 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2017         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2018         block_entry::divert, alphabetic_block_entry::divert): Add extra
2019         argument giving column separation.
2020         (table::compute_widths): Pass column separation to
2021         table_entry::divert().
2022         (block_entry::do_divert): If an entry spans multiple columns and a
2023         minimumum width has been specified for each column, then set the
2024         line length to the sum of the widths (plus possibly the column
2025         separations).
2027         * troff/input.cc (set_escape_char): Don't set the escape_char
2028         until after calling has_arg().
2030 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2032         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2033         case.
2035         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2036         in case where r > nrows - 1.
2038         * tbl/table.cc (BODY_HEIGHT): Deleted.
2039         (LINE_SEP): New definition.
2040         (table::print_single_hline, table::print_double_hline,
2041         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2042         table::do_row, table::do_top): Use LINE_SEP space before a line
2043         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2045         * tbl/table.cc (text_entry::print_contents): New function.
2046         (text_string_name, right_text_string_name): Deleted.
2047         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2048         (simple_text_entry::do_width, numeric_text_entry::do_width,
2049         alphabetic_text_entry::do_width): Don't store the contents of the
2050         entry in a string.
2051         (left_text_entry::simple_print, right_text_entry::simple_print,
2052         center_text_entry::simple_print,
2053         alphabetic_text_entry::simple_print,
2054         numeric_text_entry::simple_print): Print the entry directly
2055         instead of using the stored string.
2057 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2059         * devps/Makefile: Strip PostScript files.
2060         * devps/prologue: Rename to...
2061         * devps/prologue.ps.
2062         * devps/psstrip.sed: New file.
2063         * devps/download: Use .pfa rather than .ps for installed versions
2064         of fonts.
2066 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2068         * troff/env.cc (input_trap): Give a warning if the argument is out
2069         of range.
2071         * troff/env.cc (adjust): Treat negative argument as missing. Round
2072         argument > 5 down to 5.
2074         * troff/env.cc (center, right_justify): Make negative argument zero.
2076         * troff/div.cc (page_offset, vertical_position_traps): Treat
2077         invalid argument as missing.
2078         * troff/env.cc (line_spacing, line_length, title_length, indent,
2079         underline, hyphen_line_max_request, control_char,
2080         no_break_control_char, widow_control_request, adjust, input_trap,
2081         point_size): Likewise.
2082         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2083         constant_space): Likewise.
2084         * troff/input.cc (compatible, shift, warn_request,
2085         set_escape_char): Likewise.
2087         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2088         * tbl/table.cc (table::table): Likewise.
2090         * Makefile.dev (install_dev): depends on $(DEVFILES).
2092 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2094         * devX75, devX75-12, devX100, devX100-12: New directories.
2095         * Makefile.in: Add these to DEVDIRS.
2097         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2098         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2099         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2100         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2101         targets.
2102         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2103         (uninstall): New target.
2104         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2105         uninstall_prog, uninstall_dev): New targets.
2107         * troff/div.cc (return_request): Treat an invalid argument as
2108         missing.
2110 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2112         * tmac/tmac.e ((f): Set up the environment even when there's a
2113         current diversion.  Transperently throughput a call to @N.
2114         (@N): New macro.
2116 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2118         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2119         up to vertical resolution.
2121         * tbl/table.cc (table::do_row): Change row number after printing
2122         stuff list.
2124         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2126 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2128         * Rename CHANGES to NEWS.
2130 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2132         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2134 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2136         * man.ultrix: Removed.
2138 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2140         * Makefile.comm (extraclean): Delete files whose names begin with
2141         `='.
2143         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2144         aligned text.
2146 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2148         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2149         * troff/div.cc (page_length, need_space, space_request): Treat
2150         invalid optional argument as missing.
2151         * troff/env.cc (number_lines): If the first argument is present
2152         but not a number, turn on line numbering, don't change the next
2153         line number and parse the remaining arguments.
2155         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2157 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2159         * eqn/box.h: Change declaration accordingly.
2160         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2161         the specified size was bad but don't give an error.  Check for
2162         overflow.
2163         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2164         * eqn/lex (do_size): Likewise.
2166 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2168         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2169         compatible headers.
2171 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2173         * tbl/table.cc (table::init_output): Improve error message when
2174         table won't fit on one page.
2176 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2178         * pic/troff.cc (troff_output::start_picture): Generate line
2179         containing a horizontal motion equal to the width of the picture.
2181         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2182         using GROFF_COMMAND_PREFIX environment variable.
2184 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2186         * mdate.sh: Use $NF rather than $(NF).
2188 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2190         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2192         * eqn/main.cc (main): Output code to check that geqn was given the
2193         correct -T option.
2195 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2197         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2198         `ln -s ../Makefile .; make; rm -f Makefile'.
2200         * troff/hyphen: Rename to...
2201         * troff/hyphen.us:
2202         * troff/input.cc (main): Delete -H option. Don't call
2203         read_hyphen_file().
2204         * troff/env.cc: Include searchpath.h and macropath.h.
2205         (exception_dictionary): Deleted.
2206         (ht): Deleted.
2207         (read_hyphen_file): Deleted.
2208         (hyphenation_language): New struct.
2209         (class trie, class hyphen_trie): Move declarations up.
2210         (trie_node::~trie_node): Deleted.
2211         (trie::delete_trie_node): New function.
2212         (trie::do_delete): New pure virtual function.
2213         (hyphen_trie::do_delete): New function.
2214         (trie::~trie): New function.
2215         (hyphen_trie::~hyphen_trie): New function.
2216         (trie::clear): No need to chcek that tp is not 0.
2217         (current_language, language_dictionary): New variables.
2218         (hyphen_word): Give an error if no current language.  Use
2219         exceptions dictionary in current language.
2220         (hyphen_trie::read_patterns_file): Find file using macro_path.
2221         Allow comments (starting with %) in patterns file.  Don't make it
2222         a fatal error if the file can't be found.
2223         (hyphenate): Return if no current language.  Get the exceptions
2224         dictionary and the hyphenation patterns from the current language.
2225         (set_hyphenation_language): New variable.
2226         (hyphenation_patterns_file): New function.
2227         (hyphenation_language_reg): New class.
2228         (hyphenation_language_reg::get_string): New function.
2229         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2230         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2231         register.
2232         * groff/groff.cc (main, help, synopsis): Delete -H option.
2233         * include/Makefile.sub: Don't define HYPHENFILE.
2234         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2235         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2236         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2237         hyphenation patterns.
2239 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2241         * eqn/neqn.sh: New file.
2242         * eqn/Makefile.sub: Handle neqn.sh.
2244         * eqn/eqn.h: Declare `nroff' variable.
2245         * eqn/box.cc (param_table): Add `nroff' param.
2246         (nroff): Define it.
2247         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2248         variable.
2249         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2251         * troff/troff.h (WARN_FONT): New warning.
2252         (WARN_TOTAL): Change accordingly.
2253         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2254         (warning_table): Add WARN_FONT.
2255         * troff/node.cc (mount_font_no_translate): Pass argument to
2256         font::load_font.  If this is non-zero, give a warning.
2257         Don't give an error message when accessing a font that has already
2258         been found to be invalid.
2259         * include/font.h (font::load, font::load_font): Add additional
2260         optional argument which suppresses error message if the font is
2261         not found.
2262         * libgroff/font.cc (font::load_font): Handle additional argument.
2263         (font::load): Add additional argument. If this is non-null, set it
2264         to 1 and don't give error message.
2266         * include/printer.h (printer::end_page): Add argument giving
2267         length of page.
2268         * libdriver/input.cc (do_file): Pass this.
2269         * grops/ps.cc (ps_printer::end_page): Add argument.
2270         * grodvi/dvi.cc (dvi_printer::end_page,
2271         draw_dvi_printer::end_page): Add argument.
2272         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2273         columns_per_page members. New member nlines.
2274         (DEFAULT_LINES_PER_PAGE): Deleted.
2275         (tty_printer::tty_printer): Don't compute lines_per_page from
2276         font::paperlength. Don't compute columns_per_page from
2277         font::paperwidth.
2278         (tty_printer::add_char): Don't check horizontal position against
2279         columns_per_page. Grow glyphs vector if neccessary.
2280         (tty_printer::end_page): Add argument giving page_length in units.
2281         Discard lines past end of page.
2283 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2285         * tmac/tmac.tty-char: Fix definition of \(/l.
2287         * tmac/tmac.X: Define \(en.
2289 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2291         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2292         lpq, then use lp rather than lpr.
2294         * tmac/tmac.s (par@reset): Don't call `ad'.
2295         (par*env-init): Call `ad'.
2297 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2299         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2300         date.
2302         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2303         * indxbib/indxbib.cc: Likewise.
2305 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2307         * libgroff/putenv.c: New file.
2308         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2309         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2310         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2311         stdlib.h with AC_HAVE_HEADERS.
2313 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2315         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2316         does not exist.
2318 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2320         * eqn/box.cc (gsize): Make it an int.
2321         (set_gsize): Parse argument handling increment or decrement.
2322         (box::top_level): Convert gsize to a string.
2324         * troff/input.cc (exit_troff): Make buf unsigned char [].
2325         Call to make_temp_iterator casts buf to char*.
2327         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2329         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2330         * Makefile.cpg (depend.temp): Likewise.
2332         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2334         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2336 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2338         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2340 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2342         * Version 1.06 released.
2344         * Integrate mm 1.04.
2346 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2348         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2350 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2352         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2353         ligatures command.
2354         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2355         afmtodit. Regenerate.
2357         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2358         @f back past the current position.
2360         * tmac/tmac.e: Change calls to @R so that comments are not part of
2361         arguments.
2363 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2365         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2367         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2368         check that we can link a call to a function declared in <stdio.h>.
2369         (GROFF_UNISTD_H): New macro.
2370         * configure.in: Call it.
2371         * Makefile.in: Document it.
2372         * include/posix.h: New file.
2373         * troff/troff.h: Don't include <osfcn.h>
2374         * troff/input.cc: Include posix.h.
2375         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2376         osfcn.h.
2377         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2378         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2379         <fcntl.h>.
2380         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2381         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2382         * libbib/search.cc (O_RDONLY): Delete definition.
2383         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2384         Don't include <osfcn.h>.
2386         * acgroff.m4 (GROFF_TIME_T): New macro.
2387         * configure.in: Call it.
2388         * Makefile.in: Document it.
2390         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2391         * configure.in: Call it.
2392         * Makefile.in: Document -DTRADITIONAL_CPP.
2393         * include/ptable.h: Don't include generic.h.
2394         (name2): Define it.
2396         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2397         Afterwards remove [T1 and [T2.
2398         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2399         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2400         (ref*add-T2): Renamed from ref*add-T.
2401         (ref*add-T1): New macro.
2403 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2405         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2407         * libbib/index.cc: Include <fcntl.h>.
2408         (O_RDONLY): Define if necessary.
2409         (make_index_search_item, index_search_item_iterator::get_tag,
2410         index_search_item::check_files): Use O_RDONLY.
2411         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2412         (O_RDONLY): Define if necessary.
2413         (search_list::add_file): Use O_RDONLY.
2414         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2415         <sys/stat.h>.
2416         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2417         (main): Use these.
2419         * libbib/index.cc (S_ISREG): Define it if necessary.
2420         (index_search_item::load): Use S_ISREG.
2422         * include/driver.h: Include <errno.h>.
2424 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2426         * eqn/box.cc (body_height): Increase default value to 85.
2427         (body_depth): Increase default value to 35.
2429 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2431         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2432         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2433         protected from expansion with \E.
2435         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2437         * Makefile (Makefile): New target.
2439         * Makefile.sub (configure, distfiles): New targets.
2441         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2442         construct.
2444 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2446         * eqn/box.cc (param_table): Add body_height and body_depth.
2448         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2450 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2452         * psbb/Makefile.sub: Don't link with libgroff.a.
2454         * acgroff.m4 (GROFF_PUTENV): New macro.
2455         * configure.in: Call GROFF_PUTENV.
2456         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2457         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2458         is defined.
2460         * troff/env.cc (distribute_space): Rename force_forward argument
2461         to force_reverse.  Reverse the list if force_reverse is true.
2463 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2465         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2467         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2468         height or depth to be negative.  Guard against SUP_RAISE quantity
2469         being negative.
2471 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2473         * devps/generate/textmap: Add `an' (arrowhorizex).
2474         * tmac/tmac.ps: \(an overlaps horizontally.
2475         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2477         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2478         * devps/textmap: Add arrowvertex.
2479         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2480         updownarrow delimiters.
2481         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2483         * tbl/table.cc (simple_entry::position_vertically,
2484         block_entry::position_vertically):  For a centered entry, perform
2485         the motion in two stages.
2487         * refer/refer.cc (split_punct): Don't call lookup_token if there
2488         is no token.
2490 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2492         * troff/input.cc (token::next): Delete token_node after copying
2493         token.
2495         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2496         cur_point_size.
2498         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2500         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2502 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2504         * grops/ps.cc (usage): -b option takes an argument.
2506         * devps/prologue (PLG): New procedure.
2507         * grops/ps.cc (main, usage): New -g option.
2508         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2509         length using PLG.
2511 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2513         * include/cset.h: Include <limits.h> if we have it.
2515         * libgroff/illegal.cc: New file.
2516         * include/lib.h (illegal_input_char): Use table.
2517         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2518         * pic/lex.cc (ARG1): Renumber to 14.
2519         * eqn/lex.cc (ARG1: Likewise.
2521         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2522         (eg 1.05.90) correctly.
2524 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2526         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2527         Rename $r and $R registers to $v and $V.
2528         ($r, $R): Initialize to 0.
2529         (@v, @V): New macros.
2530         (sz): Call @v.
2531         (@M): Call @V.
2533         * troff/input.cc (main, usage): Add -R option that says not to
2534         load troffrc.
2535         * eqn/main.cc (main, usage): Rename -n to -R.
2537 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2539         * devps/DESC.in: Leave font positions 5-9 blank.
2540         * devdvi/DESC.in: Likewise.
2542         * grog/grog.pl: Handle `.PS <file' correctly.
2544         * troff/input.cc (input_stack::push): Improve error message when
2545         input stack limit exceeded.
2547 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2549         * refer/refer.cc (main): Fix typo in handling of `a' option.
2551         * refer/refer.cc (do_bib): In state START after a newline remain
2552         in state START.
2554         * groff/groff.sh: Deleted.
2555         * groff/Makefile.sub: Delete handling of groff.sh.
2557         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2558         to determine whether to use \X'ps:...'.
2559         * tmac/troffrc: Set 0p register to 0.
2560         * tmac/tmac.ps: Set 0p register to 1.
2562         * groff/groff.cc: Support -X option. Give warning for -TXps and
2563         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2564         * tmac/troffrc: Support -r.X=1.
2566         * pic/troff.cc (troff_output::dot): Don't test
2567         zero_length_line_flag.
2569 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2571         * include/lib.h: Declare getopt() and friends unless
2572         STDLIB_H_DECLARES_GETOPT is defined.
2574         * doc/chars.tr: Delete.
2575         * man/groff_char.man: New file.
2577 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2579         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2580         user has changed register format.
2582 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2584         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2585         `postpro' command in DESC file.  Get spooler command from `print'
2586         command in DESC file.  Execute spooler command with /bin/sh.
2588         * groff/groff.cc: Split Unix-specific parts into...
2589         * groff/pipeline.c: New file.
2591         * LICENSE: Delete.
2592         * COPYING: New file.
2593         * all files: Update copyright notices.
2595         * Rearrange files.  Redo Makefiles.  Use autoconf.
2597 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2599         * troff/input.c (charinfo_to_node_list): Interpret character
2600         definition with escape_char of `\'.
2602 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2604         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2605         Define INT_DIGITS as big enough for 64-bit integer.
2606         * lib/strtol.c: Don't include lib.h.
2607         * lib/lib.h: Delete ifdef __cplusplus stuff.
2609 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2611         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2612         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2613         get DESC from current directory.
2615 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2617         * tbl/main.c (main): Always reset the line number when reading
2618         from stdin.
2620         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2621         table::define_bottom_macro, table::do_row, table::do_top): Round
2622         vertical spacing up to vertical resolution.
2624 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2626         * ps/ps.h (enum resource_type): Avoid comma at end of
2627         enumerator-list.
2628         * dvi/dvi.c (class dvi_printer): Likewise.
2629         * dvi/tfmtodit.c (gf::load): Likewise.
2630         * refer/label.y (struct expression): Likewise.
2631         * refer/refer.c (class label_processing_state): Likewise.
2632         * refer/indxbib.c (do_file): Likewise.
2633         * troff/troff.c (enum warning_type): Likewise.
2634         * tbl/main.c (process_data): Likewise.
2635         * troff/charinfo.h (class charinfo):
2637 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2639         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2641 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2643         * groff.c: Move to new groff subdirectory.
2644         * groff/Makefile: New file.
2645         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2647         * man/mdate.sh: Use ls -L if supported.
2649         * Consolidate all header files produced by gendef into lib/defs.h.
2650         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2651         Don't include path.h.
2652         * lib/Makefile (path.h): Don't generate.
2653         * troff/input.c: Include defs.h. Don't include config.h.
2654         * troff/Makefile (config.h): Don't generate.
2655         * refer/index.h: Don't include suffix.h.
2656         * refer/index.c: Include defs.h.
2657         * refer/indxbib.c: Include defs.h.
2658         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2659         defs.h.
2660         * refer/Makefile (suffix.h, path.h): Don't generate.
2661         * groff.c: Don't include config.h. Include defs.h.
2662         * Makefile (config.h): Don't generate.
2663         (lib/defs.h): Generate.
2664         (topclean): Remove lib/defs.h.
2666 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2668         * lib/malloc.c, lib/getpagesize.h: Deleted.
2669         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2670         related stuff.
2671         * lib/Makefile: Delete malloc-related stuff.
2672         * lib/new.c: Workaround COOKIE_BUG if necessary.
2674         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2675         needed header files directly.
2676         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2677         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2679 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2681         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2682         argument.
2683         * lib/font (font::load_desc, font::load): Don't split argument of
2684         unknown command.
2685         (font::handle_unknown_font_command): Change type.
2686         * ps/ps.c (ps_font::handle_unknown_font_command,
2687         handle_unknown_desc_command): Change type.
2688         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2690 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2692         * lib/font.h (font::handle_unknown_font_command): Add file and
2693         line arguments.
2694         * lib/font.c (font::handle_unknown_font_command):
2695         * ps/ps.c (ps_font::handle_unknown_font_command):
2696         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2697         lineno arguments.  Use _with_file_and_line functions for error
2698         reporting.
2700         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2701         data member.
2702         * lib/font.c (font::set_unknown_desc_command_handler): New
2703         function.
2704         (font::load_desc): For unknown commands, call
2705         unknown_desc_command_handler if not null.
2706         * lib/font.h (class font): Declare them.
2707         (FONT_COMMAND_HANDLER): New typedef.
2708         * ps/ps.c (handle_unknown_desc_command): New function.
2709         (main): Set bflag if we had a -b option. Call
2710         font::set_unknown_desc_command_handler.
2711         (broken.h): Don't include.
2712         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2713         submake 
2714         * ps/devps/Makefile: Add `broken' command to DESC file using
2715         BROKEN_SPOOLER_FLAGS.
2717         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2719         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2721         * macros/tmac.e (@R, @S): New macros.
2722         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2723         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2724         Declare $H, $[0-9], .. macros with @S.
2725         Declare |0, |1, |2, |3 strings with @S.
2727         * macros/tmac.e (@S): Rename to @U.
2729         * macros/tmac.e (@z): Define @b and bp as empty instead of
2730         deleting them,
2732         * macros/tmac.e (@m): Deleted.
2733         (@h): Don't call @m.
2734         (@z): Don't set @m trap.
2736         * macros/tmac.e ($h, $f): Define |z as empty string.
2738         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2739         (@q): Likewise.
2741         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2742         removing them.
2743         ()f): Likewise for * register.
2745         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2746         argument is missing, don't change $R.  Call sr with three
2747         arguments when initializing.
2749 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2751         * macros/tmac.e (sr): New macro.
2752         Initialize $r and $R using sr.
2754         * macros/tmac.e (,): Delete \*(#[.
2756         * troff/env.c (set_tabs): Read the tab type even if the position
2757         is bad.  Allow the position of the first tab stop to be negative.
2759 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2761         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2762         _POSIX_VERSION.
2763         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2764         rather than -DPATHCONF_MISSING.
2765         * Makefile: Get rid of PATHCONF_MISSING.
2767         * refer/map.c: New file.
2768         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2769         to map_len.
2770         * refer/Makefile: Handle map.c.
2771         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2773 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2775         * Makefile: RANLIB should be `true' if there is no ranlib.
2776         * lib/Makefile (libgroff.a): Simplify.
2777         * driver/Makefile (libdriver.a): Simplify.
2779         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2780         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2781         defined.
2783 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2785         * troff/env.c (compare_ranges): Declare as extern "C".
2787         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2789         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2791 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2793         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2794         but conditionalize use of \X based on \*(.T.
2795         (grops_output::*): Deleted.
2796         * pic/output.h: Delete declaration of make_grops_output.
2797         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2798         by default. -n sets it to 0.
2799         (usage): Corresponding changes.
2800         * groff.c (main): Don't pass -x or -p to pic.
2801         * groff.sh: Likewise.
2803         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2804         to be non-zero.
2806         * ps/devps/afmtodit: Change calculation of asc_boundary and
2807         desc_boundary.  Make these bounds inclusive.
2808         * ps/devps: Regenerate font files.
2810 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2812         * macros/tmac.latin1: New file.
2813         * macros/tmac.tty-char: Use tmac.latin1.
2814         (tmac.tty-tr): Deleted.
2815         * macros/Makefile: Install tmac.latin1.
2816         * macros/tmac.dvi: Use tmac.latin1.
2817         * macros/troffrc: Translate \[char160] onto no-break space here.
2818         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2820 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2822         * macros/tmac.Xps: Use `do' request.
2824         * macros/tmac.ps: Use `do' request.
2826         * macros/tmac.e (@C): Use `do' request.
2828         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2829         * macros/Makefile: Install tmac.X*.
2831         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2832         * tty/Makefile: Don't install tmac.tty*.
2833         * macros/Makefile: Install tmac.tty*.
2835         * dvi/tmac.dvi: Move to macros.
2836         * dvi/Makefile: Don't install tmac.dvi.
2837         * macros/Makefile: Install tmac.dvi.
2839         * ps/tmac.ps*: Move to macros.
2840         * ps/Makefile: Don't install tmac.ps*.
2841         * macros/Makefile: Install tmac.ps*.
2843         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2844         option.
2845         * macros/eqnrc: Set draw_lines parameter based on device.
2846         * groff.c: Don't pass -D flag to eqn.
2847         * groff.sh: Likewise.
2848         * eqn/main.c: Warn about use of -D.
2850         * troff/input.c (process_startup_file): New function.
2851         (main): Call process_startup_file().
2852         * macros/troffrc: New file.
2853         * macros/Makefile: Install troffrc.
2854         * groff.c (main): Don't pass extra -m option to troff. For a 
2855         pseudo device pass the name of the pseudo device to troff using
2856         -d.
2857         * groff.sh: Likewise.
2858         * groff.c (possible_command::prepend_arg): Deleted.
2860         * troff/input.c (do_request): New function.
2861         (init_input_requests): Bind "do" to do_request.
2863         * eqn/main.c (main): Instead of loading eqnchar from device directory,
2864         load eqnrc from macro directory.
2865         * macros/eqnrc: New file.
2866         * macros/Makefile: Install eqnrc.
2867         * ps/devps/eqnchar: Deleted.
2868         * ps/devps/Makefile: Don't install eqnchar.
2869         * dvi/devdvi/eqnchar: Deleted.
2870         * dvi/devdvi/Makefile: Don't install eqnchar.
2871         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2872         variable optM.
2874         * lib/device.[ch]: New files.
2875         * lib/font.h (font::set_device_name, font::get_device_name):
2876         Deleted.
2877         * lib/fontfile.c: Use device.h.
2878         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2879         * troff/input.c: Delete definition of `device'.
2880         (main): Don't initialize device.
2881         * troff/troff.h: Include device.h rather than declaring device.
2882         * troff/Makefile: No need to handle DEVICE.
2883         * driver/input.c: Include device.h. Don't use
2884         font::{set,get}_device_name.
2885         * groff.c, Makefile: Rename device.h to config.h.
2886         * groff.c: Use library device variable.
2887         * eqn/main.c: Use library device variable.
2888         * eqn/Makefile: No need to handle DEVICE.
2890         * lib/searchpath.[ch]: New files.
2891         * lib/Makefile: Handle searchpath.[ch].
2892         * troff/input.c (open_file, init_dirs): Deleted.
2893         (macro_dirs): Deleted.
2894         (open_mac_file, macro_source): Use class search_path.
2895         (add_string, struct string_list): Move definition.
2896         (main): Change -M option to use macro_path. Delete call to
2897         init_dirs().
2898         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2899         Rewrite to use class search_path.
2900         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2901         * lib/Makefile: fontfile.c depends on searchpath.h.
2902         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2903         MACROPATH.
2904         * lib/macropath.[ch]: New files.
2905         * troff/Makefile: No need to handle MACROPATH.
2907         * troff/input.c: Delete DUMP code.
2908         * lib/fontfile.c, lib/font.h: Delete
2909         font::forget_command_line_font_dirs.
2911         * troff/input.c (push_token): New function.
2912         (handle_first_page_transition): Use push_token().
2913         (process_input_stack): Change handling of a space at the beginning
2914         of the line.
2916 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
2918         * troff/input.c (font_dirs): Delete unused variable.
2920         * eqn/lex.c (do_set): Correct error messages.
2922 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
2924         * troff/input.c (do_define_string): Allow the string name to be
2925         followed immediately by a tab.
2926         (define_character): Likewise.
2928 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
2930         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2931         be negative.
2933         * troff/input.c (input_iterator::is_file): New virtual function.
2934         (file_iterator::is_file): New function.
2935         (input_stack::end_file): New function.
2936         (input_stack::next_file): Handle the situation where there is no
2937         file on the input stack correctly.  Avoid making two passes over
2938         the input stack.
2939         (next_file): Make the filename optional; in this case call
2940         input_stack::end_file().
2942 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
2944         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2945         produce a real _ charater when the current font is CW and _
2946         otherwise.
2948         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2949         expression to work around gcc 2.2 bug.
2951 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
2953         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2955         * troff/env.c (environment::add_padding): New function.
2956         (environment::add_char): Use add_padding().
2957         (environment::space): Likewise.
2958         (environment::wrap_up_field): Add some padding if there is none
2959         and there's no current tab.
2960         * troff/env.h: Declare environment::add_padding.
2962 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
2964         * pic/pic.y: undef fmod and rand before declaring them.
2966 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
2968         * troff/input.c (main): If the DESC file specifies a font name of
2969         0, then leave the corresponding font position empty.
2971         * nroff.sh: New file.
2972         * Makefile (install.nobin): Install nroff.sh.
2974         * tty/devlatin1/R.proto: Add ao as synonym for de.
2975         * tty/tmac.tty-char: Define ao as o.
2977         * tty/dev{ascii,latin1}/R.proto: Add aq.
2978         * tty/tmac.tty-char: Delete definition of aq.
2980 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
2982         * troff/input.c (init_charset_table): Don't translate 0240.
2983         * ps/tmac.ps: Translate char160 to space.
2984         * dvi/tmac.dvi: Likewise.
2985         * tty/tmac.tty: Likewise.
2987 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
2989         * dvi/tmac.dvi: Add support for all Latin-1 characters.
2991         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2992         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2993         \(oe, \(r?, \(r!.
2995         * tty/tmac.tty-char: Add \(ah.
2997         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2998         No need to define \(FM and \(!/. Conditionalize all character
2999         definitions.
3001         * ps/devps/lgreekmap: Add +h, +f, +p.
3003         * ps/tmac.psnew: New file.
3004         * ps/Makefile: Install tmac.psnew.
3006         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3007         character definitions in compatible mode.
3009         * troff/input.c (remove_character): New function.
3010         (init_input_requests): Bind remove_character to "rchar".
3012         * ps/tmac.psold: New file.
3013         * ps/Makefile: Install tmac.psold.
3014         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3015         characters into tmac.psold.  Make these definitions unconditional.
3017         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3019         * ps/tmac.ps: Don't define \('c and \('C.
3021         * ps/devps/textmap: Move Greek characters to...
3022         * ps/devps/symbolchars:
3024 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3026         * ps/devps/text.enc: Add quotesingle.
3027         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3028         * tty/tmac.tty-char: Likewise.
3029         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3030         * dvi/devdvi/texi.map: Add Fn.
3031         * dvi/devdvi/msam.map: Add lz.
3032         * dvi/tmac.dvi: Handle Bq, bq, aq.
3034         * pic/lex.c (get_token): Recognize 'th.
3035         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3037 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3039         * ps/devps/textmap: Move di, mu, +- to...
3040         * ps/devps/symbolchars:
3042         * macros/tmac.s (@XS): Don't call par@reset or fi.
3043         (XA): Call LP. Turn off adjustment. Reduce line length.
3045         * macros/tmac.s: Initially alias XS to LP.
3046         (XS): Rename to @XS.
3047         (cov*ab-init): Alias XS to @XS.
3049 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3051         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3052         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3053         (token::is_size, token::changes_env): Deleted.
3054         * troff/number.c (parse_term): No need to process \s explicitly.
3055         Call tok.next() only after scale indicator has been processed.
3056         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3057         \f etc explicitly.
3058         (token::next): Handle \s, \f, \S, \H immediately rather than
3059         returning them as tokens.
3060         (token::operator==, token::description, token::add_to_node_list,
3061         token::process): Remove handling of deleted tokens.
3063         * troff/env.c (environment::add_char): When adding padding
3064         indicator character, call start_line() if necessary.
3066 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3068         * ps/devps/afmtodit: Don't output 0 kerns.
3070         * ps/devps/afmtodit: Remove directory from name of encoding in
3071         font description file.
3073         * ps/devps/afmtodit: Improve error messages.
3075         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3077         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3078         * ps/devps/FontMakefile: Deleted.
3079         * ps/devps/afmname: New file.
3081         * ps/devps/symbol.sed: New file.
3082         * ps/devps/symbol.diff: Deleted.
3083         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3084         Generate zapfdr.afm from zapfd.afm.
3086         * tty/tmac.tty (tty-char): Prefix definition with ".
3088         * macros/tmac.an (TP): Don't start a diversion if one has already
3089         been started.
3091         * tty/tmac.tty-char: Add Latin-1 characters.
3093         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3095 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3097         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3098         Move declaration of struct horizontal_span.
3100         * tbl/table.c (table::table): Initialize span_list.
3101         (table::~table): Delete span_list.
3103         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3105         * ps/devps/Makefile: Avoid dependency on GNU make.
3107         * ps/tmac.ps: Check that character does not already exist before
3108         defining it.
3110         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3111         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3112         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3113         files.
3115         * tty/tmac.tty-char: New file.
3116         * tty/Makefile: Install tmac.tty-char.
3117         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3118         tmac.tty-char.
3120         * tty/tmac.tty: Fix definition of \(34.
3122         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3123         bracket-drawing characters onto |. Add *o.
3125         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3126         only if current_field.
3128         * troff/dictionary.c (dictionary::lookup): Free old_table after
3129         rehashing. 
3131 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3133         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3134         whose glyphs are identical to glyphs of some Roman character.
3136         * tty/devlatin1/R.proto (bu): Deleted.
3137         * tty/devascii/R.proto (bu): Deleted.
3138         * tty/tmac.tty: Add definition of \(bu.
3140         * eqn/main.c (do_file): Pass FILE as argument.
3141         (main): Automatically load eqnchar.  New options -F and -n.
3142         Pass do_file an opened FILE.
3143         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3144         No need to include font.h.
3145         * groff.sh: Likewise.  Don't need to use - for standard input.
3146         Prefix files with -- if first file starts with -.
3148         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3150         * troff/env.c (environment::possibly_break_line): Don't set line
3151         to 0 across call to output_line().  Don't call output_line() until
3152         after discarding nodes after break.
3154 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3156         * request.h (macro::empty): Declare it.
3157         * input.c (macro::empty): New method.
3158         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3159         macro is empty.
3161 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3163         * troff/env.c (environment::start_field): Decrement space_total
3164         when a space is frozen.
3166 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3168         * macros/tmac.an (R): Delete macro.
3170         * troff/input.c (get_copy, token::next): Support \# (like \" but
3171         newline is ignored).
3173         * troff/input.c (token::next): Fix error message in 'Y' case.
3175 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3177         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3178         a delimiter name.
3180 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3182         * c++test.c: Include <osfcn.h>.
3184         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3185         <errno.h> doesn't.
3187 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3189         * tbl/table.c (table::divide_span): Don't count column separation
3190         if expand was specified.
3192         * tbl/main.c (process_format): Don't ignore width specs in
3193         continued format.  Give warning for changing equal widths or
3194         column separation in continued format.
3195         (process_data): Set column separation, minimum width, equal
3196         columns at end of table.
3198 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3200         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3201         node::add_discretionary_hyphen): Use soft_hyphen_char.
3202         (set_soft_hyphen_char): New function.
3203         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3205         * Makefile (c++tested): Give more helpful message if test fails.
3207 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3209         * troff/input.c (init_charset_table): Translate 0240 to
3210         an unbreakable space.
3212         * troff/token.h (token::hyphen_indicator): New function.
3213         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3214         translation.
3215         * troff/input.c (translate): Allow translation to \%.
3216         * troff/node.c (node::add_char): Handle
3217         TRANSLATE_HYPHEN_INDICATOR.     
3218         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3220         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3221         for \(hy.
3223         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3225 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3227         * groff.c (run_commands): If the last command gets a SIGPIPE send
3228         a SIGPIPE to all children than haven't yet terminated.  When
3229         command terminates, set pid field to -1.
3231 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3233         * groff.c (main): Pass an appropriate -filename option to gxditview.
3235 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3237         * Makefile.bd (install): Remove existing program before copying.
3239         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3240         programs which have Unix counterparts to be installed with
3241         user-specified prefix.
3243         * troff/input.c (exit_troff): Don't check if exit_started.
3244         (exit_request): Don't call exit_troff if exit_started.
3246         * Makefile.bd (install.mm): Rename to install.dwbmm.
3248 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3250         * driver/input.c (do_file): Add missing break for '#' case.
3252 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3254         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3255         then add the boundaries back.
3257         * troff/input.c (exit_troff): Return immediately if already
3258         exiting.
3260         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3261         end macro.
3262         (pg*end-page): If the text has ended and there are no more
3263         footnotes or keeps, exit.
3265         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3267         * troff/input.c (init_charset_table): Make \(rq transparent by
3268         default.
3270         * macros/tmac.an: Define lq and rq strings.
3272         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3274 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3276         * troff/env.c (environment::final_break): New function.
3277         (environment::newline): Set prev_line_interrupted to 2 if
3278         exit_started.
3279         * troff/env.h: Declare environment::final_break.
3280         * troff/input.c (exit_troff): Call environment::final_break()
3281         instead of environment::do_break().
3283         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3284         doesn't already exist.
3285         * macros/man.local: New file.
3286         * macros/tmac.an: Load man.local.
3287         * macros/man.ultrix: New file.
3289 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3291         * troff/input.c (exit_groff): Rename to...
3292         (exit_troff): New function.
3294         * troff/div.c (exit_started, done_end_macro,
3295         seen_last_page_ejector): New global variables.
3296         (began_page_in_end_macro): New static variable.
3297         (exit_flag): Deleted.
3298         (top_level_diversion::top_level_diversion): Initialize
3299         last_page_count.
3300         (top_level_diversion): More elaborate test for whether
3301         cleanup_and_exit() should be called.
3302         Set began_page_in_end_macro if the end macro isn't yet finished.
3303         * troff/div.h (top_level_diversion::last_page_count): New data
3304         member.
3305         (top_level_diversion::set_last_page): New function.
3306         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3307         * troff/env.c (do_break): Zero prev_line_interrupted.
3308         * troff/input.c (exit_flag): Delete declaration.
3309         (LAST_PAGE_EJECTOR): New magic cookie.
3310         (token::next): Handle LAST_PAGE_EJECTOR.
3311         (exit_groff): Set exit_started and done_end_macro instead of
3312         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3313         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3314         another ejection after setting seen_last_page_ejector.
3316 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3318         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3320         * macros/tmac.e (TH): Make sure there's room for the initial
3321         header.
3323         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3324         Set FVS in points rather than units.
3326 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3328         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3329         position of empty slots.
3331 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3333         * ps/devps/S: Fix height and depth of parenrightex.
3334         * ps/devps/symbol.diff: Regenerate.
3336 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3338         * tmac.e (u): Do underlining as in -mgs.
3340 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3342         * tty/tty.c (tty_printer::end_page): If overstriking is
3343         suppressed, still turn overstruck horizontal and vertical lines
3344         into +.
3346         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3347         2.1.
3349         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3351 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3353         * Version 1.05 released.
3355 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3357         * tty/tty.c: Instead of keeping an array of glyphs and then
3358         sorting it, keep a ordered linked list of glyphs for each line.
3360         * driver/driver.h: Include stddef.h.
3362         * tty/tty.c (compare_glyph):
3363         * refer/refer.c (rcompare):
3364         * troff/env.c (compare_ranges): Arguments of qsort comparison
3365         function should be const void *.
3367         * troff/number.c (parse_term):
3368         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3369         switch statement.
3371         * refer/label.y (consider_authors): Don't access variables
3372         constructed under a condition outside that condition: put braces
3373         round for statement containing declaration; redeclare use of same
3374         variable later.
3376         * pic/pic.y (text_expr): Delete production that allows
3377         parenthesised text_expr.
3378         (expr): Allow a conditional_expr to appear in parentheses.
3379         (conditional_expr): Rename to any_expr.
3381         * mm: Install new version 1.01 from jh.
3383         * lib/font.c (font::get_width): Cache scaled widths.
3384         (font::font): Initialize widths_cache.
3385         (font::~font): Destroy widths_cache.
3386         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3388 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3390         * c++test.c, c++test.ref: New files.
3391         * Makefile: Check that the C++ compiler works.
3393         * ps/tmac.pspic (PSPIC): Do a break.
3395         * ps/tmac.ps: Move definition of PSPIC into...
3396         * ps/tmac.pspic: New file.
3397         (PSPIC): Draw box around picture, but make it invisible to grops.
3398         * ps/tmac.ps: Load tmac.pspic.
3399         * ps/Makefile: Install tmac.pspic.
3401 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3403         * lib/font.c (scale_round): If n is negative,
3404         subtract .5 before truncating floating point result.
3406         * lib/fontfile.c: Include <errno.h>.
3408 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3410         * driver/input.c (get_char): Inline. Don't update current_lineno.
3411         Change callers to up date current_lineno if necessary.
3412         Use get_char() instead of getc(current_file).
3414 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3416         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3418 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3420         * tty/tty.c (tmac.tty): Define \(rg as (R).
3422 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3424         * lib/lib.h: New define a_delete.
3425         * Use a_delete instead of delete when deleting an array of objects
3426         without destructors.
3428         * lib/lib.h: Rename adelete to ad_delete.
3429         * Change uses of adelete.
3431 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3433         * eqn/eqn.y: Include lib.h.
3435         * troff/node.c (grow_font_table): Delete old_font_table.
3437         * mm: Install new version from jh.
3439 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3441         * tbl/table.h (format_type): Make global instead of local to class
3442         entry_format.  Prefix enumerators with FORMAT_.
3443         * tbl/table.c, tbl/main.c: Corresponding changes.
3444         * refer/token.h (token_type): Make global.  Prefix enumerators
3445         with TOKEN_.
3446         * refer/token.[ch]: Corresponding changes.
3447         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3449         * troff/div.c (node::set_vertical_size): Don't name argument.
3451 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3453         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3454         * lib/lib.h: Define adelete accordingly.
3455         * pic/object.c (graphic_object::graphic_object):
3456         * tbl/main.c (format::~format):
3457         * tbl/table.c (table::~table):
3458         * refer/ref.c (reference::~reference, reference::merge,
3459         reference::insert_field, reference::delete_field): Use adelete.
3461         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3462         * refer/token.h:
3463         * tbl/table.h: Corresponding changes.
3465         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3466         Ensure total_angle is positive.
3468 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3470         * refer/ref.c (reference::merge, reference::insert_field,
3471         reference::delete_field): Avoid delete[0].
3473         * refer/token.c (init_special_chars): Move calls to cmupper
3474         outside calls to init_two_char_letter to work around bug in gcc
3475         2.0.
3477 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3479         * lib/new.c (operator new): Use __builtin_new for g++.
3481         * pic/object.c (graphic_object::~graphic_object):  Don't use
3482         delete [] on 0.
3484         * pic/object.c (output::compute_scale): Initialize max_width and
3485         max_height.
3487 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3489         * troff/input.c (write_request): Call fflush.
3491         * troff/node.h (class composite_node): Move declaration to node.c
3492         * troff/input.c (charinfo_to_node): Rename to ...
3493         (charinfo_to_node_list): Return node list rather than composite
3494         node.
3495         * troff/node.c (make_composite_node): New function.
3496         (make_node, add_char): Call make_composite_node instead of
3497         charinfo_to_node.
3498         (class composite_node): Add a tfont * member.  Delete font_size
3499         member.
3500         (composite_node::composite_node, composite_node::copy,
3501         composite_node::size): Corresponding changes.
3502         (composite_node::tprint): Provide constant spacing, emboldening
3503         and track kerning as specified in tfont.
3504         (composite_node::width): Change width calculation accordingly.
3505         * troff/env.h (environment::composite): New member.
3506         (environment::is_composite, environment::set_composite): New
3507         functions.
3508         * troff/env.c (environment::environment): Initialize composite.
3509         * troff/input.c (charinfo_to_node): Call
3510         environment::set_composite.
3511         * troff/node.c (make_composite_node, make_glyph_node): Use the
3512         plain version of the tfont if the environment is composite.
3514         * troff/node.c (font_info::get_space_width): Additional argument
3515         giving space_size.  Handle constant space correctly. Scale by
3516         space_size unless constant spaced.
3517         (env_sentence_space_width): New function.
3518         * troff/node.h: Declare it.
3519         * troff/env.h (environment::get_space_size,
3520         environment::get_sentence_space_size,
3521         environment::get_narrow_space_width,
3522         environment::get_half_narrow_space_width): Make inline.
3523         (environment::get_space_width): Make inline.  Just call
3524         env_space_width.
3525         * troff/env.c: Delete definitions for funtions made inline.
3526         (environment::space_newline, environment::space): Use
3527         env_sentence_space_width(). Don't scale by space_size.
3528         * troff/node.h: Move declarations of env*space_width() functions
3529         into env.h.
3531 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3533         * macros/tmac.s (PS): Don't try to set negative indent.
3535 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3537         * pic/pic.y: Fix min function.
3539 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3541         * man/mdate.sh: Clear LANGUAGE.
3543 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3545         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3546         * pic/lex.c: New COMMAND keyword.
3547         * pic/pic.y (print_args, print_arg): New rules.
3548         (placeless_element): Use print_args for PRINT.
3549         New COMMAND element.
3551 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3553         * troff/input.c (terminal): Handle missing argument correctly.
3555         * pic/pic.y (text_expr): New rule.
3557         * pic/pic.y: Implement := operator.
3559 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3561         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3562         mdoc.
3564 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3566         * ps/devps/dingbatsrmap: Include this in the distribution.
3568         * macros/tmac.doc: Replace with new version from 2nd Networking
3569         Release. Fix loading of doc-* files.
3570         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3571         * macros/tmac.doc.old: New file.  Apply fixes that had been
3572         applied to old tmac.doc.
3573         * macros/tmac.andoc: Check that we're running under groff.
3574         * macros/Makefile: Rework.
3576 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3578         * tbl/table.h (format_type): 
3579         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3580         typedef to make these types visible at file scope.
3581         * Makefile: Add NESTED_TYPES configuration option.
3583         * troff/div.c (mark): At the top level use the value of
3584         nl_reg_contents rather than the current vertical position.
3586 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3588         * tty/tty.c: Implement \D for horizontal or vertical lines.
3589         (tty_printer::set_char): Use vec_used+2 as serial number.
3590         Don't allow size of vector to exceed USHRT_MAX-2.
3591         Split off part into...
3592         (tty_printer::add_char): New function.
3593         (tty_printer::draw): New function.
3594         (compare_glyph): Handle equal serial numbers.
3595         (tty_printer::end_page): Handle overstruck characters from \D.
3596         (main, usage): Implement -d option.
3598 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3600         * tbl/main.c (process_format):
3601         * eqn/text.c (split_text):
3602         * troff/input.c (token::next): Use inner block for declarations
3603         with initializers in switch statement.
3605 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3607         * pic/common.c (common_output::dash_line): Cope with zero-length
3608         lines.
3610 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3612         * Version 1.04 released.
3614 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3616         * macros/tmac.an (TH): Define a macro an-init to define variables
3617         based on command line arguments.
3618         (an-header): Call it.
3620 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3622         * Makefile (install.mm): Rename to install.dwbmm.
3624         * Makefile: Integrate mm.
3625         * mm: New directory.
3627 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3629         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3630         <sys/types.h>.
3632         * pic/troff.c (troff_output::simple_spline,
3633         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3634         shadowing parameter.
3636         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3638         * lib/ptable.h: Add explicit casts when converting from unsigned
3639         long to unsigned.
3641         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3642         * dvi/devdvi/Makefile: Install SA, SB.
3644         * refer/indxbib.c: Add declaration of mktemp.
3646         * refer/lookbib.c: Add declaration of isatty.
3648 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3650         * pic/lex.c (interpolate_macro_with_args):  While collecting
3651         arguments, keep track of whether we're in a string.
3653 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3655         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3656         down with \v, so as to avoid problems with top of page trap
3657         setting no space mode.
3659 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3661         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3663 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3665         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3666         Improve error message.
3668 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3670         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3671         printf("%03o");
3673 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3675         * groff.c (possible_command::execp): Always use _exit() after a
3676         failed exec.
3678         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3679         NO_SYS_WAIT_H   configuration options.
3680         * groff.c: Use these options.  Use POSIX-style macros to extract
3681         fields from the status returned by wait().
3683 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3685         * tbl/table.c (table::compute_separation_factor): Allow the
3686         separation factor to drop to 0.
3688 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3690         * refer/search.c: Include <errno.h>.
3692 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3694         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3696         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3697         C++. 
3699         * pic/lex.c (input_stack::bol): Move definition out of class body.
3701         * pic/main.c: On MSDOS munge argv[0].
3703         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3705         * lib/ptable.c (hash_string): Use unsigned long rather than
3706         unsigned.
3707         (next_ptable_size): Use unsigned rather than int.  Give an error
3708         message if we've hit the largest table size.
3709         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3710         table size.
3712         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3713         flags as const unisgned long rather than as enums.
3715         * pic/output.c: Deleted.
3717         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3719         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3720         Add additional argument.
3721         (line_entry::note_double_vrule_on_{left,right}): Set value of
3722         douvle_vrule_on_{right,left} flag according to argument.
3723         (simple_line_entry::simple_print,
3724         simple_line_entry::double_line_print): If adjacent to double vrule
3725         on a corner extend rather than shorten the rule by half the double
3726         vrule sep.
3728         * troff/number.c (parse_term): In checking for overflow, handle the
3729         case where the current horizontal position is negative.
3731 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3733         * pic/object.c (draw_arrow): Check for object having zero length.
3735 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3737         * eqn/main.c (do_file): Split off inline equation handling into...
3738         (inline_equation): New function.  Search for starting delimiter
3739         using...
3740         (delim_search): New function. Don't recognize a delimiter that
3741         occurs in the name of an escape sequence, number register, string
3742         etc.
3744 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3746         * eqn/delim.c (delim_box::compute_metrics): Don't call
3747         define_extensible_string if left is 0.
3748         (delim_box::output):  Don't print the left delimiter if left is 0.
3749         (delim_box::debug_print): Check for left == 0 before calling printf.
3751 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3753         * troff/Makefile (majorminor.c): Include only digits in
3754         minor_version.
3756 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3758         * refer/dirnamemax.c: new file.
3759         * refer/genlimits.c: Deleted.
3760         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3761         Don't check path length.
3762         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3763         * Makefile: Add PATHCONF_MISSING option.
3765         * refer/indxbib.c (get_cwd): New function.
3766         (main): Use get_cwd().
3767         * lib/getcwd.c: New file.
3768         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3769         GETCWD in SUBFLAGS.
3770         * lib/Makefile: Compile getcwd.o.
3772         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3773         userdict.
3775         * refer/indxbib.c (main): Check success of mktemp.
3777         * lib/tmpfile.c: New file.
3778         * lib/Makefile: Add tmpfile.c.
3779         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3780         * ps/ps.h: Delete declaration of mktemp().
3781         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3782         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3783         * driver/driver.h: No need now to include errno.h.
3785         * everywhere: Set errno to 0 before calling fopen().
3787         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3788         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3789         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3791 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3793         * troff/env.h (translate_space_to_dummy): Declare it.
3794         * troff/env.c (environment::space_newline, environment::space):
3795         If translate_space_to_dummy is set then make the width of spaces 0.
3796         * troff/input.c (translate): If the second character of a
3797         translation is a space, translate to unbreakable space.  If the
3798         first character is a space, set or clear translate_space_to_dummy
3799         according to whether the second character is \&.  Weird!
3801 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3803         * groff.c (run_commands): Don't use non-zero exit code because a
3804         command gets SIGPIPE.
3806         * groff.c, groff.sh: Use -mXps with -TXps.
3808         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3809         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3810         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3811         (ps_printer::special): New specials invis and endinvis.
3812         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3813         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3814         (ps_printer::end_page): Check that invis_count == 0.
3815         (ps_printer::invis_count): New member.
3816         (ps_printer::ps_printer): Initialize invis_count to 0.
3818         * troff/env.c (environment::hyphenate_line): Hyphenation
3819         indicator at beginning of word inhibits splitting after -, \(em
3820         etc.
3822         * pic/pic.y (element): Allow another element to follow } without
3823         any intervening separator.
3825 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3827         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3829 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3831         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3832         declaration of wait() in header files.
3833         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3835         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3837         * lib/lib.h: Declare return type of strerror as char *.
3839         * man/Makefile: Add g flag to sed substitutions.
3840         * Makefile (shgroff, bindist): Likewise.
3842 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3844         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3845         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3846         userdict.
3848 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3850         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3851         userdict.
3853 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
3855         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3856         group.
3858 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
3860         * troff/input.c (define_number_reg):  If currently undefined,
3861         don't define it if the argument is an invalid expression.
3863         * Makefile: Ignore return value of `if' commands without `else'
3864         parts.
3866         * Makefile: Split up CPPDEFINES into a series of separate
3867         configuration options.
3869         * troff/input.c (init_registers): Use time_t instead of long
3870         unless LONG_FOR_TIME_T is defined.  Use returned result rather
3871         than passing pointer.
3872         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3874         * lib/Makefile (fontpath.h): Use gendef.
3876 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
3878         * troff/input.c (input_iterator::shift): Delete argument name.
3879         * troff/node.c (suppress_output_file::really_begin_page,
3880         suppress_output_file::really_transparent_char, node::ascii_print,
3881         node::tprint): Delete names of unused arguments.
3883 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
3885         * refer/label.y (string):  Pass $4 to command_error.
3887 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
3889         * Version 1.03 released.
3891 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
3893         * Makefile: Pass definition of SHELL in SUBFLAGS.
3895         * gendef: New file.
3896         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3897         ps/Makefile: Use gendef to construct header files that are
3898         constructed from the Makefile.
3900         * macros/Makefile: make all should build stripped version of tmac.e.
3902         * refer/Makefile (clean): Remove y.output.
3904 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
3906         * ps/pfbtops.c (main): Add -v option which prints out a version
3907         number.
3908         * ps/Makefile (pfbtops): Link with libgroff.a.
3910 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
3912         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3913         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3915         * refer/lkbib.c (main): Always terminate reference with blank
3916         line.
3917         * refer/lookbib.c (main): Likewise.
3919         * refer/linear.c (file_buffer::load): Check that the file is not a
3920         binary file.
3922         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3923         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3924         Delete second inclusion of <sys/param.h>.
3926 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
3928         * troff/token.h (token::special): Deleted.
3930         * tbl/main.c (process_format): Rework so that opt->tab_char is
3931         recognized only when appropriate.
3933         * ps/Makefile (clean): Remove pfbtops.
3935 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
3937         * lib/font.c (text_file::next): Don't return if we have got a
3938         blank line.
3940 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
3942         * refer/refer.c (store_reference): Get hash code from old_table[i]
3943         when rehashing the table.
3945 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
3947         * eqn/box.c (box::top_level): Save size and prev size using \R and
3948         restore it afterwards. Set the size to the size at the beginning
3949         of the line.
3950         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3951         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3953         * refer/Makefile (limits.h): Use ./genlimits.
3955 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
3957         * refer/index.c: Delete declarations of stat() and fstat().
3959 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
3961         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3963 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
3965         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3967 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
3969         * troff/input.c (token::get_char): Handle \e.
3971         * refer/linear.c: Delete declarations of fstat() and stat().
3973 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
3975         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3976         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3978 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
3980         * troff/input.c (do_define_macro): Improve error handling for end
3981         of file while defining macro.
3983 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
3985         * eqn/box.h: Fix declaration of set_gsize.
3986         * eqn/box.c (set_gsize): Make argument const char *.
3987         (gsize): Declare as char *.
3988         * eqn/main.c (main): Don't convert gsize to int.
3989         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3991         * Version 1.02 released.
3993 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
3995         * macros/tmac.andoc: New file.
3996         * macros/Makefile: Install tmac.andoc.
3998         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3999         operator new and delete on OP_DELETE_BROKEN not being defined.
4000         * Makefile: Mention OP_DELETE_BROKEN.
4002 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4004         * Makefile (bindist): Pass SUBFLAGS.
4006 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4008         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4010         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4011         parameter.
4013         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4015         * ps/ps.h, ps/psrm.c: Make comment_table and
4016         header_comment_table local to resource_manager::process_file.
4018         * groff.sh: With -TXps pass -printCommand option to gxditview.
4020         * groff.c (possible_command::print): Implement using
4021         append_arg_to_string.
4023         * xditview: Merge in new implementation with own ChangeLog.
4025 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4027         * groff.c (main): Implement PRINT_OPTION.
4028         (append_arg_to_string): New command.
4029         (device_table): Set PRINT_OPTION flag for Xps.
4031 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4033         * troff/groff.h: Rename to troff.h.
4035         * pic/lex.c (lookup_keyword, docmp): New functions.
4036         (get_token): Use new lookup_keyword.
4037         Don't include key.h.
4038         * pic/key.[ch], pic/pic.gperf: Deleted.
4039         * pic/Makefile: Remove gperf stuff.
4041         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4042         into output.h.
4043         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4045         * troff/Makefile, troff/node.c: Move definition of
4046         STORE_WIDTH into node.c.
4048         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4050 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4052         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4053         dvi/devdvi/texb.map: Add lq and rq.
4054         dvi/devdvi: Regenerate fonts.
4055         * ps/devps/textmap: Add lq and rq.
4056         * ps/devps: Regenerate fonts.
4057         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4058         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4060         * pic/object.c (position_rectangle): When checking radius
4061         cope with possiblity that width or height is negative.
4062         (box_object::box_object): Have separate xrad and yrad with
4063         signs matching signs of dim components.
4064         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4065         (box_object::print): With rounded boxes use absolute values
4066         for dim and rad arguments.
4068         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4069         in fontpath.h.
4071         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4073         * various files: Add explicit destructors to keep Saber CC +d
4074         happy.
4076 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4078         * eqn/box.c (box::top_level): Restore fonts correctly after
4079         font changes in line containing inline equation.  Also
4080         restore previous font as well as current font.
4081         * eqn/pbox.h: Define necessary string and register names.
4083         * troff/input.c (token::next): Case 'R' calls do_register.
4084         (do_register): New function.
4086 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4088         * groff.c, groff.sh: Support Xps device.  Allow each device
4089         to have a pseudo_name and a real_name.
4091         * groff.c (run_commands): Don't print `Broken pipe' messages.
4093         * ps/pfbtops.c: New file.
4094         * ps/Makefile: Add pfbtops.
4096         * troff/number.c (parse_term): Improved error message.
4098 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4100         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4102         * Makefile: Integrate refer.
4103         * refer: New directory.
4104         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4105         man/lkbib.man: New files.
4106         * man/Makefile: Support refer man pages.
4108         * lib/lib.h: Declare is_prime.
4109         * lib/prime.c: New file.
4111         * troff/input.c (macro_source): New function.
4112         (init_input_requests): Bind "mso" to macro_source.
4114         * troff/env.c (environment::possibly_break_line): Maintain
4115         pointer to pointer to node to be split in ndp so as to avoid
4116         using address of freed node.
4118         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4119         pointer to first node to be hyphenated in startp so as to
4120         avoid using address of freed node.
4122         * troff/env.c (class trie, class hyphen_trie): Make the
4123         elements of the trie be of type char not unsigned char.
4124         Declare arguments to be const char* instead of unsigned char *.
4125         
4126         * troff/env.c (hyphenate): Initialize hbuf[0].
4128         * troff/input.c (set_string): Declare p to be char * and cast
4129         *p to unsigned char when necessary.
4131         * troff/input.c (do_define_macro): Declare s to be const
4132         char*. Cast element to unisgned char when necessary, Declare
4133         d to be an int.  Handle EOF better.
4135         * troff/Makefile, troff/input.c: Different scheme for passing
4136         definitions of MACROPATH, HYPHENFILE and DEVICE.
4138 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4140         * tty/devascii/R.proto: Delete entry for em.
4141         * tty/devlatin1/R.proto: Likewise.
4143 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4145         * troff/input.c (translate): Stop when we get a space. Treat eof
4146         like newline.
4148         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4150 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4152         * tbl/main.c (process_format): A font name following a `f'
4153         modifier that starts with a digit can be only one character long.
4154         Also deal with EOF on the second character of the font name.
4156 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4158         * troff/input.c (token::next): Turn \~ into an
4159         unbreakable_space_node.
4160         * troff/node.c (unbreakable_space_node): New class.
4161         * troff/node.h: Declare it.
4163 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4165         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4166         it's >= 0, before outputting it as a single byte.
4168 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4170         * lib/font.c: Make font_char_metric::code an int.
4171         (font::get_code): Change return type to int.
4172         (font::load): Allow code to be arbitrary integer.
4173         * lib/font.h (font::get_code): Change return type to int.
4174         (font::number_to_index): Change argument type to int.
4175         * troff/input.c (token::next):  In case 'N', allow any value.
4176         Store value in token::val.
4177         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4178         (token::get_char, token::add_to_node_list, token::process): Get
4179         number from val.
4180         (charinfo::set_number): Change argument to int.
4181         (charinfo::get_number):  Require that NUMBERED flag be set.
4182         (get_charinfo_by_number): Store numbered characters not between 0
4183         and 255 in a dictionary.
4184         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4185         to int.
4186         (charinfo::number): Change type to int.
4187         (charinfo::set_number): Change type of set_number to int.
4188         * troff/node.c (troff_output_file::put_char_width,
4189         troff_output_file::put_char): Test whether character is numbered
4190         using charinfo::numbered().
4191         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4192         values of num.
4193         * lib/nametoindex.c: New implementation to cope with arbitrary
4194         number characters.
4196         * troff/input.c (token::operator==): Test val for
4197         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4198         TOKEN_SIZE.
4200         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4201         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4203 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4205         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4206         variable.
4208         * all Makefiles: rm targets of cp and >.
4210         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4211         it.
4213         * eqn/lex.c (def_table): Add dollar.
4215 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4217         * troff/input.c (do_width): Push back newline before closing delim
4218         like do_bracket.
4220 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4222         * groff.c (possible_command::prepend_arg): New function.
4223         (main): Prepend device -m option.
4224         * groff.sh: Put device -m options before command-line options.
4226 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4228         * macros/tmac.an (IP): Quote argument to TP.
4230         * ps/ps.c (main): New option -b, which sets...
4231         (broken_flags): New variable.
4232         (ps_printer::~ps_printer): Incorporate the setup section in the
4233         prolog if (broken_flags & NO_SETUP_SECTION).
4234         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4235         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4236         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4237         ps_printer::print_needed_font_comment,
4238         ps_printer::print_supplied_font_comment,
4239         ps_printer::print_include_font_comments,
4240         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4241         ps_printer::read_download_file, read_document_fonts, add_font,
4242         skip_line, parse_fonts_arg, document_font::document_font,
4243         document_font::~document_font, document_font::download,
4244         ps_output::include_file):  Deleted.
4245         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4246         rather than %!PS-Adobe-2.0.  Make calls to
4247         resource_manager::need_font for each font that we used. Replace
4248         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4249         print_supplied_font_comment, print_needed_font_comment by call to
4250         resource_manager::print_header_comments. Output %%Orientation
4251         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4252         Don't output the prolog directly.  Instead call
4253         resource_manager::output_prolog.  Only define #copies when ncopies
4254         > 1.  Delete calls to print_include_font_comments  and
4255         download_fonts.  Add call to resource_manager::document_setup.
4256         (ps_printer::do_file): Call resource_manager::import_file instead
4257         of including it ourselves.
4258         (ps_printer::do_import): Likewise.  Also don't call
4259         merge_import_fonts. Push userdict on the dictionary stack before
4260         and pop it afterwards.
4261         Move declaration of ps_output into ps.h.
4262         * ps/psrm.c: New file implementing resource_manager class.
4263         * ps/ps.h: New file declaring ps_output and resource_manager
4264         classes.
4265         * ps/devps/zapfdr.ps:
4266         * ps/devps/symbolsl.ps:
4267         * ps/devps/prologue:  Use 3.0 conventions.
4268         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4269         Add default definition of BROKEN_SPOOLER_FLAGS.
4270         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4271         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4273 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4275         * etc/grog.pl: New file.
4276         * Makefile (GROG): New variable.
4277         Add GROG to SUBFLAGS.
4278         * etc/Makefile (GROG): New variable.
4279         (install.nobin): Install $(GROG) rather than grog.sh.
4281 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4283         * eqn/special.c (special_box::compute_metrics): Make the input and
4284         output strings the same.  Get the new height and depth from the
4285         predefined height and depth registers.  Also make subscript kern
4286         and skew available.
4287         (special_box::compute_subscript_kern, special_box::compute_skew):
4288         New functions.
4290         * eqn/box.c (pointer_box::compute_skew,
4291         simple_box::compute_metrics, box::top_level)
4292         * eqn/text.c (prime_box::compute_metrics,
4293         prime_box::comput_subscript_kern)
4294         * eqn/limit.c (limit_box::compute_metrics):
4295         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4296         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4297         negative numbers in `nr' requests with a leading 0.
4299 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4301         * eqn/special.c: New file.
4302         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4303         Add new rule for simple.
4304         * eqn/lex.c (token_table): Add SPECIAL.
4305         * eqn/box.h: Declare make_special_box.
4306         * eqn/Makefile: Add special.[co].
4308 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4310         * ps/devps/prologue: Possibly set packing to true while defining.
4311         Create grops dictionary here.  Initialize local variables before
4312         defining procedures.
4313         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4314         the dictionary stack. Set strokeadjust and overprint to false if
4315         the relevant operators are defined.
4316         (PEND): New procedure.
4317         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4318         prologue.  Do everything else in the setup section.
4319         (ps_printer::do_import): Just call PBEGIN and PEND around the
4320         picture. Also push userdict before, and pop it afterwards.
4322 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4324         * troff/node.c (bracket_node::tprint): Brackets were being printed
4325         1m too low.
4327         * macros/tmac.an (SH, SS): Set fill mode.
4329 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4331         * troff/div.c (top_level_diversion::begin_page): Set
4332         high_water_mark to 0.
4334 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4336         * man/mdate.sh: New file.
4337         * man/mdate.c: Deleted.
4338         * man/Makefile: Use mdate.sh instead of mdate.
4339         (mdate): Deleted.
4341         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4343 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4345         * man/mdate.c: New file.
4346         * man/*.man: Replace modification date by @MDATE@.
4347         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4348         (mdate): New target.
4350         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4351         Remove illegal input characters.
4353 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4355         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4357 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4359         * troff/div.c (begin_page): Change behaviour when
4360         !first_page_begun and !break_flag.
4362         * troff/input.c (do_name_test): Return 0 if argument is empty.
4364         * troff/input.c (read_long_escape_name): Require closing ] to be
4365         at same input level as opening [.
4367         * troff/input.c (read_increment_and_escape_name): New function.
4368         (get_copy, process_input_stack): Use this for \n.
4370 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4372         * troff/div.c (top_level_diversion::begin_page): Ignore the
4373         current value of page_number if !first_page_begun.
4375         * groff.c (main): Fix declaration of buf.
4377         * troff/input.c (do_name_test): New function.
4378         (token::next): Implement \A.
4379         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4380         (token::description, token::add_to_node_list, token::process):
4381         Handle TOKEN_ESCAPE.
4382         * troff/token.h: New token TOKEN_ESCAPE.
4384 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4386         * pic/main.c (do_picture): Allow space before and after filename
4387         following `<'.  Check that the filename is not empty.
4389 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4391         * Version 1.01 released. 
4393         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4395         * dvi/tmac.dvi: ftr HR to H.
4397         * macros/tmac.e: Round up computation of $r.
4399         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4400         Use \n(.s instead of \n[.s].
4402         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4403         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4404         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4405         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4406         short names in the char definitions.
4408         * ps/tmac.ps: Don't give up completely in compatibility mode.
4409         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4410         quote in front of \n(.s. Add u to factors inside \s[...].
4412 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4414         * tty/tmac.tty: Call the nroff request.
4416         * macros/tmac.e ((x, )x):  Better definitions that work properly
4417         in a diversion.
4418         (@0, @1): Helper macros for (x.
4420         * macros/tmac.e ($s, hl): Use \l rather than \D.
4422         * tty/tmac.tty: Make it work better in compatibility mode.
4423         (pchar): Rename to tty-char.
4425         * macros/tmac.e (@E): New macro.
4426         (r, i, b, rb, bi): Use @E.
4428         * macros/tmac.e (@F): Don't use (;...) syntax.
4430         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4431         it was modified for groff.
4433         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4435         * macros/tmac.e (<., .>): Removed.
4436         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4438         * macros/tmac.e: Remove check that groff is being used.
4440         * macros/tmac.e (@C): Change families only if using groff; turn
4441         compatibility mode off while changing familes. Save compatibility
4442         mode before changing families and restore it afterwards.
4444         * macros/tmac.e (@h): Remove test for offset + line length.
4446         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4447         (lo, th, ac): Define to call @S instead of using als.
4449         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4450         the ratio of the vertical spacing to the point size in units
4451         expressed as a percentage.  Use these instead of $10r and $10R,
4452         Delete $10r and $10R.
4454         * lib/font.c (font::load): In default computation of space_width,
4455         divide by sizescale.  Use scale_round.
4457         * macros/tmac.an (TP): Don't call `nf'.
4458         (an-do-tag): Don't call `fi'.
4460 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4462         * troff/input.c (process_input_stack): Handle the case where
4463         spaces at the beginning of an input line are followed by a
4464         newline.
4466 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4468         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4469         * groff.sh: Use pic -x with the dvi device.
4471         * dvi/devdvi/FontMakefile (H): Don't use -s.
4473         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4474         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4475         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4476         in FONTS.
4478 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4480         * ps/psfig.diff: New file.
4481         * ps/tmac.psfig: New file.
4483 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4485         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4486         (]-): Don't call ref*do-tl.
4488         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4490         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4491         (fn@do-FS): Rename to fn*do-FS.
4493         * troff/input.c (transparent_translate): New function.
4494         (process_input_stack): Apply transparent_translate before calling
4495         diversion::transparent_output(unsigned char).
4497 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4499         * troff/input.c (do_define_macro): Define the macro before calling
4500         skip_line.
4502         * xditview/Makefile: Add DEVICES variable.  Change install target
4503         to use this.
4505 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4507         * groff.c (run_commands): Handle the possibility that there are
4508         child processes other than those forked by us.
4510 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4512         * lib/string.c (string::append): New function.
4513         * lib/stringclass.h: Declare it.
4515 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4517         * eqn/main.c (main): New option -N which sets
4518         no_newline_in_delim_flag. 
4519         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4520         in delimiters.
4521         * groff.c (main): Pass -N on to eqn.
4522         (help, synopsis): Mention -N.
4523         * groff.sh: Implement -N.
4525 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4527         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4528         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4529         (XP): Allow as initializer.
4531 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4533         * troff/env.c (environment::wrap_up_field): If field_spaces are
4534         non-zero and we have a current_tab, subtract padding from
4535         tab_distance.  If this makes tab_distance <= 0, use the next tab
4536         stop instead.  If there isn't any next tab or it's a left tab,
4537         wrap up the current tab.
4538         (environment::start_field): Initialize tab_precedes_field.
4539         (environment::wrap_up_tab): If there's a current field, update
4540         pre_field_width, field_distance and tab_precedes_field.
4541         * troff/env.h (environment::tab_precedes_field): New member.
4543 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4545         * ps/ps.c (ps_printer::do_file): New function.
4546         (ps_printer::special): Bind to `file' special.
4547         (ps_printer::do_exec): Set ndefined_styles to 0.
4549 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4551         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4552         Avoid stripping first character from the start of unrecognized
4553         escapes.  Use lex_error instead of error to report errors.
4554         * eqn/lex.c (get_token): Rework handling of escapes.
4555         (lex_error): Move declaration into...
4556         * eqn/eqn.h.
4558         * xditview/xditview.c (main): Make -page option work.
4560         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4562 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4564         * macros/tmac.s (B2): Correct size of box.
4566 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4568         * macros/tmac.s (B2): Postpone drawing the box until in the
4569         top-level diversion.
4571         * tty/tmac.tty: Add font translations for C, CR, CW.
4573         * groff.c (synopsis, help): Document -i.
4574         * groff.sh: Implement -i.
4576         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4577         Simplify the construction of SN.
4579         * troff/number.c (parse_term): Give `|' a higher precedence.
4580         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4581         accordingly.
4583         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4585 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4587         * lib/string.c (string::move): New function.
4588         * lib/stringclass.h: Declare it.
4590 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4592         * troff/env.c (distribute_space): Add optional argument
4593         `force_forward'.
4594         (environment::wrap_up_field): Call distribute_space with
4595         `force_forward' argument of 1.
4597 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4599         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4600         Inline it.  Move reallocation into...
4601         (string::grow1): New function.
4602         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4603         dependencies to include library header files.
4604         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4606 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4608         * macros/tmac.s (@NH): Use the same number registers than -ms does
4609         for the heading level counters.  Use the same string that -ms does
4610         for the number for this heading.
4612 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4614         * lib/new.c (operator new): Cast result of malloc to char *.
4616         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4617         is not null.
4619 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4621         * groff.c (main): Support -i.
4623 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4625         * pic/pic.h: Include <osfcn.h>.
4627         * ps/ps.c: Add declaration of mktemp.
4629         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4630         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4631         argument as union wait *.
4632         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4633         argument to union wait *.
4635 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4637         * tty/tmac.tty: Add definition of \(co.
4639         * pic/object.c (make_arc): Only increase radius when radius
4640         strictly less than d.
4641         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4642         more than once.
4644         * troff/env.c (environment::environment(symbol),
4645         environment::environment(const environment *)):  Initialize
4646         input_trap_count.
4648 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4650         * tbl/main.c (main): Add exit(0).
4652         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4654         * pic/main.c (main):
4655         * eqn/main.c (main):
4656         * tbl/main.c (main):
4657         * etc/soelim.c (main):
4658         * driver/printer.c (printer::~printer):
4659         * troff/node.c (real_output_file::~real_output_file,
4660         real_output_file::flush):  Check for errors on stdout.
4662         * most files: Add 1991 to copyright notice.
4664         * macros/tmac.s: Don't test \n(.x and \n(.y.
4666         * troff/input.c (token::next): Rename `escape_char' label to
4667         `handle_escape_char' and `normal_char' label to
4668         `handle_normal_char'.
4670 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4672         * groff.c (main, synopsis, help): Support -a option.
4673         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4674         to trflags while parsing options.
4676 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4678         * troff/number.c (parse_term): With `m', `M' and `n' scale
4679         indicators, convert scale factor to hunits before scaling.
4681 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4683         * lib/font.c (scale_round): Better test for overflow when n is
4684         negative.
4686 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4688         * tbl/main.c (process_format): Add second argument of type
4689         options*. Change callers.  Allow opt->tab_char as well as '\t'
4690         between format items.
4692 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4694         * macros/tmac.an (PD): With no arguments, make sure register PD is
4695         at least \n[.V].
4696         (TH): Call PD with no argument, instead of setting register PD
4697         directly.
4699 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4701         * Version 1.00 released.
4703 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4705         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4707         * dvi/devdvi/DESC: Mount CW instead of CR.
4709         * dvi/tmac.dvi: Add definition of \(tm.
4711         * dvi/devdvi/texsy.map: Add lh, and rh.
4712         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4713         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4715         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4716         * dvi/devdvi/Makefile: Install H.
4717         * dvi/devdvi/H: New file.
4719 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4721         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4722         be 0.
4724 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4726         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4728         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4730         * macros/tmac.s (@EN): Handle the case where the equation is empty
4731         but the label is not.
4733 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4735         * troff/groff.h: New warning category WARN_SPACE.
4736         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4737         WARN_SPACE to warning_table.
4738         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4739         is longer than two characters and is not defined, but the first
4740         two characters do make a defined name.
4742         * PROBLEMS: New file.
4744         * CHANGES: New file.
4745         * README-0.6, README-1.00: Deleted.
4747         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4748         * xditview/devX75/Makefile: Make devX75-12.
4749         * xditview/devX100/Makefile: Make devX100-12.
4751         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4752         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4754 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4756         * README-0.7: Rename to README-1.00.
4758         * macros/tmac.pic: New file.
4759         * macros/Makefile (install.nobin): Install tmac.pic.
4761 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4763         * troff/env.c (hyphen_word): Correct the test for whether the
4764         token is a hyphen.  Reset npos to 0.
4766         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4768 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4770         * macros/tmac.s (ds*common-end): Call par*reset.
4771         (PE): Likewise.
4772         (par@reset-indent): Deleted.
4774         * macros/tmac.s (@IP): Divert the label.
4776 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4778         * xditview/draw.c (setGC): Use a line width of .1m rather than
4779         .04m by default; round rather than truncate value.
4781         * tbl/table.c (class empty_entry): New class.
4782         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4783         (table::add_entry): Represent empty entries by objects of type
4784         empty_entry.
4785         (table_entry::line_type): Return -1.
4786         (table::determine_row_type): Ignore entries with line_type 0.
4787         Treat type -1 as non-lines.
4789 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4791         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4792         macros/tmac.s: Rename \(-d to \(Sd.
4794 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4796         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4797         * xditview/libXdvi/DviChar.c: Likewise.
4798         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4800 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4802         * troff/div.c (top_level_diversion::begin_page): Call
4803         init_output() if the_output is 0.
4805 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4807         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4808         ESCAPE_c.
4809         (get_copy): Turn \E into ESCAPE_E.
4810         (token::process, asciify): Handle ESCAPE_E.
4812         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4813         (RD): New macro.
4814         (DS): Implement `.DS R'.
4816 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4818         * macros/tmac.s (FS): New macro.
4820         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4822         * macros/tmac.s (cov*tl-init): Remove after first execution
4823         instead of aliasing to @nop.  Call top of page macro explicitly
4824         instead of setting trap; call @init first.  Set pg@top as top of
4825         page macro.
4826         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4827         cov*auto-init as top of page trap. 
4828         (TL, LP): Do a break instead of calling cov*tl-init.
4829         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4830         @FE; in this case also give a warning and always start another
4831         page. No need to set pg@top here.
4832         (cov*tl-init): Rename to cov*first-page-init.
4834         * macros/tmac.s (RP): Do `.pn 0'.
4835         (cov*tl-init): With RP format don't do `.pn 0'.
4837         * macros/tmac.s (pg@cs-top): Set no space mode.
4839         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4840         (cov*ab-init): Alias TL, AU and AI to these.
4842 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4844         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4845         (@EN): Do nothing unless \n[dl] is > 0.
4847 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4849         * pic/object.c (ellipse_object::radius): New function.
4851         * VERSION: Change version to 0.7.
4853         * tbl/table.c (block_entry::do_divert): Declare return type as
4854         void.
4855         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4857 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
4859         * troff/column.c: New file.
4860         * troff/Makefile: Corresponding changes.
4862         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
4863         Friend of vunits.
4865         * troff/div.c (top_level_diversion::space): If the space causes
4866         the first-page transition and springs a trap, truncate the space
4867         to 0.
4869 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
4871         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4872         the document.
4874         * pic/troff.c (troff_output::line_thickness,
4875         troff_output::set_fill): Do a horizontal motion to compensate for
4876         the width of the \D escape sequence.
4878 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
4880         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4881         (not X75).
4883         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
4884         to printf.
4886         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4887         Supply empty definition.
4888         (text_entry::simple_print, simple_text_entry::simple_print):
4889         Delete declarations.
4890         (table::add_entry): Represent empty entries by objects of type
4891         `simple_entry'.
4893 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
4895         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4897         * tbl/table.c (left_text_entry::add_tab): New function.
4899         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
4900         initialize like LP.
4902 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
4904         * troff/env.c (environment::start_field): Give an error message if
4905         there is no next tab.
4907 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
4909         * troff/env.c (hyphenate): Skip initial elements with zero
4910         hyphenation code.
4912         * macros/tmac.s (par@init): Keep VS in points rather than units.
4914 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
4916         * pic/main.c (main): Implement `-c' option.
4917         * pic/output.h: Declare make_tpic_output().
4918         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4919         protected.
4920         (tpic_output): New class.
4921         (tpic_output::tpic_output, tpic_output::set_pen_size,
4922         tpic_output::command, make_tpic_output): New functions.
4924 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
4926         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
4927         if they're not already defined.
4928         * tbl/table.c (init_output): Don't test \n(.g.
4930         * troff/input.c (do_if_request): Delete `g' condition. Recognize
4931         `d', `r' and `c' conditions even in compatibility mode.
4933 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
4935         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4936         box.
4938 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
4940         * troff/env.h (environment::prev_line_interrupted): New member.
4941         (environment::get_prev_line_interrupted): New function.
4942         * troff/env.c (environment::newline): Set prev_line_interrupted.
4943         (environment::environment(const environment *),
4944         environment::environment(symbol)): Initialize
4945         prev_line_interrupted.
4946         * troff/input.c (process_input_stack): Don't give special
4947         treatment to space and newline at the beginning of the line if the
4948         previous line was interrupted.
4950 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
4952         * eqn/eqn.y: Disallow PRIME by itself.
4953         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4954         PRIME.
4955         (def_table): Remove definition of '.  Define prime to be `.
4957         * eqn/eqn.y: Split off part of rule `script' into a new rule
4958         `nonsup'.
4960 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
4962         * macros/tmac.s ({, }): New string aliases.
4964 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
4966         * README-0.7: New file.
4968 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
4970         * macros/tmac.s: New file.
4971         * man/groff_ms.man: New file.
4972         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4973         * Makefile.bd: Similarily.
4974         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4975         definition of TMAC_S.
4976         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4977         * macros/TODO: New file.
4979 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
4981         * troff/env.c (right_justify): New function.
4982         (init_env_requests): Bind this to request "rj".
4983         (center_lines): Set right_justify_lines to 0. If we get a bad
4984         integer, center 1 line.
4985         (environment::environment(symbol), environment::environment(const
4986         environment *)): Initialize right_justify_lines.
4987         (environment::get_right_justify_lines): New function.
4988         (init_env_requests): Bind this to number_register ".rj".
4990         * troff/env.c (environment::choose_breakpoint): Implement
4991         hyphenation_margin and hyphenation_space.
4992         (environment::get_hyphenation_space,
4993         environment::get_hyphenation_margin): New functions.
4994         (init_env_requests): Bind these to .hys and .hym.
4995         (hyphenation_space_request, hyphenation_margin_request): New
4996         functions
4997         (init_env_requests): Bind these to hys and hym.
4998         (environment::environment(symbol), environment::environment(const
4999         environment *)): Initialize hyphenation_margin and
5000         hyphenation_space.
5001         * troff/env.h: Corresponding changes to class environment.
5003 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5005         * troff/div.c (blank_line): Always do a break.
5007         * eqn/box.c (do_text): Turn off escapes while appending text to
5008         string.
5010 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5012         * troff/input.c (while_break_request, while_continue_request): New
5013         functions.
5014         (init_input_requests): Bind these to "break" and "continue".
5015         (while_depth, while_break_flag): New variables.
5016         (while_request): Update while_depth.  Break out of loop if
5017         while_break_flag is set.
5019 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5021         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5022         rather than 0.
5024 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5026         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5028         * stringify: New file.
5029         * Makefile (groff.o): Use stringify.
5031         * xditview/tmac.X: Remove definition of \(rn.
5032         * xditview/libXdvi/DviChar.c: Remove radicalex from
5033         Adobe_symbol_map.
5035 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5037         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5038         (alphabetic_block_entry::alphabetic_block_entry,
5039         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5040         New functions.
5041         (block_entry::divert): Split off body into ...
5042         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5043         from the line length; also update the span width to dl+2n, and the
5044         alphabetic span width to dl.
5046         * driver/input.c (do_file):  While reading argument to D command,
5047         when expanding buffer, multiply szp by sizeof(int) rather than 2
5048         in the argument to memcpy.
5050         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5051         width of alphabetic columns.
5053 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5055         * troff/node.c (lookup_family): Supply second argument to lookup.
5057         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5058         search, return immediately if v is 0.
5060         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5061         (troff_output::start_picture): Set this reg.
5062         (troff_output::end_picture): Remove this reg
5063         * eqn/box.c (box::extra_space): Don't produce `\x's if
5064         EQN_NO_EXTRA_SPACE_REG is defined.
5066         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5067         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5068         character.
5070 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5072         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5073         requests.
5075         * troff/div.c (top_level_diversion::top_level_diversion):
5076         Initialize page_number to 0.
5078 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5080         * groff/troff (environment::environment(const environment *)):
5081         Initialize name to e->name, rather than "anonymous".
5083 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5085         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5086         requested_page.  Split middle part into ...
5087         (FindPage): New function.
5088         (SetValues): If we don't yet know the last page, and the requested
5089         page is greater than the current page, call FindPage.
5090         Update the font_map_string before doing this.
5092         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5093         Translate \(lh and \(rh into left and right double arrows.
5095         * troff/node.c (class hyphen_inhibitor_node): New class.
5096         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5097         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5098         hyphen_inhibitor_node::type,
5099         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5100         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5101         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5102         word.
5104 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5106         * troff/node.h (dummy_node::get_hyphenation_type,
5107         transparent_dummy_node::get_hyphenation_type):  Declare them.
5108         * troff/node.c: (dummy_node::get_hyphenation_type,
5109         transparent_dummy_node::get_hyphenation_type): New functions.
5111 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5113         * xditview/libXdvi/draw.c: If M_PI not defined after including
5114         math.h, then define it.
5116         * xditview/Makefile: Add definition of AR. Pass it to the submake
5117         in libXdvi.
5118         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5120 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5122         * troff/dictionary.h (object_dictionary::alias): Declare return
5123         value as int.
5124         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5125         if the old name was defined.
5126         * troff/input.c (alias_macro): Give a warning if the old name was
5127         not defined.
5128         * troff/reg.c (alias_reg): Likewise.
5130 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5132         * troff/input.c (token::next): Delete implementation of \R.
5134         * macros/Makefile: Strip comments from tmac.e while installing it.
5136         * troff/input.c: New variable `nroff_mode'.
5137         (troff_request, nroff_request): New functions.
5138         (init_input_requests): Bind `troff' and `nroff' to troff_request
5139         and nroff_request.
5140         (do_if_request): Compute results of t and n conditions from
5141         nroff_mode.
5143         * text/text.c (split_text): Fix typo in >=.
5145         * eqn/lex.c: Add definition of `==' to def_table.
5147 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5149         * pic/tex.c (tex_output::start_picture): Change the definitions of
5150         \graph and \graphtemp so that they work properly with Plain TeX.
5152         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5153         argument to `ar' is not less than the first.
5155         * pic/pic.y: Allow a comma between elements of the variable list
5156         in the argument to `reset'.
5158         * pic/object.c (arc_object::arc_object): Fix computation of
5159         radius.
5161         * eqn/main.c (main): Add exit(0).
5163 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5165         * troff/div.c (begin_page): Test no_space_mode after doing the
5166         break, but still push the page ejector cookie before doing the
5167         break.  Also set the next page number after doing the break.
5168         
5169         * xditview/xditview.c (NewFile): Don't set the title and icon name
5170         if this is the first file and its name is `-'.
5171         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5172         the X75 and X100 devices.
5173         (main): If a device has the XT_OPTION flag set and there's exactly
5174         one file argument, pass the driver -xrm and -title options to set
5175         the icon name and window title to the name of the file.
5177         * troff/env.c (environment_switch): If there was an argument but
5178         it wasn't a valid number or name, then pop an environment but
5179         don't give an error message on underflow.
5181         * troff/number.c (start_number): Correct spelling in error message.
5183         * troff/input.c (token::delimiter): Don't print an error message
5184         if err is false.
5186         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5187         ParseDrawFunction if dw->display_enable is true.
5189 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5191         * pic/pic.y: Parse text positioning like normal attributes, so as
5192         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5193         positioning attribute.
5195 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5197         * tbl/main.c (process_data): When in state START while reading a
5198         text block, don't change to state MIDDLE if c is a newline.
5200 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5202         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5203         so as to avoid shadowing parameter.
5205 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5207         * tbl/table.c (trim_space): Deleted.
5208         (table::add_entry): Don't call trim_space.
5210 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5212         * VERSION: Change version to 0.6.
5214         * troff/number.c (parse_expr): Make == work.
5216 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5218         * man/grog.man: New file.
5219         * man/Makefile: Add grog.n to MAN1PAGES.
5220         * etc/grog.sh: New file.
5221         * etc/Makefile: Install grog.sh as grog.
5223 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5225         * troff/input.c (token::next): Implement \E.
5227 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5229         * xditview/tmac.X: Change font translations to match tmac.ps.
5231         * troff/input.c (non_empty_name_warning): Don't give a warning if
5232         `\{' terminates the name.
5234 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5236         * ps/devps/symbol.diff: New file.
5237         * ps/devps/FontMakefile: Mention symbol.diff.
5239 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5241         * troff/node.c (font_position): Use get_long_name to read the
5242         external_name.
5244         * troff/env.c (environment_switch): If we get a number that's < 0
5245         or >= NENVIRONMENTS, treat it like a name.
5246         Change NENVIRONMENTS to 10.
5248         * troff/groff.h: Remove definition of FONTS_MAX.
5249         * troff/node.h (class font_family): Make map a pointer instead of
5250         an array. Add a map_size member. Make it a class. Make nm const
5251         and public. Make invalidate_fontno a friend.
5252         * troff/node.c: Define font_table_size. Make font_info a pointer
5253         rather than an array.
5254         (class troff_output_file): Allocate font_position dynamically. Add
5255         nfont_positions member.
5256         (troff_output_file::set_font): Grow font_position if necessary.
5257         (troff_output_file::~troff_output_file): Delete font_position.
5258         (troff_output_file::troff_output_file): Allocate font_position.
5259         (grow_font_table): New function.
5260         (troff_output_file::really_begin_page,
5261         troff_output_file:really_copy_page): Use nfont_positions rather
5262         than FONTS_MAX.
5263         (mount_font_no_translate, mount_style): Call grow_font_table if
5264         necessary.
5265         (font_family::font_family): Allocate map.
5266         (font_family::make_definite): Grow map if necessary. Use
5267         font_table_size instead of FONTS_MAX.
5268         (font_family::~font_family): New function.
5269         (invalidate_fontno): Use font_family::map_size.
5270         (get_fontno, env_space_width, env_half_narrow_space_width,
5271         env_narrow_space_width, symbol_fotno, is_good_fontno,
5272         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5273         FONTS_MAX.
5274         (next_available_font_position): Never return 0.
5276 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5278         * ps/tmac.ps: Add font translations for compatibility with dpost.
5280 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5282         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5283         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5284         Move definitions baseline_sep, shift_down, column_sep,
5285         matrix_side_sep into...
5286         * eqn/box.c: Add them to param_table.
5287         * eqn/pbox.h: Add declarations to pbox.h.
5289         * troff/input.c (set_string): Cast value to unsigned char *.
5291         * troff/token.h (process_input_stack): Declare it static before
5292         declaring it a friend.
5294 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5296         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5297         and bottom.
5298         * dvi/devdvi/EX: Regenerate.
5300         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5301         transparent.
5303 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5305         * eqn/lex.c: In defaults_table, make definition of `dot' call
5306         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5307         accents.
5309         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5310         argument.
5311         (for_input::get, for_input::peek): Use this.
5312         (do_for): Add by_is_multiplicative argument.
5313         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5314         Change semantic value of optional_by to be a double plus a flag
5315         saying whethet the by clause is multiplicative.
5317         * eqn/lex.c (get_delimited_text): Remember location of start of
5318         definition.  Improve error handling when EOF is encountered.
5320         * lib/font.h: Rename handle_x_command to
5321         handle_unknown_font_command.
5322         * lib/font.c (font::load): Call handle_unknown_font_command for
5323         any unknown command in the font description file.  Don't call
5324         handle_x_command. Include the name of the command in the argv.
5325         Improve message for unknown command after kernpairs or charset
5326         command.
5327         * ps/ps.c (ps_font::handle_x_command): Rename to
5328         handle_unknown_font_command.  Remove message about `x download'
5329         command.  Give error message for wrong number of arguments.
5330         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5331         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5332         handle_unknown_font_command. Give an error message for wrong
5333         number of arguments.  Rename design_size to designsize.
5334         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5335         checksum', `designsize' instead of `design_size'.
5337 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5339         * eqn/*.[chy]: Change underaccent to uaccent.
5341         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5342         give it the same precedence as ACCENT.
5343         * eqn/other.c (make_underaccent_box): New function.
5344         * eqn/box.h: Declare it.
5345         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5346         def_table.
5348 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5350         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5351         (parse_init): Call reset_all.
5352         (define_variable): When defining scale reset only those
5353         pre-defined variables that are scaled.
5354         (defaults_table): Add `scale' as non-scaled value.
5356         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5357         together with the text; allow any number of positioning words;
5358         allow center as a positioning word.
5360         * pic/object.c (output::compute_scale): Get picture maximum height
5361         and width from variables called maxpswid and maxpsht.
5362         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5364 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5366         * pic/object.c (object_spec::make_text): Multiply textht by number
5367         of text items.
5369         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5370         occur.
5371         (do_sprintf): New function.
5372         (pic.gperf): Add sprintf token.
5373         (text, sprintf): New rules.
5375         * pic/pic.y: `rand()' with no arguments returns a random number
5376         in the range [0,1).
5378         * pic/pic.y: Allow a bare expression to be an attribute: change
5379         precedences to support this.  Change optional_ordinal rule to
5380         optional_ordinal_last to avoid reduce/reduce conflict.
5381         * pic/object.c (object_spec::object_spec): Initialize direction.
5383         * pic/pic.y: Implement ^ operator meaning exponentiation.
5385         * troff/node.h: Add default argument to mount_font.
5386         * troff/node.c (font_position): Read an optional third argument
5387         giving the external_name.
5388         (mount_font): Add optional argument giving the external_name.
5389         (mount_font_not_translate): Have additional argument giving
5390         external name.  Use this name to load the font.  Pass both names
5391         to font_info::font_info.
5392         (font_info::font_info): Have additional argument giving
5393         external_name.
5394         (class tfont): New member external_name.
5395         (font_info::get_tfont): Use external name to construct tfont_spec.
5397 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5399         * eqn/lex.c (init_table): Add argument giving device.  Define
5400         name of device to be "1".
5401         (do_ifdef): Counts as true if the argument has been defined with
5402         `define'.
5403         * eqn/main.c (main): Call init_table with device argument. Make
5404         device local to main.
5405         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5406         of device.
5408         * pic/lex.c (get_delimited): Allow text to be delimited by
5409         matching {}s.  Don't recognize ending delimiter within a string.
5411         * troff/input.c (get_delim_name): New function.
5412         (token::next): Implement \C.
5414         * lib/font.c (font::load): Grok ---.  Add an alias for each
5415         character based on its code.
5416         (font::get_code_width): Deleted.
5417         * lib/font.h (class font): Declare font::number_to_index().
5418         Remove declaration of font::get_code_width.
5419         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5420         to indices of named characters.
5421         (font::number_to_index): New function.
5422         * troff/input.c (font::number_to_index): New function.
5423         (get_charinfo_by_number, charinfo::get_number,
5424         charinfo::set_number): New functions.
5425         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5426         (token::process, token::description, token::get_char,
5427         token::add_to_node_list, token::operator==): Handle
5428         TOKEN_NUMBERED_CHAR.
5429         * troff/charinfo.h: Declare get_charinfo_by_number,
5430         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5431         charinfo class.
5432         (charinfo::numbered): New function.
5433         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5434         * troff/env.h (class environment): Remove declaration of ...
5435         * troff/env.c (environment::make_numbered_char_node): Deleted.
5436         * troff/node.c (make_numbered_node): Deleted.
5437         (class numbered_glyph_node): Remove.
5438         (troff_output_file::put_char_width, troff_output_file::put_char):
5439         Handle numbered chars.
5440         (troff_output_file::numbered_char): Removed.
5441         (tfont::get_code_width): Removed.
5442         (make_glyph_node): Don't search special fonts for numbered
5443         characters.
5444         * troff/node.h: Remove declaration of make_numbered_node.
5445         * driver/input.c (do_file): Handle N command.
5446         * driver/printer.h: Add declaration of ...
5447         * driver/printer.c (printer::set_numbered_char): New function.
5448         * dvi/tfmtodit.c (main): Generate unnamed entries.
5449         * ps/devps/afmtodit: Likewise.
5450         * xditview/xtotroff.c (MapFont): Likewise.
5451         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5453         * tbl/main.c (process_format): If multiple widths are specified
5454         for a column but all the widths are the same, don't give an error
5455         message.
5457         * tbl/table.c (table::do_row): If the current row is all lines and
5458         the stuff doesn't contains a line, mark the top of the row after
5459         printing stuff before the row.  If the current row is not all
5460         lines and the stuff doesn't contain a line, don't unnecessarily
5461         mark the top of the row before printing the stuff.
5462         
5463 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5465         * troff/groff.h: Remove MAX_PATH.
5466         * troff/input.c (open_file): Dynamically allocate space for the
5467         path.
5468         (open_mac_file, process_macro_file): Corresponding changes.
5470 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5472         * troff/node.h (class output_file): Make copy_file pure.  Add
5473         vspace method ifdef COLUMN. Add is_printing method.
5474         * troff/node.c: Add class printing_reg. Add class
5475         real_output_file. Derive other output_file classes from
5476         real_output_file; in these classes rename begin_page to
5477         really_begin_page, print_line to really_print_line, copy_file to
5478         really_copy_file, transparent_char to really_transparent_char.
5479         Move output_file::flush to real_output_file. Add printing member
5480         to class output_file.
5481         * troff/div.h: Remove printing member from top_level_diversion.
5482         Add vspace member function to class diversion ifdef COLUMN. Add
5483         some declarations ifdef COLUMN.
5484         * troff/div.c (top_level_diversion::copy_file,
5485         top_level_diversion::transparent_output,
5486         top_level_diversion::output): Don't test printing member before
5487         output.
5488         * troff/input.c: Handle initial variable_space_request ifdef
5489         COLUMN.
5490         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5491         but comment it out.
5493 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5495         * troff/div.c (diversion::need): Make any space forced.  If we
5496         sprung a trap, set truncated_space to minus the distance to the
5497         trap and set needed_space to the amount that was needed.
5498         (top_level_diversion::space): A forced space turns no_space_mode
5499         off.
5500         (class constant_vunits_reg): New class.
5501         (init_div_requests): Implement number registers .trunc and .ne
5502         using constant_vunits_reg.
5503         (class truncated_space_reg): Deleted.   
5505         * troff/div.h: Don't have a no_space_mode member in diversion.
5506         Instead have it in top_level_diversion.
5507         * troff/div.c (diversion::diversion): Don't initialize
5508         no_space_mode.
5509         (top_level_diversion::top_level_diversion): Initialize
5510         no_space_mode.
5511         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5512         (macro_diversion::output): Don't clear no_space_mode.
5514         * troff/input.c (diverted_space_node::reread): Don't call
5515         environment::do_break.  In fill mode, act like a blank line.
5516         (diverted_copy_file_node::reread): Don't call
5517         environment::do_break.
5519         * troff/div.c (blank_line): New function.
5520         * troff/div.h: Declare it.
5521         * troff/input.c (process_input_stack): Call it.
5523         * troff/div.c (truncated_space_reg::get_string): New function.
5524         (init_div_requests): Bind to .trunc.
5525         (space_request, top_level_diversion::space,
5526         top_level_diversion::output, macro_diversion::space,
5527         macro_diversion::output): Update truncated_space.
5528         (macro_diversion::output): Redo calculations when trap sprung.
5529         (macro_diversion::output, macro_diversion::space): No need for
5530         trap_flag.
5532         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5533         after truncating post line spacing.
5535 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5537         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5538         defined as a procedure rather than as an operator.
5540 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5542         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5544 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5546         * troff/div.c (top_level_diversion::output): Merge
5547         output_file::print_line and output_file::end_of_line member
5548         functions.
5549         * troff/div.h (class output_file):
5550         * troff/node.c (troff_output_file::print_line,
5551         troff_output_file::end_of_line, output_file::end_of_line,
5552         ascii_output_file::print_line, suppress_output_file::print_line):
5553         Corresponding changes.  
5555 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5557         * troff/input.c (token::next): Don't give a warning for `\.'.
5559         * troff/env.c (environment::get_center_lines): New function.
5560         (init_env_requests): Bind number register .ce to it.
5561         * troff/env.h: Declare it.
5562         * tbl/table.c (table::init_output): Define reset macro to restore
5563         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5564         Then do .ce 0.
5565         (table::print): If center option not given, then imply center
5566         option if SAVED_CENTER_REG > 0.
5568 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5570         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5571         Troff.ps from DOWNLOAD.
5572         
5573         * troff/Makefile: Change comment in DEFINES to avoid confusing
5574         System V make.
5576         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5577         code.  Don't try to catch errors with stopped.
5578         (check_line_lengths): New function.
5579         * ps/devps/prologue (EXEC): Deleted.
5580         (EBEGIN, EEND): New procedures.
5582 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5584         * troff/input.c: Include request.h before node.h.
5585         * troff/node.c: Likewise.
5586         * troff/env.c: Likewise.
5587         * troff/div.c: Likewise.
5588         * troff/node.h (class special_node): Store argument as a macro
5589         rather than a char *.
5590         * troff/node.c (special_node::special_node, special_node::copy):
5591         Grok this.
5592         (special_node::~special_node): Deleted.
5593         (special_node::tprint): Deleted.
5594         (special_node::tprint_start, special_node::tprint_end,
5595         special_node::tprint_char): New functions.
5596         (troff_output_file::special): Deleted.
5597         (troff_output_file::start_special, troff_output_file::end_special,
5598         troff_output_file::special_char): New functions.
5599         * troff/input.c (special_node::tprint): New function.
5600         (do_special): Use macro not char *.
5601         (do_transparent_macro): Deleted.
5602         (token::next): Don't call do_transparent_macro.
5604         * troff/input.c (token::next): Add 'Y' case.
5605         (do_transparent_macro): New function.
5606         * troff/node.c (troff_output_file::special): Handle newlines with
5607         argument using new continuation convention.
5608         * driver/input.c (get_string): Cope with continuation convention.
5609         (do_file): Don't call skip_line after calling get_string(1).
5610         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5611         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5612         arg.
5613         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5614         with +.
5616 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5618         * troff/input.c (asciify): By default, illegal input characters
5619         should return empty string.
5621         * troff/input.c (copy_file): Handle first page transition like title.
5622         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5624         * troff/input.c (token::next): Improve error message for EOF after
5625         escape character.
5626         (input_char_description): New function.
5627         (get_char_for_escape_name): Use input_char_description.
5628         (token::next): Warn about unrecognized escape sequences.
5629         (warning_table): Add WARN_ESCAPE.
5630         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5631         accordingly.
5633         * troff/token.h: Remove declaration of process_input_stack.
5635         * troff/input.c: Remove declaration of init_hyphen_requests.
5636         * troff/request.h: Correct spelling in declaration of same.
5638         * troff/input.c (token::next): Check whether escape_char is 0.
5640 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5642         * groff.c (main, usage, help): Implement -P and -L options.
5643         * groff.sh: Likewise.
5645         * troff/input.c (token::next): Use some gotos to avoid code
5646         duplication.
5648         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5649         Avoid calling symbol::symbol if name empty.
5651 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5653         * troff/input.c (init_input_requests): Make \n(.x return the major
5654         version number and \n(.y return the minor version number.
5655         * troff/Makefile: Construct file majorminor.c defining
5656         major_version and minor_version automatically from ../VERSION.
5658         * troff/node.c (class glyph_node): Make operator new and operator
5659         delete public.
5660         (class ligature_node): Similarily.
5662         * troff/input.c (operator==(const macro &, const macro &)): New
5663         function.
5664         (non_interpreted_node::same): Use this.
5665         (string_iterator::string_iterator): Make macro& argument const.
5667         * troff/input.c (input_iterator::get): New function. Don't make
5668         asciify_macro or class non_interpreted_node friends of class
5669         input_iterator.
5670         (non_interpreted_node::interpret): Use input_iterator::get.
5671         (asciify_macro): Likewise.
5673         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5674         ~non_interpreted_node): Deleted.
5675         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5676         Deleted.
5678         * troff/symbol.h: Make all symbol member functions const.
5680         * lib/strtol.c: New file.
5681         * lib/Makefile: Add strtol.c.
5682         * Makefile: Define STRTOL as strtol.o to include strtol in
5683         libgroff.a.
5685 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5687         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5689 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5691         * troff/input.c (do_special): Use input_level.
5693         * troff/token.h (TOKEN_BACKSPACE): New token.
5694         (token::backspace): New function.
5695         * troff/input.c (token::description, token::next, token::process):
5696         Grok TOKEN_BACKSPACE.
5697         (do_special): Turn TOKEN_BACKSPACE back into \b.
5699         * troff/token.h (token::leader): New function.
5700         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5702         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5704         * troff/input.c (do_special): Use token::description in error
5705         message.
5707 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5709         * troff/input.c (decode_args): Combine quoted and
5710         quote_input_level variables. Make it a for (;;) loop.
5712         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5714         * troff/input.c (read_long_escape_name): The test for whether to
5715         expand buffer was off by 1.
5716         (read_string): Similarily.
5718 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5720         * troff/input.c: Use `const int' rather than `static const int'.
5722         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5723         (macro_diversion::copy_file): New function.
5724         * troff/node.h: New class diverted_copy_file_node.
5725         * troff/node.c: Implement it.
5726         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5727         first page transition by pushing a diverted_copy_file_node.
5728         * troff/input.c (token::next, process_input_stack): Don't handle
5729         COPY_FILE_REQUEST.
5731 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5733         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5734         whether space widths need adjusting.
5736         * troff/charinfo.h: Generalize translated_to_space to
5737         special_translation so as to allow translation to \&.
5738         * troff/input.c (translate): Allow translation to \&.
5739         (charinfo::*): Corresponding changes.
5740         * troff/node.c (make_node, node::add_char): Corresponding changes.
5741         * troff/node.h (dummy_node::dummy_node): Allow optional first
5742         argument.
5744         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5745         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5746         TOKEN_REQUEST.
5747         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5748         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5749         (token::process): Grok that.
5750         * troff/input.c (copy_file): Handle first page transition like
5751         title by pushing a COPY_FILE_REQUEST cookie.
5752         (token::next, process_input_stack): Grok that.
5753         * troff/node.h (output_file::copy_file): Add x and y arguments.
5754         Make it non-pure.
5755         * troff/div.c (top_level_diversion::copy_file): Supply them.
5756         * troff/node.c (troff_output_file::copy_file): Add x and y
5757         arguments; moveto specified position.  Invalidate font_position
5758         array after copying file.
5759         (output_file::copy_file): New function.
5760         (suppressed_output_file::copy_file, ascii_output::copy_file):
5761         Removed.
5762         * troff/input.c (transparent_file): New function.
5763         (init_input_requests): Bind to "trf".
5764         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5765         (process_input_stack): Likewise.
5767         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5769         * troff/node.c (init_node_requests): New number registers .kern
5770         pointing to global_kern_mode, and .lg pointing to
5771         global_ligature_mode.
5773         * troff/node.c (ligature): Don't change it if we get a bad
5774         integer.
5776         * troff/input.c (do_define_string): Don't strip tabs.
5778         * troff/input.c (asciify_macro): Make the string_iterator auto.
5780         * troff/node.c (init_font_requests): Rename to...
5781         (init_node_requests):
5782         * troff/node.h: Change declaration.
5783         * troff/input.c (main): Change call.
5785         * troff/input.c (node::reread, diverted_space_node::reread): New
5786         methods.
5787         (process_input_stack): Call reread rather than
5788         get_diverted_space_node.
5789         * troff/node.c (node::get_diverted_space_node,
5790         diverted_space_node::get_diverted_space_node): Removed.
5791         * troff/node.h: Declare reread methods instead of
5792         get_diverted_space_node methods. Make `n' member private.
5793         * troff/input.c: (token::diverted_space): Removed.
5794         * troff/token.h: Removed declaration.
5795         
5797 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5799         * eqn/script.c (script_box::compute_metrics): Don't let
5800         SUP_RAISE_FORMAT become negative.
5802         * tbl/table.c (table::do_row): Entries that don't end in the
5803         this row shouldn't make the row non-blank.
5804         
5805         * tbl/table.c (table::make_columns_equal): Only set the width of
5806         columns which are marked as equal.
5807         
5808         * tbl/main.c (process_data): Before issuing excess data error,
5809         if last character was a newline unget it; then get it again after
5810         the error.  Also include the contents of the entry in the message.
5812         * groff.c: New file.
5813         * Makefile: Build groff from groff.c.  Make it possible to use
5814         either groff.sh or groff.c as groff.
5815         * Makefile.bd: Similarily.
5817 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5819         * groff.sh: Don't delay expansion of $@ in assignment to files.
5820         Remove occurrences of \".
5822 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5824         * all Makefiles: Simplify and rearrange.
5826         * Makefile: Handle fmod like malloc.
5827         * lib/Makefile: Similarily.
5828         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5830         * Makefile: Rename OPTIMISE to OPTIMIZE.
5832         * groff.sh: Remove assignment to PATH.
5833         * Makefile: Remove SHPATH variable.
5834         * Makefile.bd: Similarily.
5836         * groff.sh: Add -V option to print the pipeline instead of
5837         executing it.
5839 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5841         * lib/font.c: Split off file searching into ...
5842         * lib/fontfile.c: New file.
5844         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5846 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5848         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5849         Also change misleading comment.
5850         (table::do_vspan): Change similarily misleading comment.
5851         * tbl/main.c (process_data): A format row with an explicit `s'
5852         uses up a data line, even if all the other columns are `_' or `='.
5854         * troff/input.c (token::description): Fix description of
5855         TOKEN_DUMMY and TOKEN_EMPTY.
5857 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
5859         * groff.sh: Fix description of -Z in help message.
5861 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
5863         * pic/object.c (object_spec::make_object): Allow negative and zero
5864         line thicknesses.
5865         * pic/pic.y: Give linethick default value of -1.0.
5866         * pic/troff.c (troff_output::troff_output): Initialize
5867         last_line_thickness to BAD_THICKNESS.
5868         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5869         (troff_output::line_thickness): Canonicalize negative thicknesses
5870         to RELATIVE_THICKNESS.
5871         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5872         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5873         to -1.0.
5874         (tex_output::start_picture): Set pen_size to -2.0.
5876         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5877         0, then use 0 linewidth.
5878         (ps_printer::ps_printer): Initialize line_thickness to -1.
5880         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5882         * ps/devps/symbolchars: Remove `or'.
5883         * ps/tmac.ps: Implement \(or with .char.
5885         * ps/devps/symbolchars: Move most characters into textmap.
5886         * ps/devps/textmap: Add names for troff bracket characters. Remove
5887         ul, ru, br, bv.
5889         * ps/devps/TSymbol.ps: Removed.
5890         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5891         * ps/tmac.ps: Do with .char what TSymbol did.
5892         * ps/devps/download: Remove TSymbol.
5894         * ps/devps/T: Removed.
5895         * ps/devps/Troff.ps: Removed.
5896         * ps/devps/Troff.afm: Removed.
5897         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5898         * ps/devps/download: Remove Troff.
5899         * ps/devps/FontMakefile: Remove T target.
5900         * ps/devps/DESC-A4: Remove T from font list.
5901         * ps/devps/DESC-letter: Likewise.
5903         * troff/input.c (macro_to_node): Rename to ...
5904         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
5905         character's definition while processing it.
5906         * troff/node.c (node::add_char, make_node): Change calls to
5907         macro_to_node accordingly.
5909         * troff/input.c (token::next): Translate \_ to \(ul.
5911         * tty/devascii/R.proto: Add `|'.
5912         * tty/devlatin1/R.proto: Likewise.
5914 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
5916         * man: Put the version number in all the man pages.
5918 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
5920         * Makefile.bd: New file.
5921         * README.bd: New file.
5923         * VERSION: New file.
5924         * lib/version.c: Removed.
5925         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5926         in clean target.
5928         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5929         environment variable.
5931         * all Makefiles: Split install target into install.bin for
5932         binaries, and install.nobin for everything else.
5933         * Makefile: Add bindist target.
5935         * man/afmtodit.man: New file.
5936         * man/Makefile: Add afmtodit.n to MAN1PAGES.
5937         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5938         in BINDIR.
5939         * ps/Makefile: Pass BINDIR to make install in devps.
5941         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5942         the space character.
5944         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5946 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
5948         * ps/ps.c: Redo font downloading.
5949         * ps/devps/download: New file.
5950         * ps/devps/Makefile: Add download to DEVICEFILES.
5951         * ps/devps/afmtodit: Remove -d option.
5952         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5953         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5954         * ps/devps/zapfdr.ps: Likewise.
5955         * ps/devps/TSymbol.ps: Likewise.
5957 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
5959         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5961 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
5963         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5964         then strip the first line if it starts with %.
5965         * Makefile: Add a comment about this.
5967         * man/tfmtodit.man: New file.
5968         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5969         * dvi/Makefile: Install tfmtodit in BINDIR.
5971         * dvi/tfmtodit.c (usage): Mention -v option.
5973 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
5975         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5976         * troff/node.c (troff_output_file::transparent_char): Don't call
5977         flush_tbuf.
5979         * eqn: Add check_tabs method to most box classes.
5980         * eqn/box.c (box::top_level): Call check_tabs.
5982         * eqn/script.c (script_box::output): Use \Z.
5983         * eqn/limit.c (limit_box::output): Use \Z.
5985         * eqn/box.c (box::top_level): Use itoa.
5987 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
5989         * dvi/tmac.dvi: Add font translations for CR, C, TT.
5990         * dvi/devdvi/Makefile: Don't make links to CW.
5992         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5993         HX, HD.
5994         * xditview/tmac.X: Likewise.
5996         * troff/node.c: Add font translation feature.
5997         (get_font_translation): New function.
5998         (symbol_fontno): Translate the font name.
5999         (mount_font_no_translate): Rename to mount_font to this.
6000         (mount_font): New function.
6001         (font_family::make_definite): Call mount_font_no_translate instead
6002         of mount_font.
6003         (mount_style): Translate the font name.
6004         (font_translate): New function.
6005         (init_font_requests): Bind "ftr" to font_translate.
6007         * ps/devps/prologue (SN): New procedure that rounds a position to
6008         the nearest (pixel + (.25,.25)).
6009         (DL): Use SN to round endpoints.
6011         * lib/version.c: Changed version to 0.5.
6013 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6015         * Makefile: Move definition of PAGE to the very beginning, so that
6016         people are less likely to miss it.
6018 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6020         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6022         * troff/env.c (environment::choose_breakpoint): Make `can't find
6023         breakpoint' error a warning of type WARN_BREAK.  Change message to
6024         `can't break line'.
6025         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6026         code 040000.
6027         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6028         WARN_BREAK in DEFAULT_WARNING_MASK.
6030         * tty/tmac.tty: Add definition of \(+-.
6032         * groff.sh: Remove `--' option to set command.
6034         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6036         * ps/devps/eqnchar: Better definition of cdot using md.
6037         * dvi/devdvi/eqnchar:  Likewise.
6038         * xditview/devX100/eqnchar:  Likewise.
6039         * xditview/devX75/eqnchar: Likewise.
6040         * eqn/lex.c: Add definition of cdot.
6042 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6044         * troff/input.c (get_optional_char): New function.
6045         * troff/input.c (set_page_character): Use get_optional_char(),
6046         rather than has_arg() and tok.get_char(1).
6047         * troff/env.c (tab_character, leader_character, hyphen_char,
6048         field_characters): Likewise.
6049         (margin_character): Likewise.  Also always delete the
6050         margin_character_node.
6052         * troff/input.c (token::get_char): Use token::description.
6054         * troff/input.c (has_arg): Don't skip over tab and \}.
6055         * troff/number.c (start_number): Give a warning if the number
6056         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6058 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6060         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6061         functions.
6062         (get_name, get_long_name): Use these.  Rename `warn' argument to
6063         `required'.
6065         * troff/node.c (get_fontno): Test that the symbol is not null.
6067         * troff/input.c (token::description): New function.
6068         * troff/number.c (parse_term): Use token::description in `numeric
6069         expression expected' message.
6070         * troff/groff.h: Add WARN_MISSING.
6071         * troff/number.c (start_number): New function.
6072         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6073         get_incr_number): Use start_number().
6074         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6075         default.
6076         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6077         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6078         token::descripion.
6079         * troff/input.c (token::get_char): Use WARN_MISSING.
6080         * troff/input.c (token::delimiter): Use token::description.
6081         * troff/env.c (environment_switch): Back out Aug 3 change.
6082         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6083         warning.
6084         * troff/token.h (token::tab): New function.
6085         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6086         * troff/reg.c (alter_format): Likewise.
6087         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6089 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6091         * troff (most files): Redo warnings. Divide warnings into various
6092         categories; warning() has an additional first argument indicating
6093         the category it falls into.
6094         * troff/input.c (main): -w now takes an argument. New option -W.
6095         (enable_warning, disable_warning): New functions.
6097         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6098         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6100 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6102         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6103         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6104         * xditview/devX75/eqnchar: Likewise.
6105         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6107         * eqn/other.c: When bar or over applies to a single character
6108         don't produce an overline_box or an underline_box. Instead produce
6109         an accent_box or an underaccent_box, with the accent a line
6110         whose width is accent_width.  New classes underaccent_box,
6111         overline_char_box and underline_char_box.
6112         * eqn/box.h: Move overline_box, underline_box, accent_box class
6113         declarations into eqn/other.c. Add declarations of
6114         make_underline_box, make_overline_box, make_accent_box.
6115         * eqn/eqn.y: Call make_overline_box, make_underline_box
6116         make_accent_box instead of constructors.
6117         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6119         * eqn/other.c: Add accent_box::~accent_box.
6120         * eqn/box.h: Declare it.
6122         * groff.sh: With -Tps, use eqn -D.
6124         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6125         rather than \l.
6126         (underline_box::output): Similarily.
6127         (accent_box::output): Use \Z.
6129         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6130         bit smaller.)
6132 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6134         * troff/div.c (top_level_diversion::transparent_output(unsigned
6135         char)): Use asciify.
6136         * troff/input.c (asciify): Don't make it static.
6137         * troff/token.h (asciify): Declare it.
6138         
6139         * troff/input.c (get_name, get_long_name, token::get_char,
6140         token::delimiter): Add an extra default argument which says
6141         whether a warning should be printed.
6142         * troff: Pass a non-zero argument to one of these rather than
6143         printing a warning directly.
6145 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6147         * troff: Consistently use symbol::is_null.
6149         * troff/dictionary.h: Move some inline functions into
6150         dictionary.c.
6152         * troff/request.h: Move inline functions into input.c.
6153         (request_or_macro::invoke): Make it pure.
6155         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6156         * troff/input.c (init_input_requests): Use class constant_int_reg.
6157         (class compatible_reg): Deleted.
6158         * troff/div.c (init_div_requests): Use class constant_int_reg.
6159         (class last_post_line_extra_space_reg): Deleted.
6161         * troff/env.c (tab_character): Don't change the tab character if
6162         we get an invalid argument.
6163         (hyphen_char): Similarily.
6165         * troff/reg.c (alter_format): Check that nm is not null.
6167         * Makefile, groff.sh: Make it possible to customize the commands
6168         used for printing PostScript and dvi files. Also make it possible
6169         to customize the path used by groff.sh.
6171         * eqn/eqn.y: Make `left' right associative.
6173 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6175         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6176         don't have it.
6178         * pic/pic.h: Removed definition of INT_MAX.
6180         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6181         `return'.
6183         * troff/input.c (token::next):  Handle \R like \n.
6185 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6187         * ps/tmac.pc (PSPIC): Simplify.
6189         * troff/env.c (tab_stops::to_string):
6190         * pic/pic.y (object_type_name):
6191         * pic/troff.c (simple_output::line):
6192         * pic/tex.c (tex_output::spline):
6193         * pic/object.c (object_spec::make_object):
6194         * tbl/main.c (process_data):  Add cases to switch statements to
6195         avoid cfront warnings. (Some of these are spurious, since the
6196         switch already has a default case.)
6198         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6199         `ps-'.  Don't test systat; instead check number of arguments to
6200         ps-bb.
6202 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6204         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6206         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6207         Unlink the file as soon as we have opened it, so that we don't
6208         have to bother with signal handlers.
6209         (handler): Deleted.
6210         (fatal_error_exit): Deleted.
6211         (main): Don't call signal.
6213         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6214         can be ignored.
6215         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6217         * pic/pic.y:  If there is a label, or an nth construction before
6218         the first `.' in the argument to `with', ignore it and generate a
6219         warning.
6220         * pic/lex.c (lex_warning): New function.
6222         * tbl/table.c (table::init_output): In section keep and release
6223         macro, use 0 indent when diverting and the correct indent when
6224         rereading.
6226         * troff/input.c (interpolate_number_format): Do not interpolate
6227         anything if the number register is not defined.
6229         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6231 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6233         * ps/devps/prologue (PICTURE): Set components of graphics state to
6234         their default values.
6236         * ps/devps/text.enc: Add trademark
6237         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6238         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6239         * ps/devps/symbolchars: Add names for summation and product.
6241         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6242         suchthat. Add pp. Add upper-case letters.
6244         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6245         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6246         Upsilon.
6248         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6249         rA (right angle bracket) to ra.  Introduce names for double-headed
6250         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6251         * ps/devps/textmap: Likewise for ps device.
6252         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6253         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6254         * tty/devascii/R.proto: Likewise.
6255         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6256         \(uA, \(dA.
6257         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6259         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6261         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6262         def_table.
6264 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6266         * troff/div.c (when_request): Use symbol::is_null rather than
6267         has_arg to determine whether we have an argument.
6268         (change_trap): Remove the trap if we get an invalid number. Give
6269         an error if we don't get at least the macro name.
6270         (diversion_trap): Remove trap if we get an invalid name or number.
6272         * troff/env.c (environment_switch): Pop if we get an invalid
6273         symbol or numeric expression.
6275         * troff/input.c (do_define_macro):  If EOF is encoutered while
6276         defining the macro, do tok.next() before returning.
6278         * troff/token.h (has_arg): Move definition from here, to ...
6279         * troff/input.c (has_arg): ... here
6281         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6282         * troff/input.c (shift): Likewise.
6284         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6285         for `.c'.
6287         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6288         `..'.
6290         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6291         interpret_lf_args succeeds.
6293         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6294         \\.  This avoids problems with \$N.
6296         * groff.sh: Pass -C to preprocessors.
6298         * lib/lf.c (interpret_lf_args):  Be more flexible.
6300         * tbl/main.c (main): Add -C option.
6301         (table_input::get): Do not recognize TE if followed by character
6302         other than a space or newline unless -C option given.
6303         (process_input_file): Likewise for lf, TS.
6304         (process_data): Likewise for lf in text blocks.
6306         * eqn/main.c (main): Add -C option.
6307         (do_file): Don't recognize EQ, EN or lf if followed by character
6308         other than space or newline unless -C option given.
6309         * eqn/lex.c (file_input::read_line): Similarily.
6310         * eqn/eqn.h: Declare compatible_flag.
6312         * etc/soelim.c (main): Add -C option.
6313         (interpret_lf_args): Use version in libgroff.
6314         (do_file):
6316         * pic/main.c (main): Add -C option, which sets compatible_flag.
6317         (top_input::get), (top_input::peek):  If -C option not given,
6318         do not recognize .PS/.PE/.PF/.lf if followed by a character
6319         other than space or newline.
6320         * pic/lex.c (file_input::read_line): Similarily.
6321         * pic/pic.h: Add declaration of compatible_flag.
6323 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6325         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6327         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6328         derived from node.  New class space_char_hmotion_node.
6329         * troff/input.c (asciify_macro): New function.
6330         * troff/input.c (init_input_requests): New request `asciify' bound
6331         to asciify_macro.
6332         * macros/mm.diff: New file.
6333         * Makefile:  In install.mm target use `patch' to apply
6334         macros/mm.diff.
6336         * troff/input.c (macro::print_size): Just print the size in bytes.
6338         * troff/div.c (return_request): Correct the argument
6339         interpretation.
6341 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6343         * troff/node.h (class composite_node): Add sz member.
6344         * troff/node.c (composite_node::size): Return sz.
6345         * troff/input.c (macro_to_node):  Use the initial size in the
6346         environment as the size of the composite_node.
6348         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6349         default.
6351 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6353         * troff/div.c (change_trap): If we get a bad number expression,
6354         do nothing.
6356 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6358         * lib/matherr.c (matherr): Define this only if math.h defines
6359         TLOSS.
6361 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6363         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6364         no diversion trap return vunits(INT_MAX - vresolution).
6366 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6368         * troff/input.c (do_zero_width): New implementation that doesn't
6369         use a temporary environment. Use instead:
6370         (token::add_to_node_list): New function.
6371         * troff/env.c (environment::get_prev_char_height),
6372         (environment::get_prev_char_height),
6373         (environment::get_prev_char_skew): New functions.
6374         (environment::get_prev_char): New function.
6375         (environment::get_prev_char_width): Change to use get_prev_char.
6376         (init_env_request): Implement new registers .cht, .cdp, .csk.
6377         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6378         \Z being processed in a separate environment.
6380 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6382         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6384         * tbl/table.c (table::init_output): In the section release macro,
6385         give a warning message if the section won't fit on one page.
6387         * tbl/table.c (table::do_top): Emit table keep only if table is
6388         boxed.
6389         (table::do_bottom): Likewise for table release.
6390         (table::table), (table::add_vertical_rule):  Remove reference to
6391         keep member.
6392         * tbl/table.h: Remove keep member.
6394         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6395         SECTION_RELEASE_MACRO, if there's not enough space before the next
6396         trap to output the diversion, call T# ourselves, set
6397         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6398         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6399         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6400         vertical position and return to it before turning traps on again.
6401         
6402 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6404         * troff/node.c, troff/node.h: In classes derived from node,
6405         replace prev_char_width method by last_char_node method.
6406         * troff/env.c (environment::get_prev_char_width): Use
6407         node::last_char_node rather than node::get_prev_char_width.
6409         * Makefile: Added comment about -fno-inline on 68030-based
6410         Apollos.
6412         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6413         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6414         expressions using sizeof to int.
6415         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6417         * macros/tmac.e (TS):  Don't move @f back past the current
6418         position.
6420 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6422         * ps/ps.c (main): Buffer stderr.
6423         * dvi/dvi.c (main): Likewise.
6424         * tty/tty.c (main): Likewise.
6426         * ps/ps.c (ps_printer::do_import): Improve error handling.
6428         * troff/input.c (abort_request): Use asciify.
6430         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6431         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6432         type of first argument int rather than char.  This works around a
6433         bug on the 68030 based Apollo using g++ 1.37.1.
6435         * tbl/table.h (class table): Add `keep' member.
6436         * tbl/table.c (table::table): Initialize `keep'.
6437         (table::add_vertical_rule): Set `keep' to 1.
6438         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6439         (table::do_bottom): Likewise for table release macro.
6440         (table::do_row): Emit section keep macro even if the row is 0.
6442 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6444         * macros/tmac.e (@C): Preserve the font family across the change
6445         in environments.
6447 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6449         * lib/font.c: Initialize font::hor and font::vert to 1.
6450         (font::load_desc): Check the values of font::hor and font::vert.
6452         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6453         be included in a C compilation.
6454         (iftoa): Use INT_DIGITS. Include lib.h.
6455         (itoa): Likewise.
6456         (as_string): Likewise.
6457         * tbl/table.c: Removed definition of INT_DIGITS.
6458         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6459         * troff/input.c (input_input_requests): Likewise.
6460         * ps/ps.c (make_encoding_name): Likewise.
6461         (ps_printer::set_style): Likewise.
6462         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6464         * tty/devascii/R.proto: Map fm onto '.
6465         * tty/devlatin1/R.proto: Likewise.
6467 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6469         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6470         argument to \w is at a different input level.
6472         * tbl/table.c (table::init_output): Define a new macro
6473         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6474         transparently outputs itself.
6475         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6476         vpt.
6477         (table::do_row): Likewise.
6479         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6480         TRANSPARENT_STRING_NAME.
6482         * tbl/table.c (table::init_output): In the table release macro
6483         print an error message and don't produce any output if after
6484         issuing the need request the table still will not fit.  Also
6485         remove the diversion after bringing it back.
6487         * tbl/table.c (table::init_output): Define a new macro
6488         REPEATED_MARK_MACRO, like mk but if in a diversion also
6489         transparently outputs itself.
6490         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6491         is necessary because .TH might not call .T#.
6492         (table::do_top): Likewise TOP_REG.
6493         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6494         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6495         table header might contain just the two top rules.
6497 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6499         * troff/div.c: Implement new request `ptr' to print all traps.
6501         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6502         init_string_env_reg.
6503         * troff/env.c (class tab_reg): Deleted.
6505 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6507         * troff/div.c: New number register .pn returns the number of the
6508         next page as set by the pn request.
6510         * macros/tmac.an: Redid headers and footers.  Number each manual
6511         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6512         optional 5th argument to .TH which specifies the manual name and
6513         appears in the center of the header.  Understand the X, P and D
6514         registers like Sun.
6516 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6518         * troff/env.c (init_env_requests): New number register `.lt' to
6519         return the title length.
6521         * troff/node.h (class transparent_dummy_node): New class.
6522         * troff/node.c (class transparent_dummy_node): Provide member
6523         functions. 
6524         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6525         than a dummy_node.
6527         * troff/input.c (token::next): New escape sequence \).
6528         * troff/input.c (get_copy): Recognize \) in copy mode.
6530         * troff/input.c (input_stack::clear): New function.
6531         * troff/input.c (exit_request): Use input_stack::clear.
6533         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6534         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6536         * troff/env.c: Move set_page_character to input.c.  Move
6537         page_character to input.c also.
6538         * troff/env.c (title): Split off the reading of the parts of the
6539         title into read_title_parts.
6540         * troff/input.c (read_title_parts): New function.  Check the
6541         input_level when testing whether a token matches the delimiter.
6543         * troff/input.c (exit_request): New function.
6544         * troff/input.c (init_input_requests): Bind ex request to
6545         exit_request rather than exit_groff.
6547         * troff/input.c (exit_groff): Call tok.next() before
6548         process_input_stack().
6550 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6552         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6553         * troff/env.h: ditto.
6554         * troff/input.c: ditto.
6556         * troff/env.c (environment::is_empty): Test pending_lines.
6558         * troff/env.c (environment::have_pending_lines): Removed.
6560         * troff/input.c: Add request to flush pending lines from the
6561         environment.
6563         * troff/env.c, troff/env.h: Add automatic widow control feature.
6565         * troff/input.c (exit_groff):  Do process_input_stack() after
6566         do_break() but before setting exit_flag to 2.
6568         * troff/input.c: Remove FLUSH_PENDING_LINES and
6569         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6570         environment after END_TRAP token seen, but only if there aren't
6571         any more traps still unfinished.
6572         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6574 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6576         * troff/env.c: Rename the `retain_size' member of class
6577         pending_output_line to `no_fill'.
6579         * troff/env.c (title): When the line is output, make the
6580         retain_size argument !fill.
6582         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6583         * troff/node.c (space_node::get_breakpoints),
6584         (dbreak_node::get_breakpoints):  Fill this in.
6585         * troff/env.c:  Allow specification of maximum number of
6586         consecutive hyphenated lines.
6588         * troff/env.c (environment::is_empty): Add test for !current_tab.
6590 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6592         * troff/env.c (environment::hyphenate_line): Don't completely give
6593         up if the word is not to be hyphenated; continue so that breaks
6594         can be made at break_char_node's.
6596         * lib/lib.h: Only define INT_MAX if it's not already defined;
6597         undef INT_MIN if it's already defined.
6599         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6601         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6602         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6603         compiler.
6604         
6605         * macros/tmac.an (an-header): Set no-space mode.
6607         * macros/tmac.an (TH): Start a new page if necessary.
6609         * Started using ChangeLog at version 0.4.
6611 Local Variables:
6612 version-control: never
6613 End: