* doc/groff.texinfo: Further checking/updating. Adding more index entries.
[s-roff.git] / ChangeLog
blob2f4a5bec9793201d1ac0513b84c6cae7b18c4914
1 2000-02-25  Werner LEMBERG  <wl@gnu.org>
3         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4         friends to be non-integer.
6         * src/preproc/grn/grn.man: Document it.
8         * doc/groff.texinfo: Further checking/updating.  Adding more index
9         entries.
11 2000-02-24  Werner LEMBERG  <wl@gnu.org>
13         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
14         line thicknesses to be integer multiples of this value.
16         * src/preproc/grn/grn.man: Commenting out the -s option -- the
17         corresponding code doesn't work (yet).
19         * doc/groff.texinfo: Further checking/updating.  Adding more index
20         entries.
22 2000-02-23  Werner LEMBERG  <wl@gnu.org>
24         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
25         specify line thickness instead of base units.  The new default
26         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
27         thick lines respectively.
29         Removed unused variable `prevval'.
31         * src/preproc/grn/grn.man: Updated.
33 2000-02-22  Werner LEMBERG  <wl@gnu.org>
35         * src/preproc/grn/main.cc: Slight formatting.
37         * src/roff/groff/groff.man: Formatting fix.
38         * src/preproc/grn/grn.man: Ditto.
40         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
42         * doc/groff.texinfo: Further checking/updating.
44 2000-02-21  Werner LEMBERG  <wl@gnu.org>
46         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
48         * test-groff: Added grn subdir to path.
50         * doc/groff.texinfo: Some restructing and other small improvements.
52         * src/roff/groff/groff.cc (help): Fixed info string.
54 2000-02-20  Werner LEMBERG  <wl@gnu.org>
56         * doc/meref.me: Fix description of .GS request.
58         * src/roff/troff/troff.man: Fixing typo.
60         Adding the `grn' preprocessor for gremlin graphic files.
62         * src/preproc/grn/*: This is the Berkeley distribution written by
63         David Slattengren and Barry Roitblat, adapted to groff by Daniel
64         Senderowicz and Werner Lemberg.
66         * doc/grnexampl.{me,g}: A sample for grn.
68         * Makefile.in: Added subdirectory entry for grn.
70         * src/roff/groff/groff.cc: Added support for grn.  It can be now
71         called with the switch `-g'.
73         * src/roff/groff/groff.man: Updated.
75         * src/roff/grog/grog.{man,pl,sh}: Updated.
77         * NEWS: Updated.
79 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
81         * src/include/lib.h: Added xtmptemplate and made xtmpfile
82         parametrically polymorphic.
84         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
85         and the alterations to xtmpfile.
86         xtmpfile can be requested to return the filename created
87         and asked not to unlink the temp file.  The default behaviour
88         if parameters are absent is exactly the same as before.
90 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
92         A new request `length' is available which returns the length of a
93         string in a number register:
95         * src/roff/troff/input.cc (length_macro): Implement it.
96         * src/roff/troff/input.cc (init_input_requests): Register it.
98 2000-02-11  Werner LEMBERG  <wl@gnu.org>
100         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
101         of the `substring' request.
103         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
104         request.
106         * src/roff/troff/TODO, NEWS: Updated.
108 2000-02-09  Werner LEMBERG  <wl@gnu.org>
110         * src/roff/groff/groff.man: Added an example.
112 2000-02-06  Werner LEMBERG  <wl@gnu.org>
114         I've considerably modified the directory structure of the
115         distribution to get a more vertical layout.  For example, the number
116         of top level directories has been reduced from 42 to 6.
118         As a consequence, many changes, especially to the makefiles, were
119         necessary:
121         * The makefile variables `top_builddir' and `top_srcdir' have been
122         introduced.  Virtually all relative paths have been replaced with
123         absolute ones using these two variables.
125         * Dependencies (in the files `Makefile.dep') are no longer part of
126         the distribution.  Instead, they are created during a `make install'
127         in the build directory.
129         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
130         make `top_srcdir' and `top_builddir' absolute.
132         Some other changes:
134         * Man pages no depend on the files `VERSION' and `REVISION'.
136         * The added shell script `mkinstalldirs' will replace `mkdir' in
137         almost all cases.
139         * VERSION: Version number increased to 1.16.
141 2000-02-04  Werner LEMBERG  <wl@gnu.org>
143         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
145         * Makefile.in: Removed $(tmac_m) since it is no longer needed
146         (after an update of the mm stuff).
148         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
150 2000-02-03  Werner LEMBERG  <wl@gnu.org>
152         The .psbb request will now also accept Mac PS images (i.e. using LF
153         as the EOL character).
155         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
156         (with slight modifications).
157         * troff/input.cc (do_ps_file): Use it.
159         * test-groff: Add grohtml and grolj4 output devices to PATH.
161 2000-01-30  Werner LEMBERG  <wl@gnu.org>
163         * NEWS, MORE.STUFF: Updated.
165 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
167         Add the `srand' command to pic.
169         * pic/lex.cc, pic/pic.y: Implement it.
170         * pic/pic.man: Document it.
171         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
173 2000-01-30  Werner LEMBERG  <wl@gnu.org>
175         Add a new request `.psbb'.  This does exactly what the external
176         program psbb did.  It scans a PostScript image file for a
177         %%BoundingBox comment and extracts the bounding box values (in
178         PostScript units) which are then stored in the four new (read-only)
179         number registers `llx', `lly', `urx', and `ury'.
181         This will allow the usage of the .PSPIC macro without worrying
182         about unsafe behaviour of groff, i.e., it will work without the
183         `-U' switch of groff.
185         * troff/input.cc: Implement it.
186         * tmac/tmac.pspic: Use it.
187         * troff/troff.man, grops/grops.man, NEWS: Document it.
188         * psbb/*, Makefile.in: Remove it since it is no longer needed.
190         This is bloody C code simply adapted from psbb.c!  Any improvements
191         welcome.
193 2000-01-29  Werner LEMBERG  <wl@gnu.org>
195         * man/groff_font.man: Minor clarifications.
197         * NEWS: Updated.
199 2000-01-28  Werner LEMBERG  <wl@gnu.org>
201         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
203 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
205         * man/groff_font.man: Brought up to date regarding tcommand
206         extensions.
207         * libgroff/font.cc: Handle everything after `--' as a comment
208         in the font files.
209         * devps/*: Added comment delimiter inside devps font files.
211 2000-01-28  Werner LEMBERG  <wl@gnu.org>
213         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
214         \fC...\fP (which now works as expected).
216         * troff/troff.man: Fix typo.
218 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
220         Completed the pass_filenames implementation in troff.
222         * libdriver/input.cc: Will read the new `F' tcommand.
223         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
224         * troff/input.cc: Use it.
226 2000-01-26  Werner LEMBERG  <wl@gnu.org>
228         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
229         font will now be updated even if an invalid font is selected.
231 2000-01-24  Werner LEMBERG  <wl@gnu.org>
233         * doc/homepage.ms: Updated for new tmac.arkup.
235         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
237         * tmac/tmac.arkup: Cleanup.
239         Added `\&' to .HTML macro to `leave vertical mode', so to say.
241         Removed obsolete .LINK macro completely.
243         The macros .URL, .FTP, and .MAILTO now accept a third argument which
244         will be immediately appended to the second argument (to be used with
245         punctuation, for example).
247         Disabled .CDFTP macro temporarily for security reasons.
249         * tmac/groff_markup.man: Complete revision for latest changes in
250         tmac.arkup -- note that it does not yet format correctly with
251         grohtml :-(
253 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
255         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
256         * devutf8/R.proto: Add mappings for wp, lh, rh.
257         * devutf8/NOTES: Updated.
259 2000-01-23  Werner LEMBERG  <wl@gnu.org>
261         * doc/groff.texinfo: Updated version/copyright info.
263 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
265         Added support for two new directives in device descriptions:
266         `pass_filenames' (to pass the input file name to the output device)
267         and `use_charnames_in_special' (to support e.g. accented characters
268         in the `X' request).
270         * include/font.h, troff/charinfo.h: Declare it.
272         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
274         * devhtml/DESC: Use it.
276         * troff/input.cc: New function encoded_char.
278         * troff/token.h: Add test for `specialness'.
280 2000-01-21  Werner LEMBERG  <wl@gnu.org>
282         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
283         mistake from the list of files to be installed.
285 2000-01-18  Werner LEMBERG  <wl@gnu.org>
287         * README: Added info how to apply patches.
289 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
291         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
293 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
295         * troff/input.cc: Add support for troffrc-end.
297         * tbl/main.cc: Altered to issue table-start and table-end special
298         characters if using the html device.
300         * devhtml/*: Modified font files to incorporate html encoding of
301         characters.
303         * tmac/groff_markup.man: New file documenting tmac.arkup.
305         * tmac/troffrc-end: New file.  This is invoked after all user
306         specified macros.  Currently used by the html device to include
307         tmac.html.  Thus no need for users to specify -mhtml anymore.
309         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
310         (MAN7): Add groff_markup.man.
312         * tmac/tmac.an, tmac/tmac.html: Small html updates.
314         * tmac/troffrc: tmac.arkup will now be called for the html device.
316         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
317         extra device specific information about fonts.
319         * doc/homepage.ms: New file.  It is an example how an HTML home page
320         could look like with grohtml.
322         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
324 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
326         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
327         of Im, Re.
329         * devutf8/NOTES: Updated.
331 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
333         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
334         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
335         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
336         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
337         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
338         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
339         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
340         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
341         warnings.
343         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
345 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
347         grolj4: Paper size will be searched case-insensitively.
349         * grolj4/lib.h: Add check for strcasecmp().
350         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
351         * configure.in: Check for strcasecmp().
353 2000-01-11  Werner LEMBERG  <wl@gnu.org>
355         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
356         `REVISION'.
358 2000-01-10  Werner LEMBERG  <wl@gnu.org>
360         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
361         revision scheme.
363         Add a new read-only register, `.Y', which contains the groff
364         revision.
366         * troff/input.cc (init_input_requests): Define it.
367         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
368         * doc/groff.texinfo, troff/troff.man: Document it.
370         * libgroff/Makefile.sub (version.cc): Add definition of
371         `Version_string[]', consisting of `<major>.<minor>.<revision>'
372         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
373         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
374         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
375         troff/input.cc, pfbtops/pfbtops.c: Use it.
377 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
379         Add a revision scheme to the groff package.
381         * REVISION: New file.
382         * libgroff/Makefile.sub (version.cc): Use it to define
383         `revision_string[]'.
384         * grops/psrm.cc: Use revision_string (converted to an unsigned
385         integer) in constructor of resource_manager.
387 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
389         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
390         files.
391         * Makefile.in (DEVDIRS): Add devutf8.
392         * grotty/tty.cc: Include device.h.
393         (glyph): Change type of `code' to `unsigned int'.
394         (tty_printer): New field is_utf8.  Constructor takes device argument.
395         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
396         (tty_printer::add_char): Change type of first arg to `unsigned int'.
397         (tty_printer::put_char): New function.
398         (tty_printer::end_page): Use put_char() instead of ::putchar().
399         (make_printer): Pass device to tty_printer constructor.
400         * nroff.sh: Determine default device by calling 'locale'.  As a
401         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
402         Recognize UTF-8 locales.
403         * tmac/eqnrc: Recognize utf8 like latin1.
404         * tmac/troffrc: Device utf8 needs tmac.tty.
406 2000-01-07  Werner LEMBERG  <wl@gnu.org>
408         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
410 2000-01-07  Paul Eggert  <eggert@twinsun.com>
412         Add a new predefined writeable number register, `year',
413         which contains the current year.
415         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
416         * tmac/tmac.s: Use it.
417         * troff/input.cc (init_registers): Initialize it.
419 2000-01-06  Werner LEMBERG  <wl@gnu.org>
421         * PROBLEMS: Fixed typo.
423 2000-01-04  Paul Eggert  <eggert@twinsun.com>
425         * PROBLEMS: Add Y2k advice for the yr number register.
427 2000-01-03  Paul Eggert  <eggert@twinsun.com>
429         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
431 2000-01-02  Werner LEMBERG  <wl@gnu.org>
433         * tmac/tmac.arkup: Slight modification of macros to provide better
434         appearance for non-HTML formats.
436 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
438         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
439         does not automatically translate to malloc(n) on all OSes
440         (e.g., SunOS) so do it explicitly.  Also, check the returned
441         value.
443 2000-01-01  Werner LEMBERG  <wl@gnu.org>
445         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
447         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
448         expects this variable
450 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
452         * doc/Makefile: Added instructions to create HTML and text
453         versions of some files.
455 1999-12-31  Werner LEMBERG  <wl@gnu.org>
457         * Updated INSTALL.gen.
459         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
460         better resp. correctly with non-HTML devices.
462 Version 1.15 released
463 =====================
465 1999-12-28  Werner LEMBERG  <wl@gnu.org>
467         * NEWS, VERSION: Changed to 1.15
469 1999-12-27  Paul Eggert  <eggert@twinsun.com>
471         * nroff/nroff.man: -S is safer, not safe.
473         * groff/groff.cc (main): Use `safer', not `safe', in variable
474         names.  This does not change the behavior.
476         * troff/input.cc (main): Likewise.
478         * nroff/nroff.sh: Likewise.
480         * troff/input.cc (prepend_string): New function.
481         (main): Prepend -msafer, so that we check macro libraries for
482         safety.
484         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
486 Version 1.14 released
487 =====================
489 1999-12-26  Werner LEMBERG  <wl@gnu.org>
491         * NEWS, VERSION: Changed to 1.14.
493 1999-12-24  Werner LEMBERG  <wl@gnu.org>
495         * refer/refer.cc: Fixing the last fix.
497 Version 1.13 released
498 =====================
500 1999-12-23  Werner LEMBERG  <wl@gnu.org>
502         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
503         number disappear.
505         * NEWS: Updated.
507         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
509         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
510         document conventions, the version number must be a real.
512 Version 1.12.1 released
513 =======================
515 1999-12-22  Werner LEMBERG  <wl@gnu.org>
517         * VERSION: Changed to 1.12.1.
519 1999-12-22  Alan Rooks  <arooks@istar.ca>
521         * refer/refer.cc (do_file): Slight modification to satisfy the
522         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
523         UnixWare 7.1.
525 1999-12-20  Werner LEMBERG  <wl@gnu.org>
527         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
528         notices.
530         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
531         list of unsafe requests.
533         * pic/pic.man: Fixed a typo.
535         * man/groff_out.man: Fixed a typo.
537 1999-12-18  Werner LEMBERG  <wl@gnu.org>
539         * Makefile.in: Doc fixes.
541 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
543         * groff/groff.cc: Missing `U' option added to getopt().
545         * troff/troff.man: Missing `U' option added to synopsis.
547 Version 1.12 released
548 =====================
550 1999-12-14  Werner LEMBERG  <wl@gnu.org>
552         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
553         to the synopsis.
555         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
556         with the more appropriate terms `safer' and `unsafe'.
558         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
559         sys_nerr and sys_errlist[].
561         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
563         * pic/pic.y, pic/pic.cc: Added check for fmod().
565 1999-12-13  Werner LEMBERG  <wl@gnu.org>
567         * VERSION: Changed to 1.12.
569         Here some patches from various sources; most of them taken from
570         the Debian distribution.
572         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
573         tmac/Makefile.sub: New files copied directly from the NetBSD
574         distribution.  Probably, some additional adaptation later on is
575         necessary...
577         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
578         of unsafe requests.
580         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
581         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
582         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
583         (`-S') is now the default.
585         * README, NEWS: Updated.
587 1999-12-09  Werner LEMBERG  <wl@gnu.org>
589         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
591         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
593 1999-12-06  Werner LEMBERG  <wl@gnu.org>
595         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
596         grief than relief today.  Additionally, it is against the GNU
597         coding standards.
599         * configure: Recreated.
601 1999-12-05  Werner LEMBERG  <wl@gnu.org>
603         * configure.in: Added GROFF_LIBM.
605         * configure: Recreated.
607         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
608         necessary.
610         * Makefile.in: Added definition of $(LIBM).
612         * Makefile.comm (LIBM): Removed.
614         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
616 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
618         * doc/Makefile: Added rule for generation pic.html.
620         (clean): Files produced by grohtml will be removed also.
622         * doc/pic.ms: Small fix.
624         * tmac/tmac.html: Fixed suppression of headers.
626 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
628         * tmac/tmac.html: Fixing horizontal arrows.
630         Turning off hyphenation.
632         * tmac/tmac.an: Improved support for grohtml; better indentation,
633         no footers/headers.
635 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
637         * tmac/tmac.arkup: Added CDFTP macro
639         * tmac/tmac.html: All headers are turned off for ms, me, and mm
640         macros.
642         * tmac/troffrc: Some additions for HTML stuff.
644 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
646         * tmac/tmac.html: Small changes.
648 1999-09-26  Werner LEMBERG  <wl@gnu.org>
650         * doc/groff.texinfo: Minor fixes.
652 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
654         * devhtml/TR: Changed spacewidth to 3.
656         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
658         * tmac/tmac.html: Moved markup macros to tmap.arkup.
660         * tmac/tmac.arkup: New file.
662         * grohtml/ChangeLog: New file.
664 1999-09-16  Werner LEMBERG  <wl@gnu.org>
666         * doc/groff.texinfo (Common Features): Added Copying chapter.
667         Changed format to @smallbook.
669 1999-09-15  Werner LEMBERG  <wl@gnu.org>
671         * NEWS: Added info about groff.texinfo.
673         * doc/groff.texinfo: Will now compile (using texi2dvi) without
674         warning messages.
676 1999-09-14  Werner LEMBERG  <wl@gnu.org>
678         * groff/groff.man: More updates.
680 1999-09-13  Werner LEMBERG  <wl@gnu.org>
682         * doc/groff.texinfo: New file.  This manual is still very
683         rudimentary.  It has been originally contributed by Trent
684         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
685         additions by me.
687         * INSTALL: Added information about the `doc' subdir
689         * troff/troff.man: Minor fixes.
691         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
692         reordered options.
694         * troff/input.cc (usage): Added missing `-ffam' to usage message.
696         * Makefile.in (dist): groff-$(version).tar.gz must be removed
697         also, otherwise it is included itself in another call of `make
698         dist'.
700         * groff/groff.cc (synopsis): Removed superfluous space.
702         * PROJECTS, PROBLEMS, NEWS: Updated.
704         * xditview/Makefile: Removed.
706         * VERSION: Updated to 1.12beta.
708         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
710         * README: Updated: Included documentation about CVS repository,
711         mailing lists, and daily snapshots.
713         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
715 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
717         * tmac/tmac.an: If the tag didn't fit into the space that the
718         macro `TP' specifies, the rest of the tag went into the space for
719         the next line.
721 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
723         * grolj4/lj4.cc: Added duplex printing (option `-d').
725         * grolj4/grolj4.man: Document duplex printing.
727 1999-09-12  Werner LEMBERG  <wl@gnu.org>
729         * doc/Makefile (pic.ps): Fixed rule which caused problems with
730         non-GNUish sed programs.
732         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
733         definition.
735         * configure.in (LIBS): Added `-lc'
737         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
739         * pic/tex.cc (solid_arc): Casting M_PI to double.
741         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
743         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
744         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
745         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
747         * groff/groff_man.man: New file.  This manual page was originally
748         written for the Debian GNU/Linux system by Susan G. Kleinmann
749         <sgk@debian.org>.
751         * eqn/list.cc (list_box::compute_metrics,
752         list_box::compute_sublist_width): Removed variable declaration to
753         avoid shadowing warnings.
755         * grops/psrm.cc (resource_manager::process_file): Ditto.
757         * tfmtodit/tfmtodit.cc (main): Ditto.
759         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
760         to avoid shadowing warnings.
762         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
763         shadowing loop variable.
765         * groff/groff.man, troff/troff.man: Added doc about grohtml.
767 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
769         New grohtml frontend to convert groff input to html.
771         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
773         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
775         * tmac/eqnrc: Added html device.
777         * tmac/tmac.html: New file.
779         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
780         (troff_output::start_picture, troff_output::finish_picture),
781         tbl/main.cc (process_input_file):
782         Surrounded output with `graphics_start' and `graphics_end' so that
783         the html driver can identify non-text portions.
785         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
786         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
787         grotty/tty.ps (tty_printer::set_char): Additional parameter
788         `name'.
790         * include/printer.h: Class printer: New function
791         set_char_and_width; new variables (is_char_named, is_named_set,
792         named_command, named_char_s, named_char_n) to hold information
793         about named characters -- needed by the html driver.
795         * libdriver/printer.cc (printer::set_ascii_char,
796         printer::set_special_char): Use set_char_and_width.
798         * devhtml/*: New device files for html driver.
800         * grohtml/*: New driver grohtml.
802 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
804         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
805         default strings.
807 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
809         * libgroff/string.cc (search): Small fix to test against NULL
810         pointer.
812 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
814         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
815         \b'abc') were stacked in reverse order when processed in a
816         diversion.
818         * troff/node.h: Added `*last' to struct `node' to make the above
819         fix work.
821         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
822         The default scale for the 'f' and 't' graphics functions were 'm'
823         rather than 'u' (i.e., no scaling).
825 1999-09-11  Peter Miller  <peterm@jna.com.au>
827         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
828         do_file), soelim/soelim.man: Added `-I file' option to soelim,
829         defining include paths.
831         * soelim/soelim.cc (include_path_append): New function.
833 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
835         * tbl/main.cc (process_options): Unix (at least Documenter's
836         Workbench) tbl allows arbitrary non-alpha characters between
837         options.
839 1999-09-11  Paul Eggert  <eggert@twinsun.com>
841         Y2k fixes.  Don't assume that the current year precedes 2000.
843         * doc/meref.me: Add \n(y2, \n(y4.
845         * tmac/doc-common (Yr): New number register.
846         (Dd): Don't assume current year precedes 2000.
848         * tmac/tmac.e (td): Likewise.
849         (y2, y4): New number registers.
851         * pic/pic.man: Update reference for pic paper to May, 1991
852         version.
854 1999-09-11  Werner LEMBERG  <wl@gnu.org>
856         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
857         Removed quotation marks which prevented correct expansion of
858         $(tmac_wrap).
860         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
862 1999-09-10  Werner LEMBERG  <wl@gnu.org>
864         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
865         `config.cache'.
867         * Removed configure.old.
869 1999-08-31  Werner LEMBERG  <wl@gnu.org>
871         * VERSION: Updated to 1.11.1
873 1999-05-27  Werner LEMBERG  <wl@gnu.org>
875         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
877         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
878         added quotations around $(tmac_wrap) to avoid syntax error if
879         variable is empty.
881         * configure: Newly generated using autoconf 2.13.
883         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
885 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
887         * README, PROJECTS, NEWS, INSTALL, VERSION, 
888         doc/Makefile. doc/pic.ms, groff/groff.man:
889         Prepare for 1.11 release.  No code changes.
890         Documentation for pic added (doc/pic.ms).
892 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
894         * Version 1.10 released.
896 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
898         * afmtodit/afmtodit.pl: Avoid comment on first line.
900 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
902         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
903         * configure.in: Call it.
905         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
906         (distfiles): Doesn't depend on config.log or config.cache.
908 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
910         * grog/grog.sh: Use print "" rather than print in END rule.
912 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
914         * tbl/main.cc (process_data): Don't give error for excess data
915         entries that are comments.
917 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
919         * tbl/main.cc (process_data): Fix case where new for-scope rules
920         silently change meaning of code.
922 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
924         * troff/env.cc (hyphenate): Loop over all consecutive sequences
925         of non-zero hyphenation codes.
927 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
929         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
931 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
933         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
935 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
937         * tmac/tmac.andoc: Make it work in compatibility mode.
939         * refer/token.h (token_info::is_range_sep): New function.
940         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
941         * refer/ref.cc (reference::output): More sophisticated check for
942         multiple pages.
944         * devps/prologue.ps (MANUAL): New procedure.
945         * grops/ps.cc (main): New -m option.
946         (usage): Include -m.
947         (ps_printer::~ps_printer): Implement -m.
949         * aclocal.m4 (GROFF_G): New macro.
950         * configure.in: Call it.
951         * Makefile.in (g): Provided by configure.
953         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
955         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
956         translations.
958         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
959         (tmac_m, tmac_s): Deleted.
960         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
961         tmac_s_prefix): New variables.
962         (MDEFINES): Change accordingly.
963         * Makefile.comm (.man.n): Use new TMAC_* variables.
964         * configure.in (GROFF_TMAC): Call.
965         * aclocal.m4 (GROFF_TMAC): Define.
966         * tmac/Makefile.sub (stamp_wrap): New target.
967         (install_data, uninstall_sub): Handle macro wrapping.
969 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
971         * tbl/main.cc (main): Ignore -T option.
973 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
975         * devlj4/generate/special.map: Add definition of \(nb.
977         * tmac/tmac.dvi: Add definition of \(nb.
979         * troff/dictionary.c (dictionary::dictionary): association::v gets
980         initialized by association::association.
982         * tmac/Makefile.sub: Avoid using temporary files when installing.
984         * troff/env.cc (environment::set_font): Make bad font number a
985         warning.
987         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
989         * Makefile.in (datadir): Use share rather than lib.
991         * groff/groff.cc (basename): Rename to xbasename.
993 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
995         * Makefile (CCLIBS): Don't use.
996         * Makefile.ccpg: Likewise.
998         * acgroff.m4: Rename to...
999         * aclocal.m4: Modify extensively for autoconf 2.
1000         * configure.in: Likewise.
1001         * Makefile.in: Likewise.
1003         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1004         defined.
1005         (xstrsignal): Check for definition of NSIG. Conditionalize
1006         on SYS_SIGLIST_DECLARED.  Make return type const.
1008 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1010         * troff/input.cc (interpolate_macro): Rephrase missing space
1011         warning.
1013 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1015         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1016         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1017         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1018         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1019         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1020         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1021         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1022         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1023         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1024         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1025         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1026         Fix 'for' scoping.
1028 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1030         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1031         string_iterator.
1032         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1033         file.
1034         (macro_iterator::macro_iterator): Add additional argument.
1036 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1038         * troff/div.cc (vertical_size::vertical_size): In place of integer
1039         specifying line spacing use cunits specifying post vertical
1040         space.
1041         (macro_diversion::output, top_level_diversion::output): Likewise.
1042         * troff/div.h: Change declarations accordingly.
1043         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1044         field.
1045         (pending_output_line::pending_output_line,
1046         pending_output_line::output, environment::output,
1047         environment::output_line, environment::output_title,
1048         environment::hyphenate_line):  In place of
1049         integer specifying line spacing use cunits specifying post vertical
1050         space.
1051         (environment::environment): Add post_vertical_spacing and
1052         prev_post_vertical_spacing arguments.
1053         (environment::get_post_vertical_spacing): New function.
1054         (environment::total_post_vertical_spacing): New function.
1055         (environment::post_vertical_spacing): New function.
1056         (init_env_requests): Initialize pvs request and .pvs register.
1057         * troff/env.h: Change declarations.
1059 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1061         * tmac/tmac.pspic: Immediately remove the temporary file.
1063 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1065         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1066         height is specified.
1068 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1070         * tbl/table.c (struct vertical rule, class table_entry): Use int
1071         not short for start_row and end_row.
1073 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1075         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1076         functions.
1077         (diverted_space_node::reread, process_input_stack): Call
1078         trapping_blank_line() rather than blank_line().
1079         (init_input_requests): Bind "blm" to blank_line_macro().
1081         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1083 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1085         * troff/env.cc (environment::possibly_break_line): Require that
1086         width total excluding width of final space node be greater than
1087         the target text length.
1089 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1091         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1093 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1095         * troff/node.cc (charinfo_node): New class.
1096         (glyph_node, composite_node): Derive from charinfo_node.  Change
1097         member functions accordingly.
1099 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1101         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1103 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1105         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1107         * devps/generate/textmap (notsubset): Add.
1109         * tmac/tmac.a4: New file.
1111 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1113         * pic/main.cc (had_parse_error): New variable.
1114         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1115         returns non-zero.
1116         (main): Return 1 if had_parse_error is true.
1118 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1120         * grolj4/lj4.cc (main): Avoid use of strtoul.
1122 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1124         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1125         iso_8859_1 or $LESSCHARSET is latin1.
1127 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1129         * hpftodit: New directory.
1130         * Makefile.in (CCPROGDIRS): Add hpftodit.
1131         * devlj4/generate: New directory.
1133 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1135         * configure.in: Don't use AC_VFORK.
1136         * groff/pipeline.c (run_pipeline): Use fork() always.
1138 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1140         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1142         * Makefile.in (CCPROGDIRS): Add grolj4.
1143         (DEVDIRS): Add devlj4.
1144         * grolj4, devlj4: New directories.
1145         * tmac/troffrc: Handle lj4.
1146         * tmac/tmac.lj4: New file.
1148 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1150         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1152 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1154         * troff/input.cc (do_if_request): At end of second string, switch
1155         environments before getting next token.
1157 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1159         * devps/psstrip.sed: Split rule that strips whitespace on either
1160         side of delimiters.
1162 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1164         * troff/node.h (font_family::make_definition): Add return value to
1165         declaration.  * troff/symbol.h (symbol::operator==,
1166         symbol::operator!=): Likewise.
1168 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1170         * groff/groff.cc (main, help, synopsis): Handle -S.
1171         (possible_command::insert_arg): New function.
1173         * tmac/tmac.safer: New file.
1174         * tmac/msafer.man: New file.
1175         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1177 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1179         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1180         * pic/pic.y (placeless_element): Avoid unsafe operations if
1181         `safer_flag' is set.
1182         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1184 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1186         * eqn/lex.cc (get_token): Put call to add_context() in block to
1187         work around Sun C++ 4.0 bug.
1189         * include/stringclass.h (operator +): Use ?: instead of `if' to
1190         work around Sun C++ 4.0 bug.
1192 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1194         * tbl/main.cc (process_format): Accept - as a synonym for the _
1195         key letter.
1197         * libbib/index.cc (minus_one): Don't declare as const.
1199 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1201         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1203 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1205         * troff/input.cc (write_macro_request): New function.
1206         (init_input_requests): Bind write_macro_request to writem.
1208 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1210         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1211         equation.
1213         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1215         * tmac/tmac.s (@TS): Renamed from TS.
1216         (TS): Call LP then TS again.
1217         (cov*ab-init): Alias @TS to TS.
1219         * tmac/tmac.s: Allow QP or RS to initialize.
1221         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1222         Move initializations of PS and LL here.
1223         (par@init): Don't initialize HY.  Avoid changing environment 0.
1224         (par*env-init): Don't all par@reset.
1226 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1228         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1230 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1232         * Makefile.in (MDEFINES): Add LDFLAGS.
1233         (LDFLAGS): Add definition line.
1235 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1237         * troff/input.cc (get_optional_char): Split off error check into...
1238         (check_missing_character): New function.
1239         * troff/token.h: Declare it.
1240         * troff/env.cc (margin_character): Don't call get_optional_char.
1241         Only call tok.next() after making the node.
1243         * include/lib.h (getopt): Make 2nd argument char *const *.
1245 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1247         * nroff/conftest.sh: Deleted.
1249 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1251         * pic/make-dos-dist: Deleted.
1253 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1255         * devps/psstrip.sed: Strip comments before stripping trailing
1256         white space.
1258 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1260         * Version 1.09 released.
1262 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1264         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1266 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1268         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1270 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1272         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1273         about returning without a value.
1275         * troff/charinfo.h (charinfo::get_special_translation): Cast
1276         TRANSLATE_NONE to int.
1278         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1279         test.  Fix test so that it works with n unsigned.
1281         * pic/pic.y (defaults_table): Fully bracket initializer.
1282         * pic/lex.cc (lookup_keyword): Likewise.
1283         * eqn/lex.cc (token_table, def_table): Likewise.
1284         * eqn/box.cc (param_table): Likewise.
1285         * troff/input.cc (warning_table): Likewise.
1286         * libgroff/font.cc (table): Likewise.
1287         * grops/ps.cc (ps_printer::special): Likewise.
1288         * grops/psrm.cc (resource_manager::process_file): Likewise.
1289         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1290         * refer/command.cc (command_table): Likewise.
1291         * addftinfo/addftinfo.cc (param_table): Likewise.
1293         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1294         about temp's being unused.
1295         (unused): New function.
1297         * groff/pipeline.cc: Declare c_fatal.
1299         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1300         uchar.
1302         * libbib/index.cc (index_search_item::load): Prevent compiler
1303         warnings about fd_closer's being unused.
1304         (unused): New function.
1306 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1308         * troff/input.cc (copy_mode_error): Make `prefix' static.
1309         Fix typo.
1311         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1312         defined.
1313         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1314         HAVE_CC_OSFCN_H and modify accordingly.
1316         * troff/input.cc (init_charset_table): radicalex overlaps
1317         horizontally.
1319         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1320         udodo!hans@relay.NL.net).
1321         * groff/configure.in: Call it.
1323         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1324         * groff/configure.in: Call it.
1325         * include/lib.h: Conditionalize declaration of pclose.
1327         * troff/div.cc (last_page_number): New global variable.
1328         (top_level_diversion::begin_page): Exit if we just printed the
1329         last page.
1330         * troff/div.h (last_page_number): Declare it.
1331         * troff/input.cc (parse_output_page_list): Set last_page_number.
1333         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1334         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1335         tmac/tmac.X: Likewise.
1336         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1337         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1339 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1341         * tmac/doc-ditroff (hK): Remove groff specific code which
1342         prevented page-breaks between separate manual entries.  If this is
1343         the first page, don't set the page number to 1.
1345         * acgroff.m4 (GROFF_POSIX): New macro.
1346         * configure.in: Use it.
1348         * troff/node.cc (class real_output_file,
1349         real_output_file::real_output_file,
1350         real_output_file::~real_output_file): Conditionalize use of
1351         popen/pclose on POPEN_MISSING.
1352         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1353         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1354         (pipe_source): Similarily.
1356         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1358         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1359         presence of declarations by trying to compile example with
1360         conflicting declarations.  (gcc only gives a warning for missing
1361         declarations.)
1363 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1365         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1366         (from Ulrich Lauther).
1368 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1370         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1372 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1374         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1375         pointers and ints have different sizes.
1377 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1379         * tmac/tmac.s (par*env-init): Call par@reset.
1381 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1383         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1384         tag.
1385         (par*push-tag-env, par*pop-tag-env): New macros.
1387 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1389         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1390         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1392         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1393         comment.  Include <time.h>.
1395 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1397         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1398         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1399         lines.
1401 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1403         * troff/input.cc (read_request): Only print a prompt if reading
1404         from the terminal.  Also clearerr on EOF if reading from the
1405         terminal.  Declare isatty.
1407 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1409         * refer/label.y: Rename map_t to map_func and extractor_t to
1410         extractor_func.
1412 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1414         * include/assert.h: Don't use volatile.
1415         * libgroff/assert.cc: Likewise.
1417 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1419         * troff/input.cc (abort_request): Look at character in tok before
1420         calling get_copy().
1422 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1424         * troff/troff.h (NO_RETURN): Deleted.
1425         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1426         * troff/input.cc (exit_troff): Likewise
1428         * Makefile.in: Remove `Making ...' messages since GNU make now
1429         gives these. 
1431         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1433 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1435         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1436         to constant 1 inch.
1438 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1440         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1442 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1444         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1445         MARK_REG if there was no left delimiter.
1447 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1449         * pic/troff.cc (troff_output::text): Set line thickness to
1450         relative before outputting text.
1452         * tmac/tmac.e (@k): Don't zero ?T.
1453         ((z): Likewise.
1455 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1457         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1459 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1461         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1462         Paul Eggert).
1464 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1466         * troff/input.cc (ignoring): New variable.
1467         (ignore): Set ignoring during call to do_define_macro.
1468         (do_define_macro): Clear ignoring before interpolating terminating
1469         macro.
1470         (copy_mode_error): New function.
1471         (get_char_for_escape_name, read_long_escape_name,
1472         interpolate_arg): Use copy_mode_error.
1473         (warning_table): Add WARN_IG.
1474         * troff/troff.h (WARN_IG): Declare.
1475         (WARN_TOTAL): Change accordingly.
1477         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1478         * groff/groff.cc (strsignal): Delete declaration.
1480 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1482         * troff/div.cc (page_offset): Use 'm' as default scaling.
1484 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1486         * nroff/nroff.sh: Ignore -u.
1488 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1490         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1492 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1494         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1495         drawing box.
1496         (B2): With -Tascii, leave additional vertical space before
1497         and after. Ensure that the left and right indent is restored to
1498         what it was even if the point size changes.  Don't call
1499         par@finish. Change the indent, line length and title length
1500         directly.  With -Tascii, make the width of the box 1n less.
1501         (B1): Remember 1n at the current point size.  Don't call
1502         par@reset.  Change the indent, line length and title length
1503         directly.  Ensure that the temporary indent is preserved.
1504         (par*box-mark-top): Turn off no spacing mode.
1506 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1508         * Makefile.in (dist): Use .gz suffix.
1510 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1512         * troff/input.cc (main): Add return 0.
1513         * pic/main.cc (main): Use return instead of exit.
1514         * tbl/main.cc (main): Likewise.
1515         * eqn/main.cc (main): Likewise.
1516         * grops/ps.cc (main): Likewise.
1517         * grotty/tty.cc (main): Likewise.
1518         * groff/groff.cc (main): Likewise.
1519         * grodvi/dvi.cc (main): Likewise.
1520         * refer/refer.cc (main): Likewise.
1521         * indxbib/indxbib.cc (main): Likewise.
1522         * lkbib/lkbib.cc (main): Likewise.
1523         * soelim/soelim.cc (main): Likewise.
1524         * addftinfo/addftinfo.cc (main): Likewise.
1525         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1526         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1528         * troff/token.h (process_input_stack): Don't declare as static.
1529         * troff/input.cc: Likewise.
1531         * troff/node.c (invalidate_fontno): Make it a static member of
1532         class font_family.  Change callers.
1533         * troff/node.c: Change declaration.
1535         * tbl/main.cc (struct input_entry_format): Add explicit public
1536         specifier.
1537         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1538         struct double_hline_stuff): Likewise.
1539         * tbl/table.h (struct entry_format): Likewise.
1540         * pic/object.h (struct saved_state): Likewise.
1542         * include/stringclass.h: Add forward declarations of friend
1543         functions that are later declared as inline.  Don't include inline
1544         specifier in friend declaration.
1546         * libgroff/lib.h: Declare popen and pclose.
1547         * acgroff.m4 (GROFF_POPEN): New macro.
1548         * configure.in: Call it.
1550         * include/lib.h (PI): New constant. Undef first if necessary.
1551         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1552         * grops/ps.cc (degrees, radians): Likewise.
1553         * libgroff/font.cc (font::get_skew): Likewise.
1555         * grops/ps.cc (is_ascii): New function.
1556         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1557         isprint.
1558         (ps_printer::define_encoding): Use csspace.
1559         * libgroff/strtol.c (ISASCII): New macro.
1560         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1561         Use ISASCII rather than isascii.
1562         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1563         * libgroff/cset.cc: Likewise.
1564         * libdriver/input.cc: Include cset.h.
1565         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1566         than isdigit().
1568         * refer/refer.cc (main): Use %ld rather than %d for longs.
1570         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1571         S_ISREG macro.
1573         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1575 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1577         * troff/input.cc (hyphenation_code): Skip white space between
1578         char/code pairs.
1580 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1582         * tbl/table.h (table::entry_list_tailp): New member.
1583         (table::table): Initialize it.
1584         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1585         behaviour.
1587 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1589         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1590         with negative horizontal positions. Remove casts of glyph::hpos to
1591         int.
1592         (USHRT_MAX): Delete definition.
1593         (SHRT_MAX, SHRT_MIN): New definitions.
1594         (glyph::hpos): Change type to short.
1595         (tty_printer::end_page): Output multiple backspaces if necessary.
1596          Remove casts of glyph::hpos to int.
1597         
1598 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1600         * tmac/tmac.s (@RT): New definition.
1602 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1604         * refer/refer.cc (do_file): Make sure current_filename is set when
1605         filename is "-".
1607         * pic/common.cc (common_output::dot_line): Handle zero length
1608         lines.
1610 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1612         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1613         (par@init): Initialize \n[HY].
1615 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1617         * troff/dictionary.cc (dictionary::remove): Continue when
1618         r < j < i.
1620 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1622         * Makefile.com (.y.cc): Avoid ending up with two versions of
1623         $(YTABH).
1625 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
1627         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1628         (\(,C): Likewise.  Also fix typo.
1630 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
1632         * lib.h: Delete extraneous semi-colon.
1634         * Add pso request: `so' from a pipe.
1635         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1636         (file_iterator::close): New function.
1637         (file_iterator::~file_iterator, file_iterator::next_file): Use
1638         file_iterator::close.
1639         (file_iterator::backtrace): Say `process' rather than `file' when
1640         the stream is popened.
1641         (pipe_source): New function.
1642         (init_input_requests): Bind ".pso" to pipe_source.
1644 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
1646         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1648         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
1649         digits in lower case.
1651 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
1653         * Version 1.08 released.
1655         * Makefile.in (dist): Insert || true after ln -s commands that
1656         might fail.
1658         * mm: Update to mm 1.16.
1660         * acgroff.m4 (GROFF_CSH_HACK): New macro.
1661         * configure.in: Call GROFF_CSH_HACK.  Substitute for
1662         SH_SCRIPT_SED_CMD.
1663         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
1664         MDEFINES.
1665         * nroff/Makefile.sub (nroff): New target.
1666         (install_data): Install nroff.
1667         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1668         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1670 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
1672         * eqn/Makefile.sub (neqn): Add chmod +x.
1674         * grog/Makefile.sub (grog): Remove spurious semi-colon.
1676 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
1678         * troff/input.cc (string_iterator::string_iterator()): Initialize
1679         lineno and count.
1681 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
1683         * troff/div.cc (macro_diversion::space,
1684         top_level_diversion::space): Don't set high_water_mark.
1685         (macro_diversion::output, top_level_diversion::output): Don't
1686         include post line space in high water mark.
1688 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
1690         * eqn/eqn.y: Don't define YYDEBUG.
1691         * pic/pic.y: Likewise.
1693 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
1695         * tmac/tmac.e ([3): Add space after comma following editors.
1696         Change double spaces to single spaces.
1697         ([4): Change double spaces to single spaces.
1699         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1700         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1701         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1702         after %!PS-Adobe- (for Newsprint).
1704         * troff/div.cc (top_level_diversion::begin_page): When
1705         before_first_page is 1, set page_number to 1.
1707 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
1709         * eqn/box.cc (box::top_level): Protect equation with \&.
1711 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
1713         * groff/groff.cc (possible_command::set_name): Delete old name.
1715         * groff/groff.cc (possible_command::~possible_command): Use
1716         a_delete.
1718         * troff/node.cc (troff_output_file::begun_page): New member.
1719         (troff_output_file::troff_output_file): Initialize it.
1720         (troff_output_file::really_begin_page): Only output V command if a
1721         page has been begun.
1723         * pic/pic.y (placeless_element): Delete argument to PRINT after
1724         use.
1726 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
1728         * Make wrapman work.
1729         * troff/div.h (class top_level_diversion): Replace
1730         first_page_begun by before_first_page (with opposite sense).
1731         * Change first_page_begun to before_first_page inverting sense.
1732         * troff/div.cc (class nl_reg): New class.
1733         (init_div_requests): Use class nl_reg for \n(nl.
1734         (top_level_diversion::begin_page): Don't call
1735         output_file::begin_page if before_first_page is 2;
1736         reset before_first_page afterwards.  If have_next_page_number is
1737         false, then always increment page_number.
1738         * tmac/tmac.an: Set traps within TH rather than at the top-level.
1739         Restore compatibility mode after loading, and then disable
1740         compatibility mode in TH.
1742 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
1744         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1745         past last line.
1746         * troff/node.h (output_file::trailer): Declare.
1747         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1748         * troff/node.cc (output_file::trailer): New function.
1749         (troff_output_file::~troff_output_file): Move most code into...
1750         (troff_output_file::trailer): New function.
1751         (class troff_output_file): Delete page_length member. Declare
1752         trailer().
1753         (troff_output_file::really_begin_page): Use current page length
1754         for final V command.
1756         * tbl/main.cc (struct options): New decimal_point_char member.
1757         (options::options): Initialize this.
1758         (process_options): Implement decimalpoint option.
1759         (process_data): Pass decimal_point_char option to table::table.
1760         * tbl/table.h (class table): New decimal_point_char member.
1761         (table::table): Add additional argument.
1762         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1763         second argument specifying decimal point character.  Use this
1764         instead of '.'.
1765         (table::table): Initialize decimal_point_char.
1766         (table::add_entry): Change call to find_dot.
1768         * troff/input.cc (get_copy, token::next): Implement \V.
1769         (interpolate_environment_variable): New function.
1771 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
1773         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1774         * pic/pic.y: Likewise.
1776         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1777         Add casts to int.
1778         * refer/ref.cc (reference::insert_field, reference::delete_field):
1779         Likewise.
1780         * troff/number.cc (parse_term): Likewise.
1782         * acgroff.m4 (GROFF_PROG_YACC): New macro.
1783         * configure.in: Use GROFF_PROG_YACC.
1785         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1786         and g++.
1787         * Makefile.in (OPTIMIZE): New define.
1788         (DEBUG): Empty by default.
1789         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1791         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1792         (GROFF_ARRAY_DELETE): Likewise.
1793         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1795         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1797         * devps/psstrip.sed: Use different delimiter on last line (so that
1798         it works with BSD 4.4 sed.)
1800 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
1802         * devps/psstrip.sed: Delete comments.
1804         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1805         optind, opterr, optarg.
1806         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1807         opterr, optarg.
1809 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
1811         * Makefile.in (check): Dummy target.
1813 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
1815         * Version 1.07 released.
1817         * Integrate mm 1.11.
1819         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1820         where start_col was meant.
1822 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
1824         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1826 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
1828         * troff/input.cc (token::next): Make \z\o'...' and similar things
1829         work.
1831         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1832         constants.
1833         (environment): Add margin_character_flags member.
1834         * env.cc (environment::environment(symbol),
1835         environment::environment(const environment *): Initialize
1836         margin_character_flags.
1837         (margin_character): Rewrite.
1838         (environment::output_line): Add a margin character if
1839         margin_character_flags is non-zero.  Turn off the
1840         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
1841         zero, use margin_character_node without copying and then set
1842         margin_character_node to 0.
1844         * devps/DESC.in: Change minimum size to 1000.
1846 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
1848         * troff/symbol.h (symbol::hash): Change return type to unsigned
1849         long.
1850         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1851         Add casts to int.
1853         * test-groff: Use -r rather than -x.
1855         * grops/psfig.diff: Include in distribution again.
1857 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
1859         * Makefile.in (dist): Use gzip.
1861 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
1863         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1864         unistd.h as well as in stdlib.h.
1865         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1866         defined; otherwise include <sys/types.h> and <unistd.h> if
1867         UNISTD_H_DECLARES_GETOPT is defined.
1869         * configure.in: use builtin(include, ... rather than include(...
1870         * configure: Regenerate with autoconf 1.3.
1872         * libdriver/print.cc (printer::adjust_arc_center): Use new
1873         algorithm suggested by Andy Fyfe.
1875         * libdriver/printer.cc (printer::adjust_arc_center): New function.
1876         * include/printer.h: Declare this.
1877         * grops/ps.cc (ps_printer::draw): Use it.
1878         * grodvi/dvi.cc (dvi_printer::draw): Use it.
1880 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
1882         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1884 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
1886         * eqn/main.cc (main): Handle "eqn -".
1888 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
1890         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1892         * mm: Integrate version 1.08.
1894         * pic/troff.cc (troff_output::finish_picture): Set
1895         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1896         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1897         if it's not defined. Check whether the register is non-zero rather
1898         than whether it's not defined.
1899         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1901         * indxbib/indxbib.cc: Move all signal handling into...
1902         * indxbib/signal.c: New file.
1903         * configure.in: Call AC_RETSIGTYPE.
1905         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1906         * configure.in: Call GROFF_STRUCT_EXCEPTION.
1907         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1909         * troff/input.cc (token::token, token::operator=): Work round SGI
1910         C++ bug.
1911         * pic/object.cc (position::position): Likewise.
1913 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
1915         * pic/pic.h: Move declaration of hypot().
1917 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
1919         * pic/pic.h: Declare hypot().
1921         * pic/pic.h: Define M_PI if necessary.
1923 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
1925         * tmac/tmac.e (re): Add alternative version that doesn't use groff
1926         `.ta T' feature.
1928         * devps/prologue.ps (RE): Handle the possibility that the old font
1929         doesn't have a FontName entry.
1931 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
1933         * tmac/tmac.e (fam): Redefine to set family in environment 2.
1934         (@C): Use @fam not fam.
1936 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
1938         * lookbib/lookbib.cc (main): Change type of start to const char *.
1939         * lkbib/lkbib.cc (main): Likewise.
1941         * eqn/lex.cc (definition::definition): Don't use member
1942         initializer syntax for members of anonymous unions.
1944         * troff/input.cc (input_stack::backtrace): Change type of to const
1945         char *.
1947 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
1949         * include/stringclass.h (class string): Declare inline friend
1950         functions as inline in class declaration.
1951         * troff/hvunits.h (class hunits, class vunits): Likewise.
1952         * include/refid.h (class reference_id): Likewise
1953         * troff/troff.h (points_to_units(units), scale(units, double)):
1954         Delete declarations.
1955         * libdriver/input.cc (get_char): Delete declaration.
1956         * include/lib.h: Change 2nd argument of getopt from const char **
1957         to char **.
1958         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1959         char **' before assigning to a `const char **'.
1960         * tbl/table.cc: Delete extra declarations of prints().
1962 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
1964         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1965         char **' before assigning to a `const char **'.
1967         * libgroff/errarg.cc (errarg::errarg): Don't use member
1968         initializer syntax for members of anonymous unions.
1970 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
1972         * mm: Integrate version 1.07.
1974 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
1976         * troff/input.c (translate2): Rename to
1977         (translate_no_transparent).
1978         (init_input_requests): Rename tr2 to trnt.
1980 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
1982         * troff/charinfo.h (class charinfo): Add transparent_translate field.
1983         (charinfo::set_translation, charinfo::set_special_translation):
1984         Add second argument that specifies value for
1985         transparent_translate.
1986         (charinfo::get_translation, charinfo::get_special_translation):
1987         Add optional second argument that specifies whether translation is
1988         being used for transparent throughput.
1989         * troff/input.cc (charinfo::set_translation,
1990         charinfo::set_special_translation): Handle second argument.
1991         (charinfo::charinfo): Initialize transparent_translate.
1992         (translate): Split main part off into
1993         (do_translate): New function.  Pass argument saying whether
1994         translation applies to transparent throughput.
1995         (translate2): New request.
1996         (init_input_requests): Bind translate2 to `tr2'.
1998 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2000         * tbl/table.h (class table): Add `nokeep' flag.
2001         * tbl/main.cc (process_options): Handle `nokeep' option.
2002         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2003         table::do_bottom): Don't output keep/release macro definitions or
2004         calls when `nokeep' option has been specified.
2006 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2008         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2010 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2012         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2013         block_entry::divert, alphabetic_block_entry::divert): Add extra
2014         argument giving column separation.
2015         (table::compute_widths): Pass column separation to
2016         table_entry::divert().
2017         (block_entry::do_divert): If an entry spans multiple columns and a
2018         minimumum width has been specified for each column, then set the
2019         line length to the sum of the widths (plus possibly the column
2020         separations).
2022         * troff/input.cc (set_escape_char): Don't set the escape_char
2023         until after calling has_arg().
2025 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2027         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2028         case.
2030         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2031         in case where r > nrows - 1.
2033         * tbl/table.cc (BODY_HEIGHT): Deleted.
2034         (LINE_SEP): New definition.
2035         (table::print_single_hline, table::print_double_hline,
2036         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2037         table::do_row, table::do_top): Use LINE_SEP space before a line
2038         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2040         * tbl/table.cc (text_entry::print_contents): New function.
2041         (text_string_name, right_text_string_name): Deleted.
2042         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2043         (simple_text_entry::do_width, numeric_text_entry::do_width,
2044         alphabetic_text_entry::do_width): Don't store the contents of the
2045         entry in a string.
2046         (left_text_entry::simple_print, right_text_entry::simple_print,
2047         center_text_entry::simple_print,
2048         alphabetic_text_entry::simple_print,
2049         numeric_text_entry::simple_print): Print the entry directly
2050         instead of using the stored string.
2052 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2054         * devps/Makefile: Strip PostScript files.
2055         * devps/prologue: Rename to...
2056         * devps/prologue.ps.
2057         * devps/psstrip.sed: New file.
2058         * devps/download: Use .pfa rather than .ps for installed versions
2059         of fonts.
2061 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2063         * troff/env.cc (input_trap): Give a warning if the argument is out
2064         of range.
2066         * troff/env.cc (adjust): Treat negative argument as missing. Round
2067         argument > 5 down to 5.
2069         * troff/env.cc (center, right_justify): Make negative argument zero.
2071         * troff/div.cc (page_offset, vertical_position_traps): Treat
2072         invalid argument as missing.
2073         * troff/env.cc (line_spacing, line_length, title_length, indent,
2074         underline, hyphen_line_max_request, control_char,
2075         no_break_control_char, widow_control_request, adjust, input_trap,
2076         point_size): Likewise.
2077         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2078         constant_space): Likewise.
2079         * troff/input.cc (compatible, shift, warn_request,
2080         set_escape_char): Likewise.
2082         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2083         * tbl/table.cc (table::table): Likewise.
2085         * Makefile.dev (install_dev): depends on $(DEVFILES).
2087 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2089         * devX75, devX75-12, devX100, devX100-12: New directories.
2090         * Makefile.in: Add these to DEVDIRS.
2092         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2093         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2094         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2095         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2096         targets.
2097         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2098         (uninstall): New target.
2099         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2100         uninstall_prog, uninstall_dev): New targets.
2102         * troff/div.cc (return_request): Treat an invalid argument as
2103         missing.
2105 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2107         * tmac/tmac.e ((f): Set up the environment even when there's a
2108         current diversion.  Transperently throughput a call to @N.
2109         (@N): New macro.
2111 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2113         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2114         up to vertical resolution.
2116         * tbl/table.cc (table::do_row): Change row number after printing
2117         stuff list.
2119         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2121 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2123         * Rename CHANGES to NEWS.
2125 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2127         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2129 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2131         * man.ultrix: Removed.
2133 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2135         * Makefile.comm (extraclean): Delete files whose names begin with
2136         `='.
2138         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2139         aligned text.
2141 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2143         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2144         * troff/div.cc (page_length, need_space, space_request): Treat
2145         invalid optional argument as missing.
2146         * troff/env.cc (number_lines): If the first argument is present
2147         but not a number, turn on line numbering, don't change the next
2148         line number and parse the remaining arguments.
2150         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2152 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2154         * eqn/box.h: Change declaration accordingly.
2155         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2156         the specified size was bad but don't give an error.  Check for
2157         overflow.
2158         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2159         * eqn/lex (do_size): Likewise.
2161 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2163         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2164         compatible headers.
2166 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2168         * tbl/table.cc (table::init_output): Improve error message when
2169         table won't fit on one page.
2171 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2173         * pic/troff.cc (troff_output::start_picture): Generate line
2174         containing a horizontal motion equal to the width of the picture.
2176         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2177         using GROFF_COMMAND_PREFIX environment variable.
2179 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2181         * mdate.sh: Use $NF rather than $(NF).
2183 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2185         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2187         * eqn/main.cc (main): Output code to check that geqn was given the
2188         correct -T option.
2190 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2192         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2193         `ln -s ../Makefile .; make; rm -f Makefile'.
2195         * troff/hyphen: Rename to...
2196         * troff/hyphen.us:
2197         * troff/input.cc (main): Delete -H option. Don't call
2198         read_hyphen_file().
2199         * troff/env.cc: Include searchpath.h and macropath.h.
2200         (exception_dictionary): Deleted.
2201         (ht): Deleted.
2202         (read_hyphen_file): Deleted.
2203         (hyphenation_language): New struct.
2204         (class trie, class hyphen_trie): Move declarations up.
2205         (trie_node::~trie_node): Deleted.
2206         (trie::delete_trie_node): New function.
2207         (trie::do_delete): New pure virtual function.
2208         (hyphen_trie::do_delete): New function.
2209         (trie::~trie): New function.
2210         (hyphen_trie::~hyphen_trie): New function.
2211         (trie::clear): No need to chcek that tp is not 0.
2212         (current_language, language_dictionary): New variables.
2213         (hyphen_word): Give an error if no current language.  Use
2214         exceptions dictionary in current language.
2215         (hyphen_trie::read_patterns_file): Find file using macro_path.
2216         Allow comments (starting with %) in patterns file.  Don't make it
2217         a fatal error if the file can't be found.
2218         (hyphenate): Return if no current language.  Get the exceptions
2219         dictionary and the hyphenation patterns from the current language.
2220         (set_hyphenation_language): New variable.
2221         (hyphenation_patterns_file): New function.
2222         (hyphenation_language_reg): New class.
2223         (hyphenation_language_reg::get_string): New function.
2224         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2225         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2226         register.
2227         * groff/groff.cc (main, help, synopsis): Delete -H option.
2228         * include/Makefile.sub: Don't define HYPHENFILE.
2229         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2230         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2231         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2232         hyphenation patterns.
2234 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2236         * eqn/neqn.sh: New file.
2237         * eqn/Makefile.sub: Handle neqn.sh.
2239         * eqn/eqn.h: Declare `nroff' variable.
2240         * eqn/box.cc (param_table): Add `nroff' param.
2241         (nroff): Define it.
2242         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2243         variable.
2244         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2246         * troff/troff.h (WARN_FONT): New warning.
2247         (WARN_TOTAL): Change accordingly.
2248         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2249         (warning_table): Add WARN_FONT.
2250         * troff/node.cc (mount_font_no_translate): Pass argument to
2251         font::load_font.  If this is non-zero, give a warning.
2252         Don't give an error message when accessing a font that has already
2253         been found to be invalid.
2254         * include/font.h (font::load, font::load_font): Add additional
2255         optional argument which suppresses error message if the font is
2256         not found.
2257         * libgroff/font.cc (font::load_font): Handle additional argument.
2258         (font::load): Add additional argument. If this is non-null, set it
2259         to 1 and don't give error message.
2261         * include/printer.h (printer::end_page): Add argument giving
2262         length of page.
2263         * libdriver/input.cc (do_file): Pass this.
2264         * grops/ps.cc (ps_printer::end_page): Add argument.
2265         * grodvi/dvi.cc (dvi_printer::end_page,
2266         draw_dvi_printer::end_page): Add argument.
2267         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2268         columns_per_page members. New member nlines.
2269         (DEFAULT_LINES_PER_PAGE): Deleted.
2270         (tty_printer::tty_printer): Don't compute lines_per_page from
2271         font::paperlength. Don't compute columns_per_page from
2272         font::paperwidth.
2273         (tty_printer::add_char): Don't check horizontal position against
2274         columns_per_page. Grow glyphs vector if neccessary.
2275         (tty_printer::end_page): Add argument giving page_length in units.
2276         Discard lines past end of page.
2278 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2280         * tmac/tmac.tty-char: Fix definition of \(/l.
2282         * tmac/tmac.X: Define \(en.
2284 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2286         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2287         lpq, then use lp rather than lpr.
2289         * tmac/tmac.s (par@reset): Don't call `ad'.
2290         (par*env-init): Call `ad'.
2292 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2294         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2295         date.
2297         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2298         * indxbib/indxbib.cc: Likewise.
2300 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2302         * libgroff/putenv.c: New file.
2303         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2304         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2305         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2306         stdlib.h with AC_HAVE_HEADERS.
2308 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2310         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2311         does not exist.
2313 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2315         * eqn/box.cc (gsize): Make it an int.
2316         (set_gsize): Parse argument handling increment or decrement.
2317         (box::top_level): Convert gsize to a string.
2319         * troff/input.cc (exit_troff): Make buf unsigned char [].
2320         Call to make_temp_iterator casts buf to char*.
2322         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2324         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2325         * Makefile.cpg (depend.temp): Likewise.
2327         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2329         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2331 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2333         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2335 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2337         * Version 1.06 released.
2339         * Integrate mm 1.04.
2341 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2343         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2345 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2347         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2348         ligatures command.
2349         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2350         afmtodit. Regenerate.
2352         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2353         @f back past the current position.
2355         * tmac/tmac.e: Change calls to @R so that comments are not part of
2356         arguments.
2358 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2360         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2362         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2363         check that we can link a call to a function declared in <stdio.h>.
2364         (GROFF_UNISTD_H): New macro.
2365         * configure.in: Call it.
2366         * Makefile.in: Document it.
2367         * include/posix.h: New file.
2368         * troff/troff.h: Don't include <osfcn.h>
2369         * troff/input.cc: Include posix.h.
2370         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2371         osfcn.h.
2372         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2373         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2374         <fcntl.h>.
2375         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2376         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2377         * libbib/search.cc (O_RDONLY): Delete definition.
2378         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2379         Don't include <osfcn.h>.
2381         * acgroff.m4 (GROFF_TIME_T): New macro.
2382         * configure.in: Call it.
2383         * Makefile.in: Document it.
2385         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2386         * configure.in: Call it.
2387         * Makefile.in: Document -DTRADITIONAL_CPP.
2388         * include/ptable.h: Don't include generic.h.
2389         (name2): Define it.
2391         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2392         Afterwards remove [T1 and [T2.
2393         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2394         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2395         (ref*add-T2): Renamed from ref*add-T.
2396         (ref*add-T1): New macro.
2398 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2400         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2402         * libbib/index.cc: Include <fcntl.h>.
2403         (O_RDONLY): Define if necessary.
2404         (make_index_search_item, index_search_item_iterator::get_tag,
2405         index_search_item::check_files): Use O_RDONLY.
2406         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2407         (O_RDONLY): Define if necessary.
2408         (search_list::add_file): Use O_RDONLY.
2409         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2410         <sys/stat.h>.
2411         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2412         (main): Use these.
2414         * libbib/index.cc (S_ISREG): Define it if necessary.
2415         (index_search_item::load): Use S_ISREG.
2417         * include/driver.h: Include <errno.h>.
2419 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2421         * eqn/box.cc (body_height): Increase default value to 85.
2422         (body_depth): Increase default value to 35.
2424 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2426         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2427         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2428         protected from expansion with \E.
2430         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2432         * Makefile (Makefile): New target.
2434         * Makefile.sub (configure, distfiles): New targets.
2436         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2437         construct.
2439 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2441         * eqn/box.cc (param_table): Add body_height and body_depth.
2443         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2445 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2447         * psbb/Makefile.sub: Don't link with libgroff.a.
2449         * acgroff.m4 (GROFF_PUTENV): New macro.
2450         * configure.in: Call GROFF_PUTENV.
2451         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2452         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2453         is defined.
2455         * troff/env.cc (distribute_space): Rename force_forward argument
2456         to force_reverse.  Reverse the list if force_reverse is true.
2458 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2460         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2462         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2463         height or depth to be negative.  Guard against SUP_RAISE quantity
2464         being negative.
2466 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2468         * devps/generate/textmap: Add `an' (arrowhorizex).
2469         * tmac/tmac.ps: \(an overlaps horizontally.
2470         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2472         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2473         * devps/textmap: Add arrowvertex.
2474         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2475         updownarrow delimiters.
2476         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2478         * tbl/table.cc (simple_entry::position_vertically,
2479         block_entry::position_vertically):  For a centered entry, perform
2480         the motion in two stages.
2482         * refer/refer.cc (split_punct): Don't call lookup_token if there
2483         is no token.
2485 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2487         * troff/input.cc (token::next): Delete token_node after copying
2488         token.
2490         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2491         cur_point_size.
2493         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2495         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2497 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2499         * grops/ps.cc (usage): -b option takes an argument.
2501         * devps/prologue (PLG): New procedure.
2502         * grops/ps.cc (main, usage): New -g option.
2503         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2504         length using PLG.
2506 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2508         * include/cset.h: Include <limits.h> if we have it.
2510         * libgroff/illegal.cc: New file.
2511         * include/lib.h (illegal_input_char): Use table.
2512         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2513         * pic/lex.cc (ARG1): Renumber to 14.
2514         * eqn/lex.cc (ARG1: Likewise.
2516         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2517         (eg 1.05.90) correctly.
2519 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2521         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2522         Rename $r and $R registers to $v and $V.
2523         ($r, $R): Initialize to 0.
2524         (@v, @V): New macros.
2525         (sz): Call @v.
2526         (@M): Call @V.
2528         * troff/input.cc (main, usage): Add -R option that says not to
2529         load troffrc.
2530         * eqn/main.cc (main, usage): Rename -n to -R.
2532 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2534         * devps/DESC.in: Leave font positions 5-9 blank.
2535         * devdvi/DESC.in: Likewise.
2537         * grog/grog.pl: Handle `.PS <file' correctly.
2539         * troff/input.cc (input_stack::push): Improve error message when
2540         input stack limit exceeded.
2542 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2544         * refer/refer.cc (main): Fix typo in handling of `a' option.
2546         * refer/refer.cc (do_bib): In state START after a newline remain
2547         in state START.
2549         * groff/groff.sh: Deleted.
2550         * groff/Makefile.sub: Delete handling of groff.sh.
2552         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2553         to determine whether to use \X'ps:...'.
2554         * tmac/troffrc: Set 0p register to 0.
2555         * tmac/tmac.ps: Set 0p register to 1.
2557         * groff/groff.cc: Support -X option. Give warning for -TXps and
2558         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2559         * tmac/troffrc: Support -r.X=1.
2561         * pic/troff.cc (troff_output::dot): Don't test
2562         zero_length_line_flag.
2564 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2566         * include/lib.h: Declare getopt() and friends unless
2567         STDLIB_H_DECLARES_GETOPT is defined.
2569         * doc/chars.tr: Delete.
2570         * man/groff_char.man: New file.
2572 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2574         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2575         user has changed register format.
2577 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2579         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2580         `postpro' command in DESC file.  Get spooler command from `print'
2581         command in DESC file.  Execute spooler command with /bin/sh.
2583         * groff/groff.cc: Split Unix-specific parts into...
2584         * groff/pipeline.c: New file.
2586         * LICENSE: Delete.
2587         * COPYING: New file.
2588         * all files: Update copyright notices.
2590         * Rearrange files.  Redo Makefiles.  Use autoconf.
2592 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2594         * troff/input.c (charinfo_to_node_list): Interpret character
2595         definition with escape_char of `\'.
2597 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2599         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2600         Define INT_DIGITS as big enough for 64-bit integer.
2601         * lib/strtol.c: Don't include lib.h.
2602         * lib/lib.h: Delete ifdef __cplusplus stuff.
2604 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2606         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2607         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2608         get DESC from current directory.
2610 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2612         * tbl/main.c (main): Always reset the line number when reading
2613         from stdin.
2615         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2616         table::define_bottom_macro, table::do_row, table::do_top): Round
2617         vertical spacing up to vertical resolution.
2619 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2621         * ps/ps.h (enum resource_type): Avoid comma at end of
2622         enumerator-list.
2623         * dvi/dvi.c (class dvi_printer): Likewise.
2624         * dvi/tfmtodit.c (gf::load): Likewise.
2625         * refer/label.y (struct expression): Likewise.
2626         * refer/refer.c (class label_processing_state): Likewise.
2627         * refer/indxbib.c (do_file): Likewise.
2628         * troff/troff.c (enum warning_type): Likewise.
2629         * tbl/main.c (process_data): Likewise.
2630         * troff/charinfo.h (class charinfo):
2632 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
2634         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
2636 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
2638         * groff.c: Move to new groff subdirectory.
2639         * groff/Makefile: New file.
2640         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2642         * man/mdate.sh: Use ls -L if supported.
2644         * Consolidate all header files produced by gendef into lib/defs.h.
2645         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2646         Don't include path.h.
2647         * lib/Makefile (path.h): Don't generate.
2648         * troff/input.c: Include defs.h. Don't include config.h.
2649         * troff/Makefile (config.h): Don't generate.
2650         * refer/index.h: Don't include suffix.h.
2651         * refer/index.c: Include defs.h.
2652         * refer/indxbib.c: Include defs.h.
2653         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2654         defs.h.
2655         * refer/Makefile (suffix.h, path.h): Don't generate.
2656         * groff.c: Don't include config.h. Include defs.h.
2657         * Makefile (config.h): Don't generate.
2658         (lib/defs.h): Generate.
2659         (topclean): Remove lib/defs.h.
2661 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
2663         * lib/malloc.c, lib/getpagesize.h: Deleted.
2664         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
2665         related stuff.
2666         * lib/Makefile: Delete malloc-related stuff.
2667         * lib/new.c: Workaround COOKIE_BUG if necessary.
2669         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
2670         needed header files directly.
2671         * refer/refer.h: Omit definition of DEFAULT_INDEX.
2672         * Makefile: Include definition of DEFAULT_INDEX in path.h.
2674 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
2676         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2677         argument.
2678         * lib/font (font::load_desc, font::load): Don't split argument of
2679         unknown command.
2680         (font::handle_unknown_font_command): Change type.
2681         * ps/ps.c (ps_font::handle_unknown_font_command,
2682         handle_unknown_desc_command): Change type.
2683         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2685 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
2687         * lib/font.h (font::handle_unknown_font_command): Add file and
2688         line arguments.
2689         * lib/font.c (font::handle_unknown_font_command):
2690         * ps/ps.c (ps_font::handle_unknown_font_command):
2691         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2692         lineno arguments.  Use _with_file_and_line functions for error
2693         reporting.
2695         * lib/fontfile.c (font::unknown_desc_command_handler): New static
2696         data member.
2697         * lib/font.c (font::set_unknown_desc_command_handler): New
2698         function.
2699         (font::load_desc): For unknown commands, call
2700         unknown_desc_command_handler if not null.
2701         * lib/font.h (class font): Declare them.
2702         (FONT_COMMAND_HANDLER): New typedef.
2703         * ps/ps.c (handle_unknown_desc_command): New function.
2704         (main): Set bflag if we had a -b option. Call
2705         font::set_unknown_desc_command_handler.
2706         (broken.h): Don't include.
2707         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
2708         submake 
2709         * ps/devps/Makefile: Add `broken' command to DESC file using
2710         BROKEN_SPOOLER_FLAGS.
2712         * macros/tmac.e ([, ]): Add as synonyms for { and }.
2714         * macros/tmac.e ($p): Only exdent if \$3 > 0.
2716         * macros/tmac.e (@R, @S): New macros.
2717         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2718         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2719         Declare $H, $[0-9], .. macros with @S.
2720         Declare |0, |1, |2, |3 strings with @S.
2722         * macros/tmac.e (@S): Rename to @U.
2724         * macros/tmac.e (@z): Define @b and bp as empty instead of
2725         deleting them,
2727         * macros/tmac.e (@m): Deleted.
2728         (@h): Don't call @m.
2729         (@z): Don't set @m trap.
2731         * macros/tmac.e ($h, $f): Define |z as empty string.
2733         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2734         (@q): Likewise.
2736         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2737         removing them.
2738         ()f): Likewise for * register.
2740         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2741         argument is missing, don't change $R.  Call sr with three
2742         arguments when initializing.
2744 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
2746         * macros/tmac.e (sr): New macro.
2747         Initialize $r and $R using sr.
2749         * macros/tmac.e (,): Delete \*(#[.
2751         * troff/env.c (set_tabs): Read the tab type even if the position
2752         is bad.  Allow the position of the first tab stop to be negative.
2754 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
2756         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2757         _POSIX_VERSION.
2758         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2759         rather than -DPATHCONF_MISSING.
2760         * Makefile: Get rid of PATHCONF_MISSING.
2762         * refer/map.c: New file.
2763         * refer/index.c: Interface to mmap through map.c.  Rename map_size
2764         to map_len.
2765         * refer/Makefile: Handle map.c.
2766         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2768 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
2770         * Makefile: RANLIB should be `true' if there is no ranlib.
2771         * lib/Makefile (libgroff.a): Simplify.
2772         * driver/Makefile (libdriver.a): Simplify.
2774         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2775         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
2776         defined.
2778 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
2780         * troff/env.c (compare_ranges): Declare as extern "C".
2782         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2784         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2786 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
2788         * pic/troff.c (troff_output::text): Merge in grops_output::text,
2789         but conditionalize use of \X based on \*(.T.
2790         (grops_output::*): Deleted.
2791         * pic/output.h: Delete declaration of make_grops_output.
2792         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
2793         by default. -n sets it to 0.
2794         (usage): Corresponding changes.
2795         * groff.c (main): Don't pass -x or -p to pic.
2796         * groff.sh: Likewise.
2798         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2799         to be non-zero.
2801         * ps/devps/afmtodit: Change calculation of asc_boundary and
2802         desc_boundary.  Make these bounds inclusive.
2803         * ps/devps: Regenerate font files.
2805 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
2807         * macros/tmac.latin1: New file.
2808         * macros/tmac.tty-char: Use tmac.latin1.
2809         (tmac.tty-tr): Deleted.
2810         * macros/Makefile: Install tmac.latin1.
2811         * macros/tmac.dvi: Use tmac.latin1.
2812         * macros/troffrc: Translate \[char160] onto no-break space here.
2813         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2815 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
2817         * macros/tmac.Xps: Use `do' request.
2819         * macros/tmac.ps: Use `do' request.
2821         * macros/tmac.e (@C): Use `do' request.
2823         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2824         * macros/Makefile: Install tmac.X*.
2826         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2827         * tty/Makefile: Don't install tmac.tty*.
2828         * macros/Makefile: Install tmac.tty*.
2830         * dvi/tmac.dvi: Move to macros.
2831         * dvi/Makefile: Don't install tmac.dvi.
2832         * macros/Makefile: Install tmac.dvi.
2834         * ps/tmac.ps*: Move to macros.
2835         * ps/Makefile: Don't install tmac.ps*.
2836         * macros/Makefile: Install tmac.ps*.
2838         * eqn/box.c: Provide draw_lines parameter corresponding to -D
2839         option.
2840         * macros/eqnrc: Set draw_lines parameter based on device.
2841         * groff.c: Don't pass -D flag to eqn.
2842         * groff.sh: Likewise.
2843         * eqn/main.c: Warn about use of -D.
2845         * troff/input.c (process_startup_file): New function.
2846         (main): Call process_startup_file().
2847         * macros/troffrc: New file.
2848         * macros/Makefile: Install troffrc.
2849         * groff.c (main): Don't pass extra -m option to troff. For a 
2850         pseudo device pass the name of the pseudo device to troff using
2851         -d.
2852         * groff.sh: Likewise.
2853         * groff.c (possible_command::prepend_arg): Deleted.
2855         * troff/input.c (do_request): New function.
2856         (init_input_requests): Bind "do" to do_request.
2858         * eqn/main.c (main): Instead of loading eqnchar from device directory,
2859         load eqnrc from macro directory.
2860         * macros/eqnrc: New file.
2861         * macros/Makefile: Install eqnrc.
2862         * ps/devps/eqnchar: Deleted.
2863         * ps/devps/Makefile: Don't install eqnchar.
2864         * dvi/devdvi/eqnchar: Deleted.
2865         * dvi/devdvi/Makefile: Don't install eqnchar.
2866         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2867         variable optM.
2869         * lib/device.[ch]: New files.
2870         * lib/font.h (font::set_device_name, font::get_device_name):
2871         Deleted.
2872         * lib/fontfile.c: Use device.h.
2873         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2874         * troff/input.c: Delete definition of `device'.
2875         (main): Don't initialize device.
2876         * troff/troff.h: Include device.h rather than declaring device.
2877         * troff/Makefile: No need to handle DEVICE.
2878         * driver/input.c: Include device.h. Don't use
2879         font::{set,get}_device_name.
2880         * groff.c, Makefile: Rename device.h to config.h.
2881         * groff.c: Use library device variable.
2882         * eqn/main.c: Use library device variable.
2883         * eqn/Makefile: No need to handle DEVICE.
2885         * lib/searchpath.[ch]: New files.
2886         * lib/Makefile: Handle searchpath.[ch].
2887         * troff/input.c (open_file, init_dirs): Deleted.
2888         (macro_dirs): Deleted.
2889         (open_mac_file, macro_source): Use class search_path.
2890         (add_string, struct string_list): Move definition.
2891         (main): Change -M option to use macro_path. Delete call to
2892         init_dirs().
2893         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2894         Rewrite to use class search_path.
2895         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2896         * lib/Makefile: fontfile.c depends on searchpath.h.
2897         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2898         MACROPATH.
2899         * lib/macropath.[ch]: New files.
2900         * troff/Makefile: No need to handle MACROPATH.
2902         * troff/input.c: Delete DUMP code.
2903         * lib/fontfile.c, lib/font.h: Delete
2904         font::forget_command_line_font_dirs.
2906         * troff/input.c (push_token): New function.
2907         (handle_first_page_transition): Use push_token().
2908         (process_input_stack): Change handling of a space at the beginning
2909         of the line.
2911 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
2913         * troff/input.c (font_dirs): Delete unused variable.
2915         * eqn/lex.c (do_set): Correct error messages.
2917 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
2919         * troff/input.c (do_define_string): Allow the string name to be
2920         followed immediately by a tab.
2921         (define_character): Likewise.
2923 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
2925         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2926         be negative.
2928         * troff/input.c (input_iterator::is_file): New virtual function.
2929         (file_iterator::is_file): New function.
2930         (input_stack::end_file): New function.
2931         (input_stack::next_file): Handle the situation where there is no
2932         file on the input stack correctly.  Avoid making two passes over
2933         the input stack.
2934         (next_file): Make the filename optional; in this case call
2935         input_stack::end_file().
2937 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
2939         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2940         produce a real _ charater when the current font is CW and _
2941         otherwise.
2943         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2944         expression to work around gcc 2.2 bug.
2946 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
2948         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2950         * troff/env.c (environment::add_padding): New function.
2951         (environment::add_char): Use add_padding().
2952         (environment::space): Likewise.
2953         (environment::wrap_up_field): Add some padding if there is none
2954         and there's no current tab.
2955         * troff/env.h: Declare environment::add_padding.
2957 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
2959         * pic/pic.y: undef fmod and rand before declaring them.
2961 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
2963         * troff/input.c (main): If the DESC file specifies a font name of
2964         0, then leave the corresponding font position empty.
2966         * nroff.sh: New file.
2967         * Makefile (install.nobin): Install nroff.sh.
2969         * tty/devlatin1/R.proto: Add ao as synonym for de.
2970         * tty/tmac.tty-char: Define ao as o.
2972         * tty/dev{ascii,latin1}/R.proto: Add aq.
2973         * tty/tmac.tty-char: Delete definition of aq.
2975 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
2977         * troff/input.c (init_charset_table): Don't translate 0240.
2978         * ps/tmac.ps: Translate char160 to space.
2979         * dvi/tmac.dvi: Likewise.
2980         * tty/tmac.tty: Likewise.
2982 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
2984         * dvi/tmac.dvi: Add support for all Latin-1 characters.
2986         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2987         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2988         \(oe, \(r?, \(r!.
2990         * tty/tmac.tty-char: Add \(ah.
2992         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2993         No need to define \(FM and \(!/. Conditionalize all character
2994         definitions.
2996         * ps/devps/lgreekmap: Add +h, +f, +p.
2998         * ps/tmac.psnew: New file.
2999         * ps/Makefile: Install tmac.psnew.
3001         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3002         character definitions in compatible mode.
3004         * troff/input.c (remove_character): New function.
3005         (init_input_requests): Bind remove_character to "rchar".
3007         * ps/tmac.psold: New file.
3008         * ps/Makefile: Install tmac.psold.
3009         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3010         characters into tmac.psold.  Make these definitions unconditional.
3012         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3014         * ps/tmac.ps: Don't define \('c and \('C.
3016         * ps/devps/textmap: Move Greek characters to...
3017         * ps/devps/symbolchars:
3019 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3021         * ps/devps/text.enc: Add quotesingle.
3022         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3023         * tty/tmac.tty-char: Likewise.
3024         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3025         * dvi/devdvi/texi.map: Add Fn.
3026         * dvi/devdvi/msam.map: Add lz.
3027         * dvi/tmac.dvi: Handle Bq, bq, aq.
3029         * pic/lex.c (get_token): Recognize 'th.
3030         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3032 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3034         * ps/devps/textmap: Move di, mu, +- to...
3035         * ps/devps/symbolchars:
3037         * macros/tmac.s (@XS): Don't call par@reset or fi.
3038         (XA): Call LP. Turn off adjustment. Reduce line length.
3040         * macros/tmac.s: Initially alias XS to LP.
3041         (XS): Rename to @XS.
3042         (cov*ab-init): Alias XS to @XS.
3044 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3046         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3047         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3048         (token::is_size, token::changes_env): Deleted.
3049         * troff/number.c (parse_term): No need to process \s explicitly.
3050         Call tok.next() only after scale indicator has been processed.
3051         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3052         \f etc explicitly.
3053         (token::next): Handle \s, \f, \S, \H immediately rather than
3054         returning them as tokens.
3055         (token::operator==, token::description, token::add_to_node_list,
3056         token::process): Remove handling of deleted tokens.
3058         * troff/env.c (environment::add_char): When adding padding
3059         indicator character, call start_line() if necessary.
3061 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3063         * ps/devps/afmtodit: Don't output 0 kerns.
3065         * ps/devps/afmtodit: Remove directory from name of encoding in
3066         font description file.
3068         * ps/devps/afmtodit: Improve error messages.
3070         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3072         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3073         * ps/devps/FontMakefile: Deleted.
3074         * ps/devps/afmname: New file.
3076         * ps/devps/symbol.sed: New file.
3077         * ps/devps/symbol.diff: Deleted.
3078         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3079         Generate zapfdr.afm from zapfd.afm.
3081         * tty/tmac.tty (tty-char): Prefix definition with ".
3083         * macros/tmac.an (TP): Don't start a diversion if one has already
3084         been started.
3086         * tty/tmac.tty-char: Add Latin-1 characters.
3088         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3090 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3092         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3093         Move declaration of struct horizontal_span.
3095         * tbl/table.c (table::table): Initialize span_list.
3096         (table::~table): Delete span_list.
3098         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3100         * ps/devps/Makefile: Avoid dependency on GNU make.
3102         * ps/tmac.ps: Check that character does not already exist before
3103         defining it.
3105         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3106         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3107         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3108         files.
3110         * tty/tmac.tty-char: New file.
3111         * tty/Makefile: Install tmac.tty-char.
3112         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3113         tmac.tty-char.
3115         * tty/tmac.tty: Fix definition of \(34.
3117         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3118         bracket-drawing characters onto |. Add *o.
3120         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3121         only if current_field.
3123         * troff/dictionary.c (dictionary::lookup): Free old_table after
3124         rehashing. 
3126 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3128         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3129         whose glyphs are identical to glyphs of some Roman character.
3131         * tty/devlatin1/R.proto (bu): Deleted.
3132         * tty/devascii/R.proto (bu): Deleted.
3133         * tty/tmac.tty: Add definition of \(bu.
3135         * eqn/main.c (do_file): Pass FILE as argument.
3136         (main): Automatically load eqnchar.  New options -F and -n.
3137         Pass do_file an opened FILE.
3138         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3139         No need to include font.h.
3140         * groff.sh: Likewise.  Don't need to use - for standard input.
3141         Prefix files with -- if first file starts with -.
3143         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3145         * troff/env.c (environment::possibly_break_line): Don't set line
3146         to 0 across call to output_line().  Don't call output_line() until
3147         after discarding nodes after break.
3149 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3151         * request.h (macro::empty): Declare it.
3152         * input.c (macro::empty): New method.
3153         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3154         macro is empty.
3156 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3158         * troff/env.c (environment::start_field): Decrement space_total
3159         when a space is frozen.
3161 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3163         * macros/tmac.an (R): Delete macro.
3165         * troff/input.c (get_copy, token::next): Support \# (like \" but
3166         newline is ignored).
3168         * troff/input.c (token::next): Fix error message in 'Y' case.
3170 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3172         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3173         a delimiter name.
3175 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3177         * c++test.c: Include <osfcn.h>.
3179         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3180         <errno.h> doesn't.
3182 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3184         * tbl/table.c (table::divide_span): Don't count column separation
3185         if expand was specified.
3187         * tbl/main.c (process_format): Don't ignore width specs in
3188         continued format.  Give warning for changing equal widths or
3189         column separation in continued format.
3190         (process_data): Set column separation, minimum width, equal
3191         columns at end of table.
3193 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3195         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3196         node::add_discretionary_hyphen): Use soft_hyphen_char.
3197         (set_soft_hyphen_char): New function.
3198         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3200         * Makefile (c++tested): Give more helpful message if test fails.
3202 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3204         * troff/input.c (init_charset_table): Translate 0240 to
3205         an unbreakable space.
3207         * troff/token.h (token::hyphen_indicator): New function.
3208         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3209         translation.
3210         * troff/input.c (translate): Allow translation to \%.
3211         * troff/node.c (node::add_char): Handle
3212         TRANSLATE_HYPHEN_INDICATOR.     
3213         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3215         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3216         for \(hy.
3218         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3220 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3222         * groff.c (run_commands): If the last command gets a SIGPIPE send
3223         a SIGPIPE to all children than haven't yet terminated.  When
3224         command terminates, set pid field to -1.
3226 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3228         * groff.c (main): Pass an appropriate -filename option to gxditview.
3230 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3232         * Makefile.bd (install): Remove existing program before copying.
3234         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3235         programs which have Unix counterparts to be installed with
3236         user-specified prefix.
3238         * troff/input.c (exit_troff): Don't check if exit_started.
3239         (exit_request): Don't call exit_troff if exit_started.
3241         * Makefile.bd (install.mm): Rename to install.dwbmm.
3243 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3245         * driver/input.c (do_file): Add missing break for '#' case.
3247 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3249         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3250         then add the boundaries back.
3252         * troff/input.c (exit_troff): Return immediately if already
3253         exiting.
3255         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3256         end macro.
3257         (pg*end-page): If the text has ended and there are no more
3258         footnotes or keeps, exit.
3260         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3262         * troff/input.c (init_charset_table): Make \(rq transparent by
3263         default.
3265         * macros/tmac.an: Define lq and rq strings.
3267         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3269 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3271         * troff/env.c (environment::final_break): New function.
3272         (environment::newline): Set prev_line_interrupted to 2 if
3273         exit_started.
3274         * troff/env.h: Declare environment::final_break.
3275         * troff/input.c (exit_troff): Call environment::final_break()
3276         instead of environment::do_break().
3278         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3279         doesn't already exist.
3280         * macros/man.local: New file.
3281         * macros/tmac.an: Load man.local.
3282         * macros/man.ultrix: New file.
3284 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3286         * troff/input.c (exit_groff): Rename to...
3287         (exit_troff): New function.
3289         * troff/div.c (exit_started, done_end_macro,
3290         seen_last_page_ejector): New global variables.
3291         (began_page_in_end_macro): New static variable.
3292         (exit_flag): Deleted.
3293         (top_level_diversion::top_level_diversion): Initialize
3294         last_page_count.
3295         (top_level_diversion): More elaborate test for whether
3296         cleanup_and_exit() should be called.
3297         Set began_page_in_end_macro if the end macro isn't yet finished.
3298         * troff/div.h (top_level_diversion::last_page_count): New data
3299         member.
3300         (top_level_diversion::set_last_page): New function.
3301         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3302         * troff/env.c (do_break): Zero prev_line_interrupted.
3303         * troff/input.c (exit_flag): Delete declaration.
3304         (LAST_PAGE_EJECTOR): New magic cookie.
3305         (token::next): Handle LAST_PAGE_EJECTOR.
3306         (exit_groff): Set exit_started and done_end_macro instead of
3307         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3308         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3309         another ejection after setting seen_last_page_ejector.
3311 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3313         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3315         * macros/tmac.e (TH): Make sure there's room for the initial
3316         header.
3318         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3319         Set FVS in points rather than units.
3321 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3323         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3324         position of empty slots.
3326 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3328         * ps/devps/S: Fix height and depth of parenrightex.
3329         * ps/devps/symbol.diff: Regenerate.
3331 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3333         * tmac.e (u): Do underlining as in -mgs.
3335 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3337         * tty/tty.c (tty_printer::end_page): If overstriking is
3338         suppressed, still turn overstruck horizontal and vertical lines
3339         into +.
3341         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3342         2.1.
3344         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3346 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3348         * Version 1.05 released.
3350 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3352         * tty/tty.c: Instead of keeping an array of glyphs and then
3353         sorting it, keep a ordered linked list of glyphs for each line.
3355         * driver/driver.h: Include stddef.h.
3357         * tty/tty.c (compare_glyph):
3358         * refer/refer.c (rcompare):
3359         * troff/env.c (compare_ranges): Arguments of qsort comparison
3360         function should be const void *.
3362         * troff/number.c (parse_term):
3363         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3364         switch statement.
3366         * refer/label.y (consider_authors): Don't access variables
3367         constructed under a condition outside that condition: put braces
3368         round for statement containing declaration; redeclare use of same
3369         variable later.
3371         * pic/pic.y (text_expr): Delete production that allows
3372         parenthesised text_expr.
3373         (expr): Allow a conditional_expr to appear in parentheses.
3374         (conditional_expr): Rename to any_expr.
3376         * mm: Install new version 1.01 from jh.
3378         * lib/font.c (font::get_width): Cache scaled widths.
3379         (font::font): Initialize widths_cache.
3380         (font::~font): Destroy widths_cache.
3381         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3383 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3385         * c++test.c, c++test.ref: New files.
3386         * Makefile: Check that the C++ compiler works.
3388         * ps/tmac.pspic (PSPIC): Do a break.
3390         * ps/tmac.ps: Move definition of PSPIC into...
3391         * ps/tmac.pspic: New file.
3392         (PSPIC): Draw box around picture, but make it invisible to grops.
3393         * ps/tmac.ps: Load tmac.pspic.
3394         * ps/Makefile: Install tmac.pspic.
3396 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3398         * lib/font.c (scale_round): If n is negative,
3399         subtract .5 before truncating floating point result.
3401         * lib/fontfile.c: Include <errno.h>.
3403 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3405         * driver/input.c (get_char): Inline. Don't update current_lineno.
3406         Change callers to up date current_lineno if necessary.
3407         Use get_char() instead of getc(current_file).
3409 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3411         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3413 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3415         * tty/tty.c (tmac.tty): Define \(rg as (R).
3417 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3419         * lib/lib.h: New define a_delete.
3420         * Use a_delete instead of delete when deleting an array of objects
3421         without destructors.
3423         * lib/lib.h: Rename adelete to ad_delete.
3424         * Change uses of adelete.
3426 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3428         * eqn/eqn.y: Include lib.h.
3430         * troff/node.c (grow_font_table): Delete old_font_table.
3432         * mm: Install new version from jh.
3434 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3436         * tbl/table.h (format_type): Make global instead of local to class
3437         entry_format.  Prefix enumerators with FORMAT_.
3438         * tbl/table.c, tbl/main.c: Corresponding changes.
3439         * refer/token.h (token_type): Make global.  Prefix enumerators
3440         with TOKEN_.
3441         * refer/token.[ch]: Corresponding changes.
3442         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3444         * troff/div.c (node::set_vertical_size): Don't name argument.
3446 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3448         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3449         * lib/lib.h: Define adelete accordingly.
3450         * pic/object.c (graphic_object::graphic_object):
3451         * tbl/main.c (format::~format):
3452         * tbl/table.c (table::~table):
3453         * refer/ref.c (reference::~reference, reference::merge,
3454         reference::insert_field, reference::delete_field): Use adelete.
3456         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3457         * refer/token.h:
3458         * tbl/table.h: Corresponding changes.
3460         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3461         Ensure total_angle is positive.
3463 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3465         * refer/ref.c (reference::merge, reference::insert_field,
3466         reference::delete_field): Avoid delete[0].
3468         * refer/token.c (init_special_chars): Move calls to cmupper
3469         outside calls to init_two_char_letter to work around bug in gcc
3470         2.0.
3472 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3474         * lib/new.c (operator new): Use __builtin_new for g++.
3476         * pic/object.c (graphic_object::~graphic_object):  Don't use
3477         delete [] on 0.
3479         * pic/object.c (output::compute_scale): Initialize max_width and
3480         max_height.
3482 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3484         * troff/input.c (write_request): Call fflush.
3486         * troff/node.h (class composite_node): Move declaration to node.c
3487         * troff/input.c (charinfo_to_node): Rename to ...
3488         (charinfo_to_node_list): Return node list rather than composite
3489         node.
3490         * troff/node.c (make_composite_node): New function.
3491         (make_node, add_char): Call make_composite_node instead of
3492         charinfo_to_node.
3493         (class composite_node): Add a tfont * member.  Delete font_size
3494         member.
3495         (composite_node::composite_node, composite_node::copy,
3496         composite_node::size): Corresponding changes.
3497         (composite_node::tprint): Provide constant spacing, emboldening
3498         and track kerning as specified in tfont.
3499         (composite_node::width): Change width calculation accordingly.
3500         * troff/env.h (environment::composite): New member.
3501         (environment::is_composite, environment::set_composite): New
3502         functions.
3503         * troff/env.c (environment::environment): Initialize composite.
3504         * troff/input.c (charinfo_to_node): Call
3505         environment::set_composite.
3506         * troff/node.c (make_composite_node, make_glyph_node): Use the
3507         plain version of the tfont if the environment is composite.
3509         * troff/node.c (font_info::get_space_width): Additional argument
3510         giving space_size.  Handle constant space correctly. Scale by
3511         space_size unless constant spaced.
3512         (env_sentence_space_width): New function.
3513         * troff/node.h: Declare it.
3514         * troff/env.h (environment::get_space_size,
3515         environment::get_sentence_space_size,
3516         environment::get_narrow_space_width,
3517         environment::get_half_narrow_space_width): Make inline.
3518         (environment::get_space_width): Make inline.  Just call
3519         env_space_width.
3520         * troff/env.c: Delete definitions for funtions made inline.
3521         (environment::space_newline, environment::space): Use
3522         env_sentence_space_width(). Don't scale by space_size.
3523         * troff/node.h: Move declarations of env*space_width() functions
3524         into env.h.
3526 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3528         * macros/tmac.s (PS): Don't try to set negative indent.
3530 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3532         * pic/pic.y: Fix min function.
3534 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3536         * man/mdate.sh: Clear LANGUAGE.
3538 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3540         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3541         * pic/lex.c: New COMMAND keyword.
3542         * pic/pic.y (print_args, print_arg): New rules.
3543         (placeless_element): Use print_args for PRINT.
3544         New COMMAND element.
3546 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3548         * troff/input.c (terminal): Handle missing argument correctly.
3550         * pic/pic.y (text_expr): New rule.
3552         * pic/pic.y: Implement := operator.
3554 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3556         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3557         mdoc.
3559 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3561         * ps/devps/dingbatsrmap: Include this in the distribution.
3563         * macros/tmac.doc: Replace with new version from 2nd Networking
3564         Release. Fix loading of doc-* files.
3565         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3566         * macros/tmac.doc.old: New file.  Apply fixes that had been
3567         applied to old tmac.doc.
3568         * macros/tmac.andoc: Check that we're running under groff.
3569         * macros/Makefile: Rework.
3571 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3573         * tbl/table.h (format_type): 
3574         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3575         typedef to make these types visible at file scope.
3576         * Makefile: Add NESTED_TYPES configuration option.
3578         * troff/div.c (mark): At the top level use the value of
3579         nl_reg_contents rather than the current vertical position.
3581 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3583         * tty/tty.c: Implement \D for horizontal or vertical lines.
3584         (tty_printer::set_char): Use vec_used+2 as serial number.
3585         Don't allow size of vector to exceed USHRT_MAX-2.
3586         Split off part into...
3587         (tty_printer::add_char): New function.
3588         (tty_printer::draw): New function.
3589         (compare_glyph): Handle equal serial numbers.
3590         (tty_printer::end_page): Handle overstruck characters from \D.
3591         (main, usage): Implement -d option.
3593 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3595         * tbl/main.c (process_format):
3596         * eqn/text.c (split_text):
3597         * troff/input.c (token::next): Use inner block for declarations
3598         with initializers in switch statement.
3600 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3602         * pic/common.c (common_output::dash_line): Cope with zero-length
3603         lines.
3605 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3607         * Version 1.04 released.
3609 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3611         * macros/tmac.an (TH): Define a macro an-init to define variables
3612         based on command line arguments.
3613         (an-header): Call it.
3615 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3617         * Makefile (install.mm): Rename to install.dwbmm.
3619         * Makefile: Integrate mm.
3620         * mm: New directory.
3622 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
3624         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3625         <sys/types.h>.
3627         * pic/troff.c (troff_output::simple_spline,
3628         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3629         shadowing parameter.
3631         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3633         * lib/ptable.h: Add explicit casts when converting from unsigned
3634         long to unsigned.
3636         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3637         * dvi/devdvi/Makefile: Install SA, SB.
3639         * refer/indxbib.c: Add declaration of mktemp.
3641         * refer/lookbib.c: Add declaration of isatty.
3643 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
3645         * pic/lex.c (interpolate_macro_with_args):  While collecting
3646         arguments, keep track of whether we're in a string.
3648 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
3650         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3651         down with \v, so as to avoid problems with top of page trap
3652         setting no space mode.
3654 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
3656         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3658 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
3660         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3661         Improve error message.
3663 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
3665         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3666         printf("%03o");
3668 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
3670         * groff.c (possible_command::execp): Always use _exit() after a
3671         failed exec.
3673         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3674         NO_SYS_WAIT_H   configuration options.
3675         * groff.c: Use these options.  Use POSIX-style macros to extract
3676         fields from the status returned by wait().
3678 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
3680         * tbl/table.c (table::compute_separation_factor): Allow the
3681         separation factor to drop to 0.
3683 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
3685         * refer/search.c: Include <errno.h>.
3687 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
3689         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3691         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3692         C++. 
3694         * pic/lex.c (input_stack::bol): Move definition out of class body.
3696         * pic/main.c: On MSDOS munge argv[0].
3698         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3700         * lib/ptable.c (hash_string): Use unsigned long rather than
3701         unsigned.
3702         (next_ptable_size): Use unsigned rather than int.  Give an error
3703         message if we've hit the largest table size.
3704         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
3705         table size.
3707         * pic/object.h (object_spec): Make flags unsigned long.  Declare
3708         flags as const unisgned long rather than as enums.
3710         * pic/output.c: Deleted.
3712         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3714         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3715         Add additional argument.
3716         (line_entry::note_double_vrule_on_{left,right}): Set value of
3717         douvle_vrule_on_{right,left} flag according to argument.
3718         (simple_line_entry::simple_print,
3719         simple_line_entry::double_line_print): If adjacent to double vrule
3720         on a corner extend rather than shorten the rule by half the double
3721         vrule sep.
3723         * troff/number.c (parse_term): In checking for overflow, handle the
3724         case where the current horizontal position is negative.
3726 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
3728         * pic/object.c (draw_arrow): Check for object having zero length.
3730 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
3732         * eqn/main.c (do_file): Split off inline equation handling into...
3733         (inline_equation): New function.  Search for starting delimiter
3734         using...
3735         (delim_search): New function. Don't recognize a delimiter that
3736         occurs in the name of an escape sequence, number register, string
3737         etc.
3739 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
3741         * eqn/delim.c (delim_box::compute_metrics): Don't call
3742         define_extensible_string if left is 0.
3743         (delim_box::output):  Don't print the left delimiter if left is 0.
3744         (delim_box::debug_print): Check for left == 0 before calling printf.
3746 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
3748         * troff/Makefile (majorminor.c): Include only digits in
3749         minor_version.
3751 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
3753         * refer/dirnamemax.c: new file.
3754         * refer/genlimits.c: Deleted.
3755         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3756         Don't check path length.
3757         * refer/Makefile: Add dir_name_max.o; delete genlimits.
3758         * Makefile: Add PATHCONF_MISSING option.
3760         * refer/indxbib.c (get_cwd): New function.
3761         (main): Use get_cwd().
3762         * lib/getcwd.c: New file.
3763         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3764         GETCWD in SUBFLAGS.
3765         * lib/Makefile: Compile getcwd.o.
3767         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3768         userdict.
3770         * refer/indxbib.c (main): Check success of mktemp.
3772         * lib/tmpfile.c: New file.
3773         * lib/Makefile: Add tmpfile.c.
3774         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3775         * ps/ps.h: Delete declaration of mktemp().
3776         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3777         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3778         * driver/driver.h: No need now to include errno.h.
3780         * everywhere: Set errno to 0 before calling fopen().
3782         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3783         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3784         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3786 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
3788         * troff/env.h (translate_space_to_dummy): Declare it.
3789         * troff/env.c (environment::space_newline, environment::space):
3790         If translate_space_to_dummy is set then make the width of spaces 0.
3791         * troff/input.c (translate): If the second character of a
3792         translation is a space, translate to unbreakable space.  If the
3793         first character is a space, set or clear translate_space_to_dummy
3794         according to whether the second character is \&.  Weird!
3796 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
3798         * groff.c (run_commands): Don't use non-zero exit code because a
3799         command gets SIGPIPE.
3801         * groff.c, groff.sh: Use -mXps with -TXps.
3803         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3804         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3805         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3806         (ps_printer::special): New specials invis and endinvis.
3807         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3808         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
3809         (ps_printer::end_page): Check that invis_count == 0.
3810         (ps_printer::invis_count): New member.
3811         (ps_printer::ps_printer): Initialize invis_count to 0.
3813         * troff/env.c (environment::hyphenate_line): Hyphenation
3814         indicator at beginning of word inhibits splitting after -, \(em
3815         etc.
3817         * pic/pic.y (element): Allow another element to follow } without
3818         any intervening separator.
3820 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
3822         * pic/lex.c (get_delimited): Allow tabs before delimiter.
3824 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
3826         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
3827         declaration of wait() in header files.
3828         * Makefile: Get rid of -DHAVE_UNION_WAIT.
3830         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3832         * lib/lib.h: Declare return type of strerror as char *.
3834         * man/Makefile: Add g flag to sed substitutions.
3835         * Makefile (shgroff, bindist): Likewise.
3837 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
3839         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3840         * ps/devps/prologue (PBEGIN): Define showpage after pushing
3841         userdict.
3843 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
3845         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3846         userdict.
3848 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
3850         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3851         group.
3853 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
3855         * troff/input.c (define_number_reg):  If currently undefined,
3856         don't define it if the argument is an invalid expression.
3858         * Makefile: Ignore return value of `if' commands without `else'
3859         parts.
3861         * Makefile: Split up CPPDEFINES into a series of separate
3862         configuration options.
3864         * troff/input.c (init_registers): Use time_t instead of long
3865         unless LONG_FOR_TIME_T is defined.  Use returned result rather
3866         than passing pointer.
3867         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3869         * lib/Makefile (fontpath.h): Use gendef.
3871 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
3873         * troff/input.c (input_iterator::shift): Delete argument name.
3874         * troff/node.c (suppress_output_file::really_begin_page,
3875         suppress_output_file::really_transparent_char, node::ascii_print,
3876         node::tprint): Delete names of unused arguments.
3878 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
3880         * refer/label.y (string):  Pass $4 to command_error.
3882 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
3884         * Version 1.03 released.
3886 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
3888         * Makefile: Pass definition of SHELL in SUBFLAGS.
3890         * gendef: New file.
3891         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3892         ps/Makefile: Use gendef to construct header files that are
3893         constructed from the Makefile.
3895         * macros/Makefile: make all should build stripped version of tmac.e.
3897         * refer/Makefile (clean): Remove y.output.
3899 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
3901         * ps/pfbtops.c (main): Add -v option which prints out a version
3902         number.
3903         * ps/Makefile (pfbtops): Link with libgroff.a.
3905 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
3907         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3908         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3910         * refer/lkbib.c (main): Always terminate reference with blank
3911         line.
3912         * refer/lookbib.c (main): Likewise.
3914         * refer/linear.c (file_buffer::load): Check that the file is not a
3915         binary file.
3917         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3918         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3919         Delete second inclusion of <sys/param.h>.
3921 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
3923         * troff/token.h (token::special): Deleted.
3925         * tbl/main.c (process_format): Rework so that opt->tab_char is
3926         recognized only when appropriate.
3928         * ps/Makefile (clean): Remove pfbtops.
3930 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
3932         * lib/font.c (text_file::next): Don't return if we have got a
3933         blank line.
3935 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
3937         * refer/refer.c (store_reference): Get hash code from old_table[i]
3938         when rehashing the table.
3940 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
3942         * eqn/box.c (box::top_level): Save size and prev size using \R and
3943         restore it afterwards. Set the size to the size at the beginning
3944         of the line.
3945         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3946         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3948         * refer/Makefile (limits.h): Use ./genlimits.
3950 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
3952         * refer/index.c: Delete declarations of stat() and fstat().
3954 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
3956         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3958 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
3960         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3962 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
3964         * troff/input.c (token::get_char): Handle \e.
3966         * refer/linear.c: Delete declarations of fstat() and stat().
3968 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
3970         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3971         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3973 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
3975         * troff/input.c (do_define_macro): Improve error handling for end
3976         of file while defining macro.
3978 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
3980         * eqn/box.h: Fix declaration of set_gsize.
3981         * eqn/box.c (set_gsize): Make argument const char *.
3982         (gsize): Declare as char *.
3983         * eqn/main.c (main): Don't convert gsize to int.
3984         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3986         * Version 1.02 released.
3988 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
3990         * macros/tmac.andoc: New file.
3991         * macros/Makefile: Install tmac.andoc.
3993         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3994         operator new and delete on OP_DELETE_BROKEN not being defined.
3995         * Makefile: Mention OP_DELETE_BROKEN.
3997 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
3999         * Makefile (bindist): Pass SUBFLAGS.
4001 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4003         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4005         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4006         parameter.
4008         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4010         * ps/ps.h, ps/psrm.c: Make comment_table and
4011         header_comment_table local to resource_manager::process_file.
4013         * groff.sh: With -TXps pass -printCommand option to gxditview.
4015         * groff.c (possible_command::print): Implement using
4016         append_arg_to_string.
4018         * xditview: Merge in new implementation with own ChangeLog.
4020 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4022         * groff.c (main): Implement PRINT_OPTION.
4023         (append_arg_to_string): New command.
4024         (device_table): Set PRINT_OPTION flag for Xps.
4026 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4028         * troff/groff.h: Rename to troff.h.
4030         * pic/lex.c (lookup_keyword, docmp): New functions.
4031         (get_token): Use new lookup_keyword.
4032         Don't include key.h.
4033         * pic/key.[ch], pic/pic.gperf: Deleted.
4034         * pic/Makefile: Remove gperf stuff.
4036         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4037         into output.h.
4038         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4040         * troff/Makefile, troff/node.c: Move definition of
4041         STORE_WIDTH into node.c.
4043         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4045 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4047         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4048         dvi/devdvi/texb.map: Add lq and rq.
4049         dvi/devdvi: Regenerate fonts.
4050         * ps/devps/textmap: Add lq and rq.
4051         * ps/devps: Regenerate fonts.
4052         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4053         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4055         * pic/object.c (position_rectangle): When checking radius
4056         cope with possiblity that width or height is negative.
4057         (box_object::box_object): Have separate xrad and yrad with
4058         signs matching signs of dim components.
4059         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4060         (box_object::print): With rounded boxes use absolute values
4061         for dim and rad arguments.
4063         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4064         in fontpath.h.
4066         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4068         * various files: Add explicit destructors to keep Saber CC +d
4069         happy.
4071 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4073         * eqn/box.c (box::top_level): Restore fonts correctly after
4074         font changes in line containing inline equation.  Also
4075         restore previous font as well as current font.
4076         * eqn/pbox.h: Define necessary string and register names.
4078         * troff/input.c (token::next): Case 'R' calls do_register.
4079         (do_register): New function.
4081 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4083         * groff.c, groff.sh: Support Xps device.  Allow each device
4084         to have a pseudo_name and a real_name.
4086         * groff.c (run_commands): Don't print `Broken pipe' messages.
4088         * ps/pfbtops.c: New file.
4089         * ps/Makefile: Add pfbtops.
4091         * troff/number.c (parse_term): Improved error message.
4093 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4095         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4097         * Makefile: Integrate refer.
4098         * refer: New directory.
4099         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4100         man/lkbib.man: New files.
4101         * man/Makefile: Support refer man pages.
4103         * lib/lib.h: Declare is_prime.
4104         * lib/prime.c: New file.
4106         * troff/input.c (macro_source): New function.
4107         (init_input_requests): Bind "mso" to macro_source.
4109         * troff/env.c (environment::possibly_break_line): Maintain
4110         pointer to pointer to node to be split in ndp so as to avoid
4111         using address of freed node.
4113         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4114         pointer to first node to be hyphenated in startp so as to
4115         avoid using address of freed node.
4117         * troff/env.c (class trie, class hyphen_trie): Make the
4118         elements of the trie be of type char not unsigned char.
4119         Declare arguments to be const char* instead of unsigned char *.
4120         
4121         * troff/env.c (hyphenate): Initialize hbuf[0].
4123         * troff/input.c (set_string): Declare p to be char * and cast
4124         *p to unsigned char when necessary.
4126         * troff/input.c (do_define_macro): Declare s to be const
4127         char*. Cast element to unisgned char when necessary, Declare
4128         d to be an int.  Handle EOF better.
4130         * troff/Makefile, troff/input.c: Different scheme for passing
4131         definitions of MACROPATH, HYPHENFILE and DEVICE.
4133 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4135         * tty/devascii/R.proto: Delete entry for em.
4136         * tty/devlatin1/R.proto: Likewise.
4138 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4140         * troff/input.c (translate): Stop when we get a space. Treat eof
4141         like newline.
4143         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4145 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4147         * tbl/main.c (process_format): A font name following a `f'
4148         modifier that starts with a digit can be only one character long.
4149         Also deal with EOF on the second character of the font name.
4151 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4153         * troff/input.c (token::next): Turn \~ into an
4154         unbreakable_space_node.
4155         * troff/node.c (unbreakable_space_node): New class.
4156         * troff/node.h: Declare it.
4158 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4160         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4161         it's >= 0, before outputting it as a single byte.
4163 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4165         * lib/font.c: Make font_char_metric::code an int.
4166         (font::get_code): Change return type to int.
4167         (font::load): Allow code to be arbitrary integer.
4168         * lib/font.h (font::get_code): Change return type to int.
4169         (font::number_to_index): Change argument type to int.
4170         * troff/input.c (token::next):  In case 'N', allow any value.
4171         Store value in token::val.
4172         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4173         (token::get_char, token::add_to_node_list, token::process): Get
4174         number from val.
4175         (charinfo::set_number): Change argument to int.
4176         (charinfo::get_number):  Require that NUMBERED flag be set.
4177         (get_charinfo_by_number): Store numbered characters not between 0
4178         and 255 in a dictionary.
4179         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4180         to int.
4181         (charinfo::number): Change type to int.
4182         (charinfo::set_number): Change type of set_number to int.
4183         * troff/node.c (troff_output_file::put_char_width,
4184         troff_output_file::put_char): Test whether character is numbered
4185         using charinfo::numbered().
4186         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4187         values of num.
4188         * lib/nametoindex.c: New implementation to cope with arbitrary
4189         number characters.
4191         * troff/input.c (token::operator==): Test val for
4192         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4193         TOKEN_SIZE.
4195         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4196         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4198 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4200         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4201         variable.
4203         * all Makefiles: rm targets of cp and >.
4205         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4206         it.
4208         * eqn/lex.c (def_table): Add dollar.
4210 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4212         * troff/input.c (do_width): Push back newline before closing delim
4213         like do_bracket.
4215 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4217         * groff.c (possible_command::prepend_arg): New function.
4218         (main): Prepend device -m option.
4219         * groff.sh: Put device -m options before command-line options.
4221 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4223         * macros/tmac.an (IP): Quote argument to TP.
4225         * ps/ps.c (main): New option -b, which sets...
4226         (broken_flags): New variable.
4227         (ps_printer::~ps_printer): Incorporate the setup section in the
4228         prolog if (broken_flags & NO_SETUP_SECTION).
4229         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4230         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4231         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4232         ps_printer::print_needed_font_comment,
4233         ps_printer::print_supplied_font_comment,
4234         ps_printer::print_include_font_comments,
4235         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4236         ps_printer::read_download_file, read_document_fonts, add_font,
4237         skip_line, parse_fonts_arg, document_font::document_font,
4238         document_font::~document_font, document_font::download,
4239         ps_output::include_file):  Deleted.
4240         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4241         rather than %!PS-Adobe-2.0.  Make calls to
4242         resource_manager::need_font for each font that we used. Replace
4243         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4244         print_supplied_font_comment, print_needed_font_comment by call to
4245         resource_manager::print_header_comments. Output %%Orientation
4246         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4247         Don't output the prolog directly.  Instead call
4248         resource_manager::output_prolog.  Only define #copies when ncopies
4249         > 1.  Delete calls to print_include_font_comments  and
4250         download_fonts.  Add call to resource_manager::document_setup.
4251         (ps_printer::do_file): Call resource_manager::import_file instead
4252         of including it ourselves.
4253         (ps_printer::do_import): Likewise.  Also don't call
4254         merge_import_fonts. Push userdict on the dictionary stack before
4255         and pop it afterwards.
4256         Move declaration of ps_output into ps.h.
4257         * ps/psrm.c: New file implementing resource_manager class.
4258         * ps/ps.h: New file declaring ps_output and resource_manager
4259         classes.
4260         * ps/devps/zapfdr.ps:
4261         * ps/devps/symbolsl.ps:
4262         * ps/devps/prologue:  Use 3.0 conventions.
4263         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4264         Add default definition of BROKEN_SPOOLER_FLAGS.
4265         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4266         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4268 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4270         * etc/grog.pl: New file.
4271         * Makefile (GROG): New variable.
4272         Add GROG to SUBFLAGS.
4273         * etc/Makefile (GROG): New variable.
4274         (install.nobin): Install $(GROG) rather than grog.sh.
4276 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4278         * eqn/special.c (special_box::compute_metrics): Make the input and
4279         output strings the same.  Get the new height and depth from the
4280         predefined height and depth registers.  Also make subscript kern
4281         and skew available.
4282         (special_box::compute_subscript_kern, special_box::compute_skew):
4283         New functions.
4285         * eqn/box.c (pointer_box::compute_skew,
4286         simple_box::compute_metrics, box::top_level)
4287         * eqn/text.c (prime_box::compute_metrics,
4288         prime_box::comput_subscript_kern)
4289         * eqn/limit.c (limit_box::compute_metrics):
4290         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4291         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4292         negative numbers in `nr' requests with a leading 0.
4294 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4296         * eqn/special.c: New file.
4297         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4298         Add new rule for simple.
4299         * eqn/lex.c (token_table): Add SPECIAL.
4300         * eqn/box.h: Declare make_special_box.
4301         * eqn/Makefile: Add special.[co].
4303 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4305         * ps/devps/prologue: Possibly set packing to true while defining.
4306         Create grops dictionary here.  Initialize local variables before
4307         defining procedures.
4308         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4309         the dictionary stack. Set strokeadjust and overprint to false if
4310         the relevant operators are defined.
4311         (PEND): New procedure.
4312         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4313         prologue.  Do everything else in the setup section.
4314         (ps_printer::do_import): Just call PBEGIN and PEND around the
4315         picture. Also push userdict before, and pop it afterwards.
4317 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4319         * troff/node.c (bracket_node::tprint): Brackets were being printed
4320         1m too low.
4322         * macros/tmac.an (SH, SS): Set fill mode.
4324 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4326         * troff/div.c (top_level_diversion::begin_page): Set
4327         high_water_mark to 0.
4329 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4331         * man/mdate.sh: New file.
4332         * man/mdate.c: Deleted.
4333         * man/Makefile: Use mdate.sh instead of mdate.
4334         (mdate): Deleted.
4336         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4338 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4340         * man/mdate.c: New file.
4341         * man/*.man: Replace modification date by @MDATE@.
4342         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4343         (mdate): New target.
4345         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4346         Remove illegal input characters.
4348 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4350         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4352 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4354         * troff/div.c (begin_page): Change behaviour when
4355         !first_page_begun and !break_flag.
4357         * troff/input.c (do_name_test): Return 0 if argument is empty.
4359         * troff/input.c (read_long_escape_name): Require closing ] to be
4360         at same input level as opening [.
4362         * troff/input.c (read_increment_and_escape_name): New function.
4363         (get_copy, process_input_stack): Use this for \n.
4365 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4367         * troff/div.c (top_level_diversion::begin_page): Ignore the
4368         current value of page_number if !first_page_begun.
4370         * groff.c (main): Fix declaration of buf.
4372         * troff/input.c (do_name_test): New function.
4373         (token::next): Implement \A.
4374         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4375         (token::description, token::add_to_node_list, token::process):
4376         Handle TOKEN_ESCAPE.
4377         * troff/token.h: New token TOKEN_ESCAPE.
4379 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4381         * pic/main.c (do_picture): Allow space before and after filename
4382         following `<'.  Check that the filename is not empty.
4384 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4386         * Version 1.01 released. 
4388         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4390         * dvi/tmac.dvi: ftr HR to H.
4392         * macros/tmac.e: Round up computation of $r.
4394         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4395         Use \n(.s instead of \n[.s].
4397         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4398         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4399         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4400         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4401         short names in the char definitions.
4403         * ps/tmac.ps: Don't give up completely in compatibility mode.
4404         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4405         quote in front of \n(.s. Add u to factors inside \s[...].
4407 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4409         * tty/tmac.tty: Call the nroff request.
4411         * macros/tmac.e ((x, )x):  Better definitions that work properly
4412         in a diversion.
4413         (@0, @1): Helper macros for (x.
4415         * macros/tmac.e ($s, hl): Use \l rather than \D.
4417         * tty/tmac.tty: Make it work better in compatibility mode.
4418         (pchar): Rename to tty-char.
4420         * macros/tmac.e (@E): New macro.
4421         (r, i, b, rb, bi): Use @E.
4423         * macros/tmac.e (@F): Don't use (;...) syntax.
4425         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4426         it was modified for groff.
4428         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4430         * macros/tmac.e (<., .>): Removed.
4431         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4433         * macros/tmac.e: Remove check that groff is being used.
4435         * macros/tmac.e (@C): Change families only if using groff; turn
4436         compatibility mode off while changing familes. Save compatibility
4437         mode before changing families and restore it afterwards.
4439         * macros/tmac.e (@h): Remove test for offset + line length.
4441         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4442         (lo, th, ac): Define to call @S instead of using als.
4444         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4445         the ratio of the vertical spacing to the point size in units
4446         expressed as a percentage.  Use these instead of $10r and $10R,
4447         Delete $10r and $10R.
4449         * lib/font.c (font::load): In default computation of space_width,
4450         divide by sizescale.  Use scale_round.
4452         * macros/tmac.an (TP): Don't call `nf'.
4453         (an-do-tag): Don't call `fi'.
4455 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4457         * troff/input.c (process_input_stack): Handle the case where
4458         spaces at the beginning of an input line are followed by a
4459         newline.
4461 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4463         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4464         * groff.sh: Use pic -x with the dvi device.
4466         * dvi/devdvi/FontMakefile (H): Don't use -s.
4468         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4469         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4470         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4471         in FONTS.
4473 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4475         * ps/psfig.diff: New file.
4476         * ps/tmac.psfig: New file.
4478 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4480         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4481         (]-): Don't call ref*do-tl.
4483         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4485         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4486         (fn@do-FS): Rename to fn*do-FS.
4488         * troff/input.c (transparent_translate): New function.
4489         (process_input_stack): Apply transparent_translate before calling
4490         diversion::transparent_output(unsigned char).
4492 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4494         * troff/input.c (do_define_macro): Define the macro before calling
4495         skip_line.
4497         * xditview/Makefile: Add DEVICES variable.  Change install target
4498         to use this.
4500 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4502         * groff.c (run_commands): Handle the possibility that there are
4503         child processes other than those forked by us.
4505 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4507         * lib/string.c (string::append): New function.
4508         * lib/stringclass.h: Declare it.
4510 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4512         * eqn/main.c (main): New option -N which sets
4513         no_newline_in_delim_flag. 
4514         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4515         in delimiters.
4516         * groff.c (main): Pass -N on to eqn.
4517         (help, synopsis): Mention -N.
4518         * groff.sh: Implement -N.
4520 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4522         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4523         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4524         (XP): Allow as initializer.
4526 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4528         * troff/env.c (environment::wrap_up_field): If field_spaces are
4529         non-zero and we have a current_tab, subtract padding from
4530         tab_distance.  If this makes tab_distance <= 0, use the next tab
4531         stop instead.  If there isn't any next tab or it's a left tab,
4532         wrap up the current tab.
4533         (environment::start_field): Initialize tab_precedes_field.
4534         (environment::wrap_up_tab): If there's a current field, update
4535         pre_field_width, field_distance and tab_precedes_field.
4536         * troff/env.h (environment::tab_precedes_field): New member.
4538 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4540         * ps/ps.c (ps_printer::do_file): New function.
4541         (ps_printer::special): Bind to `file' special.
4542         (ps_printer::do_exec): Set ndefined_styles to 0.
4544 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4546         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4547         Avoid stripping first character from the start of unrecognized
4548         escapes.  Use lex_error instead of error to report errors.
4549         * eqn/lex.c (get_token): Rework handling of escapes.
4550         (lex_error): Move declaration into...
4551         * eqn/eqn.h.
4553         * xditview/xditview.c (main): Make -page option work.
4555         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4557 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4559         * macros/tmac.s (B2): Correct size of box.
4561 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4563         * macros/tmac.s (B2): Postpone drawing the box until in the
4564         top-level diversion.
4566         * tty/tmac.tty: Add font translations for C, CR, CW.
4568         * groff.c (synopsis, help): Document -i.
4569         * groff.sh: Implement -i.
4571         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4572         Simplify the construction of SN.
4574         * troff/number.c (parse_term): Give `|' a higher precedence.
4575         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4576         accordingly.
4578         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4580 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4582         * lib/string.c (string::move): New function.
4583         * lib/stringclass.h: Declare it.
4585 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4587         * troff/env.c (distribute_space): Add optional argument
4588         `force_forward'.
4589         (environment::wrap_up_field): Call distribute_space with
4590         `force_forward' argument of 1.
4592 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4594         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4595         Inline it.  Move reallocation into...
4596         (string::grow1): New function.
4597         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4598         dependencies to include library header files.
4599         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4601 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4603         * macros/tmac.s (@NH): Use the same number registers than -ms does
4604         for the heading level counters.  Use the same string that -ms does
4605         for the number for this heading.
4607 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4609         * lib/new.c (operator new): Cast result of malloc to char *.
4611         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4612         is not null.
4614 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4616         * groff.c (main): Support -i.
4618 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4620         * pic/pic.h: Include <osfcn.h>.
4622         * ps/ps.c: Add declaration of mktemp.
4624         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4625         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4626         argument as union wait *.
4627         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4628         argument to union wait *.
4630 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
4632         * tty/tmac.tty: Add definition of \(co.
4634         * pic/object.c (make_arc): Only increase radius when radius
4635         strictly less than d.
4636         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4637         more than once.
4639         * troff/env.c (environment::environment(symbol),
4640         environment::environment(const environment *)):  Initialize
4641         input_trap_count.
4643 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
4645         * tbl/main.c (main): Add exit(0).
4647         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4649         * pic/main.c (main):
4650         * eqn/main.c (main):
4651         * tbl/main.c (main):
4652         * etc/soelim.c (main):
4653         * driver/printer.c (printer::~printer):
4654         * troff/node.c (real_output_file::~real_output_file,
4655         real_output_file::flush):  Check for errors on stdout.
4657         * most files: Add 1991 to copyright notice.
4659         * macros/tmac.s: Don't test \n(.x and \n(.y.
4661         * troff/input.c (token::next): Rename `escape_char' label to
4662         `handle_escape_char' and `normal_char' label to
4663         `handle_normal_char'.
4665 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
4667         * groff.c (main, synopsis, help): Support -a option.
4668         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
4669         to trflags while parsing options.
4671 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
4673         * troff/number.c (parse_term): With `m', `M' and `n' scale
4674         indicators, convert scale factor to hunits before scaling.
4676 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
4678         * lib/font.c (scale_round): Better test for overflow when n is
4679         negative.
4681 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
4683         * tbl/main.c (process_format): Add second argument of type
4684         options*. Change callers.  Allow opt->tab_char as well as '\t'
4685         between format items.
4687 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
4689         * macros/tmac.an (PD): With no arguments, make sure register PD is
4690         at least \n[.V].
4691         (TH): Call PD with no argument, instead of setting register PD
4692         directly.
4694 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
4696         * Version 1.00 released.
4698 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
4700         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4702         * dvi/devdvi/DESC: Mount CW instead of CR.
4704         * dvi/tmac.dvi: Add definition of \(tm.
4706         * dvi/devdvi/texsy.map: Add lh, and rh.
4707         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4708         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4710         * dvi/devdvi/FontMakefile: Generate H from cmss10.
4711         * dvi/devdvi/Makefile: Install H.
4712         * dvi/devdvi/H: New file.
4714 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
4716         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4717         be 0.
4719 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
4721         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4723         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4725         * macros/tmac.s (@EN): Handle the case where the equation is empty
4726         but the label is not.
4728 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
4730         * troff/groff.h: New warning category WARN_SPACE.
4731         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4732         WARN_SPACE to warning_table.
4733         (interpolate_macro): Give a warning of type WARN_SPACE if the name
4734         is longer than two characters and is not defined, but the first
4735         two characters do make a defined name.
4737         * PROBLEMS: New file.
4739         * CHANGES: New file.
4740         * README-0.6, README-1.00: Deleted.
4742         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4743         * xditview/devX75/Makefile: Make devX75-12.
4744         * xditview/devX100/Makefile: Make devX100-12.
4746         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4747         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4749 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
4751         * README-0.7: Rename to README-1.00.
4753         * macros/tmac.pic: New file.
4754         * macros/Makefile (install.nobin): Install tmac.pic.
4756 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
4758         * troff/env.c (hyphen_word): Correct the test for whether the
4759         token is a hyphen.  Reset npos to 0.
4761         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4763 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
4765         * macros/tmac.s (ds*common-end): Call par*reset.
4766         (PE): Likewise.
4767         (par@reset-indent): Deleted.
4769         * macros/tmac.s (@IP): Divert the label.
4771 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
4773         * xditview/draw.c (setGC): Use a line width of .1m rather than
4774         .04m by default; round rather than truncate value.
4776         * tbl/table.c (class empty_entry): New class.
4777         (empty_entry::empty_entry, empty_entry::line_type): New functions.
4778         (table::add_entry): Represent empty entries by objects of type
4779         empty_entry.
4780         (table_entry::line_type): Return -1.
4781         (table::determine_row_type): Ignore entries with line_type 0.
4782         Treat type -1 as non-lines.
4784 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
4786         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4787         macros/tmac.s: Rename \(-d to \(Sd.
4789 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
4791         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4792         * xditview/libXdvi/DviChar.c: Likewise.
4793         * dvi/devdvi/texsy.map: Add `<<', `>>'.
4795 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
4797         * troff/div.c (top_level_diversion::begin_page): Call
4798         init_output() if the_output is 0.
4800 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
4802         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4803         ESCAPE_c.
4804         (get_copy): Turn \E into ESCAPE_E.
4805         (token::process, asciify): Handle ESCAPE_E.
4807         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4808         (RD): New macro.
4809         (DS): Implement `.DS R'.
4811 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
4813         * macros/tmac.s (FS): New macro.
4815         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4817         * macros/tmac.s (cov*tl-init): Remove after first execution
4818         instead of aliasing to @nop.  Call top of page macro explicitly
4819         instead of setting trap; call @init first.  Set pg@top as top of
4820         page macro.
4821         (cov*auto-init): Deleted.  Set cov*tl-init instead of
4822         cov*auto-init as top of page trap. 
4823         (TL, LP): Do a break instead of calling cov*tl-init.
4824         (cov*print): With RP format but no TL, alias FS and FE to @FS and
4825         @FE; in this case also give a warning and always start another
4826         page. No need to set pg@top here.
4827         (cov*tl-init): Rename to cov*first-page-init.
4829         * macros/tmac.s (RP): Do `.pn 0'.
4830         (cov*tl-init): With RP format don't do `.pn 0'.
4832         * macros/tmac.s (pg@cs-top): Set no space mode.
4834         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4835         (cov*ab-init): Alias TL, AU and AI to these.
4837 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
4839         * macros/tmac.s (@EQ): Move the space before the equation into @EN
4840         (@EN): Do nothing unless \n[dl] is > 0.
4842 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
4844         * pic/object.c (ellipse_object::radius): New function.
4846         * VERSION: Change version to 0.7.
4848         * tbl/table.c (block_entry::do_divert): Declare return type as
4849         void.
4850         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4852 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
4854         * troff/column.c: New file.
4855         * troff/Makefile: Corresponding changes.
4857         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
4858         Friend of vunits.
4860         * troff/div.c (top_level_diversion::space): If the space causes
4861         the first-page transition and springs a trap, truncate the space
4862         to 0.
4864 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
4866         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4867         the document.
4869         * pic/troff.c (troff_output::line_thickness,
4870         troff_output::set_fill): Do a horizontal motion to compensate for
4871         the width of the \D escape sequence.
4873 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
4875         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4876         (not X75).
4878         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
4879         to printf.
4881         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4882         Supply empty definition.
4883         (text_entry::simple_print, simple_text_entry::simple_print):
4884         Delete declarations.
4885         (table::add_entry): Represent empty entries by objects of type
4886         `simple_entry'.
4888 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
4890         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4892         * tbl/table.c (left_text_entry::add_tab): New function.
4894         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
4895         initialize like LP.
4897 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
4899         * troff/env.c (environment::start_field): Give an error message if
4900         there is no next tab.
4902 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
4904         * troff/env.c (hyphenate): Skip initial elements with zero
4905         hyphenation code.
4907         * macros/tmac.s (par@init): Keep VS in points rather than units.
4909 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
4911         * pic/main.c (main): Implement `-c' option.
4912         * pic/output.h: Declare make_tpic_output().
4913         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4914         protected.
4915         (tpic_output): New class.
4916         (tpic_output::tpic_output, tpic_output::set_pen_size,
4917         tpic_output::command, make_tpic_output): New functions.
4919 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
4921         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
4922         if they're not already defined.
4923         * tbl/table.c (init_output): Don't test \n(.g.
4925         * troff/input.c (do_if_request): Delete `g' condition. Recognize
4926         `d', `r' and `c' conditions even in compatibility mode.
4928 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
4930         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4931         box.
4933 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
4935         * troff/env.h (environment::prev_line_interrupted): New member.
4936         (environment::get_prev_line_interrupted): New function.
4937         * troff/env.c (environment::newline): Set prev_line_interrupted.
4938         (environment::environment(const environment *),
4939         environment::environment(symbol)): Initialize
4940         prev_line_interrupted.
4941         * troff/input.c (process_input_stack): Don't give special
4942         treatment to space and newline at the beginning of the line if the
4943         previous line was interrupted.
4945 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
4947         * eqn/eqn.y: Disallow PRIME by itself.
4948         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4949         PRIME.
4950         (def_table): Remove definition of '.  Define prime to be `.
4952         * eqn/eqn.y: Split off part of rule `script' into a new rule
4953         `nonsup'.
4955 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
4957         * macros/tmac.s ({, }): New string aliases.
4959 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
4961         * README-0.7: New file.
4963 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
4965         * macros/tmac.s: New file.
4966         * man/groff_ms.man: New file.
4967         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4968         * Makefile.bd: Similarily.
4969         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4970         definition of TMAC_S.
4971         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4972         * macros/TODO: New file.
4974 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
4976         * troff/env.c (right_justify): New function.
4977         (init_env_requests): Bind this to request "rj".
4978         (center_lines): Set right_justify_lines to 0. If we get a bad
4979         integer, center 1 line.
4980         (environment::environment(symbol), environment::environment(const
4981         environment *)): Initialize right_justify_lines.
4982         (environment::get_right_justify_lines): New function.
4983         (init_env_requests): Bind this to number_register ".rj".
4985         * troff/env.c (environment::choose_breakpoint): Implement
4986         hyphenation_margin and hyphenation_space.
4987         (environment::get_hyphenation_space,
4988         environment::get_hyphenation_margin): New functions.
4989         (init_env_requests): Bind these to .hys and .hym.
4990         (hyphenation_space_request, hyphenation_margin_request): New
4991         functions
4992         (init_env_requests): Bind these to hys and hym.
4993         (environment::environment(symbol), environment::environment(const
4994         environment *)): Initialize hyphenation_margin and
4995         hyphenation_space.
4996         * troff/env.h: Corresponding changes to class environment.
4998 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5000         * troff/div.c (blank_line): Always do a break.
5002         * eqn/box.c (do_text): Turn off escapes while appending text to
5003         string.
5005 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5007         * troff/input.c (while_break_request, while_continue_request): New
5008         functions.
5009         (init_input_requests): Bind these to "break" and "continue".
5010         (while_depth, while_break_flag): New variables.
5011         (while_request): Update while_depth.  Break out of loop if
5012         while_break_flag is set.
5014 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5016         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5017         rather than 0.
5019 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5021         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5023         * stringify: New file.
5024         * Makefile (groff.o): Use stringify.
5026         * xditview/tmac.X: Remove definition of \(rn.
5027         * xditview/libXdvi/DviChar.c: Remove radicalex from
5028         Adobe_symbol_map.
5030 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5032         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5033         (alphabetic_block_entry::alphabetic_block_entry,
5034         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5035         New functions.
5036         (block_entry::divert): Split off body into ...
5037         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5038         from the line length; also update the span width to dl+2n, and the
5039         alphabetic span width to dl.
5041         * driver/input.c (do_file):  While reading argument to D command,
5042         when expanding buffer, multiply szp by sizeof(int) rather than 2
5043         in the argument to memcpy.
5045         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5046         width of alphabetic columns.
5048 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5050         * troff/node.c (lookup_family): Supply second argument to lookup.
5052         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5053         search, return immediately if v is 0.
5055         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5056         (troff_output::start_picture): Set this reg.
5057         (troff_output::end_picture): Remove this reg
5058         * eqn/box.c (box::extra_space): Don't produce `\x's if
5059         EQN_NO_EXTRA_SPACE_REG is defined.
5061         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5062         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5063         character.
5065 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5067         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5068         requests.
5070         * troff/div.c (top_level_diversion::top_level_diversion):
5071         Initialize page_number to 0.
5073 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5075         * groff/troff (environment::environment(const environment *)):
5076         Initialize name to e->name, rather than "anonymous".
5078 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5080         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5081         requested_page.  Split middle part into ...
5082         (FindPage): New function.
5083         (SetValues): If we don't yet know the last page, and the requested
5084         page is greater than the current page, call FindPage.
5085         Update the font_map_string before doing this.
5087         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5088         Translate \(lh and \(rh into left and right double arrows.
5090         * troff/node.c (class hyphen_inhibitor_node): New class.
5091         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5092         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5093         hyphen_inhibitor_node::type,
5094         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5095         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5096         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5097         word.
5099 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5101         * troff/node.h (dummy_node::get_hyphenation_type,
5102         transparent_dummy_node::get_hyphenation_type):  Declare them.
5103         * troff/node.c: (dummy_node::get_hyphenation_type,
5104         transparent_dummy_node::get_hyphenation_type): New functions.
5106 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5108         * xditview/libXdvi/draw.c: If M_PI not defined after including
5109         math.h, then define it.
5111         * xditview/Makefile: Add definition of AR. Pass it to the submake
5112         in libXdvi.
5113         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5115 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5117         * troff/dictionary.h (object_dictionary::alias): Declare return
5118         value as int.
5119         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5120         if the old name was defined.
5121         * troff/input.c (alias_macro): Give a warning if the old name was
5122         not defined.
5123         * troff/reg.c (alias_reg): Likewise.
5125 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5127         * troff/input.c (token::next): Delete implementation of \R.
5129         * macros/Makefile: Strip comments from tmac.e while installing it.
5131         * troff/input.c: New variable `nroff_mode'.
5132         (troff_request, nroff_request): New functions.
5133         (init_input_requests): Bind `troff' and `nroff' to troff_request
5134         and nroff_request.
5135         (do_if_request): Compute results of t and n conditions from
5136         nroff_mode.
5138         * text/text.c (split_text): Fix typo in >=.
5140         * eqn/lex.c: Add definition of `==' to def_table.
5142 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5144         * pic/tex.c (tex_output::start_picture): Change the definitions of
5145         \graph and \graphtemp so that they work properly with Plain TeX.
5147         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5148         argument to `ar' is not less than the first.
5150         * pic/pic.y: Allow a comma between elements of the variable list
5151         in the argument to `reset'.
5153         * pic/object.c (arc_object::arc_object): Fix computation of
5154         radius.
5156         * eqn/main.c (main): Add exit(0).
5158 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5160         * troff/div.c (begin_page): Test no_space_mode after doing the
5161         break, but still push the page ejector cookie before doing the
5162         break.  Also set the next page number after doing the break.
5163         
5164         * xditview/xditview.c (NewFile): Don't set the title and icon name
5165         if this is the first file and its name is `-'.
5166         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5167         the X75 and X100 devices.
5168         (main): If a device has the XT_OPTION flag set and there's exactly
5169         one file argument, pass the driver -xrm and -title options to set
5170         the icon name and window title to the name of the file.
5172         * troff/env.c (environment_switch): If there was an argument but
5173         it wasn't a valid number or name, then pop an environment but
5174         don't give an error message on underflow.
5176         * troff/number.c (start_number): Correct spelling in error message.
5178         * troff/input.c (token::delimiter): Don't print an error message
5179         if err is false.
5181         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5182         ParseDrawFunction if dw->display_enable is true.
5184 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5186         * pic/pic.y: Parse text positioning like normal attributes, so as
5187         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5188         positioning attribute.
5190 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5192         * tbl/main.c (process_data): When in state START while reading a
5193         text block, don't change to state MIDDLE if c is a newline.
5195 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5197         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5198         so as to avoid shadowing parameter.
5200 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5202         * tbl/table.c (trim_space): Deleted.
5203         (table::add_entry): Don't call trim_space.
5205 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5207         * VERSION: Change version to 0.6.
5209         * troff/number.c (parse_expr): Make == work.
5211 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5213         * man/grog.man: New file.
5214         * man/Makefile: Add grog.n to MAN1PAGES.
5215         * etc/grog.sh: New file.
5216         * etc/Makefile: Install grog.sh as grog.
5218 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5220         * troff/input.c (token::next): Implement \E.
5222 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5224         * xditview/tmac.X: Change font translations to match tmac.ps.
5226         * troff/input.c (non_empty_name_warning): Don't give a warning if
5227         `\{' terminates the name.
5229 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5231         * ps/devps/symbol.diff: New file.
5232         * ps/devps/FontMakefile: Mention symbol.diff.
5234 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5236         * troff/node.c (font_position): Use get_long_name to read the
5237         external_name.
5239         * troff/env.c (environment_switch): If we get a number that's < 0
5240         or >= NENVIRONMENTS, treat it like a name.
5241         Change NENVIRONMENTS to 10.
5243         * troff/groff.h: Remove definition of FONTS_MAX.
5244         * troff/node.h (class font_family): Make map a pointer instead of
5245         an array. Add a map_size member. Make it a class. Make nm const
5246         and public. Make invalidate_fontno a friend.
5247         * troff/node.c: Define font_table_size. Make font_info a pointer
5248         rather than an array.
5249         (class troff_output_file): Allocate font_position dynamically. Add
5250         nfont_positions member.
5251         (troff_output_file::set_font): Grow font_position if necessary.
5252         (troff_output_file::~troff_output_file): Delete font_position.
5253         (troff_output_file::troff_output_file): Allocate font_position.
5254         (grow_font_table): New function.
5255         (troff_output_file::really_begin_page,
5256         troff_output_file:really_copy_page): Use nfont_positions rather
5257         than FONTS_MAX.
5258         (mount_font_no_translate, mount_style): Call grow_font_table if
5259         necessary.
5260         (font_family::font_family): Allocate map.
5261         (font_family::make_definite): Grow map if necessary. Use
5262         font_table_size instead of FONTS_MAX.
5263         (font_family::~font_family): New function.
5264         (invalidate_fontno): Use font_family::map_size.
5265         (get_fontno, env_space_width, env_half_narrow_space_width,
5266         env_narrow_space_width, symbol_fotno, is_good_fontno,
5267         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5268         FONTS_MAX.
5269         (next_available_font_position): Never return 0.
5271 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5273         * ps/tmac.ps: Add font translations for compatibility with dpost.
5275 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5277         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5278         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5279         Move definitions baseline_sep, shift_down, column_sep,
5280         matrix_side_sep into...
5281         * eqn/box.c: Add them to param_table.
5282         * eqn/pbox.h: Add declarations to pbox.h.
5284         * troff/input.c (set_string): Cast value to unsigned char *.
5286         * troff/token.h (process_input_stack): Declare it static before
5287         declaring it a friend.
5289 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5291         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5292         and bottom.
5293         * dvi/devdvi/EX: Regenerate.
5295         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5296         transparent.
5298 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5300         * eqn/lex.c: In defaults_table, make definition of `dot' call
5301         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5302         accents.
5304         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5305         argument.
5306         (for_input::get, for_input::peek): Use this.
5307         (do_for): Add by_is_multiplicative argument.
5308         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5309         Change semantic value of optional_by to be a double plus a flag
5310         saying whethet the by clause is multiplicative.
5312         * eqn/lex.c (get_delimited_text): Remember location of start of
5313         definition.  Improve error handling when EOF is encountered.
5315         * lib/font.h: Rename handle_x_command to
5316         handle_unknown_font_command.
5317         * lib/font.c (font::load): Call handle_unknown_font_command for
5318         any unknown command in the font description file.  Don't call
5319         handle_x_command. Include the name of the command in the argv.
5320         Improve message for unknown command after kernpairs or charset
5321         command.
5322         * ps/ps.c (ps_font::handle_x_command): Rename to
5323         handle_unknown_font_command.  Remove message about `x download'
5324         command.  Give error message for wrong number of arguments.
5325         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5326         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5327         handle_unknown_font_command. Give an error message for wrong
5328         number of arguments.  Rename design_size to designsize.
5329         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5330         checksum', `designsize' instead of `design_size'.
5332 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5334         * eqn/*.[chy]: Change underaccent to uaccent.
5336         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5337         give it the same precedence as ACCENT.
5338         * eqn/other.c (make_underaccent_box): New function.
5339         * eqn/box.h: Declare it.
5340         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5341         def_table.
5343 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5345         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5346         (parse_init): Call reset_all.
5347         (define_variable): When defining scale reset only those
5348         pre-defined variables that are scaled.
5349         (defaults_table): Add `scale' as non-scaled value.
5351         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5352         together with the text; allow any number of positioning words;
5353         allow center as a positioning word.
5355         * pic/object.c (output::compute_scale): Get picture maximum height
5356         and width from variables called maxpswid and maxpsht.
5357         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5359 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5361         * pic/object.c (object_spec::make_text): Multiply textht by number
5362         of text items.
5364         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5365         occur.
5366         (do_sprintf): New function.
5367         (pic.gperf): Add sprintf token.
5368         (text, sprintf): New rules.
5370         * pic/pic.y: `rand()' with no arguments returns a random number
5371         in the range [0,1).
5373         * pic/pic.y: Allow a bare expression to be an attribute: change
5374         precedences to support this.  Change optional_ordinal rule to
5375         optional_ordinal_last to avoid reduce/reduce conflict.
5376         * pic/object.c (object_spec::object_spec): Initialize direction.
5378         * pic/pic.y: Implement ^ operator meaning exponentiation.
5380         * troff/node.h: Add default argument to mount_font.
5381         * troff/node.c (font_position): Read an optional third argument
5382         giving the external_name.
5383         (mount_font): Add optional argument giving the external_name.
5384         (mount_font_not_translate): Have additional argument giving
5385         external name.  Use this name to load the font.  Pass both names
5386         to font_info::font_info.
5387         (font_info::font_info): Have additional argument giving
5388         external_name.
5389         (class tfont): New member external_name.
5390         (font_info::get_tfont): Use external name to construct tfont_spec.
5392 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5394         * eqn/lex.c (init_table): Add argument giving device.  Define
5395         name of device to be "1".
5396         (do_ifdef): Counts as true if the argument has been defined with
5397         `define'.
5398         * eqn/main.c (main): Call init_table with device argument. Make
5399         device local to main.
5400         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5401         of device.
5403         * pic/lex.c (get_delimited): Allow text to be delimited by
5404         matching {}s.  Don't recognize ending delimiter within a string.
5406         * troff/input.c (get_delim_name): New function.
5407         (token::next): Implement \C.
5409         * lib/font.c (font::load): Grok ---.  Add an alias for each
5410         character based on its code.
5411         (font::get_code_width): Deleted.
5412         * lib/font.h (class font): Declare font::number_to_index().
5413         Remove declaration of font::get_code_width.
5414         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5415         to indices of named characters.
5416         (font::number_to_index): New function.
5417         * troff/input.c (font::number_to_index): New function.
5418         (get_charinfo_by_number, charinfo::get_number,
5419         charinfo::set_number): New functions.
5420         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5421         (token::process, token::description, token::get_char,
5422         token::add_to_node_list, token::operator==): Handle
5423         TOKEN_NUMBERED_CHAR.
5424         * troff/charinfo.h: Declare get_charinfo_by_number,
5425         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5426         charinfo class.
5427         (charinfo::numbered): New function.
5428         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5429         * troff/env.h (class environment): Remove declaration of ...
5430         * troff/env.c (environment::make_numbered_char_node): Deleted.
5431         * troff/node.c (make_numbered_node): Deleted.
5432         (class numbered_glyph_node): Remove.
5433         (troff_output_file::put_char_width, troff_output_file::put_char):
5434         Handle numbered chars.
5435         (troff_output_file::numbered_char): Removed.
5436         (tfont::get_code_width): Removed.
5437         (make_glyph_node): Don't search special fonts for numbered
5438         characters.
5439         * troff/node.h: Remove declaration of make_numbered_node.
5440         * driver/input.c (do_file): Handle N command.
5441         * driver/printer.h: Add declaration of ...
5442         * driver/printer.c (printer::set_numbered_char): New function.
5443         * dvi/tfmtodit.c (main): Generate unnamed entries.
5444         * ps/devps/afmtodit: Likewise.
5445         * xditview/xtotroff.c (MapFont): Likewise.
5446         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5448         * tbl/main.c (process_format): If multiple widths are specified
5449         for a column but all the widths are the same, don't give an error
5450         message.
5452         * tbl/table.c (table::do_row): If the current row is all lines and
5453         the stuff doesn't contains a line, mark the top of the row after
5454         printing stuff before the row.  If the current row is not all
5455         lines and the stuff doesn't contain a line, don't unnecessarily
5456         mark the top of the row before printing the stuff.
5457         
5458 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5460         * troff/groff.h: Remove MAX_PATH.
5461         * troff/input.c (open_file): Dynamically allocate space for the
5462         path.
5463         (open_mac_file, process_macro_file): Corresponding changes.
5465 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5467         * troff/node.h (class output_file): Make copy_file pure.  Add
5468         vspace method ifdef COLUMN. Add is_printing method.
5469         * troff/node.c: Add class printing_reg. Add class
5470         real_output_file. Derive other output_file classes from
5471         real_output_file; in these classes rename begin_page to
5472         really_begin_page, print_line to really_print_line, copy_file to
5473         really_copy_file, transparent_char to really_transparent_char.
5474         Move output_file::flush to real_output_file. Add printing member
5475         to class output_file.
5476         * troff/div.h: Remove printing member from top_level_diversion.
5477         Add vspace member function to class diversion ifdef COLUMN. Add
5478         some declarations ifdef COLUMN.
5479         * troff/div.c (top_level_diversion::copy_file,
5480         top_level_diversion::transparent_output,
5481         top_level_diversion::output): Don't test printing member before
5482         output.
5483         * troff/input.c: Handle initial variable_space_request ifdef
5484         COLUMN.
5485         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5486         but comment it out.
5488 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5490         * troff/div.c (diversion::need): Make any space forced.  If we
5491         sprung a trap, set truncated_space to minus the distance to the
5492         trap and set needed_space to the amount that was needed.
5493         (top_level_diversion::space): A forced space turns no_space_mode
5494         off.
5495         (class constant_vunits_reg): New class.
5496         (init_div_requests): Implement number registers .trunc and .ne
5497         using constant_vunits_reg.
5498         (class truncated_space_reg): Deleted.   
5500         * troff/div.h: Don't have a no_space_mode member in diversion.
5501         Instead have it in top_level_diversion.
5502         * troff/div.c (diversion::diversion): Don't initialize
5503         no_space_mode.
5504         (top_level_diversion::top_level_diversion): Initialize
5505         no_space_mode.
5506         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5507         (macro_diversion::output): Don't clear no_space_mode.
5509         * troff/input.c (diverted_space_node::reread): Don't call
5510         environment::do_break.  In fill mode, act like a blank line.
5511         (diverted_copy_file_node::reread): Don't call
5512         environment::do_break.
5514         * troff/div.c (blank_line): New function.
5515         * troff/div.h: Declare it.
5516         * troff/input.c (process_input_stack): Call it.
5518         * troff/div.c (truncated_space_reg::get_string): New function.
5519         (init_div_requests): Bind to .trunc.
5520         (space_request, top_level_diversion::space,
5521         top_level_diversion::output, macro_diversion::space,
5522         macro_diversion::output): Update truncated_space.
5523         (macro_diversion::output): Redo calculations when trap sprung.
5524         (macro_diversion::output, macro_diversion::space): No need for
5525         trap_flag.
5527         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5528         after truncating post line spacing.
5530 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5532         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5533         defined as a procedure rather than as an operator.
5535 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5537         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5539 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5541         * troff/div.c (top_level_diversion::output): Merge
5542         output_file::print_line and output_file::end_of_line member
5543         functions.
5544         * troff/div.h (class output_file):
5545         * troff/node.c (troff_output_file::print_line,
5546         troff_output_file::end_of_line, output_file::end_of_line,
5547         ascii_output_file::print_line, suppress_output_file::print_line):
5548         Corresponding changes.  
5550 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5552         * troff/input.c (token::next): Don't give a warning for `\.'.
5554         * troff/env.c (environment::get_center_lines): New function.
5555         (init_env_requests): Bind number register .ce to it.
5556         * troff/env.h: Declare it.
5557         * tbl/table.c (table::init_output): Define reset macro to restore
5558         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5559         Then do .ce 0.
5560         (table::print): If center option not given, then imply center
5561         option if SAVED_CENTER_REG > 0.
5563 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5565         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5566         Troff.ps from DOWNLOAD.
5567         
5568         * troff/Makefile: Change comment in DEFINES to avoid confusing
5569         System V make.
5571         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5572         code.  Don't try to catch errors with stopped.
5573         (check_line_lengths): New function.
5574         * ps/devps/prologue (EXEC): Deleted.
5575         (EBEGIN, EEND): New procedures.
5577 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5579         * troff/input.c: Include request.h before node.h.
5580         * troff/node.c: Likewise.
5581         * troff/env.c: Likewise.
5582         * troff/div.c: Likewise.
5583         * troff/node.h (class special_node): Store argument as a macro
5584         rather than a char *.
5585         * troff/node.c (special_node::special_node, special_node::copy):
5586         Grok this.
5587         (special_node::~special_node): Deleted.
5588         (special_node::tprint): Deleted.
5589         (special_node::tprint_start, special_node::tprint_end,
5590         special_node::tprint_char): New functions.
5591         (troff_output_file::special): Deleted.
5592         (troff_output_file::start_special, troff_output_file::end_special,
5593         troff_output_file::special_char): New functions.
5594         * troff/input.c (special_node::tprint): New function.
5595         (do_special): Use macro not char *.
5596         (do_transparent_macro): Deleted.
5597         (token::next): Don't call do_transparent_macro.
5599         * troff/input.c (token::next): Add 'Y' case.
5600         (do_transparent_macro): New function.
5601         * troff/node.c (troff_output_file::special): Handle newlines with
5602         argument using new continuation convention.
5603         * driver/input.c (get_string): Cope with continuation convention.
5604         (do_file): Don't call skip_line after calling get_string(1).
5605         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5606         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5607         arg.
5608         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5609         with +.
5611 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5613         * troff/input.c (asciify): By default, illegal input characters
5614         should return empty string.
5616         * troff/input.c (copy_file): Handle first page transition like title.
5617         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5619         * troff/input.c (token::next): Improve error message for EOF after
5620         escape character.
5621         (input_char_description): New function.
5622         (get_char_for_escape_name): Use input_char_description.
5623         (token::next): Warn about unrecognized escape sequences.
5624         (warning_table): Add WARN_ESCAPE.
5625         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5626         accordingly.
5628         * troff/token.h: Remove declaration of process_input_stack.
5630         * troff/input.c: Remove declaration of init_hyphen_requests.
5631         * troff/request.h: Correct spelling in declaration of same.
5633         * troff/input.c (token::next): Check whether escape_char is 0.
5635 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
5637         * groff.c (main, usage, help): Implement -P and -L options.
5638         * groff.sh: Likewise.
5640         * troff/input.c (token::next): Use some gotos to avoid code
5641         duplication.
5643         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5644         Avoid calling symbol::symbol if name empty.
5646 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
5648         * troff/input.c (init_input_requests): Make \n(.x return the major
5649         version number and \n(.y return the minor version number.
5650         * troff/Makefile: Construct file majorminor.c defining
5651         major_version and minor_version automatically from ../VERSION.
5653         * troff/node.c (class glyph_node): Make operator new and operator
5654         delete public.
5655         (class ligature_node): Similarily.
5657         * troff/input.c (operator==(const macro &, const macro &)): New
5658         function.
5659         (non_interpreted_node::same): Use this.
5660         (string_iterator::string_iterator): Make macro& argument const.
5662         * troff/input.c (input_iterator::get): New function. Don't make
5663         asciify_macro or class non_interpreted_node friends of class
5664         input_iterator.
5665         (non_interpreted_node::interpret): Use input_iterator::get.
5666         (asciify_macro): Likewise.
5668         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5669         ~non_interpreted_node): Deleted.
5670         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5671         Deleted.
5673         * troff/symbol.h: Make all symbol member functions const.
5675         * lib/strtol.c: New file.
5676         * lib/Makefile: Add strtol.c.
5677         * Makefile: Define STRTOL as strtol.o to include strtol in
5678         libgroff.a.
5680 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
5682         * pic/troff.c (troff_output::simple_circle): Divide by scale.
5684 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
5686         * troff/input.c (do_special): Use input_level.
5688         * troff/token.h (TOKEN_BACKSPACE): New token.
5689         (token::backspace): New function.
5690         * troff/input.c (token::description, token::next, token::process):
5691         Grok TOKEN_BACKSPACE.
5692         (do_special): Turn TOKEN_BACKSPACE back into \b.
5694         * troff/token.h (token::leader): New function.
5695         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5697         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5699         * troff/input.c (do_special): Use token::description in error
5700         message.
5702 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
5704         * troff/input.c (decode_args): Combine quoted and
5705         quote_input_level variables. Make it a for (;;) loop.
5707         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5709         * troff/input.c (read_long_escape_name): The test for whether to
5710         expand buffer was off by 1.
5711         (read_string): Similarily.
5713 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
5715         * troff/input.c: Use `const int' rather than `static const int'.
5717         * troff/div.h (diversion::copy_file): Declare as pure virtual.
5718         (macro_diversion::copy_file): New function.
5719         * troff/node.h: New class diverted_copy_file_node.
5720         * troff/node.c: Implement it.
5721         * troff/input.c (copy_file): Use diversion::copy_file. Handle
5722         first page transition by pushing a diverted_copy_file_node.
5723         * troff/input.c (token::next, process_input_stack): Don't handle
5724         COPY_FILE_REQUEST.
5726 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
5728         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5729         whether space widths need adjusting.
5731         * troff/charinfo.h: Generalize translated_to_space to
5732         special_translation so as to allow translation to \&.
5733         * troff/input.c (translate): Allow translation to \&.
5734         (charinfo::*): Corresponding changes.
5735         * troff/node.c (make_node, node::add_char): Corresponding changes.
5736         * troff/node.h (dummy_node::dummy_node): Allow optional first
5737         argument.
5739         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5740         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5741         TOKEN_REQUEST.
5742         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5743         TOKEN_REQUEST with an argument of TITLE_REQUEST.
5744         (token::process): Grok that.
5745         * troff/input.c (copy_file): Handle first page transition like
5746         title by pushing a COPY_FILE_REQUEST cookie.
5747         (token::next, process_input_stack): Grok that.
5748         * troff/node.h (output_file::copy_file): Add x and y arguments.
5749         Make it non-pure.
5750         * troff/div.c (top_level_diversion::copy_file): Supply them.
5751         * troff/node.c (troff_output_file::copy_file): Add x and y
5752         arguments; moveto specified position.  Invalidate font_position
5753         array after copying file.
5754         (output_file::copy_file): New function.
5755         (suppressed_output_file::copy_file, ascii_output::copy_file):
5756         Removed.
5757         * troff/input.c (transparent_file): New function.
5758         (init_input_requests): Bind to "trf".
5759         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5760         (process_input_stack): Likewise.
5762         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5764         * troff/node.c (init_node_requests): New number registers .kern
5765         pointing to global_kern_mode, and .lg pointing to
5766         global_ligature_mode.
5768         * troff/node.c (ligature): Don't change it if we get a bad
5769         integer.
5771         * troff/input.c (do_define_string): Don't strip tabs.
5773         * troff/input.c (asciify_macro): Make the string_iterator auto.
5775         * troff/node.c (init_font_requests): Rename to...
5776         (init_node_requests):
5777         * troff/node.h: Change declaration.
5778         * troff/input.c (main): Change call.
5780         * troff/input.c (node::reread, diverted_space_node::reread): New
5781         methods.
5782         (process_input_stack): Call reread rather than
5783         get_diverted_space_node.
5784         * troff/node.c (node::get_diverted_space_node,
5785         diverted_space_node::get_diverted_space_node): Removed.
5786         * troff/node.h: Declare reread methods instead of
5787         get_diverted_space_node methods. Make `n' member private.
5788         * troff/input.c: (token::diverted_space): Removed.
5789         * troff/token.h: Removed declaration.
5790         
5792 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
5794         * eqn/script.c (script_box::compute_metrics): Don't let
5795         SUP_RAISE_FORMAT become negative.
5797         * tbl/table.c (table::do_row): Entries that don't end in the
5798         this row shouldn't make the row non-blank.
5799         
5800         * tbl/table.c (table::make_columns_equal): Only set the width of
5801         columns which are marked as equal.
5802         
5803         * tbl/main.c (process_data): Before issuing excess data error,
5804         if last character was a newline unget it; then get it again after
5805         the error.  Also include the contents of the entry in the message.
5807         * groff.c: New file.
5808         * Makefile: Build groff from groff.c.  Make it possible to use
5809         either groff.sh or groff.c as groff.
5810         * Makefile.bd: Similarily.
5812 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
5814         * groff.sh: Don't delay expansion of $@ in assignment to files.
5815         Remove occurrences of \".
5817 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
5819         * all Makefiles: Simplify and rearrange.
5821         * Makefile: Handle fmod like malloc.
5822         * lib/Makefile: Similarily.
5823         * lib/fmod.c: Remove #ifdef NEED_FMOD.
5825         * Makefile: Rename OPTIMISE to OPTIMIZE.
5827         * groff.sh: Remove assignment to PATH.
5828         * Makefile: Remove SHPATH variable.
5829         * Makefile.bd: Similarily.
5831         * groff.sh: Add -V option to print the pipeline instead of
5832         executing it.
5834 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
5836         * lib/font.c: Split off file searching into ...
5837         * lib/fontfile.c: New file.
5839         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5841 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
5843         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5844         Also change misleading comment.
5845         (table::do_vspan): Change similarily misleading comment.
5846         * tbl/main.c (process_data): A format row with an explicit `s'
5847         uses up a data line, even if all the other columns are `_' or `='.
5849         * troff/input.c (token::description): Fix description of
5850         TOKEN_DUMMY and TOKEN_EMPTY.
5852 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
5854         * groff.sh: Fix description of -Z in help message.
5856 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
5858         * pic/object.c (object_spec::make_object): Allow negative and zero
5859         line thicknesses.
5860         * pic/pic.y: Give linethick default value of -1.0.
5861         * pic/troff.c (troff_output::troff_output): Initialize
5862         last_line_thickness to BAD_THICKNESS.
5863         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5864         (troff_output::line_thickness): Canonicalize negative thicknesses
5865         to RELATIVE_THICKNESS.
5866         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5867         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5868         to -1.0.
5869         (tex_output::start_picture): Set pen_size to -2.0.
5871         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5872         0, then use 0 linewidth.
5873         (ps_printer::ps_printer): Initialize line_thickness to -1.
5875         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5877         * ps/devps/symbolchars: Remove `or'.
5878         * ps/tmac.ps: Implement \(or with .char.
5880         * ps/devps/symbolchars: Move most characters into textmap.
5881         * ps/devps/textmap: Add names for troff bracket characters. Remove
5882         ul, ru, br, bv.
5884         * ps/devps/TSymbol.ps: Removed.
5885         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5886         * ps/tmac.ps: Do with .char what TSymbol did.
5887         * ps/devps/download: Remove TSymbol.
5889         * ps/devps/T: Removed.
5890         * ps/devps/Troff.ps: Removed.
5891         * ps/devps/Troff.afm: Removed.
5892         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5893         * ps/devps/download: Remove Troff.
5894         * ps/devps/FontMakefile: Remove T target.
5895         * ps/devps/DESC-A4: Remove T from font list.
5896         * ps/devps/DESC-letter: Likewise.
5898         * troff/input.c (macro_to_node): Rename to ...
5899         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
5900         character's definition while processing it.
5901         * troff/node.c (node::add_char, make_node): Change calls to
5902         macro_to_node accordingly.
5904         * troff/input.c (token::next): Translate \_ to \(ul.
5906         * tty/devascii/R.proto: Add `|'.
5907         * tty/devlatin1/R.proto: Likewise.
5909 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
5911         * man: Put the version number in all the man pages.
5913 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
5915         * Makefile.bd: New file.
5916         * README.bd: New file.
5918         * VERSION: New file.
5919         * lib/version.c: Removed.
5920         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5921         in clean target.
5923         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5924         environment variable.
5926         * all Makefiles: Split install target into install.bin for
5927         binaries, and install.nobin for everything else.
5928         * Makefile: Add bindist target.
5930         * man/afmtodit.man: New file.
5931         * man/Makefile: Add afmtodit.n to MAN1PAGES.
5932         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5933         in BINDIR.
5934         * ps/Makefile: Pass BINDIR to make install in devps.
5936         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5937         the space character.
5939         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5941 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
5943         * ps/ps.c: Redo font downloading.
5944         * ps/devps/download: New file.
5945         * ps/devps/Makefile: Add download to DEVICEFILES.
5946         * ps/devps/afmtodit: Remove -d option.
5947         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5948         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5949         * ps/devps/zapfdr.ps: Likewise.
5950         * ps/devps/TSymbol.ps: Likewise.
5952 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
5954         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5956 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
5958         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5959         then strip the first line if it starts with %.
5960         * Makefile: Add a comment about this.
5962         * man/tfmtodit.man: New file.
5963         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5964         * dvi/Makefile: Install tfmtodit in BINDIR.
5966         * dvi/tfmtodit.c (usage): Mention -v option.
5968 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
5970         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5971         * troff/node.c (troff_output_file::transparent_char): Don't call
5972         flush_tbuf.
5974         * eqn: Add check_tabs method to most box classes.
5975         * eqn/box.c (box::top_level): Call check_tabs.
5977         * eqn/script.c (script_box::output): Use \Z.
5978         * eqn/limit.c (limit_box::output): Use \Z.
5980         * eqn/box.c (box::top_level): Use itoa.
5982 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
5984         * dvi/tmac.dvi: Add font translations for CR, C, TT.
5985         * dvi/devdvi/Makefile: Don't make links to CW.
5987         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5988         HX, HD.
5989         * xditview/tmac.X: Likewise.
5991         * troff/node.c: Add font translation feature.
5992         (get_font_translation): New function.
5993         (symbol_fontno): Translate the font name.
5994         (mount_font_no_translate): Rename to mount_font to this.
5995         (mount_font): New function.
5996         (font_family::make_definite): Call mount_font_no_translate instead
5997         of mount_font.
5998         (mount_style): Translate the font name.
5999         (font_translate): New function.
6000         (init_font_requests): Bind "ftr" to font_translate.
6002         * ps/devps/prologue (SN): New procedure that rounds a position to
6003         the nearest (pixel + (.25,.25)).
6004         (DL): Use SN to round endpoints.
6006         * lib/version.c: Changed version to 0.5.
6008 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6010         * Makefile: Move definition of PAGE to the very beginning, so that
6011         people are less likely to miss it.
6013 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6015         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6017         * troff/env.c (environment::choose_breakpoint): Make `can't find
6018         breakpoint' error a warning of type WARN_BREAK.  Change message to
6019         `can't break line'.
6020         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6021         code 040000.
6022         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6023         WARN_BREAK in DEFAULT_WARNING_MASK.
6025         * tty/tmac.tty: Add definition of \(+-.
6027         * groff.sh: Remove `--' option to set command.
6029         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6031         * ps/devps/eqnchar: Better definition of cdot using md.
6032         * dvi/devdvi/eqnchar:  Likewise.
6033         * xditview/devX100/eqnchar:  Likewise.
6034         * xditview/devX75/eqnchar: Likewise.
6035         * eqn/lex.c: Add definition of cdot.
6037 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6039         * troff/input.c (get_optional_char): New function.
6040         * troff/input.c (set_page_character): Use get_optional_char(),
6041         rather than has_arg() and tok.get_char(1).
6042         * troff/env.c (tab_character, leader_character, hyphen_char,
6043         field_characters): Likewise.
6044         (margin_character): Likewise.  Also always delete the
6045         margin_character_node.
6047         * troff/input.c (token::get_char): Use token::description.
6049         * troff/input.c (has_arg): Don't skip over tab and \}.
6050         * troff/number.c (start_number): Give a warning if the number
6051         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6053 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6055         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6056         functions.
6057         (get_name, get_long_name): Use these.  Rename `warn' argument to
6058         `required'.
6060         * troff/node.c (get_fontno): Test that the symbol is not null.
6062         * troff/input.c (token::description): New function.
6063         * troff/number.c (parse_term): Use token::description in `numeric
6064         expression expected' message.
6065         * troff/groff.h: Add WARN_MISSING.
6066         * troff/number.c (start_number): New function.
6067         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6068         get_incr_number): Use start_number().
6069         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6070         default.
6071         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6072         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6073         token::descripion.
6074         * troff/input.c (token::get_char): Use WARN_MISSING.
6075         * troff/input.c (token::delimiter): Use token::description.
6076         * troff/env.c (environment_switch): Back out Aug 3 change.
6077         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6078         warning.
6079         * troff/token.h (token::tab): New function.
6080         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6081         * troff/reg.c (alter_format): Likewise.
6082         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6084 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6086         * troff (most files): Redo warnings. Divide warnings into various
6087         categories; warning() has an additional first argument indicating
6088         the category it falls into.
6089         * troff/input.c (main): -w now takes an argument. New option -W.
6090         (enable_warning, disable_warning): New functions.
6092         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6093         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6095 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6097         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6098         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6099         * xditview/devX75/eqnchar: Likewise.
6100         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6102         * eqn/other.c: When bar or over applies to a single character
6103         don't produce an overline_box or an underline_box. Instead produce
6104         an accent_box or an underaccent_box, with the accent a line
6105         whose width is accent_width.  New classes underaccent_box,
6106         overline_char_box and underline_char_box.
6107         * eqn/box.h: Move overline_box, underline_box, accent_box class
6108         declarations into eqn/other.c. Add declarations of
6109         make_underline_box, make_overline_box, make_accent_box.
6110         * eqn/eqn.y: Call make_overline_box, make_underline_box
6111         make_accent_box instead of constructors.
6112         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6114         * eqn/other.c: Add accent_box::~accent_box.
6115         * eqn/box.h: Declare it.
6117         * groff.sh: With -Tps, use eqn -D.
6119         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6120         rather than \l.
6121         (underline_box::output): Similarily.
6122         (accent_box::output): Use \Z.
6124         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6125         bit smaller.)
6127 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6129         * troff/div.c (top_level_diversion::transparent_output(unsigned
6130         char)): Use asciify.
6131         * troff/input.c (asciify): Don't make it static.
6132         * troff/token.h (asciify): Declare it.
6133         
6134         * troff/input.c (get_name, get_long_name, token::get_char,
6135         token::delimiter): Add an extra default argument which says
6136         whether a warning should be printed.
6137         * troff: Pass a non-zero argument to one of these rather than
6138         printing a warning directly.
6140 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6142         * troff: Consistently use symbol::is_null.
6144         * troff/dictionary.h: Move some inline functions into
6145         dictionary.c.
6147         * troff/request.h: Move inline functions into input.c.
6148         (request_or_macro::invoke): Make it pure.
6150         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6151         * troff/input.c (init_input_requests): Use class constant_int_reg.
6152         (class compatible_reg): Deleted.
6153         * troff/div.c (init_div_requests): Use class constant_int_reg.
6154         (class last_post_line_extra_space_reg): Deleted.
6156         * troff/env.c (tab_character): Don't change the tab character if
6157         we get an invalid argument.
6158         (hyphen_char): Similarily.
6160         * troff/reg.c (alter_format): Check that nm is not null.
6162         * Makefile, groff.sh: Make it possible to customize the commands
6163         used for printing PostScript and dvi files. Also make it possible
6164         to customize the path used by groff.sh.
6166         * eqn/eqn.y: Make `left' right associative.
6168 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6170         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6171         don't have it.
6173         * pic/pic.h: Removed definition of INT_MAX.
6175         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6176         `return'.
6178         * troff/input.c (token::next):  Handle \R like \n.
6180 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6182         * ps/tmac.pc (PSPIC): Simplify.
6184         * troff/env.c (tab_stops::to_string):
6185         * pic/pic.y (object_type_name):
6186         * pic/troff.c (simple_output::line):
6187         * pic/tex.c (tex_output::spline):
6188         * pic/object.c (object_spec::make_object):
6189         * tbl/main.c (process_data):  Add cases to switch statements to
6190         avoid cfront warnings. (Some of these are spurious, since the
6191         switch already has a default case.)
6193         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6194         `ps-'.  Don't test systat; instead check number of arguments to
6195         ps-bb.
6197 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6199         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6201         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6202         Unlink the file as soon as we have opened it, so that we don't
6203         have to bother with signal handlers.
6204         (handler): Deleted.
6205         (fatal_error_exit): Deleted.
6206         (main): Don't call signal.
6208         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6209         can be ignored.
6210         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6212         * pic/pic.y:  If there is a label, or an nth construction before
6213         the first `.' in the argument to `with', ignore it and generate a
6214         warning.
6215         * pic/lex.c (lex_warning): New function.
6217         * tbl/table.c (table::init_output): In section keep and release
6218         macro, use 0 indent when diverting and the correct indent when
6219         rereading.
6221         * troff/input.c (interpolate_number_format): Do not interpolate
6222         anything if the number register is not defined.
6224         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6226 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6228         * ps/devps/prologue (PICTURE): Set components of graphics state to
6229         their default values.
6231         * ps/devps/text.enc: Add trademark
6232         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6233         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6234         * ps/devps/symbolchars: Add names for summation and product.
6236         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6237         suchthat. Add pp. Add upper-case letters.
6239         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6240         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6241         Upsilon.
6243         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6244         rA (right angle bracket) to ra.  Introduce names for double-headed
6245         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6246         * ps/devps/textmap: Likewise for ps device.
6247         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6248         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6249         * tty/devascii/R.proto: Likewise.
6250         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6251         \(uA, \(dA.
6252         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6254         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6256         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6257         def_table.
6259 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6261         * troff/div.c (when_request): Use symbol::is_null rather than
6262         has_arg to determine whether we have an argument.
6263         (change_trap): Remove the trap if we get an invalid number. Give
6264         an error if we don't get at least the macro name.
6265         (diversion_trap): Remove trap if we get an invalid name or number.
6267         * troff/env.c (environment_switch): Pop if we get an invalid
6268         symbol or numeric expression.
6270         * troff/input.c (do_define_macro):  If EOF is encoutered while
6271         defining the macro, do tok.next() before returning.
6273         * troff/token.h (has_arg): Move definition from here, to ...
6274         * troff/input.c (has_arg): ... here
6276         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6277         * troff/input.c (shift): Likewise.
6279         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6280         for `.c'.
6282         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6283         `..'.
6285         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6286         interpret_lf_args succeeds.
6288         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6289         \\.  This avoids problems with \$N.
6291         * groff.sh: Pass -C to preprocessors.
6293         * lib/lf.c (interpret_lf_args):  Be more flexible.
6295         * tbl/main.c (main): Add -C option.
6296         (table_input::get): Do not recognize TE if followed by character
6297         other than a space or newline unless -C option given.
6298         (process_input_file): Likewise for lf, TS.
6299         (process_data): Likewise for lf in text blocks.
6301         * eqn/main.c (main): Add -C option.
6302         (do_file): Don't recognize EQ, EN or lf if followed by character
6303         other than space or newline unless -C option given.
6304         * eqn/lex.c (file_input::read_line): Similarily.
6305         * eqn/eqn.h: Declare compatible_flag.
6307         * etc/soelim.c (main): Add -C option.
6308         (interpret_lf_args): Use version in libgroff.
6309         (do_file):
6311         * pic/main.c (main): Add -C option, which sets compatible_flag.
6312         (top_input::get), (top_input::peek):  If -C option not given,
6313         do not recognize .PS/.PE/.PF/.lf if followed by a character
6314         other than space or newline.
6315         * pic/lex.c (file_input::read_line): Similarily.
6316         * pic/pic.h: Add declaration of compatible_flag.
6318 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6320         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6322         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6323         derived from node.  New class space_char_hmotion_node.
6324         * troff/input.c (asciify_macro): New function.
6325         * troff/input.c (init_input_requests): New request `asciify' bound
6326         to asciify_macro.
6327         * macros/mm.diff: New file.
6328         * Makefile:  In install.mm target use `patch' to apply
6329         macros/mm.diff.
6331         * troff/input.c (macro::print_size): Just print the size in bytes.
6333         * troff/div.c (return_request): Correct the argument
6334         interpretation.
6336 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6338         * troff/node.h (class composite_node): Add sz member.
6339         * troff/node.c (composite_node::size): Return sz.
6340         * troff/input.c (macro_to_node):  Use the initial size in the
6341         environment as the size of the composite_node.
6343         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6344         default.
6346 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6348         * troff/div.c (change_trap): If we get a bad number expression,
6349         do nothing.
6351 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6353         * lib/matherr.c (matherr): Define this only if math.h defines
6354         TLOSS.
6356 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6358         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6359         no diversion trap return vunits(INT_MAX - vresolution).
6361 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6363         * troff/input.c (do_zero_width): New implementation that doesn't
6364         use a temporary environment. Use instead:
6365         (token::add_to_node_list): New function.
6366         * troff/env.c (environment::get_prev_char_height),
6367         (environment::get_prev_char_height),
6368         (environment::get_prev_char_skew): New functions.
6369         (environment::get_prev_char): New function.
6370         (environment::get_prev_char_width): Change to use get_prev_char.
6371         (init_env_request): Implement new registers .cht, .cdp, .csk.
6372         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6373         \Z being processed in a separate environment.
6375 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6377         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6379         * tbl/table.c (table::init_output): In the section release macro,
6380         give a warning message if the section won't fit on one page.
6382         * tbl/table.c (table::do_top): Emit table keep only if table is
6383         boxed.
6384         (table::do_bottom): Likewise for table release.
6385         (table::table), (table::add_vertical_rule):  Remove reference to
6386         keep member.
6387         * tbl/table.h: Remove keep member.
6389         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6390         SECTION_RELEASE_MACRO, if there's not enough space before the next
6391         trap to output the diversion, call T# ourselves, set
6392         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6393         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6394         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6395         vertical position and return to it before turning traps on again.
6396         
6397 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6399         * troff/node.c, troff/node.h: In classes derived from node,
6400         replace prev_char_width method by last_char_node method.
6401         * troff/env.c (environment::get_prev_char_width): Use
6402         node::last_char_node rather than node::get_prev_char_width.
6404         * Makefile: Added comment about -fno-inline on 68030-based
6405         Apollos.
6407         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6408         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6409         expressions using sizeof to int.
6410         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6412         * macros/tmac.e (TS):  Don't move @f back past the current
6413         position.
6415 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6417         * ps/ps.c (main): Buffer stderr.
6418         * dvi/dvi.c (main): Likewise.
6419         * tty/tty.c (main): Likewise.
6421         * ps/ps.c (ps_printer::do_import): Improve error handling.
6423         * troff/input.c (abort_request): Use asciify.
6425         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6426         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6427         type of first argument int rather than char.  This works around a
6428         bug on the 68030 based Apollo using g++ 1.37.1.
6430         * tbl/table.h (class table): Add `keep' member.
6431         * tbl/table.c (table::table): Initialize `keep'.
6432         (table::add_vertical_rule): Set `keep' to 1.
6433         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6434         (table::do_bottom): Likewise for table release macro.
6435         (table::do_row): Emit section keep macro even if the row is 0.
6437 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6439         * macros/tmac.e (@C): Preserve the font family across the change
6440         in environments.
6442 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6444         * lib/font.c: Initialize font::hor and font::vert to 1.
6445         (font::load_desc): Check the values of font::hor and font::vert.
6447         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6448         be included in a C compilation.
6449         (iftoa): Use INT_DIGITS. Include lib.h.
6450         (itoa): Likewise.
6451         (as_string): Likewise.
6452         * tbl/table.c: Removed definition of INT_DIGITS.
6453         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6454         * troff/input.c (input_input_requests): Likewise.
6455         * ps/ps.c (make_encoding_name): Likewise.
6456         (ps_printer::set_style): Likewise.
6457         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6459         * tty/devascii/R.proto: Map fm onto '.
6460         * tty/devlatin1/R.proto: Likewise.
6462 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6464         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6465         argument to \w is at a different input level.
6467         * tbl/table.c (table::init_output): Define a new macro
6468         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6469         transparently outputs itself.
6470         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6471         vpt.
6472         (table::do_row): Likewise.
6474         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6475         TRANSPARENT_STRING_NAME.
6477         * tbl/table.c (table::init_output): In the table release macro
6478         print an error message and don't produce any output if after
6479         issuing the need request the table still will not fit.  Also
6480         remove the diversion after bringing it back.
6482         * tbl/table.c (table::init_output): Define a new macro
6483         REPEATED_MARK_MACRO, like mk but if in a diversion also
6484         transparently outputs itself.
6485         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6486         is necessary because .TH might not call .T#.
6487         (table::do_top): Likewise TOP_REG.
6488         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6489         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6490         table header might contain just the two top rules.
6492 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6494         * troff/div.c: Implement new request `ptr' to print all traps.
6496         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6497         init_string_env_reg.
6498         * troff/env.c (class tab_reg): Deleted.
6500 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6502         * troff/div.c: New number register .pn returns the number of the
6503         next page as set by the pn request.
6505         * macros/tmac.an: Redid headers and footers.  Number each manual
6506         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6507         optional 5th argument to .TH which specifies the manual name and
6508         appears in the center of the header.  Understand the X, P and D
6509         registers like Sun.
6511 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6513         * troff/env.c (init_env_requests): New number register `.lt' to
6514         return the title length.
6516         * troff/node.h (class transparent_dummy_node): New class.
6517         * troff/node.c (class transparent_dummy_node): Provide member
6518         functions. 
6519         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6520         than a dummy_node.
6522         * troff/input.c (token::next): New escape sequence \).
6523         * troff/input.c (get_copy): Recognize \) in copy mode.
6525         * troff/input.c (input_stack::clear): New function.
6526         * troff/input.c (exit_request): Use input_stack::clear.
6528         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6529         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6531         * troff/env.c: Move set_page_character to input.c.  Move
6532         page_character to input.c also.
6533         * troff/env.c (title): Split off the reading of the parts of the
6534         title into read_title_parts.
6535         * troff/input.c (read_title_parts): New function.  Check the
6536         input_level when testing whether a token matches the delimiter.
6538         * troff/input.c (exit_request): New function.
6539         * troff/input.c (init_input_requests): Bind ex request to
6540         exit_request rather than exit_groff.
6542         * troff/input.c (exit_groff): Call tok.next() before
6543         process_input_stack().
6545 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6547         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6548         * troff/env.h: ditto.
6549         * troff/input.c: ditto.
6551         * troff/env.c (environment::is_empty): Test pending_lines.
6553         * troff/env.c (environment::have_pending_lines): Removed.
6555         * troff/input.c: Add request to flush pending lines from the
6556         environment.
6558         * troff/env.c, troff/env.h: Add automatic widow control feature.
6560         * troff/input.c (exit_groff):  Do process_input_stack() after
6561         do_break() but before setting exit_flag to 2.
6563         * troff/input.c: Remove FLUSH_PENDING_LINES and
6564         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6565         environment after END_TRAP token seen, but only if there aren't
6566         any more traps still unfinished.
6567         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6569 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6571         * troff/env.c: Rename the `retain_size' member of class
6572         pending_output_line to `no_fill'.
6574         * troff/env.c (title): When the line is output, make the
6575         retain_size argument !fill.
6577         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6578         * troff/node.c (space_node::get_breakpoints),
6579         (dbreak_node::get_breakpoints):  Fill this in.
6580         * troff/env.c:  Allow specification of maximum number of
6581         consecutive hyphenated lines.
6583         * troff/env.c (environment::is_empty): Add test for !current_tab.
6585 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6587         * troff/env.c (environment::hyphenate_line): Don't completely give
6588         up if the word is not to be hyphenated; continue so that breaks
6589         can be made at break_char_node's.
6591         * lib/lib.h: Only define INT_MAX if it's not already defined;
6592         undef INT_MIN if it's already defined.
6594         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6596         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6597         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6598         compiler.
6599         
6600         * macros/tmac.an (an-header): Set no-space mode.
6602         * macros/tmac.an (TH): Start a new page if necessary.
6604         * Started using ChangeLog at version 0.4.
6606 Local Variables:
6607 version-control: never
6608 End: