* doc/texinfo.tex: Update to latest version.
[s-roff.git] / ChangeLog
bloba6ce5f726df96900ff02797b6e9c1a8ce94e84cd
1 2000-07-30  Werner LEMBERG  <wl@gnu.org>
3         * doc/texinfo.tex: Update to latest version.
5 2000-06-28  Paul Eggert  <eggert@twinsun.com>
7         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8         commands that fail.  Don't assume that "export a=b" is valid shell
9         syntax.  This is needed for Solaris 2.5.1.
11         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
12         comment about missing Solaris headers.
14         * PROBLEMS: Add section about problems with Sun Make and VPATH.
16 2000-06-25  Werner LEMBERG  <wl@gnu.org>
18         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
19         SET_BINARY().
21         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
23         * win32-diffs: Updated.
24         * README.WIN32: Added CRs to make all Windows editors happy.
26         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
27         src/roff/groff/pipeline.c).
29 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
31         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
32         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
34 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
36         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
37         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
38         are binary files.
39         (main): Support non-Posix systems with several different styles of
40         slash characters in file names.
42         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
43         (main) [SET_BINARY]: Switch stdin into binary mode.
45         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
46         (main): Support file names with several possible slash-type
47         characters, as given by DIR_SEPS[] in nonposix.h.
48         (main) [__MSDOS__]: If renaming the temporary index file fails
49         because it has more than one dot in its trunk, replace the dot
50         with an underscore and try again.
51         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
52         Newline.
53         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
55         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
56         (File::File): Open the input file in binary mode.  Strip CR
57         characters from each CR-LF pair.
58         (xbasename): Support file names with several possible slash-type
59         characters, as given by DIR_SEPS[] in nonposix.h.
61         * src/include/Makefile.sub (HDRS): Add nonposix.h.
63         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
64         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
65         [!_POSIX_VERSION]: Define for traditional Unix systems.
66         (real_output_file::real_output_file): Remove the MSVC-specific
67         call to popen, use instead POPEN_WT, appropriately defined on
68         nonposix.h.  #include nonposix.h.
69         (real_output_file::~real_output_file): Remove the MSVC-specific
70         call to pclose, a suitable macro is now defined on nonposix.h.
71         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
72         and WEXITSTATUS instead of assuming traditional Unix
73         interpretation of the status returned by pclose.
75         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
76         call to popen, use POPEN_RT instead (appropriately defined on
77         nonposix.h).  #include nonposix.h.
78         (ps_bbox_request): Open the PostScript file in binary mode.
79         Close the file after processing it.
80         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
81         nonposix.h.
83         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
84         A version of run_pipeline that doesn't use `fork'.
85         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
86         (system_shell_name, system_shell_dash_c)
87         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
88         the ugliness of testing DOS/Windows file names for equality, and
89         support both stock shells and ports of Unix shells.
91         * src/roff/groff/groff.cc: #include nonposix.h.
92         (BSHELL): Definition moved to nonposix.h.
93         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
94         instead of a literal "-c".
95         (xbasename): Support file names with several possible slash-type
96         characters, as given by DIR_SEPS[] in nonposix.h.
97         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
98         of literal strings.
100         * src/preproc/soelim/soelim.cc: #include nonposix.h.
101         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
103         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
104         pic_tab.h.
106         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
108         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
109         eqn_tab.h.
111         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
113         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
114         P_tmpdir is defined, use it instead of the literal "/tmp".
115         (remove_tmp_files, add_tmp_file): New functions.
116         (xtmpfile): Record temporary files and register an atexit function
117         to delete them explicitly, instead of relying on the OS to do
118         that, which doesn't work on non-Unix systems.
120         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
121         (search_path::search_path): Use PATH_SEP instead of a literal
122         colon.
123         (search_path::command_line_dir): Ditto.
124         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
125         to support non-Posix systems.
127         * src/libc/libbib/search.cc: #include nonposix.h.
128         (search_list::add_file): Open the file in binary mode.
130         * src/libs/libbib/linear.cc: #include nonposix.h.
131         (file_buffer::load): Remove \r characters preceding \n from the
132         loaded buffer.
134         * src/libs/libbib/index.cc: #include nonposix.h.
135         (make_index_search_item): Open index_filename in O_BINARY mode.
136         (index_search_item_iterator::get_tag): Ditto.  Remove \r
137         characters before \n characters.
138         (index_search_item::check_files): Open files in binary mode.
139         (index_search_item::munge_filename): Support DOS-style file names
140         with backslashes and drive letters, use IS_ABSOLUTE.
142         * src/devices/grops/ps.cc: #include nonposix.h.
143         (main) [SET_BINARY]: Switch stdout to binary mode.
145         * src/devices/grolj4/lj4.cc: #include nonposix.h.
146         (main) [SET_BINARY]: Switch stdout to binary mode.
148         * src/devices/grolbp/lbp.cc: #include nonposix.h
149         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
151         * src/devices/grodvi/dvi.cc: #include nonposix.h.
152         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
153         nonposix.h).
154         (main) [SET_BINARY]: Switch stdout to binary mode.
155         [_MSC_VER]: Remove an explicit call to _setmode.
157         * src/include/nonposix.h: New file.
159         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
160         operation when building with DJGPP.
161         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
162         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
163         ENVSETUP.
165         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
166         MS-DOS.
167         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
168         etc. can include a semi-colon on DOS/Windows.
169         (depend.temp): Use depend1.temp instead of depend.temp1, to
170         prevent files from overerwiting each other on 8+3 filesystems.
172         * gendef.sh (t): Change definition to work with DOS/Windows.
174         doc/groff.texinfo: Apart of some typo corrections, I also changed
175         some index entris, to make them more non-ambiguous, and also put
176         @ignore around some parts that are not yet written, to allow the
177         Info output be readable.
179 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
181         Replaced specific checks for function declarations with a generic
182         routine taken from GNU bfd.
184         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
185         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
186         * configure.in: Use it.
187         * src/devices/grolbp/lbp.cc, src/include/lib.h,
188         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
189         src/roff/groff/groff.cc: Use it.
190         * Makefile.in, configure: Updated.
192 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
194         * src/devides/grolbp/lbp.h: Removed unused variables.
196 2000-05-31  Keith Thompson  <kst@sdsc.edu>
198         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
199         strncasecmp().
201 2000-05-31  Werner LEMBERG  <wl@gnu.org>
203         * aclocal.m4 (GROFF_SRAND): New function to test the return value
204         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
205         * configure.in: Use it.
206         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
207         * configure, Makefile.in: Updated.
209         * configure.in: Add test for strncasecmp().
210         * src/include/lib.h: Use it.
212 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
214         * src/preproc/grn/Makefile.sub: Add MLIB.
216 2000-05-29  Nix  <nix@esperi.demon.co.uk>
218         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
220 2000-05-29  Werner LEMBERG  <wl@gnu.org>
222         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
224         * PROBLEMS: Small update.
226         * src/devices/grolbp/lbp.cc: Various small fixes.
228 2000-05-28  Keith Thompson  <kst@sdsc.edu>
230         * src/roff/nroff/nroff.sh: Fix main loop syntax.
232         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
234 2000-05-25  Werner LEMBERG  <wl@gnu.org>
236         * man/roff.man: Removed unused macro.
238 2000-05-24  Werner LEMBERG  <wl@gnu.org>
240         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
241         This is needed e.g. if you do
242         `make distclean; ./configure; make dist'.
244 Version 1.16 released
245 =====================
247 2000-05-23  Werner LEMBERG  <wl@gnu.org>
249         Adding font CWI (constant width italic) to devdvi.
251         * font/devdvi/CWI: New file.
252         * font/devdvi/generate/Makefile: Add generating rule.
253         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
254         tmac/tmac.dvi: Use it.
255         * NEWS: Announce it.
257         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
258         * font/devlj4/generate/Makefile: Cosmetic changes only.
260         * man/groff.man: Removed most of the redundant description of
261         special characters (which is in groff_char.man).  Added font
262         translation CB->CR for devdvi.  Other minor fixes.
264         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
265         (registered) symbols.
267 2000-05-22  Werner LEMBERG  <wl@gnu.org>
269         * doc/Makefile: Added rule for creating info files.
271         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
272         AMS font metrics.
273         * font/devdvi/generate/Makefile: Fixed dependencies.
275         * font/devps/*: Regenerated.  Heavy changes for Bookman and
276         NewCentury Schoolbook!
277         * font/devps/generate/afmname: Will now run with GNU awk.
278         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
279         * font/devps/generate/Makefile: Cosmetic changes only.
281 2000-05-21  Werner LEMBERG  <wl@gnu.org>
283         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
284         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
285         `.SS' now produces a heading with a smaller size than `.SH'. 
286         Completely formatted.
287         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
289         * man/groff.man: Improved table appearance.  Use of `eo' request
290         to reduce number of doubled backslashes in macro definitions.
291         Replacing `\e' with `\(rs'.  Other minor fixes.
293         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
294         to have correct line number.
296         * INSTALL: Small improvement.
298 2000-05-20  Bernd Warken  <bwarken@mayn.de>
300         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
301         WL).
303 2000-05-19  Bernd Warken  <bwarken@mayn.de>
305         * man/groff.man: Complete update (with a lot of corrections by WL).
307 2000-05-18  Werner LEMBERG  <wl@gnu.org>
309         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
311         * font/*/*: Implement it.
312         * man/groff_char.man, NEWS: Document it.
314         * src/include/unix.h: Removed.  It isn't used.
316         * doc/groff.texinfo: Slight improvements.
318 2000-05-17  Werner LEMBERG  <wl@gnu.org>
320         * README, win32-diffs: Small fixes and improvements.
322 2000-05-16  Werner LEMBERG  <wl@gnu.org>
324         * FDL: New file (the Free Documentation License version 1.1).
326         * doc/groff.texinfo: Added many start-up values for gtroff.
327         Some structural improvements of the source code.
329 2000-05-15  Werner LEMBERG  <wl@gnu.org>
331         * src/roff/troff/input.cc: Added small comment about troffrc-end.
332         * src/roff/troff/troff.man: Added info about troffrc-end.
334 2000-05-14  Werner LEMBERG  <wl@gnu.org>
336         * Makefile.in (EXTRADIRS): Fix typos.
337         (dist): Handle deletion of old .tar.gz file correctly.
338         (DISTDIRS): Include all tty output devices.
340         * doc/groff.texinfo: Adding more cross references; countless other
341         fixes.
343 2000-05-13  Werner LEMBERG  <wl@gnu.org>
345         * MORE.STUFF: Added Robert Marks's utilities.
347 2000-05-12  Werner LEMBERG  <wl@gnu.org>
349         Added win32 port contributed by Blake McBride
350         <blake@florida-software.com>.
352         * README.WIN32, win32-diffs: New files.
353         * NEWS: Updated.
355         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
356         (tmove, tmove2): Added parentheses to avoid compiler warnings.
357         (change): Removed unused variables.
359         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
360         (savebounds): Changed return value from `int' to `void'.
361         * src/preproc/grn/hdb.cc: Ditto.
363         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
364         final backslash in comment to avoid compiler warning.
366         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
368         * doc/groff.texinfo: More fixes.
370 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
372         * tmac/tmac.doc: Documentation fix.
374 2000-05-11  Werner LEMBERG  <wl@gnu.org>
376         * doc/groff.texinfo: Reading the source code shows up a lot of
377         omissions and incorrect data...  More conversion to @Deffn macros.
379 2000-05-10  Werner LEMBERG  <wl@gnu.org>
381         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
382         dependency.
384         * src/roff/troff/request.h: Removing unused `no_break_flag'.
386 2000-05-09  Werner LEMBERG  <wl@gnu.org>
388         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
389         improvements.
391         * doc/groff.texinfo: Extended history section.  More conversion to
392         @Deffn macros.  More .tr documentation.
394 2000-05-07  Werner LEMBERG  <wl@gnu.org>
396         * doc/groff.texinfo: Completed tab section.  Added info about
397         fields.
399 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
401         * PROBLEMS: Describe configure script fix for OS/390 Unix.
403 2000-05-05  Werner LEMBERG  <wl@gnu.org>
405         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
406         LaTeX 2e).
407         * NEWS: Document it.
409         * man/troff.man: Minor optical improvements.
411 2000-05-03  Werner LEMBERG  <wl@gnu.org>
413         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
415         * font/*/*: Implement it.
416         * man/groff_char.man, NEWS: Document it.
418 2000-05-02  Werner LEMBERG  <wl@gnu.org>
420         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
421         expansion.
422         * NEWS: Document the three new man pages.
424         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
425         * configure: Updated.
427         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
429 2000-05-01  Werner LEMBERG  <wl@gnu.org>
431         Added grap support to grog.
433         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
434         * src/roff/grog/grog.man: Document it.
436         * doc/groff.texinfo, NEWS: Add info about grap support.
438         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
439         (with slight fixes by me).
441         * tmac/groff_tmac.man: New file documenting tmac mechanism.
442         * tmac/Makefile.sub: Add groff_tmac.man.
443         * man/roff.man: New file giving overview of roff system.
444         * man/troff.man: A short reference of troff.
445         * man/Makefile.sub: Add roff.man and troff.man.
447 2000-04-30  Werner LEMBERG  <wl@gnu.org>
449         Added grap support to groff.
451         * src/roff/groff/groff.cc: Implement it.
452         * src/roff/groff/groff.man: Document it.
454         * src/devices/grotty/grotty.man: Add cp1047 device.
455         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
456         Ditto.
457         * src/roff/groff/groff.man: Ditto.
458         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
459         * doc/groff.texinfo: Ditto.
461         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
462         for cp1047.
464 2000-04-29  Werner LEMBERG  <wl@gnu.org>
466         * man/groff_char.man: Add `pc' glyph.
467         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
468         * tmac/tmac.tty: Add `pc' glyph.
469         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
470         we use cp1047 output device.
472         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
473         there are still hardcoded latin1->unicode values in utf8's font
474         definition files.
475         * configure: Updated.
476         * NEWS: Minor clarification.  Updated.
478         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
479         Unix.
481 2000-04-28  Werner LEMBERG  <wl@gnu.org>
483         Adding EBCDIC code page 1047.
485         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
486         font/devcp1047/DESC.proto: New files.
488         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
489         either ascii/latin1 or cp1047.
490         * Makefile.in: Use it.
491         * configure: Updated.
493         Replacing and/or adding `md' (mathdot) glyph with `pc'
494         (periodcentered) in all text fonts.
496         * font/*/*: Change it.
498 2000-04-27  Werner LEMBERG  <wl@gnu.org>
500         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
502         * configure.in: Add check for strings.h.
503         * src/include/driver.h: Use HAVE_STRINGS_H.
504         * src/devices/grolbp/lpb.cc: Remove string.h.
506         * src/include/groff-getopt.h: New file.  It will be used instead of
507         getopt.h (to be included in lib.h) to avoid endless problems with
508         picky C++ compilers.
509         * src/include/lib.h: Use groff-getopt.h.
510         * src/include/Makefile.sub: Updated.
512         * configure: Updated.
513         * Makefile.in: Updated.
515         * NEWS: Mention EBCDIC support.
517 2000-04-26  Werner LEMBERG  <wl@gnu.org>
519         * TODO: Some additions.
521 2000-04-25  Werner LEMBERG  <wl@gnu.org>
523         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
524         of mso request.
526 2000-04-23  Werner LEMBERG  <wl@gnu.org>
528         * src/roff/troff/troff.man: Minor fixes.
530 2000-04-22  Werner LEMBERG  <wl@gnu.org>
532         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
533         `.T' string register and the incompatible definition of the `.T'
534         number register (compared to Unix troff).
536         * man/groff_char.man: Add some missing characters.
537         * font/devutf8/NOTES: Update.
539 2000-04-21  Werner LEMBERG  <wl@gnu.org>
541         * src/include/htmlindicate.h, src/include/lib.h,
542         src/include/posix.h: Fix copyright.
544         * src/include/Makefile.sub: Update.
546 2000-04-20  Werner LEMBERG  <wl@gnu.org>
548         * src/roff/troff/input.cc (input_char_description): Removing
549         superfluous space char.
551         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
553         * doc/groff.texinfo: Document EBCDIC.
555 2000-04-19  Werner LEMBERG  <wl@gnu.org>
557         Introducing `shc' as the glyph name for the soft hyphen character.
559         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
560         font/devlatin1/R.proto: Use it.
562         * NEWS: Updated.
564 2000-04-18  Werner LEMBERG  <wl@gnu.org>
566         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
567         dependency on ASCII order.
569 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
571         * src/libs/libgroff/illegal.c: Added EBCDIC table.
572         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
574         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
575         to increase portability.
577 2000-04-15  Werner LEMBERG  <wl@gnu.org>
579         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
580         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
581         the generic `\n' if under OS/390 Unix.
583         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
585         * configure: Regenerated.
587 2000-04-14  Werner LEMBERG  <wl@gnu.org>
589         * doc/groff.texinfo: More conversions to @Deffn.
591 2000-04-12  Werner LEMBERG  <wl@gnu.org>
593         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
594         with `:'.
596         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
598 2000-04-10  Werner LEMBERG  <wl@gnu.org>
600         * doc/groff.texinfo: More conversions to @Deffn.
602 2000-04-08  Werner LEMBERG  <wl@gnu.org>
604         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
605         Updated to latest version (glibc 2.1.3).
607 2000-04-07  Werner LEMBERG  <wl@gnu.org>
609         * doc/Makefile (clean): Include more index files.
610         Add rule texinfo->dvi.
612 2000-04-05  Werner LEMBERG  <wl@gnu.org>
614         * doc/groff.texinfo: Added new index `op' for operators.  More
615         info on end of sentence characters.  More use of @Deffn.
617 2000-03-30  Werner LEMBERG  <wl@gnu.org>
619         * */*.man: Adding a note that a whitespace can be inserted between
620         a command line option and its parameter -- we are using GNU getopt.
622         * src/roff/groff/groff.man: Add example of `-m mandoc'.
624 2000-03-28  Werner LEMBERG  <wl@gnu.org>
626         Correct anachronism of calling the man macro file with `-man'
627         instead of `-m man' etc.
629         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
630         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
631         load tmac.<package>.
633         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
635         * NEWS: Updated.
637         * doc/groff.texinfo: Updated.
639         * tmac/groff_man.man: Copyright added.
641 2000-03-27  Werner LEMBERG  <wl@gnu.org>
643         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
644         typeset the request resp. escape name with a tt font -- due to a
645         bug in texinfo.tex it is necessary to use the `-e' switch with
646         texi2dvi.
648         Improving info about usage of groff units.
650         Other minor fixes.
652 2000-03-20  Werner LEMBERG  <wl@gnu.org>
654         * doc/groff.texinfo: Added section about man macro package
655         (I've basically taken groff_man.man).  Introducing new indices `ma'
656         for macros/strings and `gl' for glyph names.  Other minor fixes.
658         * tmac/groff_man.man: Fixed some typos.
660 2000-03-19  Werner LEMBERG  <wl@gnu.org>
662         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
663         Other minor fixes.
665         * doc/texinfo.tex: New file.
667 2000-03-18  Werner LEMBERG  <wl@gnu.org>
669         * doc/groff.texinfo: Improved section on number registers.  Other
670         minor updates.
672 2000-03-16  Werner LEMBERG  <wl@gnu.org>
674         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
675         synopsis.
677         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
678         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
679         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
680         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
682         * src/preproc/grn/grn.man: Better synopsis; added copyright.
684         * src/roff/grog/grog.man: Updated copyright date.
686 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
688         * configure.in: Added test for strdup.
690         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
691         is available.
693         Replaced dynamic allocation of arrays `[...]' with `new' operator.
695         Other minor fixes.
697 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
699         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
701 2000-03-11  Werner LEMBERG  <wl@gnu.org>
703         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
704         compilers silent.
705         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
706         * src/include/lib.h: Remove some spaces.
708 2000-03-10  Werner LEMBERG  <wl@gnu.org>
710         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
711         initializers from arguments (some compilers don't like this).
713 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
715         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
716         used by pic and eqn to tell grohtml where the graphic regions start
717         and end.
718         * src/libs/libgroff/Makefile.sub: Use it.
719         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
720         graphic_start() and graphic_end() from htmlindicate.cc.
722 2000-03-09  Werner LEMBERG  <wl@gnu.org>
724         * tmac/tmac.safer: Will now work correctly in compatibility mode.
725         * tmac/groff_man.man: More fixes.
727 2000-03-08  Werner LEMBERG  <wl@gnu.org>
729         * doc/Makefile: Added texput.log to the `clean' target.
730         * doc/groff.texinfo: Added info about delimiters for escapes.
732 2000-03-08  Bernd Warken  <bwarken@mayn.de>
734         * src/preproc/pic/pic.man: Add info on conversion of pic images to
735         other graphic formats.
737 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
739         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
740         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
741         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
742         files.
744 2000-03-07  Werner LEMBERG  <wl@gnu.org>
746         * doc/groff.texinfo: Spelling fixes.
748 2000-03-06  Werner LEMBERG  <wl@gnu.org>
750         * tmac/groff_man.man: Completely revised to cover everything in
751         tmac.an.
753         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
754         Other minor fixings.
755         * src/roff/troff/env.cc (environment_copy): Improve error message and
756         fix itoa->i_to_a.
757         * src/roff/troff/TODO: Updated.
759         * doc/Makefile: Bug fixes -- this is still provisional, though...
761         * tmac/eqnrc: Small fixes.
763 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
765         Adding a request `evc' to copy environments.
767         * src/roff/troff/env.cc (environment::copy, environment_copy):
768         Implement it.
769         * src/roff/troff/env.h: Add prototype.
771 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
773         Adding strsep() -- Solaris 8 doesn't have it.
775         * configure.in: Test it.
776         * src/devices/grolbp/lbp.cc: Add code.
778 2000-03-05  Werner LEMBERG  <wl@gnu.org>
780         * src/roff/troff/div.cc (macro_diversion::output,
781         top_level_diversion::output): Fixing an incompatibility with
782         original troff: \x'0' updates the .a register also.  Thanks to
783         <Andries.Brouwer@cwi.nl> for pointing this out.
784         * doc/groff.texinfo: Document it.
786         * Makefile.in: Create Makefile.dep if necessary before calling the
787         submake process to avoid warning about nonexistent file.
789         * NEWS, PROJECTS: Updated.
791 2000-03-04  Werner LEMBERG  <wl@gnu.org>
793         * tmac/troffrc: Add tmac.lbp.
795 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
797         * tmac/tmac.lbp: New file.
798         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
799         command.
801 2000-03-03  Werner LEMBERG  <wl@gnu.org>
803         * Makefile.in: Fixing $(subdir).
805         * README, NEWS: Small fixes.
807         * test-groff: Adding path to grolbp.
809         * configure.in: The (new) file src/xditview/Imakefile.in will be
810         also configured -- it is now possible to build gxditview in a
811         directory different from $srcdir.
813 2000-03-02  Blake McBride  <blake@florida-software.com>
815         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
817         * MORE.STUFF: Added website of bell labs and info about plot2dev.
819 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
821         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
822         files.
824 2000-02-29  Werner LEMBERG  <wl@gnu.org>
826         Adding GNU getopt to the groff distribution.
828         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
829         New files.
830         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
831         * aclocal.a4: Remove GROFF_GETOPT function.
832         * configure.in, Makefile.in, PROBLEMS: Update.
833         * src/include/lib.h: Replace getopt tests with getopt.h.
834         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
836         * doc/groff.texinfo: Further checking/updating.  Adding more index
837         entries.
839         * man/groff_out.man: Fix nroff mode activation (for emacs).
840         * man/groff_font.man: Add missing ligature.
842 2000-02-28  Werner LEMBERG  <wl@gnu.org>
844         * doc/groff.texinfo: Further checking/updating.  Adding more index
845         entries.
847         * src/devices/grolbp/grolbp.man: Added a comment line at the
848         beginning of the file (similar to shell scripts) which indicates
849         that `tbl' should be used as a preprocessor.
851 2000-02-27  Blake McBride  <blake@florida-software.com>
853         Adapting groff to MS Visual C++ 6.0 compiler (tested with
854         Windows NT 4.0).  Uses _MSC_VER define where necessary.
856         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
857         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
858         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
859         src/include/lib.h, src/libs/libgroff/errarg.cc,
860         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
861         src/preproc/refer/label.y, src/preproc/refer/label.cc,
862         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
863         src/roff/troff/div.cc, src/roff/troff/env.cc,
864         src/roff/troff/input.cc, src/roff/troff/node.cc,
865         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
866         if_to_a() to avoid name clashes.
867         * src/include/posix.h: Don't use unistd.h.
868         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
869         clause for integrating non-Unix xtmpfile() code.
870         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
871         structure; use "rt" for popen() in pipe_source(); add getpid()
872         dummy function.
873         * src/roff/troff/node.cc: Use special versions of popen() in
874         real_output_file() and pclose() in ~real_output_file().
876 2000-02-27  Werner LEMBERG  <wl@gnu.org>
878         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
879         LBP-8 series laser printers).  This code has been contributed by
880         Francisco Andres Verdu <pandres@dragonet.es>.
882         * src/devices/grolbp/*: The grolbp output device.
883         * font/devlpb/*: The font description files.
884         * Makefile.in: Add grolpb and devlbp subdirectories.
886         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
887         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
888         typographic fixes.
890         * doc/groff.texinfo: Further checking/updating.  Adding more index
891         entries.
893         * NEWS: Updated.
895         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
897         * man/groff_font.man: Adding info about obsolete DESC keywords.
898         * src/devices/grolj4/grolj4.man: Documenting additional DESC
899         keywords.
901 2000-02-26  Werner LEMBERG  <wl@gnu.org>
903         * src/preproc/grn/grn.man: Added info about the gremlin file format
904         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
906 2000-02-25  Werner LEMBERG  <wl@gnu.org>
908         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
909         friends to be non-integer.
911         * src/preproc/grn/grn.man: Document it.
913         * doc/groff.texinfo: Further checking/updating.  Adding more index
914         entries.
916 2000-02-24  Werner LEMBERG  <wl@gnu.org>
918         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
919         line thicknesses to be integer multiples of this value.
921         * src/preproc/grn/grn.man: Commenting out the -s option -- the
922         corresponding code doesn't work (yet).
924         * doc/groff.texinfo: Further checking/updating.  Adding more index
925         entries.
927 2000-02-23  Werner LEMBERG  <wl@gnu.org>
929         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
930         specify line thickness instead of base units.  The new default
931         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
932         thick lines respectively.
934         Removed unused variable `prevval'.
936         * src/preproc/grn/grn.man: Updated.
938 2000-02-22  Werner LEMBERG  <wl@gnu.org>
940         * src/preproc/grn/main.cc: Slight formatting.
942         * src/roff/groff/groff.man: Formatting fix.
943         * src/preproc/grn/grn.man: Ditto.
945         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
947         * doc/groff.texinfo: Further checking/updating.
949 2000-02-21  Werner LEMBERG  <wl@gnu.org>
951         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
953         * test-groff: Added grn subdir to path.
955         * doc/groff.texinfo: Some restructing and other small improvements.
957         * src/roff/groff/groff.cc (help): Fixed info string.
959 2000-02-20  Werner LEMBERG  <wl@gnu.org>
961         * doc/meref.me: Fix description of .GS request.
963         * src/roff/troff/troff.man: Fixing typo.
965         Adding the `grn' preprocessor for gremlin graphic files.
967         * src/preproc/grn/*: This is the Berkeley distribution written by
968         David Slattengren and Barry Roitblat, adapted to groff by Daniel
969         Senderowicz and Werner Lemberg.
971         * doc/grnexampl.{me,g}: A sample for grn.
973         * Makefile.in: Added subdirectory entry for grn.
975         * src/roff/groff/groff.cc: Added support for grn.  It can be now
976         called with the switch `-g'.
978         * src/roff/groff/groff.man: Updated.
980         * src/roff/grog/grog.{man,pl,sh}: Updated.
982         * NEWS: Updated.
984 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
986         * src/include/lib.h: Added xtmptemplate and made xtmpfile
987         parametrically polymorphic.
989         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
990         and the alterations to xtmpfile.
991         xtmpfile can be requested to return the filename created
992         and asked not to unlink the temp file.  The default behaviour
993         if parameters are absent is exactly the same as before.
995 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
997         A new request `length' is available which returns the length of a
998         string in a number register:
1000         * src/roff/troff/input.cc (length_macro): Implement it.
1001         * src/roff/troff/input.cc (init_input_requests): Register it.
1003 2000-02-11  Werner LEMBERG  <wl@gnu.org>
1005         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1006         of the `substring' request.
1008         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1009         request.
1011         * src/roff/troff/TODO, NEWS: Updated.
1013 2000-02-09  Werner LEMBERG  <wl@gnu.org>
1015         * src/roff/groff/groff.man: Added an example.
1017 2000-02-06  Werner LEMBERG  <wl@gnu.org>
1019         I've considerably modified the directory structure of the
1020         distribution to get a more vertical layout.  For example, the number
1021         of top level directories has been reduced from 42 to 6.
1023         As a consequence, many changes, especially to the makefiles, were
1024         necessary:
1026         * The makefile variables `top_builddir' and `top_srcdir' have been
1027         introduced.  Virtually all relative paths have been replaced with
1028         absolute ones using these two variables.
1030         * Dependencies (in the files `Makefile.dep') are no longer part of
1031         the distribution.  Instead, they are created during a `make install'
1032         in the build directory.
1034         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1035         make `top_srcdir' and `top_builddir' absolute.
1037         Some other changes:
1039         * Man pages no depend on the files `VERSION' and `REVISION'.
1041         * The added shell script `mkinstalldirs' will replace `mkdir' in
1042         almost all cases.
1044         * VERSION: Version number increased to 1.16.
1046 2000-02-04  Werner LEMBERG  <wl@gnu.org>
1048         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1050         * Makefile.in: Removed $(tmac_m) since it is no longer needed
1051         (after an update of the mm stuff).
1053         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1055 2000-02-03  Werner LEMBERG  <wl@gnu.org>
1057         The .psbb request will now also accept Mac PS images (i.e. using LF
1058         as the EOL character).
1060         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1061         (with slight modifications).
1062         * troff/input.cc (do_ps_file): Use it.
1064         * test-groff: Add grohtml and grolj4 output devices to PATH.
1066 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1068         * NEWS, MORE.STUFF: Updated.
1070 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
1072         Add the `srand' command to pic.
1074         * pic/lex.cc, pic/pic.y: Implement it.
1075         * pic/pic.man: Document it.
1076         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1078 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1080         Add a new request `.psbb'.  This does exactly what the external
1081         program psbb did.  It scans a PostScript image file for a
1082         %%BoundingBox comment and extracts the bounding box values (in
1083         PostScript units) which are then stored in the four new (read-only)
1084         number registers `llx', `lly', `urx', and `ury'.
1086         This will allow the usage of the .PSPIC macro without worrying
1087         about unsafe behaviour of groff, i.e., it will work without the
1088         `-U' switch of groff.
1090         * troff/input.cc: Implement it.
1091         * tmac/tmac.pspic: Use it.
1092         * troff/troff.man, grops/grops.man, NEWS: Document it.
1093         * psbb/*, Makefile.in: Remove it since it is no longer needed.
1095         This is bloody C code simply adapted from psbb.c!  Any improvements
1096         welcome.
1098 2000-01-29  Werner LEMBERG  <wl@gnu.org>
1100         * man/groff_font.man: Minor clarifications.
1102         * NEWS: Updated.
1104 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1106         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1108 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
1110         * man/groff_font.man: Brought up to date regarding tcommand
1111         extensions.
1112         * libgroff/font.cc: Handle everything after `--' as a comment
1113         in the font files.
1114         * devps/*: Added comment delimiter inside devps font files.
1116 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1118         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1119         \fC...\fP (which now works as expected).
1121         * troff/troff.man: Fix typo.
1123 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1125         Completed the pass_filenames implementation in troff.
1127         * libdriver/input.cc: Will read the new `F' tcommand.
1128         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1129         * troff/input.cc: Use it.
1131 2000-01-26  Werner LEMBERG  <wl@gnu.org>
1133         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
1134         font will now be updated even if an invalid font is selected.
1136 2000-01-24  Werner LEMBERG  <wl@gnu.org>
1138         * doc/homepage.ms: Updated for new tmac.arkup.
1140         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1142         * tmac/tmac.arkup: Cleanup.
1144         Added `\&' to .HTML macro to `leave vertical mode', so to say.
1146         Removed obsolete .LINK macro completely.
1148         The macros .URL, .FTP, and .MAILTO now accept a third argument which
1149         will be immediately appended to the second argument (to be used with
1150         punctuation, for example).
1152         Disabled .CDFTP macro temporarily for security reasons.
1154         * tmac/groff_markup.man: Complete revision for latest changes in
1155         tmac.arkup -- note that it does not yet format correctly with
1156         grohtml :-(
1158 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
1160         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1161         * devutf8/R.proto: Add mappings for wp, lh, rh.
1162         * devutf8/NOTES: Updated.
1164 2000-01-23  Werner LEMBERG  <wl@gnu.org>
1166         * doc/groff.texinfo: Updated version/copyright info.
1168 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
1170         Added support for two new directives in device descriptions:
1171         `pass_filenames' (to pass the input file name to the output device)
1172         and `use_charnames_in_special' (to support e.g. accented characters
1173         in the `X' request).
1175         * include/font.h, troff/charinfo.h: Declare it.
1177         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1179         * devhtml/DESC: Use it.
1181         * troff/input.cc: New function encoded_char.
1183         * troff/token.h: Add test for `specialness'.
1185 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1187         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1188         mistake from the list of files to be installed.
1190 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1192         * README: Added info how to apply patches.
1194 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1196         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1198 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1200         * troff/input.cc: Add support for troffrc-end.
1202         * tbl/main.cc: Altered to issue table-start and table-end special
1203         characters if using the html device.
1205         * devhtml/*: Modified font files to incorporate html encoding of
1206         characters.
1208         * tmac/groff_markup.man: New file documenting tmac.arkup.
1210         * tmac/troffrc-end: New file.  This is invoked after all user
1211         specified macros.  Currently used by the html device to include
1212         tmac.html.  Thus no need for users to specify -mhtml anymore.
1214         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1215         (MAN7): Add groff_markup.man.
1217         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1219         * tmac/troffrc: tmac.arkup will now be called for the html device.
1221         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1222         extra device specific information about fonts.
1224         * doc/homepage.ms: New file.  It is an example how an HTML home page
1225         could look like with grohtml.
1227         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1229 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1231         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1232         of Im, Re.
1234         * devutf8/NOTES: Updated.
1236 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1238         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1239         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1240         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1241         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1242         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1243         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1244         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1245         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1246         warnings.
1248         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1250 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1252         grolj4: Paper size will be searched case-insensitively.
1254         * include/lib.h: Add check for strcasecmp().
1255         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1256         * configure.in: Check for strcasecmp().
1258 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1260         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1261         `REVISION'.
1263 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1265         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1266         revision scheme.
1268         Add a new read-only register, `.Y', which contains the groff
1269         revision.
1271         * troff/input.cc (init_input_requests): Define it.
1272         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1273         * doc/groff.texinfo, troff/troff.man: Document it.
1275         * libgroff/Makefile.sub (version.cc): Add definition of
1276         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1277         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1278         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1279         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1280         troff/input.cc, pfbtops/pfbtops.c: Use it.
1282 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1284         Add a revision scheme to the groff package.
1286         * REVISION: New file.
1287         * libgroff/Makefile.sub (version.cc): Use it to define
1288         `revision_string[]'.
1289         * grops/psrm.cc: Use revision_string (converted to an unsigned
1290         integer) in constructor of resource_manager.
1292 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1294         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1295         files.
1296         * Makefile.in (DEVDIRS): Add devutf8.
1297         * grotty/tty.cc: Include device.h.
1298         (glyph): Change type of `code' to `unsigned int'.
1299         (tty_printer): New field is_utf8.  Constructor takes device argument.
1300         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1301         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1302         (tty_printer::put_char): New function.
1303         (tty_printer::end_page): Use put_char() instead of ::putchar().
1304         (make_printer): Pass device to tty_printer constructor.
1305         * nroff.sh: Determine default device by calling 'locale'.  As a
1306         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1307         Recognize UTF-8 locales.
1308         * tmac/eqnrc: Recognize utf8 like latin1.
1309         * tmac/troffrc: Device utf8 needs tmac.tty.
1311 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1313         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1315 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1317         Add a new predefined writeable number register, `year',
1318         which contains the current year.
1320         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1321         * tmac/tmac.s: Use it.
1322         * troff/input.cc (init_registers): Initialize it.
1324 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1326         * PROBLEMS: Fixed typo.
1328 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1330         * PROBLEMS: Add Y2k advice for the yr number register.
1332 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1334         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1336 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1338         * tmac/tmac.arkup: Slight modification of macros to provide better
1339         appearance for non-HTML formats.
1341 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1343         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1344         does not automatically translate to malloc(n) on all OSes
1345         (e.g., SunOS) so do it explicitly.  Also, check the returned
1346         value.
1348 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1350         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1352         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1353         expects this variable
1355 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1357         * doc/Makefile: Added instructions to create HTML and text
1358         versions of some files.
1360 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1362         * Updated INSTALL.gen.
1364         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1365         better resp. correctly with non-HTML devices.
1367 Version 1.15 released
1368 =====================
1370 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1372         * NEWS, VERSION: Changed to 1.15
1374 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1376         * nroff/nroff.man: -S is safer, not safe.
1378         * groff/groff.cc (main): Use `safer', not `safe', in variable
1379         names.  This does not change the behavior.
1381         * troff/input.cc (main): Likewise.
1383         * nroff/nroff.sh: Likewise.
1385         * troff/input.cc (prepend_string): New function.
1386         (main): Prepend -msafer, so that we check macro libraries for
1387         safety.
1389         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1391 Version 1.14 released
1392 =====================
1394 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1396         * NEWS, VERSION: Changed to 1.14.
1398 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1400         * refer/refer.cc: Fixing the last fix.
1402 Version 1.13 released
1403 =====================
1405 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1407         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1408         number disappear.
1410         * NEWS: Updated.
1412         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1414         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1415         document conventions, the version number must be a real.
1417 Version 1.12.1 released
1418 =======================
1420 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1422         * VERSION: Changed to 1.12.1.
1424 1999-12-22  Alan Rooks  <arooks@istar.ca>
1426         * refer/refer.cc (do_file): Slight modification to satisfy the
1427         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1428         UnixWare 7.1.
1430 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1432         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1433         notices.
1435         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1436         list of unsafe requests.
1438         * pic/pic.man: Fixed a typo.
1440         * man/groff_out.man: Fixed a typo.
1442 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1444         * Makefile.in: Doc fixes.
1446 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1448         * groff/groff.cc: Missing `U' option added to getopt().
1450         * troff/troff.man: Missing `U' option added to synopsis.
1452 Version 1.12 released
1453 =====================
1455 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1457         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1458         to the synopsis.
1460         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1461         with the more appropriate terms `safer' and `unsafe'.
1463         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1464         sys_nerr and sys_errlist[].
1466         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1468         * pic/pic.y, pic/pic.cc: Added check for fmod().
1470 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1472         * VERSION: Changed to 1.12.
1474         Here some patches from various sources; most of them taken from
1475         the Debian distribution.
1477         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1478         tmac/Makefile.sub: New files copied directly from the NetBSD
1479         distribution.  Probably, some additional adaptation later on is
1480         necessary...
1482         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1483         of unsafe requests.
1485         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1486         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1487         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1488         (`-S') is now the default.
1490         * README, NEWS: Updated.
1492 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1494         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1496         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1498 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1500         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1501         grief than relief today.  Additionally, it is against the GNU
1502         coding standards.
1504         * configure: Recreated.
1506 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1508         * configure.in: Added GROFF_LIBM.
1510         * configure: Recreated.
1512         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1513         necessary.
1515         * Makefile.in: Added definition of $(LIBM).
1517         * Makefile.comm (LIBM): Removed.
1519         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1521 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1523         * doc/Makefile: Added rule for generation pic.html.
1525         (clean): Files produced by grohtml will be removed also.
1527         * doc/pic.ms: Small fix.
1529         * tmac/tmac.html: Fixed suppression of headers.
1531 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1533         * tmac/tmac.html: Fixing horizontal arrows.
1535         Turning off hyphenation.
1537         * tmac/tmac.an: Improved support for grohtml; better indentation,
1538         no footers/headers.
1540 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1542         * tmac/tmac.arkup: Added CDFTP macro
1544         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1545         macros.
1547         * tmac/troffrc: Some additions for HTML stuff.
1549 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1551         * tmac/tmac.html: Small changes.
1553 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1555         * doc/groff.texinfo: Minor fixes.
1557 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1559         * devhtml/TR: Changed spacewidth to 3.
1561         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1563         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1565         * tmac/tmac.arkup: New file.
1567         * grohtml/ChangeLog: New file.
1569 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1571         * doc/groff.texinfo (Common Features): Added Copying chapter.
1572         Changed format to @smallbook.
1574 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1576         * NEWS: Added info about groff.texinfo.
1578         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1579         warning messages.
1581 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1583         * groff/groff.man: More updates.
1585 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1587         * doc/groff.texinfo: New file.  This manual is still very
1588         rudimentary.  It has been originally contributed by Trent
1589         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1590         additions by me.
1592         * INSTALL: Added information about the `doc' subdir
1594         * troff/troff.man: Minor fixes.
1596         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1597         reordered options.
1599         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1601         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1602         also, otherwise it is included itself in another call of `make
1603         dist'.
1605         * groff/groff.cc (synopsis): Removed superfluous space.
1607         * PROJECTS, PROBLEMS, NEWS: Updated.
1609         * xditview/Makefile: Removed.
1611         * VERSION: Updated to 1.12beta.
1613         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1615         * README: Updated: Included documentation about CVS repository,
1616         mailing lists, and daily snapshots.
1618         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1620 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1622         * tmac/tmac.an: If the tag didn't fit into the space that the
1623         macro `TP' specifies, the rest of the tag went into the space for
1624         the next line.
1626 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1628         * grolj4/lj4.cc: Added duplex printing (option `-d').
1630         * grolj4/grolj4.man: Document duplex printing.
1632 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1634         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1635         non-GNUish sed programs.
1637         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1638         definition.
1640         * configure.in (LIBS): Added `-lc'
1642         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1644         * pic/tex.cc (solid_arc): Casting M_PI to double.
1646         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1648         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1649         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1650         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1652         * groff/groff_man.man: New file.  This manual page was originally
1653         written for the Debian GNU/Linux system by Susan G. Kleinmann
1654         <sgk@debian.org>.
1656         * eqn/list.cc (list_box::compute_metrics,
1657         list_box::compute_sublist_width): Removed variable declaration to
1658         avoid shadowing warnings.
1660         * grops/psrm.cc (resource_manager::process_file): Ditto.
1662         * tfmtodit/tfmtodit.cc (main): Ditto.
1664         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1665         to avoid shadowing warnings.
1667         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1668         shadowing loop variable.
1670         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1672 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1674         New grohtml frontend to convert groff input to html.
1676         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1678         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1680         * tmac/eqnrc: Added html device.
1682         * tmac/tmac.html: New file.
1684         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1685         (troff_output::start_picture, troff_output::finish_picture),
1686         tbl/main.cc (process_input_file):
1687         Surrounded output with `graphics_start' and `graphics_end' so that
1688         the html driver can identify non-text portions.
1690         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1691         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1692         grotty/tty.ps (tty_printer::set_char): Additional parameter
1693         `name'.
1695         * include/printer.h: Class printer: New function
1696         set_char_and_width; new variables (is_char_named, is_named_set,
1697         named_command, named_char_s, named_char_n) to hold information
1698         about named characters -- needed by the html driver.
1700         * libdriver/printer.cc (printer::set_ascii_char,
1701         printer::set_special_char): Use set_char_and_width.
1703         * devhtml/*: New device files for html driver.
1705         * grohtml/*: New driver grohtml.
1707 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1709         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1710         default strings.
1712 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1714         * libgroff/string.cc (search): Small fix to test against NULL
1715         pointer.
1717 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1719         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1720         \b'abc') were stacked in reverse order when processed in a
1721         diversion.
1723         * troff/node.h: Added `*last' to struct `node' to make the above
1724         fix work.
1726         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1727         The default scale for the 'f' and 't' graphics functions were 'm'
1728         rather than 'u' (i.e., no scaling).
1730 1999-09-11  Peter Miller  <peterm@jna.com.au>
1732         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1733         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1734         defining include paths.
1736         * soelim/soelim.cc (include_path_append): New function.
1738 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1740         * tbl/main.cc (process_options): Unix (at least Documenter's
1741         Workbench) tbl allows arbitrary non-alpha characters between
1742         options.
1744 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1746         Y2k fixes.  Don't assume that the current year precedes 2000.
1748         * doc/meref.me: Add \n(y2, \n(y4.
1750         * tmac/doc-common (Yr): New number register.
1751         (Dd): Don't assume current year precedes 2000.
1753         * tmac/tmac.e (td): Likewise.
1754         (y2, y4): New number registers.
1756         * pic/pic.man: Update reference for pic paper to May, 1991
1757         version.
1759 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1761         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1762         Removed quotation marks which prevented correct expansion of
1763         $(tmac_wrap).
1765         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1767 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1769         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1770         `config.cache'.
1772         * Removed configure.old.
1774 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1776         * VERSION: Updated to 1.11.1
1778 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1780         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1782         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1783         added quotations around $(tmac_wrap) to avoid syntax error if
1784         variable is empty.
1786         * configure: Newly generated using autoconf 2.13.
1788         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1790 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1792         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1793         doc/Makefile. doc/pic.ms, groff/groff.man:
1794         Prepare for 1.11 release.  No code changes.
1795         Documentation for pic added (doc/pic.ms).
1797 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1799         * Version 1.10 released.
1801 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1803         * afmtodit/afmtodit.pl: Avoid comment on first line.
1805 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1807         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1808         * configure.in: Call it.
1810         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1811         (distfiles): Doesn't depend on config.log or config.cache.
1813 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1815         * grog/grog.sh: Use print "" rather than print in END rule.
1817 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1819         * tbl/main.cc (process_data): Don't give error for excess data
1820         entries that are comments.
1822 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1824         * tbl/main.cc (process_data): Fix case where new for-scope rules
1825         silently change meaning of code.
1827 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1829         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1830         of non-zero hyphenation codes.
1832 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1834         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1836 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1838         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1840 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1842         * tmac/tmac.andoc: Make it work in compatibility mode.
1844         * refer/token.h (token_info::is_range_sep): New function.
1845         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1846         * refer/ref.cc (reference::output): More sophisticated check for
1847         multiple pages.
1849         * devps/prologue.ps (MANUAL): New procedure.
1850         * grops/ps.cc (main): New -m option.
1851         (usage): Include -m.
1852         (ps_printer::~ps_printer): Implement -m.
1854         * aclocal.m4 (GROFF_G): New macro.
1855         * configure.in: Call it.
1856         * Makefile.in (g): Provided by configure.
1858         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1860         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1861         translations.
1863         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1864         (tmac_m, tmac_s): Deleted.
1865         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1866         tmac_s_prefix): New variables.
1867         (MDEFINES): Change accordingly.
1868         * Makefile.comm (.man.n): Use new TMAC_* variables.
1869         * configure.in (GROFF_TMAC): Call.
1870         * aclocal.m4 (GROFF_TMAC): Define.
1871         * tmac/Makefile.sub (stamp_wrap): New target.
1872         (install_data, uninstall_sub): Handle macro wrapping.
1874 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1876         * tbl/main.cc (main): Ignore -T option.
1878 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1880         * devlj4/generate/special.map: Add definition of \(nb.
1882         * tmac/tmac.dvi: Add definition of \(nb.
1884         * troff/dictionary.c (dictionary::dictionary): association::v gets
1885         initialized by association::association.
1887         * tmac/Makefile.sub: Avoid using temporary files when installing.
1889         * troff/env.cc (environment::set_font): Make bad font number a
1890         warning.
1892         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1894         * Makefile.in (datadir): Use share rather than lib.
1896         * groff/groff.cc (basename): Rename to xbasename.
1898 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1900         * Makefile (CCLIBS): Don't use.
1901         * Makefile.ccpg: Likewise.
1903         * acgroff.m4: Rename to...
1904         * aclocal.m4: Modify extensively for autoconf 2.
1905         * configure.in: Likewise.
1906         * Makefile.in: Likewise.
1908         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1909         defined.
1910         (xstrsignal): Check for definition of NSIG. Conditionalize
1911         on SYS_SIGLIST_DECLARED.  Make return type const.
1913 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1915         * troff/input.cc (interpolate_macro): Rephrase missing space
1916         warning.
1918 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1920         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1921         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1922         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1923         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1924         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1925         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1926         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1927         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1928         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1929         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1930         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1931         Fix 'for' scoping.
1933 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1935         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1936         string_iterator.
1937         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1938         file.
1939         (macro_iterator::macro_iterator): Add additional argument.
1941 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1943         * troff/div.cc (vertical_size::vertical_size): In place of integer
1944         specifying line spacing use cunits specifying post vertical
1945         space.
1946         (macro_diversion::output, top_level_diversion::output): Likewise.
1947         * troff/div.h: Change declarations accordingly.
1948         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1949         field.
1950         (pending_output_line::pending_output_line,
1951         pending_output_line::output, environment::output,
1952         environment::output_line, environment::output_title,
1953         environment::hyphenate_line):  In place of
1954         integer specifying line spacing use cunits specifying post vertical
1955         space.
1956         (environment::environment): Add post_vertical_spacing and
1957         prev_post_vertical_spacing arguments.
1958         (environment::get_post_vertical_spacing): New function.
1959         (environment::total_post_vertical_spacing): New function.
1960         (environment::post_vertical_spacing): New function.
1961         (init_env_requests): Initialize pvs request and .pvs register.
1962         * troff/env.h: Change declarations.
1964 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1966         * tmac/tmac.pspic: Immediately remove the temporary file.
1968 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1970         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1971         height is specified.
1973 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1975         * tbl/table.c (struct vertical rule, class table_entry): Use int
1976         not short for start_row and end_row.
1978 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1980         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1981         functions.
1982         (diverted_space_node::reread, process_input_stack): Call
1983         trapping_blank_line() rather than blank_line().
1984         (init_input_requests): Bind "blm" to blank_line_macro().
1986         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1988 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1990         * troff/env.cc (environment::possibly_break_line): Require that
1991         width total excluding width of final space node be greater than
1992         the target text length.
1994 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1996         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1998 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
2000         * troff/node.cc (charinfo_node): New class.
2001         (glyph_node, composite_node): Derive from charinfo_node.  Change
2002         member functions accordingly.
2004 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
2006         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2008 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
2010         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2012         * devps/generate/textmap (notsubset): Add.
2014         * tmac/tmac.a4: New file.
2016 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
2018         * pic/main.cc (had_parse_error): New variable.
2019         (do_picture, do_whole_file): Set had_parse_error if yyparse()
2020         returns non-zero.
2021         (main): Return 1 if had_parse_error is true.
2023 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
2025         * grolj4/lj4.cc (main): Avoid use of strtoul.
2027 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
2029         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2030         iso_8859_1 or $LESSCHARSET is latin1.
2032 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
2034         * hpftodit: New directory.
2035         * Makefile.in (CCPROGDIRS): Add hpftodit.
2036         * devlj4/generate: New directory.
2038 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
2040         * configure.in: Don't use AC_VFORK.
2041         * groff/pipeline.c (run_pipeline): Use fork() always.
2043 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
2045         * grops/ps.cc (main): Use %1 not %s in error message for -w.
2047         * Makefile.in (CCPROGDIRS): Add grolj4.
2048         (DEVDIRS): Add devlj4.
2049         * grolj4, devlj4: New directories.
2050         * tmac/troffrc: Handle lj4.
2051         * tmac/tmac.lj4: New file.
2053 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
2055         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2057 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
2059         * troff/input.cc (do_if_request): At end of second string, switch
2060         environments before getting next token.
2062 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
2064         * devps/psstrip.sed: Split rule that strips whitespace on either
2065         side of delimiters.
2067 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
2069         * troff/node.h (font_family::make_definition): Add return value to
2070         declaration.  * troff/symbol.h (symbol::operator==,
2071         symbol::operator!=): Likewise.
2073 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
2075         * groff/groff.cc (main, help, synopsis): Handle -S.
2076         (possible_command::insert_arg): New function.
2078         * tmac/tmac.safer: New file.
2079         * tmac/msafer.man: New file.
2080         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2082 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
2084         * pic/pic.h, pic/main.cc (safer_flag): New variable.
2085         * pic/pic.y (placeless_element): Avoid unsafe operations if
2086         `safer_flag' is set.
2087         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2089 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
2091         * eqn/lex.cc (get_token): Put call to add_context() in block to
2092         work around Sun C++ 4.0 bug.
2094         * include/stringclass.h (operator +): Use ?: instead of `if' to
2095         work around Sun C++ 4.0 bug.
2097 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
2099         * tbl/main.cc (process_format): Accept - as a synonym for the _
2100         key letter.
2102         * libbib/index.cc (minus_one): Don't declare as const.
2104 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
2106         * troff/input.cc (get_char_for_escape_name): Push back a newline.
2108 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
2110         * troff/input.cc (write_macro_request): New function.
2111         (init_input_requests): Bind write_macro_request to writem.
2113 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
2115         * tmac/tmac.s (@EN): Turn filling back on even if there was no
2116         equation.
2118         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2120         * tmac/tmac.s (@TS): Renamed from TS.
2121         (TS): Call LP then TS again.
2122         (cov*ab-init): Alias @TS to TS.
2124         * tmac/tmac.s: Allow QP or RS to initialize.
2126         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
2127         Move initializations of PS and LL here.
2128         (par@init): Don't initialize HY.  Avoid changing environment 0.
2129         (par*env-init): Don't all par@reset.
2131 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
2133         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2135 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
2137         * Makefile.in (MDEFINES): Add LDFLAGS.
2138         (LDFLAGS): Add definition line.
2140 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
2142         * troff/input.cc (get_optional_char): Split off error check into...
2143         (check_missing_character): New function.
2144         * troff/token.h: Declare it.
2145         * troff/env.cc (margin_character): Don't call get_optional_char.
2146         Only call tok.next() after making the node.
2148         * include/lib.h (getopt): Make 2nd argument char *const *.
2150 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
2152         * nroff/conftest.sh: Deleted.
2154 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
2156         * pic/make-dos-dist: Deleted.
2158 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
2160         * devps/psstrip.sed: Strip comments before stripping trailing
2161         white space.
2163 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
2165         * Version 1.09 released.
2167 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
2169         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2171 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
2173         * libgroff/font.cc (font::load_desc): Fix typo in error message.
2175 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
2177         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2178         about returning without a value.
2180         * troff/charinfo.h (charinfo::get_special_translation): Cast
2181         TRANSLATE_NONE to int.
2183         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2184         test.  Fix test so that it works with n unsigned.
2186         * pic/pic.y (defaults_table): Fully bracket initializer.
2187         * pic/lex.cc (lookup_keyword): Likewise.
2188         * eqn/lex.cc (token_table, def_table): Likewise.
2189         * eqn/box.cc (param_table): Likewise.
2190         * troff/input.cc (warning_table): Likewise.
2191         * libgroff/font.cc (table): Likewise.
2192         * grops/ps.cc (ps_printer::special): Likewise.
2193         * grops/psrm.cc (resource_manager::process_file): Likewise.
2194         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2195         * refer/command.cc (command_table): Likewise.
2196         * addftinfo/addftinfo.cc (param_table): Likewise.
2198         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2199         about temp's being unused.
2200         (unused): New function.
2202         * groff/pipeline.cc: Declare c_fatal.
2204         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2205         uchar.
2207         * libbib/index.cc (index_search_item::load): Prevent compiler
2208         warnings about fd_closer's being unused.
2209         (unused): New function.
2211 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2213         * troff/input.cc (copy_mode_error): Make `prefix' static.
2214         Fix typo.
2216         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2217         defined.
2218         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2219         HAVE_CC_OSFCN_H and modify accordingly.
2221         * troff/input.cc (init_charset_table): radicalex overlaps
2222         horizontally.
2224         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2225         udodo!hans@relay.NL.net).
2226         * groff/configure.in: Call it.
2228         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2229         * groff/configure.in: Call it.
2230         * include/lib.h: Conditionalize declaration of pclose.
2232         * troff/div.cc (last_page_number): New global variable.
2233         (top_level_diversion::begin_page): Exit if we just printed the
2234         last page.
2235         * troff/div.h (last_page_number): Declare it.
2236         * troff/input.cc (parse_output_page_list): Set last_page_number.
2238         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2239         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2240         tmac/tmac.X: Likewise.
2241         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2242         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2244 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2246         * tmac/doc-ditroff (hK): Remove groff specific code which
2247         prevented page-breaks between separate manual entries.  If this is
2248         the first page, don't set the page number to 1.
2250         * acgroff.m4 (GROFF_POSIX): New macro.
2251         * configure.in: Use it.
2253         * troff/node.cc (class real_output_file,
2254         real_output_file::real_output_file,
2255         real_output_file::~real_output_file): Conditionalize use of
2256         popen/pclose on POPEN_MISSING.
2257         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2258         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2259         (pipe_source): Similarily.
2261         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2263         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2264         presence of declarations by trying to compile example with
2265         conflicting declarations.  (gcc only gives a warning for missing
2266         declarations.)
2268 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2270         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2271         (from Ulrich Lauther).
2273 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2275         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2277 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2279         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2280         pointers and ints have different sizes.
2282 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2284         * tmac/tmac.s (par*env-init): Call par@reset.
2286 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2288         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2289         tag.
2290         (par*push-tag-env, par*pop-tag-env): New macros.
2292 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2294         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2295         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2297         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2298         comment.  Include <time.h>.
2300 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2302         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2303         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2304         lines.
2306 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2308         * troff/input.cc (read_request): Only print a prompt if reading
2309         from the terminal.  Also clearerr on EOF if reading from the
2310         terminal.  Declare isatty.
2312 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2314         * refer/label.y: Rename map_t to map_func and extractor_t to
2315         extractor_func.
2317 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2319         * include/assert.h: Don't use volatile.
2320         * libgroff/assert.cc: Likewise.
2322 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2324         * troff/input.cc (abort_request): Look at character in tok before
2325         calling get_copy().
2327 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2329         * troff/troff.h (NO_RETURN): Deleted.
2330         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2331         * troff/input.cc (exit_troff): Likewise
2333         * Makefile.in: Remove `Making ...' messages since GNU make now
2334         gives these. 
2336         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2338 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2340         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2341         to constant 1 inch.
2343 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2345         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2347 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2349         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2350         MARK_REG if there was no left delimiter.
2352 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2354         * pic/troff.cc (troff_output::text): Set line thickness to
2355         relative before outputting text.
2357         * tmac/tmac.e (@k): Don't zero ?T.
2358         ((z): Likewise.
2360 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2362         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2364 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2366         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2367         Paul Eggert).
2369 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2371         * troff/input.cc (ignoring): New variable.
2372         (ignore): Set ignoring during call to do_define_macro.
2373         (do_define_macro): Clear ignoring before interpolating terminating
2374         macro.
2375         (copy_mode_error): New function.
2376         (get_char_for_escape_name, read_long_escape_name,
2377         interpolate_arg): Use copy_mode_error.
2378         (warning_table): Add WARN_IG.
2379         * troff/troff.h (WARN_IG): Declare.
2380         (WARN_TOTAL): Change accordingly.
2382         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2383         * groff/groff.cc (strsignal): Delete declaration.
2385 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2387         * troff/div.cc (page_offset): Use 'm' as default scaling.
2389 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2391         * nroff/nroff.sh: Ignore -u.
2393 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2395         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2397 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2399         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2400         drawing box.
2401         (B2): With -Tascii, leave additional vertical space before
2402         and after. Ensure that the left and right indent is restored to
2403         what it was even if the point size changes.  Don't call
2404         par@finish. Change the indent, line length and title length
2405         directly.  With -Tascii, make the width of the box 1n less.
2406         (B1): Remember 1n at the current point size.  Don't call
2407         par@reset.  Change the indent, line length and title length
2408         directly.  Ensure that the temporary indent is preserved.
2409         (par*box-mark-top): Turn off no spacing mode.
2411 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2413         * Makefile.in (dist): Use .gz suffix.
2415 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2417         * troff/input.cc (main): Add return 0.
2418         * pic/main.cc (main): Use return instead of exit.
2419         * tbl/main.cc (main): Likewise.
2420         * eqn/main.cc (main): Likewise.
2421         * grops/ps.cc (main): Likewise.
2422         * grotty/tty.cc (main): Likewise.
2423         * groff/groff.cc (main): Likewise.
2424         * grodvi/dvi.cc (main): Likewise.
2425         * refer/refer.cc (main): Likewise.
2426         * indxbib/indxbib.cc (main): Likewise.
2427         * lkbib/lkbib.cc (main): Likewise.
2428         * soelim/soelim.cc (main): Likewise.
2429         * addftinfo/addftinfo.cc (main): Likewise.
2430         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2431         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2433         * troff/token.h (process_input_stack): Don't declare as static.
2434         * troff/input.cc: Likewise.
2436         * troff/node.c (invalidate_fontno): Make it a static member of
2437         class font_family.  Change callers.
2438         * troff/node.c: Change declaration.
2440         * tbl/main.cc (struct input_entry_format): Add explicit public
2441         specifier.
2442         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2443         struct double_hline_stuff): Likewise.
2444         * tbl/table.h (struct entry_format): Likewise.
2445         * pic/object.h (struct saved_state): Likewise.
2447         * include/stringclass.h: Add forward declarations of friend
2448         functions that are later declared as inline.  Don't include inline
2449         specifier in friend declaration.
2451         * libgroff/lib.h: Declare popen and pclose.
2452         * acgroff.m4 (GROFF_POPEN): New macro.
2453         * configure.in: Call it.
2455         * include/lib.h (PI): New constant. Undef first if necessary.
2456         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2457         * grops/ps.cc (degrees, radians): Likewise.
2458         * libgroff/font.cc (font::get_skew): Likewise.
2460         * grops/ps.cc (is_ascii): New function.
2461         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2462         isprint.
2463         (ps_printer::define_encoding): Use csspace.
2464         * libgroff/strtol.c (ISASCII): New macro.
2465         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2466         Use ISASCII rather than isascii.
2467         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2468         * libgroff/cset.cc: Likewise.
2469         * libdriver/input.cc: Include cset.h.
2470         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2471         than isdigit().
2473         * refer/refer.cc (main): Use %ld rather than %d for longs.
2475         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2476         S_ISREG macro.
2478         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2480 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2482         * troff/input.cc (hyphenation_code): Skip white space between
2483         char/code pairs.
2485 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2487         * tbl/table.h (table::entry_list_tailp): New member.
2488         (table::table): Initialize it.
2489         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2490         behaviour.
2492 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2494         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2495         with negative horizontal positions. Remove casts of glyph::hpos to
2496         int.
2497         (USHRT_MAX): Delete definition.
2498         (SHRT_MAX, SHRT_MIN): New definitions.
2499         (glyph::hpos): Change type to short.
2500         (tty_printer::end_page): Output multiple backspaces if necessary.
2501          Remove casts of glyph::hpos to int.
2502         
2503 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2505         * tmac/tmac.s (@RT): New definition.
2507 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2509         * refer/refer.cc (do_file): Make sure current_filename is set when
2510         filename is "-".
2512         * pic/common.cc (common_output::dot_line): Handle zero length
2513         lines.
2515 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2517         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2518         (par@init): Initialize \n[HY].
2520 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2522         * troff/dictionary.cc (dictionary::remove): Continue when
2523         r < j < i.
2525 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2527         * Makefile.com (.y.cc): Avoid ending up with two versions of
2528         $(YTABH).
2530 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2532         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2533         (\(,C): Likewise.  Also fix typo.
2535 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2537         * lib.h: Delete extraneous semi-colon.
2539         * Add pso request: `so' from a pipe.
2540         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2541         (file_iterator::close): New function.
2542         (file_iterator::~file_iterator, file_iterator::next_file): Use
2543         file_iterator::close.
2544         (file_iterator::backtrace): Say `process' rather than `file' when
2545         the stream is popened.
2546         (pipe_source): New function.
2547         (init_input_requests): Bind ".pso" to pipe_source.
2549 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2551         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2553         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2554         digits in lower case.
2556 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2558         * Version 1.08 released.
2560         * Makefile.in (dist): Insert || true after ln -s commands that
2561         might fail.
2563         * mm: Update to mm 1.16.
2565         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2566         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2567         SH_SCRIPT_SED_CMD.
2568         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2569         MDEFINES.
2570         * nroff/Makefile.sub (nroff): New target.
2571         (install_data): Install nroff.
2572         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2573         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2575 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2577         * eqn/Makefile.sub (neqn): Add chmod +x.
2579         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2581 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2583         * troff/input.cc (string_iterator::string_iterator()): Initialize
2584         lineno and count.
2586 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2588         * troff/div.cc (macro_diversion::space,
2589         top_level_diversion::space): Don't set high_water_mark.
2590         (macro_diversion::output, top_level_diversion::output): Don't
2591         include post line space in high water mark.
2593 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2595         * eqn/eqn.y: Don't define YYDEBUG.
2596         * pic/pic.y: Likewise.
2598 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2600         * tmac/tmac.e ([3): Add space after comma following editors.
2601         Change double spaces to single spaces.
2602         ([4): Change double spaces to single spaces.
2604         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2605         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2606         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2607         after %!PS-Adobe- (for Newsprint).
2609         * troff/div.cc (top_level_diversion::begin_page): When
2610         before_first_page is 1, set page_number to 1.
2612 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2614         * eqn/box.cc (box::top_level): Protect equation with \&.
2616 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2618         * groff/groff.cc (possible_command::set_name): Delete old name.
2620         * groff/groff.cc (possible_command::~possible_command): Use
2621         a_delete.
2623         * troff/node.cc (troff_output_file::begun_page): New member.
2624         (troff_output_file::troff_output_file): Initialize it.
2625         (troff_output_file::really_begin_page): Only output V command if a
2626         page has been begun.
2628         * pic/pic.y (placeless_element): Delete argument to PRINT after
2629         use.
2631 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2633         * Make wrapman work.
2634         * troff/div.h (class top_level_diversion): Replace
2635         first_page_begun by before_first_page (with opposite sense).
2636         * Change first_page_begun to before_first_page inverting sense.
2637         * troff/div.cc (class nl_reg): New class.
2638         (init_div_requests): Use class nl_reg for \n(nl.
2639         (top_level_diversion::begin_page): Don't call
2640         output_file::begin_page if before_first_page is 2;
2641         reset before_first_page afterwards.  If have_next_page_number is
2642         false, then always increment page_number.
2643         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2644         Restore compatibility mode after loading, and then disable
2645         compatibility mode in TH.
2647 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2649         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2650         past last line.
2651         * troff/node.h (output_file::trailer): Declare.
2652         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2653         * troff/node.cc (output_file::trailer): New function.
2654         (troff_output_file::~troff_output_file): Move most code into...
2655         (troff_output_file::trailer): New function.
2656         (class troff_output_file): Delete page_length member. Declare
2657         trailer().
2658         (troff_output_file::really_begin_page): Use current page length
2659         for final V command.
2661         * tbl/main.cc (struct options): New decimal_point_char member.
2662         (options::options): Initialize this.
2663         (process_options): Implement decimalpoint option.
2664         (process_data): Pass decimal_point_char option to table::table.
2665         * tbl/table.h (class table): New decimal_point_char member.
2666         (table::table): Add additional argument.
2667         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2668         second argument specifying decimal point character.  Use this
2669         instead of '.'.
2670         (table::table): Initialize decimal_point_char.
2671         (table::add_entry): Change call to find_dot.
2673         * troff/input.cc (get_copy, token::next): Implement \V.
2674         (interpolate_environment_variable): New function.
2676 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2678         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2679         * pic/pic.y: Likewise.
2681         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2682         Add casts to int.
2683         * refer/ref.cc (reference::insert_field, reference::delete_field):
2684         Likewise.
2685         * troff/number.cc (parse_term): Likewise.
2687         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2688         * configure.in: Use GROFF_PROG_YACC.
2690         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2691         and g++.
2692         * Makefile.in (OPTIMIZE): New define.
2693         (DEBUG): Empty by default.
2694         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2696         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2697         (GROFF_ARRAY_DELETE): Likewise.
2698         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2700         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2702         * devps/psstrip.sed: Use different delimiter on last line (so that
2703         it works with BSD 4.4 sed.)
2705 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2707         * devps/psstrip.sed: Delete comments.
2709         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2710         optind, opterr, optarg.
2711         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2712         opterr, optarg.
2714 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2716         * Makefile.in (check): Dummy target.
2718 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2720         * Version 1.07 released.
2722         * Integrate mm 1.11.
2724         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2725         where start_col was meant.
2727 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2729         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2731 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2733         * troff/input.cc (token::next): Make \z\o'...' and similar things
2734         work.
2736         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2737         constants.
2738         (environment): Add margin_character_flags member.
2739         * env.cc (environment::environment(symbol),
2740         environment::environment(const environment *): Initialize
2741         margin_character_flags.
2742         (margin_character): Rewrite.
2743         (environment::output_line): Add a margin character if
2744         margin_character_flags is non-zero.  Turn off the
2745         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2746         zero, use margin_character_node without copying and then set
2747         margin_character_node to 0.
2749         * devps/DESC.in: Change minimum size to 1000.
2751 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2753         * troff/symbol.h (symbol::hash): Change return type to unsigned
2754         long.
2755         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2756         Add casts to int.
2758         * test-groff: Use -r rather than -x.
2760         * grops/psfig.diff: Include in distribution again.
2762 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2764         * Makefile.in (dist): Use gzip.
2766 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2768         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2769         unistd.h as well as in stdlib.h.
2770         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2771         defined; otherwise include <sys/types.h> and <unistd.h> if
2772         UNISTD_H_DECLARES_GETOPT is defined.
2774         * configure.in: use builtin(include, ... rather than include(...
2775         * configure: Regenerate with autoconf 1.3.
2777         * libdriver/print.cc (printer::adjust_arc_center): Use new
2778         algorithm suggested by Andy Fyfe.
2780         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2781         * include/printer.h: Declare this.
2782         * grops/ps.cc (ps_printer::draw): Use it.
2783         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2785 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2787         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2789 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2791         * eqn/main.cc (main): Handle "eqn -".
2793 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2795         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2797         * mm: Integrate version 1.08.
2799         * pic/troff.cc (troff_output::finish_picture): Set
2800         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2801         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2802         if it's not defined. Check whether the register is non-zero rather
2803         than whether it's not defined.
2804         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2806         * indxbib/indxbib.cc: Move all signal handling into...
2807         * indxbib/signal.c: New file.
2808         * configure.in: Call AC_RETSIGTYPE.
2810         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2811         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2812         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2814         * troff/input.cc (token::token, token::operator=): Work round SGI
2815         C++ bug.
2816         * pic/object.cc (position::position): Likewise.
2818 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2820         * pic/pic.h: Move declaration of hypot().
2822 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2824         * pic/pic.h: Declare hypot().
2826         * pic/pic.h: Define M_PI if necessary.
2828 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2830         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2831         `.ta T' feature.
2833         * devps/prologue.ps (RE): Handle the possibility that the old font
2834         doesn't have a FontName entry.
2836 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2838         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2839         (@C): Use @fam not fam.
2841 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2843         * lookbib/lookbib.cc (main): Change type of start to const char *.
2844         * lkbib/lkbib.cc (main): Likewise.
2846         * eqn/lex.cc (definition::definition): Don't use member
2847         initializer syntax for members of anonymous unions.
2849         * troff/input.cc (input_stack::backtrace): Change type of to const
2850         char *.
2852 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2854         * include/stringclass.h (class string): Declare inline friend
2855         functions as inline in class declaration.
2856         * troff/hvunits.h (class hunits, class vunits): Likewise.
2857         * include/refid.h (class reference_id): Likewise
2858         * troff/troff.h (points_to_units(units), scale(units, double)):
2859         Delete declarations.
2860         * libdriver/input.cc (get_char): Delete declaration.
2861         * include/lib.h: Change 2nd argument of getopt from const char **
2862         to char **.
2863         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2864         char **' before assigning to a `const char **'.
2865         * tbl/table.cc: Delete extra declarations of prints().
2867 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2869         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2870         char **' before assigning to a `const char **'.
2872         * libgroff/errarg.cc (errarg::errarg): Don't use member
2873         initializer syntax for members of anonymous unions.
2875 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2877         * mm: Integrate version 1.07.
2879 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2881         * troff/input.c (translate2): Rename to
2882         (translate_no_transparent).
2883         (init_input_requests): Rename tr2 to trnt.
2885 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2887         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2888         (charinfo::set_translation, charinfo::set_special_translation):
2889         Add second argument that specifies value for
2890         transparent_translate.
2891         (charinfo::get_translation, charinfo::get_special_translation):
2892         Add optional second argument that specifies whether translation is
2893         being used for transparent throughput.
2894         * troff/input.cc (charinfo::set_translation,
2895         charinfo::set_special_translation): Handle second argument.
2896         (charinfo::charinfo): Initialize transparent_translate.
2897         (translate): Split main part off into
2898         (do_translate): New function.  Pass argument saying whether
2899         translation applies to transparent throughput.
2900         (translate2): New request.
2901         (init_input_requests): Bind translate2 to `tr2'.
2903 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2905         * tbl/table.h (class table): Add `nokeep' flag.
2906         * tbl/main.cc (process_options): Handle `nokeep' option.
2907         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2908         table::do_bottom): Don't output keep/release macro definitions or
2909         calls when `nokeep' option has been specified.
2911 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2913         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2915 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2917         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2918         block_entry::divert, alphabetic_block_entry::divert): Add extra
2919         argument giving column separation.
2920         (table::compute_widths): Pass column separation to
2921         table_entry::divert().
2922         (block_entry::do_divert): If an entry spans multiple columns and a
2923         minimumum width has been specified for each column, then set the
2924         line length to the sum of the widths (plus possibly the column
2925         separations).
2927         * troff/input.cc (set_escape_char): Don't set the escape_char
2928         until after calling has_arg().
2930 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2932         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2933         case.
2935         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2936         in case where r > nrows - 1.
2938         * tbl/table.cc (BODY_HEIGHT): Deleted.
2939         (LINE_SEP): New definition.
2940         (table::print_single_hline, table::print_double_hline,
2941         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2942         table::do_row, table::do_top): Use LINE_SEP space before a line
2943         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2945         * tbl/table.cc (text_entry::print_contents): New function.
2946         (text_string_name, right_text_string_name): Deleted.
2947         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2948         (simple_text_entry::do_width, numeric_text_entry::do_width,
2949         alphabetic_text_entry::do_width): Don't store the contents of the
2950         entry in a string.
2951         (left_text_entry::simple_print, right_text_entry::simple_print,
2952         center_text_entry::simple_print,
2953         alphabetic_text_entry::simple_print,
2954         numeric_text_entry::simple_print): Print the entry directly
2955         instead of using the stored string.
2957 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2959         * devps/Makefile: Strip PostScript files.
2960         * devps/prologue: Rename to...
2961         * devps/prologue.ps.
2962         * devps/psstrip.sed: New file.
2963         * devps/download: Use .pfa rather than .ps for installed versions
2964         of fonts.
2966 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2968         * troff/env.cc (input_trap): Give a warning if the argument is out
2969         of range.
2971         * troff/env.cc (adjust): Treat negative argument as missing. Round
2972         argument > 5 down to 5.
2974         * troff/env.cc (center, right_justify): Make negative argument zero.
2976         * troff/div.cc (page_offset, vertical_position_traps): Treat
2977         invalid argument as missing.
2978         * troff/env.cc (line_spacing, line_length, title_length, indent,
2979         underline, hyphen_line_max_request, control_char,
2980         no_break_control_char, widow_control_request, adjust, input_trap,
2981         point_size): Likewise.
2982         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2983         constant_space): Likewise.
2984         * troff/input.cc (compatible, shift, warn_request,
2985         set_escape_char): Likewise.
2987         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2988         * tbl/table.cc (table::table): Likewise.
2990         * Makefile.dev (install_dev): depends on $(DEVFILES).
2992 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2994         * devX75, devX75-12, devX100, devX100-12: New directories.
2995         * Makefile.in: Add these to DEVDIRS.
2997         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2998         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2999         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3000         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3001         targets.
3002         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3003         (uninstall): New target.
3004         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3005         uninstall_prog, uninstall_dev): New targets.
3007         * troff/div.cc (return_request): Treat an invalid argument as
3008         missing.
3010 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
3012         * tmac/tmac.e ((f): Set up the environment even when there's a
3013         current diversion.  Transperently throughput a call to @N.
3014         (@N): New macro.
3016 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
3018         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3019         up to vertical resolution.
3021         * tbl/table.cc (table::do_row): Change row number after printing
3022         stuff list.
3024         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3026 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
3028         * Rename CHANGES to NEWS.
3030 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
3032         * libgroff/new.cc (operator new): Avoid calling malloc(0).
3034 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
3036         * man.ultrix: Removed.
3038 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
3040         * Makefile.comm (extraclean): Delete files whose names begin with
3041         `='.
3043         * pic/troff.cc (troff_output::text): Fix typo in implementation of
3044         aligned text.
3046 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
3048         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3049         * troff/div.cc (page_length, need_space, space_request): Treat
3050         invalid optional argument as missing.
3051         * troff/env.cc (number_lines): If the first argument is present
3052         but not a number, turn on line numbering, don't change the next
3053         line number and parse the remaining arguments.
3055         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3057 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
3059         * eqn/box.h: Change declaration accordingly.
3060         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
3061         the specified size was bad but don't give an error.  Check for
3062         overflow.
3063         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3064         * eqn/lex (do_size): Likewise.
3066 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
3068         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3069         compatible headers.
3071 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
3073         * tbl/table.cc (table::init_output): Improve error message when
3074         table won't fit on one page.
3076 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
3078         * pic/troff.cc (troff_output::start_picture): Generate line
3079         containing a horizontal motion equal to the width of the picture.
3081         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3082         using GROFF_COMMAND_PREFIX environment variable.
3084 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
3086         * mdate.sh: Use $NF rather than $(NF).
3088 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
3090         * pic/main.cc (main):  Use %1 not %c in argument to warning.
3092         * eqn/main.cc (main): Output code to check that geqn was given the
3093         correct -T option.
3095 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
3097         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3098         `ln -s ../Makefile .; make; rm -f Makefile'.
3100         * troff/hyphen: Rename to...
3101         * troff/hyphen.us:
3102         * troff/input.cc (main): Delete -H option. Don't call
3103         read_hyphen_file().
3104         * troff/env.cc: Include searchpath.h and macropath.h.
3105         (exception_dictionary): Deleted.
3106         (ht): Deleted.
3107         (read_hyphen_file): Deleted.
3108         (hyphenation_language): New struct.
3109         (class trie, class hyphen_trie): Move declarations up.
3110         (trie_node::~trie_node): Deleted.
3111         (trie::delete_trie_node): New function.
3112         (trie::do_delete): New pure virtual function.
3113         (hyphen_trie::do_delete): New function.
3114         (trie::~trie): New function.
3115         (hyphen_trie::~hyphen_trie): New function.
3116         (trie::clear): No need to chcek that tp is not 0.
3117         (current_language, language_dictionary): New variables.
3118         (hyphen_word): Give an error if no current language.  Use
3119         exceptions dictionary in current language.
3120         (hyphen_trie::read_patterns_file): Find file using macro_path.
3121         Allow comments (starting with %) in patterns file.  Don't make it
3122         a fatal error if the file can't be found.
3123         (hyphenate): Return if no current language.  Get the exceptions
3124         dictionary and the hyphenation patterns from the current language.
3125         (set_hyphenation_language): New variable.
3126         (hyphenation_patterns_file): New function.
3127         (hyphenation_language_reg): New class.
3128         (hyphenation_language_reg::get_string): New function.
3129         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3130         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
3131         register.
3132         * groff/groff.cc (main, help, synopsis): Delete -H option.
3133         * include/Makefile.sub: Don't define HYPHENFILE.
3134         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3135         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3136         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3137         hyphenation patterns.
3139 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
3141         * eqn/neqn.sh: New file.
3142         * eqn/Makefile.sub: Handle neqn.sh.
3144         * eqn/eqn.h: Declare `nroff' variable.
3145         * eqn/box.cc (param_table): Add `nroff' param.
3146         (nroff): Define it.
3147         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3148         variable.
3149         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3151         * troff/troff.h (WARN_FONT): New warning.
3152         (WARN_TOTAL): Change accordingly.
3153         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3154         (warning_table): Add WARN_FONT.
3155         * troff/node.cc (mount_font_no_translate): Pass argument to
3156         font::load_font.  If this is non-zero, give a warning.
3157         Don't give an error message when accessing a font that has already
3158         been found to be invalid.
3159         * include/font.h (font::load, font::load_font): Add additional
3160         optional argument which suppresses error message if the font is
3161         not found.
3162         * libgroff/font.cc (font::load_font): Handle additional argument.
3163         (font::load): Add additional argument. If this is non-null, set it
3164         to 1 and don't give error message.
3166         * include/printer.h (printer::end_page): Add argument giving
3167         length of page.
3168         * libdriver/input.cc (do_file): Pass this.
3169         * grops/ps.cc (ps_printer::end_page): Add argument.
3170         * grodvi/dvi.cc (dvi_printer::end_page,
3171         draw_dvi_printer::end_page): Add argument.
3172         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3173         columns_per_page members. New member nlines.
3174         (DEFAULT_LINES_PER_PAGE): Deleted.
3175         (tty_printer::tty_printer): Don't compute lines_per_page from
3176         font::paperlength. Don't compute columns_per_page from
3177         font::paperwidth.
3178         (tty_printer::add_char): Don't check horizontal position against
3179         columns_per_page. Grow glyphs vector if neccessary.
3180         (tty_printer::end_page): Add argument giving page_length in units.
3181         Discard lines past end of page.
3183 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3185         * tmac/tmac.tty-char: Fix definition of \(/l.
3187         * tmac/tmac.X: Define \(en.
3189 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3191         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3192         lpq, then use lp rather than lpr.
3194         * tmac/tmac.s (par@reset): Don't call `ad'.
3195         (par*env-init): Call `ad'.
3197 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3199         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3200         date.
3202         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3203         * indxbib/indxbib.cc: Likewise.
3205 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3207         * libgroff/putenv.c: New file.
3208         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3209         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3210         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3211         stdlib.h with AC_HAVE_HEADERS.
3213 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3215         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3216         does not exist.
3218 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3220         * eqn/box.cc (gsize): Make it an int.
3221         (set_gsize): Parse argument handling increment or decrement.
3222         (box::top_level): Convert gsize to a string.
3224         * troff/input.cc (exit_troff): Make buf unsigned char [].
3225         Call to make_temp_iterator casts buf to char*.
3227         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3229         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3230         * Makefile.cpg (depend.temp): Likewise.
3232         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3234         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3236 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3238         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3240 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3242         * Version 1.06 released.
3244         * Integrate mm 1.04.
3246 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3248         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3250 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3252         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3253         ligatures command.
3254         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3255         afmtodit. Regenerate.
3257         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3258         @f back past the current position.
3260         * tmac/tmac.e: Change calls to @R so that comments are not part of
3261         arguments.
3263 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3265         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3267         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3268         check that we can link a call to a function declared in <stdio.h>.
3269         (GROFF_UNISTD_H): New macro.
3270         * configure.in: Call it.
3271         * Makefile.in: Document it.
3272         * include/posix.h: New file.
3273         * troff/troff.h: Don't include <osfcn.h>
3274         * troff/input.cc: Include posix.h.
3275         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3276         osfcn.h.
3277         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3278         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3279         <fcntl.h>.
3280         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3281         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3282         * libbib/search.cc (O_RDONLY): Delete definition.
3283         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3284         Don't include <osfcn.h>.
3286         * acgroff.m4 (GROFF_TIME_T): New macro.
3287         * configure.in: Call it.
3288         * Makefile.in: Document it.
3290         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3291         * configure.in: Call it.
3292         * Makefile.in: Document -DTRADITIONAL_CPP.
3293         * include/ptable.h: Don't include generic.h.
3294         (name2): Define it.
3296         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3297         Afterwards remove [T1 and [T2.
3298         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3299         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3300         (ref*add-T2): Renamed from ref*add-T.
3301         (ref*add-T1): New macro.
3303 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3305         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3307         * libbib/index.cc: Include <fcntl.h>.
3308         (O_RDONLY): Define if necessary.
3309         (make_index_search_item, index_search_item_iterator::get_tag,
3310         index_search_item::check_files): Use O_RDONLY.
3311         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3312         (O_RDONLY): Define if necessary.
3313         (search_list::add_file): Use O_RDONLY.
3314         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3315         <sys/stat.h>.
3316         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3317         (main): Use these.
3319         * libbib/index.cc (S_ISREG): Define it if necessary.
3320         (index_search_item::load): Use S_ISREG.
3322         * include/driver.h: Include <errno.h>.
3324 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3326         * eqn/box.cc (body_height): Increase default value to 85.
3327         (body_depth): Increase default value to 35.
3329 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3331         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3332         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3333         protected from expansion with \E.
3335         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3337         * Makefile (Makefile): New target.
3339         * Makefile.sub (configure, distfiles): New targets.
3341         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3342         construct.
3344 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3346         * eqn/box.cc (param_table): Add body_height and body_depth.
3348         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3350 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3352         * psbb/Makefile.sub: Don't link with libgroff.a.
3354         * acgroff.m4 (GROFF_PUTENV): New macro.
3355         * configure.in: Call GROFF_PUTENV.
3356         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3357         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3358         is defined.
3360         * troff/env.cc (distribute_space): Rename force_forward argument
3361         to force_reverse.  Reverse the list if force_reverse is true.
3363 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3365         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3367         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3368         height or depth to be negative.  Guard against SUP_RAISE quantity
3369         being negative.
3371 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3373         * devps/generate/textmap: Add `an' (arrowhorizex).
3374         * tmac/tmac.ps: \(an overlaps horizontally.
3375         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3377         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3378         * devps/textmap: Add arrowvertex.
3379         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3380         updownarrow delimiters.
3381         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3383         * tbl/table.cc (simple_entry::position_vertically,
3384         block_entry::position_vertically):  For a centered entry, perform
3385         the motion in two stages.
3387         * refer/refer.cc (split_punct): Don't call lookup_token if there
3388         is no token.
3390 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3392         * troff/input.cc (token::next): Delete token_node after copying
3393         token.
3395         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3396         cur_point_size.
3398         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3400         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3402 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3404         * grops/ps.cc (usage): -b option takes an argument.
3406         * devps/prologue (PLG): New procedure.
3407         * grops/ps.cc (main, usage): New -g option.
3408         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3409         length using PLG.
3411 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3413         * include/cset.h: Include <limits.h> if we have it.
3415         * libgroff/illegal.cc: New file.
3416         * include/lib.h (illegal_input_char): Use table.
3417         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3418         * pic/lex.cc (ARG1): Renumber to 14.
3419         * eqn/lex.cc (ARG1: Likewise.
3421         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3422         (eg 1.05.90) correctly.
3424 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3426         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3427         Rename $r and $R registers to $v and $V.
3428         ($r, $R): Initialize to 0.
3429         (@v, @V): New macros.
3430         (sz): Call @v.
3431         (@M): Call @V.
3433         * troff/input.cc (main, usage): Add -R option that says not to
3434         load troffrc.
3435         * eqn/main.cc (main, usage): Rename -n to -R.
3437 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3439         * devps/DESC.in: Leave font positions 5-9 blank.
3440         * devdvi/DESC.in: Likewise.
3442         * grog/grog.pl: Handle `.PS <file' correctly.
3444         * troff/input.cc (input_stack::push): Improve error message when
3445         input stack limit exceeded.
3447 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3449         * refer/refer.cc (main): Fix typo in handling of `a' option.
3451         * refer/refer.cc (do_bib): In state START after a newline remain
3452         in state START.
3454         * groff/groff.sh: Deleted.
3455         * groff/Makefile.sub: Delete handling of groff.sh.
3457         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3458         to determine whether to use \X'ps:...'.
3459         * tmac/troffrc: Set 0p register to 0.
3460         * tmac/tmac.ps: Set 0p register to 1.
3462         * groff/groff.cc: Support -X option. Give warning for -TXps and
3463         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3464         * tmac/troffrc: Support -r.X=1.
3466         * pic/troff.cc (troff_output::dot): Don't test
3467         zero_length_line_flag.
3469 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3471         * include/lib.h: Declare getopt() and friends unless
3472         STDLIB_H_DECLARES_GETOPT is defined.
3474         * doc/chars.tr: Delete.
3475         * man/groff_char.man: New file.
3477 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3479         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3480         user has changed register format.
3482 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3484         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3485         `postpro' command in DESC file.  Get spooler command from `print'
3486         command in DESC file.  Execute spooler command with /bin/sh.
3488         * groff/groff.cc: Split Unix-specific parts into...
3489         * groff/pipeline.c: New file.
3491         * LICENSE: Delete.
3492         * COPYING: New file.
3493         * all files: Update copyright notices.
3495         * Rearrange files.  Redo Makefiles.  Use autoconf.
3497 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3499         * troff/input.c (charinfo_to_node_list): Interpret character
3500         definition with escape_char of `\'.
3502 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3504         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3505         Define INT_DIGITS as big enough for 64-bit integer.
3506         * lib/strtol.c: Don't include lib.h.
3507         * lib/lib.h: Delete ifdef __cplusplus stuff.
3509 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3511         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3512         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3513         get DESC from current directory.
3515 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3517         * tbl/main.c (main): Always reset the line number when reading
3518         from stdin.
3520         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3521         table::define_bottom_macro, table::do_row, table::do_top): Round
3522         vertical spacing up to vertical resolution.
3524 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3526         * ps/ps.h (enum resource_type): Avoid comma at end of
3527         enumerator-list.
3528         * dvi/dvi.c (class dvi_printer): Likewise.
3529         * dvi/tfmtodit.c (gf::load): Likewise.
3530         * refer/label.y (struct expression): Likewise.
3531         * refer/refer.c (class label_processing_state): Likewise.
3532         * refer/indxbib.c (do_file): Likewise.
3533         * troff/troff.c (enum warning_type): Likewise.
3534         * tbl/main.c (process_data): Likewise.
3535         * troff/charinfo.h (class charinfo):
3537 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3539         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3541 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3543         * groff.c: Move to new groff subdirectory.
3544         * groff/Makefile: New file.
3545         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3547         * man/mdate.sh: Use ls -L if supported.
3549         * Consolidate all header files produced by gendef into lib/defs.h.
3550         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3551         Don't include path.h.
3552         * lib/Makefile (path.h): Don't generate.
3553         * troff/input.c: Include defs.h. Don't include config.h.
3554         * troff/Makefile (config.h): Don't generate.
3555         * refer/index.h: Don't include suffix.h.
3556         * refer/index.c: Include defs.h.
3557         * refer/indxbib.c: Include defs.h.
3558         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3559         defs.h.
3560         * refer/Makefile (suffix.h, path.h): Don't generate.
3561         * groff.c: Don't include config.h. Include defs.h.
3562         * Makefile (config.h): Don't generate.
3563         (lib/defs.h): Generate.
3564         (topclean): Remove lib/defs.h.
3566 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3568         * lib/malloc.c, lib/getpagesize.h: Deleted.
3569         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3570         related stuff.
3571         * lib/Makefile: Delete malloc-related stuff.
3572         * lib/new.c: Workaround COOKIE_BUG if necessary.
3574         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3575         needed header files directly.
3576         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3577         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3579 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3581         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3582         argument.
3583         * lib/font (font::load_desc, font::load): Don't split argument of
3584         unknown command.
3585         (font::handle_unknown_font_command): Change type.
3586         * ps/ps.c (ps_font::handle_unknown_font_command,
3587         handle_unknown_desc_command): Change type.
3588         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3590 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3592         * lib/font.h (font::handle_unknown_font_command): Add file and
3593         line arguments.
3594         * lib/font.c (font::handle_unknown_font_command):
3595         * ps/ps.c (ps_font::handle_unknown_font_command):
3596         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3597         lineno arguments.  Use _with_file_and_line functions for error
3598         reporting.
3600         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3601         data member.
3602         * lib/font.c (font::set_unknown_desc_command_handler): New
3603         function.
3604         (font::load_desc): For unknown commands, call
3605         unknown_desc_command_handler if not null.
3606         * lib/font.h (class font): Declare them.
3607         (FONT_COMMAND_HANDLER): New typedef.
3608         * ps/ps.c (handle_unknown_desc_command): New function.
3609         (main): Set bflag if we had a -b option. Call
3610         font::set_unknown_desc_command_handler.
3611         (broken.h): Don't include.
3612         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3613         submake 
3614         * ps/devps/Makefile: Add `broken' command to DESC file using
3615         BROKEN_SPOOLER_FLAGS.
3617         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3619         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3621         * macros/tmac.e (@R, @S): New macros.
3622         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3623         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3624         Declare $H, $[0-9], .. macros with @S.
3625         Declare |0, |1, |2, |3 strings with @S.
3627         * macros/tmac.e (@S): Rename to @U.
3629         * macros/tmac.e (@z): Define @b and bp as empty instead of
3630         deleting them,
3632         * macros/tmac.e (@m): Deleted.
3633         (@h): Don't call @m.
3634         (@z): Don't set @m trap.
3636         * macros/tmac.e ($h, $f): Define |z as empty string.
3638         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3639         (@q): Likewise.
3641         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3642         removing them.
3643         ()f): Likewise for * register.
3645         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3646         argument is missing, don't change $R.  Call sr with three
3647         arguments when initializing.
3649 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3651         * macros/tmac.e (sr): New macro.
3652         Initialize $r and $R using sr.
3654         * macros/tmac.e (,): Delete \*(#[.
3656         * troff/env.c (set_tabs): Read the tab type even if the position
3657         is bad.  Allow the position of the first tab stop to be negative.
3659 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3661         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3662         _POSIX_VERSION.
3663         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3664         rather than -DPATHCONF_MISSING.
3665         * Makefile: Get rid of PATHCONF_MISSING.
3667         * refer/map.c: New file.
3668         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3669         to map_len.
3670         * refer/Makefile: Handle map.c.
3671         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3673 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3675         * Makefile: RANLIB should be `true' if there is no ranlib.
3676         * lib/Makefile (libgroff.a): Simplify.
3677         * driver/Makefile (libdriver.a): Simplify.
3679         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3680         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3681         defined.
3683 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3685         * troff/env.c (compare_ranges): Declare as extern "C".
3687         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3689         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3691 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3693         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3694         but conditionalize use of \X based on \*(.T.
3695         (grops_output::*): Deleted.
3696         * pic/output.h: Delete declaration of make_grops_output.
3697         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3698         by default. -n sets it to 0.
3699         (usage): Corresponding changes.
3700         * groff.c (main): Don't pass -x or -p to pic.
3701         * groff.sh: Likewise.
3703         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3704         to be non-zero.
3706         * ps/devps/afmtodit: Change calculation of asc_boundary and
3707         desc_boundary.  Make these bounds inclusive.
3708         * ps/devps: Regenerate font files.
3710 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3712         * macros/tmac.latin1: New file.
3713         * macros/tmac.tty-char: Use tmac.latin1.
3714         (tmac.tty-tr): Deleted.
3715         * macros/Makefile: Install tmac.latin1.
3716         * macros/tmac.dvi: Use tmac.latin1.
3717         * macros/troffrc: Translate \[char160] onto no-break space here.
3718         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3720 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3722         * macros/tmac.Xps: Use `do' request.
3724         * macros/tmac.ps: Use `do' request.
3726         * macros/tmac.e (@C): Use `do' request.
3728         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3729         * macros/Makefile: Install tmac.X*.
3731         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3732         * tty/Makefile: Don't install tmac.tty*.
3733         * macros/Makefile: Install tmac.tty*.
3735         * dvi/tmac.dvi: Move to macros.
3736         * dvi/Makefile: Don't install tmac.dvi.
3737         * macros/Makefile: Install tmac.dvi.
3739         * ps/tmac.ps*: Move to macros.
3740         * ps/Makefile: Don't install tmac.ps*.
3741         * macros/Makefile: Install tmac.ps*.
3743         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3744         option.
3745         * macros/eqnrc: Set draw_lines parameter based on device.
3746         * groff.c: Don't pass -D flag to eqn.
3747         * groff.sh: Likewise.
3748         * eqn/main.c: Warn about use of -D.
3750         * troff/input.c (process_startup_file): New function.
3751         (main): Call process_startup_file().
3752         * macros/troffrc: New file.
3753         * macros/Makefile: Install troffrc.
3754         * groff.c (main): Don't pass extra -m option to troff. For a 
3755         pseudo device pass the name of the pseudo device to troff using
3756         -d.
3757         * groff.sh: Likewise.
3758         * groff.c (possible_command::prepend_arg): Deleted.
3760         * troff/input.c (do_request): New function.
3761         (init_input_requests): Bind "do" to do_request.
3763         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3764         load eqnrc from macro directory.
3765         * macros/eqnrc: New file.
3766         * macros/Makefile: Install eqnrc.
3767         * ps/devps/eqnchar: Deleted.
3768         * ps/devps/Makefile: Don't install eqnchar.
3769         * dvi/devdvi/eqnchar: Deleted.
3770         * dvi/devdvi/Makefile: Don't install eqnchar.
3771         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3772         variable optM.
3774         * lib/device.[ch]: New files.
3775         * lib/font.h (font::set_device_name, font::get_device_name):
3776         Deleted.
3777         * lib/fontfile.c: Use device.h.
3778         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3779         * troff/input.c: Delete definition of `device'.
3780         (main): Don't initialize device.
3781         * troff/troff.h: Include device.h rather than declaring device.
3782         * troff/Makefile: No need to handle DEVICE.
3783         * driver/input.c: Include device.h. Don't use
3784         font::{set,get}_device_name.
3785         * groff.c, Makefile: Rename device.h to config.h.
3786         * groff.c: Use library device variable.
3787         * eqn/main.c: Use library device variable.
3788         * eqn/Makefile: No need to handle DEVICE.
3790         * lib/searchpath.[ch]: New files.
3791         * lib/Makefile: Handle searchpath.[ch].
3792         * troff/input.c (open_file, init_dirs): Deleted.
3793         (macro_dirs): Deleted.
3794         (open_mac_file, macro_source): Use class search_path.
3795         (add_string, struct string_list): Move definition.
3796         (main): Change -M option to use macro_path. Delete call to
3797         init_dirs().
3798         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3799         Rewrite to use class search_path.
3800         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3801         * lib/Makefile: fontfile.c depends on searchpath.h.
3802         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3803         MACROPATH.
3804         * lib/macropath.[ch]: New files.
3805         * troff/Makefile: No need to handle MACROPATH.
3807         * troff/input.c: Delete DUMP code.
3808         * lib/fontfile.c, lib/font.h: Delete
3809         font::forget_command_line_font_dirs.
3811         * troff/input.c (push_token): New function.
3812         (handle_first_page_transition): Use push_token().
3813         (process_input_stack): Change handling of a space at the beginning
3814         of the line.
3816 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3818         * troff/input.c (font_dirs): Delete unused variable.
3820         * eqn/lex.c (do_set): Correct error messages.
3822 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3824         * troff/input.c (do_define_string): Allow the string name to be
3825         followed immediately by a tab.
3826         (define_character): Likewise.
3828 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3830         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3831         be negative.
3833         * troff/input.c (input_iterator::is_file): New virtual function.
3834         (file_iterator::is_file): New function.
3835         (input_stack::end_file): New function.
3836         (input_stack::next_file): Handle the situation where there is no
3837         file on the input stack correctly.  Avoid making two passes over
3838         the input stack.
3839         (next_file): Make the filename optional; in this case call
3840         input_stack::end_file().
3842 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3844         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3845         produce a real _ charater when the current font is CW and _
3846         otherwise.
3848         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3849         expression to work around gcc 2.2 bug.
3851 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3853         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3855         * troff/env.c (environment::add_padding): New function.
3856         (environment::add_char): Use add_padding().
3857         (environment::space): Likewise.
3858         (environment::wrap_up_field): Add some padding if there is none
3859         and there's no current tab.
3860         * troff/env.h: Declare environment::add_padding.
3862 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3864         * pic/pic.y: undef fmod and rand before declaring them.
3866 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3868         * troff/input.c (main): If the DESC file specifies a font name of
3869         0, then leave the corresponding font position empty.
3871         * nroff.sh: New file.
3872         * Makefile (install.nobin): Install nroff.sh.
3874         * tty/devlatin1/R.proto: Add ao as synonym for de.
3875         * tty/tmac.tty-char: Define ao as o.
3877         * tty/dev{ascii,latin1}/R.proto: Add aq.
3878         * tty/tmac.tty-char: Delete definition of aq.
3880 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3882         * troff/input.c (init_charset_table): Don't translate 0240.
3883         * ps/tmac.ps: Translate char160 to space.
3884         * dvi/tmac.dvi: Likewise.
3885         * tty/tmac.tty: Likewise.
3887 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3889         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3891         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3892         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3893         \(oe, \(r?, \(r!.
3895         * tty/tmac.tty-char: Add \(ah.
3897         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3898         No need to define \(FM and \(!/. Conditionalize all character
3899         definitions.
3901         * ps/devps/lgreekmap: Add +h, +f, +p.
3903         * ps/tmac.psnew: New file.
3904         * ps/Makefile: Install tmac.psnew.
3906         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3907         character definitions in compatible mode.
3909         * troff/input.c (remove_character): New function.
3910         (init_input_requests): Bind remove_character to "rchar".
3912         * ps/tmac.psold: New file.
3913         * ps/Makefile: Install tmac.psold.
3914         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3915         characters into tmac.psold.  Make these definitions unconditional.
3917         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3919         * ps/tmac.ps: Don't define \('c and \('C.
3921         * ps/devps/textmap: Move Greek characters to...
3922         * ps/devps/symbolchars:
3924 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3926         * ps/devps/text.enc: Add quotesingle.
3927         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3928         * tty/tmac.tty-char: Likewise.
3929         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3930         * dvi/devdvi/texi.map: Add Fn.
3931         * dvi/devdvi/msam.map: Add lz.
3932         * dvi/tmac.dvi: Handle Bq, bq, aq.
3934         * pic/lex.c (get_token): Recognize 'th.
3935         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3937 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3939         * ps/devps/textmap: Move di, mu, +- to...
3940         * ps/devps/symbolchars:
3942         * macros/tmac.s (@XS): Don't call par@reset or fi.
3943         (XA): Call LP. Turn off adjustment. Reduce line length.
3945         * macros/tmac.s: Initially alias XS to LP.
3946         (XS): Rename to @XS.
3947         (cov*ab-init): Alias XS to @XS.
3949 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3951         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3952         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3953         (token::is_size, token::changes_env): Deleted.
3954         * troff/number.c (parse_term): No need to process \s explicitly.
3955         Call tok.next() only after scale indicator has been processed.
3956         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3957         \f etc explicitly.
3958         (token::next): Handle \s, \f, \S, \H immediately rather than
3959         returning them as tokens.
3960         (token::operator==, token::description, token::add_to_node_list,
3961         token::process): Remove handling of deleted tokens.
3963         * troff/env.c (environment::add_char): When adding padding
3964         indicator character, call start_line() if necessary.
3966 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3968         * ps/devps/afmtodit: Don't output 0 kerns.
3970         * ps/devps/afmtodit: Remove directory from name of encoding in
3971         font description file.
3973         * ps/devps/afmtodit: Improve error messages.
3975         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3977         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3978         * ps/devps/FontMakefile: Deleted.
3979         * ps/devps/afmname: New file.
3981         * ps/devps/symbol.sed: New file.
3982         * ps/devps/symbol.diff: Deleted.
3983         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3984         Generate zapfdr.afm from zapfd.afm.
3986         * tty/tmac.tty (tty-char): Prefix definition with ".
3988         * macros/tmac.an (TP): Don't start a diversion if one has already
3989         been started.
3991         * tty/tmac.tty-char: Add Latin-1 characters.
3993         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3995 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3997         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3998         Move declaration of struct horizontal_span.
4000         * tbl/table.c (table::table): Initialize span_list.
4001         (table::~table): Delete span_list.
4003         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4005         * ps/devps/Makefile: Avoid dependency on GNU make.
4007         * ps/tmac.ps: Check that character does not already exist before
4008         defining it.
4010         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4011         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4012         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4013         files.
4015         * tty/tmac.tty-char: New file.
4016         * tty/Makefile: Install tmac.tty-char.
4017         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4018         tmac.tty-char.
4020         * tty/tmac.tty: Fix definition of \(34.
4022         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4023         bracket-drawing characters onto |. Add *o.
4025         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4026         only if current_field.
4028         * troff/dictionary.c (dictionary::lookup): Free old_table after
4029         rehashing. 
4031 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
4033         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4034         whose glyphs are identical to glyphs of some Roman character.
4036         * tty/devlatin1/R.proto (bu): Deleted.
4037         * tty/devascii/R.proto (bu): Deleted.
4038         * tty/tmac.tty: Add definition of \(bu.
4040         * eqn/main.c (do_file): Pass FILE as argument.
4041         (main): Automatically load eqnchar.  New options -F and -n.
4042         Pass do_file an opened FILE.
4043         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4044         No need to include font.h.
4045         * groff.sh: Likewise.  Don't need to use - for standard input.
4046         Prefix files with -- if first file starts with -.
4048         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4050         * troff/env.c (environment::possibly_break_line): Don't set line
4051         to 0 across call to output_line().  Don't call output_line() until
4052         after discarding nodes after break.
4054 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
4056         * request.h (macro::empty): Declare it.
4057         * input.c (macro::empty): New method.
4058         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
4059         macro is empty.
4061 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
4063         * troff/env.c (environment::start_field): Decrement space_total
4064         when a space is frozen.
4066 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
4068         * macros/tmac.an (R): Delete macro.
4070         * troff/input.c (get_copy, token::next): Support \# (like \" but
4071         newline is ignored).
4073         * troff/input.c (token::next): Fix error message in 'Y' case.
4075 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
4077         * eqn/delim.c (define_extensible_string): Recognize any prefix of
4078         a delimiter name.
4080 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
4082         * c++test.c: Include <osfcn.h>.
4084         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4085         <errno.h> doesn't.
4087 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
4089         * tbl/table.c (table::divide_span): Don't count column separation
4090         if expand was specified.
4092         * tbl/main.c (process_format): Don't ignore width specs in
4093         continued format.  Give warning for changing equal widths or
4094         column separation in continued format.
4095         (process_data): Set column separation, minimum width, equal
4096         columns at end of table.
4098 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
4100         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4101         node::add_discretionary_hyphen): Use soft_hyphen_char.
4102         (set_soft_hyphen_char): New function.
4103         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
4105         * Makefile (c++tested): Give more helpful message if test fails.
4107 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
4109         * troff/input.c (init_charset_table): Translate 0240 to
4110         an unbreakable space.
4112         * troff/token.h (token::hyphen_indicator): New function.
4113         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4114         translation.
4115         * troff/input.c (translate): Allow translation to \%.
4116         * troff/node.c (node::add_char): Handle
4117         TRANSLATE_HYPHEN_INDICATOR.     
4118         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4120         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4121         for \(hy.
4123         * tty/devlatin1/R.proto: \(hy and - should print as 055.
4125 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
4127         * groff.c (run_commands): If the last command gets a SIGPIPE send
4128         a SIGPIPE to all children than haven't yet terminated.  When
4129         command terminates, set pid field to -1.
4131 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
4133         * groff.c (main): Pass an appropriate -filename option to gxditview.
4135 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
4137         * Makefile.bd (install): Remove existing program before copying.
4139         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4140         programs which have Unix counterparts to be installed with
4141         user-specified prefix.
4143         * troff/input.c (exit_troff): Don't check if exit_started.
4144         (exit_request): Don't call exit_troff if exit_started.
4146         * Makefile.bd (install.mm): Rename to install.dwbmm.
4148 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
4150         * driver/input.c (do_file): Add missing break for '#' case.
4152 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
4154         * troff/input.c (input_stack::clear):  Clear past any boundaries and
4155         then add the boundaries back.
4157         * troff/input.c (exit_troff): Return immediately if already
4158         exiting.
4160         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
4161         end macro.
4162         (pg*end-page): If the text has ended and there are no more
4163         footnotes or keeps, exit.
4165         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4167         * troff/input.c (init_charset_table): Make \(rq transparent by
4168         default.
4170         * macros/tmac.an: Define lq and rq strings.
4172         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4174 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
4176         * troff/env.c (environment::final_break): New function.
4177         (environment::newline): Set prev_line_interrupted to 2 if
4178         exit_started.
4179         * troff/env.h: Declare environment::final_break.
4180         * troff/input.c (exit_troff): Call environment::final_break()
4181         instead of environment::do_break().
4183         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4184         doesn't already exist.
4185         * macros/man.local: New file.
4186         * macros/tmac.an: Load man.local.
4187         * macros/man.ultrix: New file.
4189 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4191         * troff/input.c (exit_groff): Rename to...
4192         (exit_troff): New function.
4194         * troff/div.c (exit_started, done_end_macro,
4195         seen_last_page_ejector): New global variables.
4196         (began_page_in_end_macro): New static variable.
4197         (exit_flag): Deleted.
4198         (top_level_diversion::top_level_diversion): Initialize
4199         last_page_count.
4200         (top_level_diversion): More elaborate test for whether
4201         cleanup_and_exit() should be called.
4202         Set began_page_in_end_macro if the end macro isn't yet finished.
4203         * troff/div.h (top_level_diversion::last_page_count): New data
4204         member.
4205         (top_level_diversion::set_last_page): New function.
4206         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4207         * troff/env.c (do_break): Zero prev_line_interrupted.
4208         * troff/input.c (exit_flag): Delete declaration.
4209         (LAST_PAGE_EJECTOR): New magic cookie.
4210         (token::next): Handle LAST_PAGE_EJECTOR.
4211         (exit_groff): Set exit_started and done_end_macro instead of
4212         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4213         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4214         another ejection after setting seen_last_page_ejector.
4216 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4218         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4220         * macros/tmac.e (TH): Make sure there's room for the initial
4221         header.
4223         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4224         Set FVS in points rather than units.
4226 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4228         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4229         position of empty slots.
4231 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4233         * ps/devps/S: Fix height and depth of parenrightex.
4234         * ps/devps/symbol.diff: Regenerate.
4236 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4238         * tmac.e (u): Do underlining as in -mgs.
4240 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4242         * tty/tty.c (tty_printer::end_page): If overstriking is
4243         suppressed, still turn overstruck horizontal and vertical lines
4244         into +.
4246         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4247         2.1.
4249         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4251 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4253         * Version 1.05 released.
4255 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4257         * tty/tty.c: Instead of keeping an array of glyphs and then
4258         sorting it, keep a ordered linked list of glyphs for each line.
4260         * driver/driver.h: Include stddef.h.
4262         * tty/tty.c (compare_glyph):
4263         * refer/refer.c (rcompare):
4264         * troff/env.c (compare_ranges): Arguments of qsort comparison
4265         function should be const void *.
4267         * troff/number.c (parse_term):
4268         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4269         switch statement.
4271         * refer/label.y (consider_authors): Don't access variables
4272         constructed under a condition outside that condition: put braces
4273         round for statement containing declaration; redeclare use of same
4274         variable later.
4276         * pic/pic.y (text_expr): Delete production that allows
4277         parenthesised text_expr.
4278         (expr): Allow a conditional_expr to appear in parentheses.
4279         (conditional_expr): Rename to any_expr.
4281         * mm: Install new version 1.01 from jh.
4283         * lib/font.c (font::get_width): Cache scaled widths.
4284         (font::font): Initialize widths_cache.
4285         (font::~font): Destroy widths_cache.
4286         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4288 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4290         * c++test.c, c++test.ref: New files.
4291         * Makefile: Check that the C++ compiler works.
4293         * ps/tmac.pspic (PSPIC): Do a break.
4295         * ps/tmac.ps: Move definition of PSPIC into...
4296         * ps/tmac.pspic: New file.
4297         (PSPIC): Draw box around picture, but make it invisible to grops.
4298         * ps/tmac.ps: Load tmac.pspic.
4299         * ps/Makefile: Install tmac.pspic.
4301 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4303         * lib/font.c (scale_round): If n is negative,
4304         subtract .5 before truncating floating point result.
4306         * lib/fontfile.c: Include <errno.h>.
4308 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4310         * driver/input.c (get_char): Inline. Don't update current_lineno.
4311         Change callers to up date current_lineno if necessary.
4312         Use get_char() instead of getc(current_file).
4314 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4316         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4318 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4320         * tty/tty.c (tmac.tty): Define \(rg as (R).
4322 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4324         * lib/lib.h: New define a_delete.
4325         * Use a_delete instead of delete when deleting an array of objects
4326         without destructors.
4328         * lib/lib.h: Rename adelete to ad_delete.
4329         * Change uses of adelete.
4331 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4333         * eqn/eqn.y: Include lib.h.
4335         * troff/node.c (grow_font_table): Delete old_font_table.
4337         * mm: Install new version from jh.
4339 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4341         * tbl/table.h (format_type): Make global instead of local to class
4342         entry_format.  Prefix enumerators with FORMAT_.
4343         * tbl/table.c, tbl/main.c: Corresponding changes.
4344         * refer/token.h (token_type): Make global.  Prefix enumerators
4345         with TOKEN_.
4346         * refer/token.[ch]: Corresponding changes.
4347         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4349         * troff/div.c (node::set_vertical_size): Don't name argument.
4351 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4353         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4354         * lib/lib.h: Define adelete accordingly.
4355         * pic/object.c (graphic_object::graphic_object):
4356         * tbl/main.c (format::~format):
4357         * tbl/table.c (table::~table):
4358         * refer/ref.c (reference::~reference, reference::merge,
4359         reference::insert_field, reference::delete_field): Use adelete.
4361         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4362         * refer/token.h:
4363         * tbl/table.h: Corresponding changes.
4365         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4366         Ensure total_angle is positive.
4368 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4370         * refer/ref.c (reference::merge, reference::insert_field,
4371         reference::delete_field): Avoid delete[0].
4373         * refer/token.c (init_special_chars): Move calls to cmupper
4374         outside calls to init_two_char_letter to work around bug in gcc
4375         2.0.
4377 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4379         * lib/new.c (operator new): Use __builtin_new for g++.
4381         * pic/object.c (graphic_object::~graphic_object):  Don't use
4382         delete [] on 0.
4384         * pic/object.c (output::compute_scale): Initialize max_width and
4385         max_height.
4387 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4389         * troff/input.c (write_request): Call fflush.
4391         * troff/node.h (class composite_node): Move declaration to node.c
4392         * troff/input.c (charinfo_to_node): Rename to ...
4393         (charinfo_to_node_list): Return node list rather than composite
4394         node.
4395         * troff/node.c (make_composite_node): New function.
4396         (make_node, add_char): Call make_composite_node instead of
4397         charinfo_to_node.
4398         (class composite_node): Add a tfont * member.  Delete font_size
4399         member.
4400         (composite_node::composite_node, composite_node::copy,
4401         composite_node::size): Corresponding changes.
4402         (composite_node::tprint): Provide constant spacing, emboldening
4403         and track kerning as specified in tfont.
4404         (composite_node::width): Change width calculation accordingly.
4405         * troff/env.h (environment::composite): New member.
4406         (environment::is_composite, environment::set_composite): New
4407         functions.
4408         * troff/env.c (environment::environment): Initialize composite.
4409         * troff/input.c (charinfo_to_node): Call
4410         environment::set_composite.
4411         * troff/node.c (make_composite_node, make_glyph_node): Use the
4412         plain version of the tfont if the environment is composite.
4414         * troff/node.c (font_info::get_space_width): Additional argument
4415         giving space_size.  Handle constant space correctly. Scale by
4416         space_size unless constant spaced.
4417         (env_sentence_space_width): New function.
4418         * troff/node.h: Declare it.
4419         * troff/env.h (environment::get_space_size,
4420         environment::get_sentence_space_size,
4421         environment::get_narrow_space_width,
4422         environment::get_half_narrow_space_width): Make inline.
4423         (environment::get_space_width): Make inline.  Just call
4424         env_space_width.
4425         * troff/env.c: Delete definitions for funtions made inline.
4426         (environment::space_newline, environment::space): Use
4427         env_sentence_space_width(). Don't scale by space_size.
4428         * troff/node.h: Move declarations of env*space_width() functions
4429         into env.h.
4431 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4433         * macros/tmac.s (PS): Don't try to set negative indent.
4435 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4437         * pic/pic.y: Fix min function.
4439 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4441         * man/mdate.sh: Clear LANGUAGE.
4443 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4445         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4446         * pic/lex.c: New COMMAND keyword.
4447         * pic/pic.y (print_args, print_arg): New rules.
4448         (placeless_element): Use print_args for PRINT.
4449         New COMMAND element.
4451 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4453         * troff/input.c (terminal): Handle missing argument correctly.
4455         * pic/pic.y (text_expr): New rule.
4457         * pic/pic.y: Implement := operator.
4459 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4461         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4462         mdoc.
4464 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4466         * ps/devps/dingbatsrmap: Include this in the distribution.
4468         * macros/tmac.doc: Replace with new version from 2nd Networking
4469         Release. Fix loading of doc-* files.
4470         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4471         * macros/tmac.doc.old: New file.  Apply fixes that had been
4472         applied to old tmac.doc.
4473         * macros/tmac.andoc: Check that we're running under groff.
4474         * macros/Makefile: Rework.
4476 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4478         * tbl/table.h (format_type): 
4479         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4480         typedef to make these types visible at file scope.
4481         * Makefile: Add NESTED_TYPES configuration option.
4483         * troff/div.c (mark): At the top level use the value of
4484         nl_reg_contents rather than the current vertical position.
4486 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4488         * tty/tty.c: Implement \D for horizontal or vertical lines.
4489         (tty_printer::set_char): Use vec_used+2 as serial number.
4490         Don't allow size of vector to exceed USHRT_MAX-2.
4491         Split off part into...
4492         (tty_printer::add_char): New function.
4493         (tty_printer::draw): New function.
4494         (compare_glyph): Handle equal serial numbers.
4495         (tty_printer::end_page): Handle overstruck characters from \D.
4496         (main, usage): Implement -d option.
4498 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4500         * tbl/main.c (process_format):
4501         * eqn/text.c (split_text):
4502         * troff/input.c (token::next): Use inner block for declarations
4503         with initializers in switch statement.
4505 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4507         * pic/common.c (common_output::dash_line): Cope with zero-length
4508         lines.
4510 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4512         * Version 1.04 released.
4514 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4516         * macros/tmac.an (TH): Define a macro an-init to define variables
4517         based on command line arguments.
4518         (an-header): Call it.
4520 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4522         * Makefile (install.mm): Rename to install.dwbmm.
4524         * Makefile: Integrate mm.
4525         * mm: New directory.
4527 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4529         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4530         <sys/types.h>.
4532         * pic/troff.c (troff_output::simple_spline,
4533         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4534         shadowing parameter.
4536         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4538         * lib/ptable.h: Add explicit casts when converting from unsigned
4539         long to unsigned.
4541         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4542         * dvi/devdvi/Makefile: Install SA, SB.
4544         * refer/indxbib.c: Add declaration of mktemp.
4546         * refer/lookbib.c: Add declaration of isatty.
4548 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4550         * pic/lex.c (interpolate_macro_with_args):  While collecting
4551         arguments, keep track of whether we're in a string.
4553 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4555         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4556         down with \v, so as to avoid problems with top of page trap
4557         setting no space mode.
4559 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4561         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4563 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4565         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4566         Improve error message.
4568 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4570         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4571         printf("%03o");
4573 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4575         * groff.c (possible_command::execp): Always use _exit() after a
4576         failed exec.
4578         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4579         NO_SYS_WAIT_H   configuration options.
4580         * groff.c: Use these options.  Use POSIX-style macros to extract
4581         fields from the status returned by wait().
4583 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4585         * tbl/table.c (table::compute_separation_factor): Allow the
4586         separation factor to drop to 0.
4588 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4590         * refer/search.c: Include <errno.h>.
4592 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4594         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4596         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4597         C++. 
4599         * pic/lex.c (input_stack::bol): Move definition out of class body.
4601         * pic/main.c: On MSDOS munge argv[0].
4603         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4605         * lib/ptable.c (hash_string): Use unsigned long rather than
4606         unsigned.
4607         (next_ptable_size): Use unsigned rather than int.  Give an error
4608         message if we've hit the largest table size.
4609         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4610         table size.
4612         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4613         flags as const unisgned long rather than as enums.
4615         * pic/output.c: Deleted.
4617         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4619         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4620         Add additional argument.
4621         (line_entry::note_double_vrule_on_{left,right}): Set value of
4622         douvle_vrule_on_{right,left} flag according to argument.
4623         (simple_line_entry::simple_print,
4624         simple_line_entry::double_line_print): If adjacent to double vrule
4625         on a corner extend rather than shorten the rule by half the double
4626         vrule sep.
4628         * troff/number.c (parse_term): In checking for overflow, handle the
4629         case where the current horizontal position is negative.
4631 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4633         * pic/object.c (draw_arrow): Check for object having zero length.
4635 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4637         * eqn/main.c (do_file): Split off inline equation handling into...
4638         (inline_equation): New function.  Search for starting delimiter
4639         using...
4640         (delim_search): New function. Don't recognize a delimiter that
4641         occurs in the name of an escape sequence, number register, string
4642         etc.
4644 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4646         * eqn/delim.c (delim_box::compute_metrics): Don't call
4647         define_extensible_string if left is 0.
4648         (delim_box::output):  Don't print the left delimiter if left is 0.
4649         (delim_box::debug_print): Check for left == 0 before calling printf.
4651 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4653         * troff/Makefile (majorminor.c): Include only digits in
4654         minor_version.
4656 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4658         * refer/dirnamemax.c: new file.
4659         * refer/genlimits.c: Deleted.
4660         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4661         Don't check path length.
4662         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4663         * Makefile: Add PATHCONF_MISSING option.
4665         * refer/indxbib.c (get_cwd): New function.
4666         (main): Use get_cwd().
4667         * lib/getcwd.c: New file.
4668         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4669         GETCWD in SUBFLAGS.
4670         * lib/Makefile: Compile getcwd.o.
4672         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4673         userdict.
4675         * refer/indxbib.c (main): Check success of mktemp.
4677         * lib/tmpfile.c: New file.
4678         * lib/Makefile: Add tmpfile.c.
4679         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4680         * ps/ps.h: Delete declaration of mktemp().
4681         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4682         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4683         * driver/driver.h: No need now to include errno.h.
4685         * everywhere: Set errno to 0 before calling fopen().
4687         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4688         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4689         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4691 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4693         * troff/env.h (translate_space_to_dummy): Declare it.
4694         * troff/env.c (environment::space_newline, environment::space):
4695         If translate_space_to_dummy is set then make the width of spaces 0.
4696         * troff/input.c (translate): If the second character of a
4697         translation is a space, translate to unbreakable space.  If the
4698         first character is a space, set or clear translate_space_to_dummy
4699         according to whether the second character is \&.  Weird!
4701 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4703         * groff.c (run_commands): Don't use non-zero exit code because a
4704         command gets SIGPIPE.
4706         * groff.c, groff.sh: Use -mXps with -TXps.
4708         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4709         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4710         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4711         (ps_printer::special): New specials invis and endinvis.
4712         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4713         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4714         (ps_printer::end_page): Check that invis_count == 0.
4715         (ps_printer::invis_count): New member.
4716         (ps_printer::ps_printer): Initialize invis_count to 0.
4718         * troff/env.c (environment::hyphenate_line): Hyphenation
4719         indicator at beginning of word inhibits splitting after -, \(em
4720         etc.
4722         * pic/pic.y (element): Allow another element to follow } without
4723         any intervening separator.
4725 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4727         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4729 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4731         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4732         declaration of wait() in header files.
4733         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4735         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4737         * lib/lib.h: Declare return type of strerror as char *.
4739         * man/Makefile: Add g flag to sed substitutions.
4740         * Makefile (shgroff, bindist): Likewise.
4742 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4744         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4745         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4746         userdict.
4748 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4750         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4751         userdict.
4753 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4755         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4756         group.
4758 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4760         * troff/input.c (define_number_reg):  If currently undefined,
4761         don't define it if the argument is an invalid expression.
4763         * Makefile: Ignore return value of `if' commands without `else'
4764         parts.
4766         * Makefile: Split up CPPDEFINES into a series of separate
4767         configuration options.
4769         * troff/input.c (init_registers): Use time_t instead of long
4770         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4771         than passing pointer.
4772         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4774         * lib/Makefile (fontpath.h): Use gendef.
4776 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4778         * troff/input.c (input_iterator::shift): Delete argument name.
4779         * troff/node.c (suppress_output_file::really_begin_page,
4780         suppress_output_file::really_transparent_char, node::ascii_print,
4781         node::tprint): Delete names of unused arguments.
4783 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4785         * refer/label.y (string):  Pass $4 to command_error.
4787 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4789         * Version 1.03 released.
4791 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4793         * Makefile: Pass definition of SHELL in SUBFLAGS.
4795         * gendef: New file.
4796         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4797         ps/Makefile: Use gendef to construct header files that are
4798         constructed from the Makefile.
4800         * macros/Makefile: make all should build stripped version of tmac.e.
4802         * refer/Makefile (clean): Remove y.output.
4804 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4806         * ps/pfbtops.c (main): Add -v option which prints out a version
4807         number.
4808         * ps/Makefile (pfbtops): Link with libgroff.a.
4810 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4812         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4813         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4815         * refer/lkbib.c (main): Always terminate reference with blank
4816         line.
4817         * refer/lookbib.c (main): Likewise.
4819         * refer/linear.c (file_buffer::load): Check that the file is not a
4820         binary file.
4822         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4823         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4824         Delete second inclusion of <sys/param.h>.
4826 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4828         * troff/token.h (token::special): Deleted.
4830         * tbl/main.c (process_format): Rework so that opt->tab_char is
4831         recognized only when appropriate.
4833         * ps/Makefile (clean): Remove pfbtops.
4835 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4837         * lib/font.c (text_file::next): Don't return if we have got a
4838         blank line.
4840 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4842         * refer/refer.c (store_reference): Get hash code from old_table[i]
4843         when rehashing the table.
4845 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4847         * eqn/box.c (box::top_level): Save size and prev size using \R and
4848         restore it afterwards. Set the size to the size at the beginning
4849         of the line.
4850         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4851         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4853         * refer/Makefile (limits.h): Use ./genlimits.
4855 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4857         * refer/index.c: Delete declarations of stat() and fstat().
4859 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4861         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4863 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4865         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4867 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4869         * troff/input.c (token::get_char): Handle \e.
4871         * refer/linear.c: Delete declarations of fstat() and stat().
4873 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4875         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4876         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4878 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4880         * troff/input.c (do_define_macro): Improve error handling for end
4881         of file while defining macro.
4883 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4885         * eqn/box.h: Fix declaration of set_gsize.
4886         * eqn/box.c (set_gsize): Make argument const char *.
4887         (gsize): Declare as char *.
4888         * eqn/main.c (main): Don't convert gsize to int.
4889         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4891         * Version 1.02 released.
4893 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4895         * macros/tmac.andoc: New file.
4896         * macros/Makefile: Install tmac.andoc.
4898         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4899         operator new and delete on OP_DELETE_BROKEN not being defined.
4900         * Makefile: Mention OP_DELETE_BROKEN.
4902 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4904         * Makefile (bindist): Pass SUBFLAGS.
4906 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4908         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4910         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4911         parameter.
4913         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4915         * ps/ps.h, ps/psrm.c: Make comment_table and
4916         header_comment_table local to resource_manager::process_file.
4918         * groff.sh: With -TXps pass -printCommand option to gxditview.
4920         * groff.c (possible_command::print): Implement using
4921         append_arg_to_string.
4923         * xditview: Merge in new implementation with own ChangeLog.
4925 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4927         * groff.c (main): Implement PRINT_OPTION.
4928         (append_arg_to_string): New command.
4929         (device_table): Set PRINT_OPTION flag for Xps.
4931 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4933         * troff/groff.h: Rename to troff.h.
4935         * pic/lex.c (lookup_keyword, docmp): New functions.
4936         (get_token): Use new lookup_keyword.
4937         Don't include key.h.
4938         * pic/key.[ch], pic/pic.gperf: Deleted.
4939         * pic/Makefile: Remove gperf stuff.
4941         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4942         into output.h.
4943         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4945         * troff/Makefile, troff/node.c: Move definition of
4946         STORE_WIDTH into node.c.
4948         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4950 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4952         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4953         dvi/devdvi/texb.map: Add lq and rq.
4954         dvi/devdvi: Regenerate fonts.
4955         * ps/devps/textmap: Add lq and rq.
4956         * ps/devps: Regenerate fonts.
4957         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4958         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4960         * pic/object.c (position_rectangle): When checking radius
4961         cope with possiblity that width or height is negative.
4962         (box_object::box_object): Have separate xrad and yrad with
4963         signs matching signs of dim components.
4964         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4965         (box_object::print): With rounded boxes use absolute values
4966         for dim and rad arguments.
4968         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4969         in fontpath.h.
4971         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4973         * various files: Add explicit destructors to keep Saber CC +d
4974         happy.
4976 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4978         * eqn/box.c (box::top_level): Restore fonts correctly after
4979         font changes in line containing inline equation.  Also
4980         restore previous font as well as current font.
4981         * eqn/pbox.h: Define necessary string and register names.
4983         * troff/input.c (token::next): Case 'R' calls do_register.
4984         (do_register): New function.
4986 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4988         * groff.c, groff.sh: Support Xps device.  Allow each device
4989         to have a pseudo_name and a real_name.
4991         * groff.c (run_commands): Don't print `Broken pipe' messages.
4993         * ps/pfbtops.c: New file.
4994         * ps/Makefile: Add pfbtops.
4996         * troff/number.c (parse_term): Improved error message.
4998 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
5000         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5002         * Makefile: Integrate refer.
5003         * refer: New directory.
5004         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5005         man/lkbib.man: New files.
5006         * man/Makefile: Support refer man pages.
5008         * lib/lib.h: Declare is_prime.
5009         * lib/prime.c: New file.
5011         * troff/input.c (macro_source): New function.
5012         (init_input_requests): Bind "mso" to macro_source.
5014         * troff/env.c (environment::possibly_break_line): Maintain
5015         pointer to pointer to node to be split in ndp so as to avoid
5016         using address of freed node.
5018         * troff/env.c (environment::hyphenate_line): Maintain pointer to
5019         pointer to first node to be hyphenated in startp so as to
5020         avoid using address of freed node.
5022         * troff/env.c (class trie, class hyphen_trie): Make the
5023         elements of the trie be of type char not unsigned char.
5024         Declare arguments to be const char* instead of unsigned char *.
5025         
5026         * troff/env.c (hyphenate): Initialize hbuf[0].
5028         * troff/input.c (set_string): Declare p to be char * and cast
5029         *p to unsigned char when necessary.
5031         * troff/input.c (do_define_macro): Declare s to be const
5032         char*. Cast element to unisgned char when necessary, Declare
5033         d to be an int.  Handle EOF better.
5035         * troff/Makefile, troff/input.c: Different scheme for passing
5036         definitions of MACROPATH, HYPHENFILE and DEVICE.
5038 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
5040         * tty/devascii/R.proto: Delete entry for em.
5041         * tty/devlatin1/R.proto: Likewise.
5043 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
5045         * troff/input.c (translate): Stop when we get a space. Treat eof
5046         like newline.
5048         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5050 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
5052         * tbl/main.c (process_format): A font name following a `f'
5053         modifier that starts with a digit can be only one character long.
5054         Also deal with EOF on the second character of the font name.
5056 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
5058         * troff/input.c (token::next): Turn \~ into an
5059         unbreakable_space_node.
5060         * troff/node.c (unbreakable_space_node): New class.
5061         * troff/node.h: Declare it.
5063 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
5065         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
5066         it's >= 0, before outputting it as a single byte.
5068 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
5070         * lib/font.c: Make font_char_metric::code an int.
5071         (font::get_code): Change return type to int.
5072         (font::load): Allow code to be arbitrary integer.
5073         * lib/font.h (font::get_code): Change return type to int.
5074         (font::number_to_index): Change argument type to int.
5075         * troff/input.c (token::next):  In case 'N', allow any value.
5076         Store value in token::val.
5077         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5078         (token::get_char, token::add_to_node_list, token::process): Get
5079         number from val.
5080         (charinfo::set_number): Change argument to int.
5081         (charinfo::get_number):  Require that NUMBERED flag be set.
5082         (get_charinfo_by_number): Store numbered characters not between 0
5083         and 255 in a dictionary.
5084         * troff/charinfo.h (get_charinfo_by_number): Change argument type
5085         to int.
5086         (charinfo::number): Change type to int.
5087         (charinfo::set_number): Change type of set_number to int.
5088         * troff/node.c (troff_output_file::put_char_width,
5089         troff_output_file::put_char): Test whether character is numbered
5090         using charinfo::numbered().
5091         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5092         values of num.
5093         * lib/nametoindex.c: New implementation to cope with arbitrary
5094         number characters.
5096         * troff/input.c (token::operator==): Test val for
5097         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5098         TOKEN_SIZE.
5100         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5101         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
5103 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
5105         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
5106         variable.
5108         * all Makefiles: rm targets of cp and >.
5110         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5111         it.
5113         * eqn/lex.c (def_table): Add dollar.
5115 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
5117         * troff/input.c (do_width): Push back newline before closing delim
5118         like do_bracket.
5120 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
5122         * groff.c (possible_command::prepend_arg): New function.
5123         (main): Prepend device -m option.
5124         * groff.sh: Put device -m options before command-line options.
5126 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
5128         * macros/tmac.an (IP): Quote argument to TP.
5130         * ps/ps.c (main): New option -b, which sets...
5131         (broken_flags): New variable.
5132         (ps_printer::~ps_printer): Incorporate the setup section in the
5133         prolog if (broken_flags & NO_SETUP_SECTION).
5134         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5135         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5136         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5137         ps_printer::print_needed_font_comment,
5138         ps_printer::print_supplied_font_comment,
5139         ps_printer::print_include_font_comments,
5140         ps_printer::lookup_doc_font, ps_printer::download_fonts,
5141         ps_printer::read_download_file, read_document_fonts, add_font,
5142         skip_line, parse_fonts_arg, document_font::document_font,
5143         document_font::~document_font, document_font::download,
5144         ps_output::include_file):  Deleted.
5145         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5146         rather than %!PS-Adobe-2.0.  Make calls to
5147         resource_manager::need_font for each font that we used. Replace
5148         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5149         print_supplied_font_comment, print_needed_font_comment by call to
5150         resource_manager::print_header_comments. Output %%Orientation
5151         comment. Output %%Requirements: numcopies comment if ncopies > 1.
5152         Don't output the prolog directly.  Instead call
5153         resource_manager::output_prolog.  Only define #copies when ncopies
5154         > 1.  Delete calls to print_include_font_comments  and
5155         download_fonts.  Add call to resource_manager::document_setup.
5156         (ps_printer::do_file): Call resource_manager::import_file instead
5157         of including it ourselves.
5158         (ps_printer::do_import): Likewise.  Also don't call
5159         merge_import_fonts. Push userdict on the dictionary stack before
5160         and pop it afterwards.
5161         Move declaration of ps_output into ps.h.
5162         * ps/psrm.c: New file implementing resource_manager class.
5163         * ps/ps.h: New file declaring ps_output and resource_manager
5164         classes.
5165         * ps/devps/zapfdr.ps:
5166         * ps/devps/symbolsl.ps:
5167         * ps/devps/prologue:  Use 3.0 conventions.
5168         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5169         Add default definition of BROKEN_SPOOLER_FLAGS.
5170         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
5171         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5173 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
5175         * etc/grog.pl: New file.
5176         * Makefile (GROG): New variable.
5177         Add GROG to SUBFLAGS.
5178         * etc/Makefile (GROG): New variable.
5179         (install.nobin): Install $(GROG) rather than grog.sh.
5181 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5183         * eqn/special.c (special_box::compute_metrics): Make the input and
5184         output strings the same.  Get the new height and depth from the
5185         predefined height and depth registers.  Also make subscript kern
5186         and skew available.
5187         (special_box::compute_subscript_kern, special_box::compute_skew):
5188         New functions.
5190         * eqn/box.c (pointer_box::compute_skew,
5191         simple_box::compute_metrics, box::top_level)
5192         * eqn/text.c (prime_box::compute_metrics,
5193         prime_box::comput_subscript_kern)
5194         * eqn/limit.c (limit_box::compute_metrics):
5195         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5196         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5197         negative numbers in `nr' requests with a leading 0.
5199 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5201         * eqn/special.c: New file.
5202         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5203         Add new rule for simple.
5204         * eqn/lex.c (token_table): Add SPECIAL.
5205         * eqn/box.h: Declare make_special_box.
5206         * eqn/Makefile: Add special.[co].
5208 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5210         * ps/devps/prologue: Possibly set packing to true while defining.
5211         Create grops dictionary here.  Initialize local variables before
5212         defining procedures.
5213         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5214         the dictionary stack. Set strokeadjust and overprint to false if
5215         the relevant operators are defined.
5216         (PEND): New procedure.
5217         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5218         prologue.  Do everything else in the setup section.
5219         (ps_printer::do_import): Just call PBEGIN and PEND around the
5220         picture. Also push userdict before, and pop it afterwards.
5222 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5224         * troff/node.c (bracket_node::tprint): Brackets were being printed
5225         1m too low.
5227         * macros/tmac.an (SH, SS): Set fill mode.
5229 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5231         * troff/div.c (top_level_diversion::begin_page): Set
5232         high_water_mark to 0.
5234 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5236         * man/mdate.sh: New file.
5237         * man/mdate.c: Deleted.
5238         * man/Makefile: Use mdate.sh instead of mdate.
5239         (mdate): Deleted.
5241         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5243 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5245         * man/mdate.c: New file.
5246         * man/*.man: Replace modification date by @MDATE@.
5247         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5248         (mdate): New target.
5250         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5251         Remove illegal input characters.
5253 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5255         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5257 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5259         * troff/div.c (begin_page): Change behaviour when
5260         !first_page_begun and !break_flag.
5262         * troff/input.c (do_name_test): Return 0 if argument is empty.
5264         * troff/input.c (read_long_escape_name): Require closing ] to be
5265         at same input level as opening [.
5267         * troff/input.c (read_increment_and_escape_name): New function.
5268         (get_copy, process_input_stack): Use this for \n.
5270 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5272         * troff/div.c (top_level_diversion::begin_page): Ignore the
5273         current value of page_number if !first_page_begun.
5275         * groff.c (main): Fix declaration of buf.
5277         * troff/input.c (do_name_test): New function.
5278         (token::next): Implement \A.
5279         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5280         (token::description, token::add_to_node_list, token::process):
5281         Handle TOKEN_ESCAPE.
5282         * troff/token.h: New token TOKEN_ESCAPE.
5284 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5286         * pic/main.c (do_picture): Allow space before and after filename
5287         following `<'.  Check that the filename is not empty.
5289 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5291         * Version 1.01 released. 
5293         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5295         * dvi/tmac.dvi: ftr HR to H.
5297         * macros/tmac.e: Round up computation of $r.
5299         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5300         Use \n(.s instead of \n[.s].
5302         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5303         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5304         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5305         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5306         short names in the char definitions.
5308         * ps/tmac.ps: Don't give up completely in compatibility mode.
5309         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5310         quote in front of \n(.s. Add u to factors inside \s[...].
5312 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5314         * tty/tmac.tty: Call the nroff request.
5316         * macros/tmac.e ((x, )x):  Better definitions that work properly
5317         in a diversion.
5318         (@0, @1): Helper macros for (x.
5320         * macros/tmac.e ($s, hl): Use \l rather than \D.
5322         * tty/tmac.tty: Make it work better in compatibility mode.
5323         (pchar): Rename to tty-char.
5325         * macros/tmac.e (@E): New macro.
5326         (r, i, b, rb, bi): Use @E.
5328         * macros/tmac.e (@F): Don't use (;...) syntax.
5330         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5331         it was modified for groff.
5333         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5335         * macros/tmac.e (<., .>): Removed.
5336         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5338         * macros/tmac.e: Remove check that groff is being used.
5340         * macros/tmac.e (@C): Change families only if using groff; turn
5341         compatibility mode off while changing familes. Save compatibility
5342         mode before changing families and restore it afterwards.
5344         * macros/tmac.e (@h): Remove test for offset + line length.
5346         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5347         (lo, th, ac): Define to call @S instead of using als.
5349         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5350         the ratio of the vertical spacing to the point size in units
5351         expressed as a percentage.  Use these instead of $10r and $10R,
5352         Delete $10r and $10R.
5354         * lib/font.c (font::load): In default computation of space_width,
5355         divide by sizescale.  Use scale_round.
5357         * macros/tmac.an (TP): Don't call `nf'.
5358         (an-do-tag): Don't call `fi'.
5360 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5362         * troff/input.c (process_input_stack): Handle the case where
5363         spaces at the beginning of an input line are followed by a
5364         newline.
5366 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5368         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5369         * groff.sh: Use pic -x with the dvi device.
5371         * dvi/devdvi/FontMakefile (H): Don't use -s.
5373         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5374         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5375         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5376         in FONTS.
5378 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5380         * ps/psfig.diff: New file.
5381         * ps/tmac.psfig: New file.
5383 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5385         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5386         (]-): Don't call ref*do-tl.
5388         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5390         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5391         (fn@do-FS): Rename to fn*do-FS.
5393         * troff/input.c (transparent_translate): New function.
5394         (process_input_stack): Apply transparent_translate before calling
5395         diversion::transparent_output(unsigned char).
5397 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5399         * troff/input.c (do_define_macro): Define the macro before calling
5400         skip_line.
5402         * xditview/Makefile: Add DEVICES variable.  Change install target
5403         to use this.
5405 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5407         * groff.c (run_commands): Handle the possibility that there are
5408         child processes other than those forked by us.
5410 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5412         * lib/string.c (string::append): New function.
5413         * lib/stringclass.h: Declare it.
5415 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5417         * eqn/main.c (main): New option -N which sets
5418         no_newline_in_delim_flag. 
5419         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5420         in delimiters.
5421         * groff.c (main): Pass -N on to eqn.
5422         (help, synopsis): Mention -N.
5423         * groff.sh: Implement -N.
5425 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5427         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5428         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5429         (XP): Allow as initializer.
5431 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5433         * troff/env.c (environment::wrap_up_field): If field_spaces are
5434         non-zero and we have a current_tab, subtract padding from
5435         tab_distance.  If this makes tab_distance <= 0, use the next tab
5436         stop instead.  If there isn't any next tab or it's a left tab,
5437         wrap up the current tab.
5438         (environment::start_field): Initialize tab_precedes_field.
5439         (environment::wrap_up_tab): If there's a current field, update
5440         pre_field_width, field_distance and tab_precedes_field.
5441         * troff/env.h (environment::tab_precedes_field): New member.
5443 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5445         * ps/ps.c (ps_printer::do_file): New function.
5446         (ps_printer::special): Bind to `file' special.
5447         (ps_printer::do_exec): Set ndefined_styles to 0.
5449 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5451         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5452         Avoid stripping first character from the start of unrecognized
5453         escapes.  Use lex_error instead of error to report errors.
5454         * eqn/lex.c (get_token): Rework handling of escapes.
5455         (lex_error): Move declaration into...
5456         * eqn/eqn.h.
5458         * xditview/xditview.c (main): Make -page option work.
5460         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5462 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5464         * macros/tmac.s (B2): Correct size of box.
5466 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5468         * macros/tmac.s (B2): Postpone drawing the box until in the
5469         top-level diversion.
5471         * tty/tmac.tty: Add font translations for C, CR, CW.
5473         * groff.c (synopsis, help): Document -i.
5474         * groff.sh: Implement -i.
5476         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5477         Simplify the construction of SN.
5479         * troff/number.c (parse_term): Give `|' a higher precedence.
5480         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5481         accordingly.
5483         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5485 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5487         * lib/string.c (string::move): New function.
5488         * lib/stringclass.h: Declare it.
5490 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5492         * troff/env.c (distribute_space): Add optional argument
5493         `force_forward'.
5494         (environment::wrap_up_field): Call distribute_space with
5495         `force_forward' argument of 1.
5497 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5499         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5500         Inline it.  Move reallocation into...
5501         (string::grow1): New function.
5502         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5503         dependencies to include library header files.
5504         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5506 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5508         * macros/tmac.s (@NH): Use the same number registers than -ms does
5509         for the heading level counters.  Use the same string that -ms does
5510         for the number for this heading.
5512 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5514         * lib/new.c (operator new): Cast result of malloc to char *.
5516         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5517         is not null.
5519 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5521         * groff.c (main): Support -i.
5523 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5525         * pic/pic.h: Include <osfcn.h>.
5527         * ps/ps.c: Add declaration of mktemp.
5529         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5530         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5531         argument as union wait *.
5532         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5533         argument to union wait *.
5535 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5537         * tty/tmac.tty: Add definition of \(co.
5539         * pic/object.c (make_arc): Only increase radius when radius
5540         strictly less than d.
5541         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5542         more than once.
5544         * troff/env.c (environment::environment(symbol),
5545         environment::environment(const environment *)):  Initialize
5546         input_trap_count.
5548 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5550         * tbl/main.c (main): Add exit(0).
5552         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5554         * pic/main.c (main):
5555         * eqn/main.c (main):
5556         * tbl/main.c (main):
5557         * etc/soelim.c (main):
5558         * driver/printer.c (printer::~printer):
5559         * troff/node.c (real_output_file::~real_output_file,
5560         real_output_file::flush):  Check for errors on stdout.
5562         * most files: Add 1991 to copyright notice.
5564         * macros/tmac.s: Don't test \n(.x and \n(.y.
5566         * troff/input.c (token::next): Rename `escape_char' label to
5567         `handle_escape_char' and `normal_char' label to
5568         `handle_normal_char'.
5570 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5572         * groff.c (main, synopsis, help): Support -a option.
5573         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5574         to trflags while parsing options.
5576 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5578         * troff/number.c (parse_term): With `m', `M' and `n' scale
5579         indicators, convert scale factor to hunits before scaling.
5581 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5583         * lib/font.c (scale_round): Better test for overflow when n is
5584         negative.
5586 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5588         * tbl/main.c (process_format): Add second argument of type
5589         options*. Change callers.  Allow opt->tab_char as well as '\t'
5590         between format items.
5592 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5594         * macros/tmac.an (PD): With no arguments, make sure register PD is
5595         at least \n[.V].
5596         (TH): Call PD with no argument, instead of setting register PD
5597         directly.
5599 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5601         * Version 1.00 released.
5603 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5605         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5607         * dvi/devdvi/DESC: Mount CW instead of CR.
5609         * dvi/tmac.dvi: Add definition of \(tm.
5611         * dvi/devdvi/texsy.map: Add lh, and rh.
5612         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5613         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5615         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5616         * dvi/devdvi/Makefile: Install H.
5617         * dvi/devdvi/H: New file.
5619 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5621         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5622         be 0.
5624 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5626         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5628         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5630         * macros/tmac.s (@EN): Handle the case where the equation is empty
5631         but the label is not.
5633 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5635         * troff/groff.h: New warning category WARN_SPACE.
5636         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5637         WARN_SPACE to warning_table.
5638         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5639         is longer than two characters and is not defined, but the first
5640         two characters do make a defined name.
5642         * PROBLEMS: New file.
5644         * CHANGES: New file.
5645         * README-0.6, README-1.00: Deleted.
5647         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5648         * xditview/devX75/Makefile: Make devX75-12.
5649         * xditview/devX100/Makefile: Make devX100-12.
5651         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5652         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5654 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5656         * README-0.7: Rename to README-1.00.
5658         * macros/tmac.pic: New file.
5659         * macros/Makefile (install.nobin): Install tmac.pic.
5661 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5663         * troff/env.c (hyphen_word): Correct the test for whether the
5664         token is a hyphen.  Reset npos to 0.
5666         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5668 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5670         * macros/tmac.s (ds*common-end): Call par*reset.
5671         (PE): Likewise.
5672         (par@reset-indent): Deleted.
5674         * macros/tmac.s (@IP): Divert the label.
5676 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5678         * xditview/draw.c (setGC): Use a line width of .1m rather than
5679         .04m by default; round rather than truncate value.
5681         * tbl/table.c (class empty_entry): New class.
5682         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5683         (table::add_entry): Represent empty entries by objects of type
5684         empty_entry.
5685         (table_entry::line_type): Return -1.
5686         (table::determine_row_type): Ignore entries with line_type 0.
5687         Treat type -1 as non-lines.
5689 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5691         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5692         macros/tmac.s: Rename \(-d to \(Sd.
5694 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5696         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5697         * xditview/libXdvi/DviChar.c: Likewise.
5698         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5700 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5702         * troff/div.c (top_level_diversion::begin_page): Call
5703         init_output() if the_output is 0.
5705 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5707         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5708         ESCAPE_c.
5709         (get_copy): Turn \E into ESCAPE_E.
5710         (token::process, asciify): Handle ESCAPE_E.
5712         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5713         (RD): New macro.
5714         (DS): Implement `.DS R'.
5716 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5718         * macros/tmac.s (FS): New macro.
5720         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5722         * macros/tmac.s (cov*tl-init): Remove after first execution
5723         instead of aliasing to @nop.  Call top of page macro explicitly
5724         instead of setting trap; call @init first.  Set pg@top as top of
5725         page macro.
5726         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5727         cov*auto-init as top of page trap. 
5728         (TL, LP): Do a break instead of calling cov*tl-init.
5729         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5730         @FE; in this case also give a warning and always start another
5731         page. No need to set pg@top here.
5732         (cov*tl-init): Rename to cov*first-page-init.
5734         * macros/tmac.s (RP): Do `.pn 0'.
5735         (cov*tl-init): With RP format don't do `.pn 0'.
5737         * macros/tmac.s (pg@cs-top): Set no space mode.
5739         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5740         (cov*ab-init): Alias TL, AU and AI to these.
5742 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5744         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5745         (@EN): Do nothing unless \n[dl] is > 0.
5747 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5749         * pic/object.c (ellipse_object::radius): New function.
5751         * VERSION: Change version to 0.7.
5753         * tbl/table.c (block_entry::do_divert): Declare return type as
5754         void.
5755         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5757 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5759         * troff/column.c: New file.
5760         * troff/Makefile: Corresponding changes.
5762         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5763         Friend of vunits.
5765         * troff/div.c (top_level_diversion::space): If the space causes
5766         the first-page transition and springs a trap, truncate the space
5767         to 0.
5769 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5771         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5772         the document.
5774         * pic/troff.c (troff_output::line_thickness,
5775         troff_output::set_fill): Do a horizontal motion to compensate for
5776         the width of the \D escape sequence.
5778 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5780         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5781         (not X75).
5783         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5784         to printf.
5786         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5787         Supply empty definition.
5788         (text_entry::simple_print, simple_text_entry::simple_print):
5789         Delete declarations.
5790         (table::add_entry): Represent empty entries by objects of type
5791         `simple_entry'.
5793 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5795         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5797         * tbl/table.c (left_text_entry::add_tab): New function.
5799         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5800         initialize like LP.
5802 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5804         * troff/env.c (environment::start_field): Give an error message if
5805         there is no next tab.
5807 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5809         * troff/env.c (hyphenate): Skip initial elements with zero
5810         hyphenation code.
5812         * macros/tmac.s (par@init): Keep VS in points rather than units.
5814 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5816         * pic/main.c (main): Implement `-c' option.
5817         * pic/output.h: Declare make_tpic_output().
5818         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5819         protected.
5820         (tpic_output): New class.
5821         (tpic_output::tpic_output, tpic_output::set_pen_size,
5822         tpic_output::command, make_tpic_output): New functions.
5824 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5826         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5827         if they're not already defined.
5828         * tbl/table.c (init_output): Don't test \n(.g.
5830         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5831         `d', `r' and `c' conditions even in compatibility mode.
5833 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5835         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5836         box.
5838 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5840         * troff/env.h (environment::prev_line_interrupted): New member.
5841         (environment::get_prev_line_interrupted): New function.
5842         * troff/env.c (environment::newline): Set prev_line_interrupted.
5843         (environment::environment(const environment *),
5844         environment::environment(symbol)): Initialize
5845         prev_line_interrupted.
5846         * troff/input.c (process_input_stack): Don't give special
5847         treatment to space and newline at the beginning of the line if the
5848         previous line was interrupted.
5850 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5852         * eqn/eqn.y: Disallow PRIME by itself.
5853         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5854         PRIME.
5855         (def_table): Remove definition of '.  Define prime to be `.
5857         * eqn/eqn.y: Split off part of rule `script' into a new rule
5858         `nonsup'.
5860 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5862         * macros/tmac.s ({, }): New string aliases.
5864 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5866         * README-0.7: New file.
5868 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5870         * macros/tmac.s: New file.
5871         * man/groff_ms.man: New file.
5872         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5873         * Makefile.bd: Similarily.
5874         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5875         definition of TMAC_S.
5876         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5877         * macros/TODO: New file.
5879 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5881         * troff/env.c (right_justify): New function.
5882         (init_env_requests): Bind this to request "rj".
5883         (center_lines): Set right_justify_lines to 0. If we get a bad
5884         integer, center 1 line.
5885         (environment::environment(symbol), environment::environment(const
5886         environment *)): Initialize right_justify_lines.
5887         (environment::get_right_justify_lines): New function.
5888         (init_env_requests): Bind this to number_register ".rj".
5890         * troff/env.c (environment::choose_breakpoint): Implement
5891         hyphenation_margin and hyphenation_space.
5892         (environment::get_hyphenation_space,
5893         environment::get_hyphenation_margin): New functions.
5894         (init_env_requests): Bind these to .hys and .hym.
5895         (hyphenation_space_request, hyphenation_margin_request): New
5896         functions
5897         (init_env_requests): Bind these to hys and hym.
5898         (environment::environment(symbol), environment::environment(const
5899         environment *)): Initialize hyphenation_margin and
5900         hyphenation_space.
5901         * troff/env.h: Corresponding changes to class environment.
5903 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5905         * troff/div.c (blank_line): Always do a break.
5907         * eqn/box.c (do_text): Turn off escapes while appending text to
5908         string.
5910 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5912         * troff/input.c (while_break_request, while_continue_request): New
5913         functions.
5914         (init_input_requests): Bind these to "break" and "continue".
5915         (while_depth, while_break_flag): New variables.
5916         (while_request): Update while_depth.  Break out of loop if
5917         while_break_flag is set.
5919 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5921         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5922         rather than 0.
5924 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5926         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5928         * stringify: New file.
5929         * Makefile (groff.o): Use stringify.
5931         * xditview/tmac.X: Remove definition of \(rn.
5932         * xditview/libXdvi/DviChar.c: Remove radicalex from
5933         Adobe_symbol_map.
5935 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5937         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5938         (alphabetic_block_entry::alphabetic_block_entry,
5939         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5940         New functions.
5941         (block_entry::divert): Split off body into ...
5942         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5943         from the line length; also update the span width to dl+2n, and the
5944         alphabetic span width to dl.
5946         * driver/input.c (do_file):  While reading argument to D command,
5947         when expanding buffer, multiply szp by sizeof(int) rather than 2
5948         in the argument to memcpy.
5950         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5951         width of alphabetic columns.
5953 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5955         * troff/node.c (lookup_family): Supply second argument to lookup.
5957         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5958         search, return immediately if v is 0.
5960         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5961         (troff_output::start_picture): Set this reg.
5962         (troff_output::end_picture): Remove this reg
5963         * eqn/box.c (box::extra_space): Don't produce `\x's if
5964         EQN_NO_EXTRA_SPACE_REG is defined.
5966         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5967         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5968         character.
5970 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5972         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5973         requests.
5975         * troff/div.c (top_level_diversion::top_level_diversion):
5976         Initialize page_number to 0.
5978 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5980         * groff/troff (environment::environment(const environment *)):
5981         Initialize name to e->name, rather than "anonymous".
5983 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5985         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5986         requested_page.  Split middle part into ...
5987         (FindPage): New function.
5988         (SetValues): If we don't yet know the last page, and the requested
5989         page is greater than the current page, call FindPage.
5990         Update the font_map_string before doing this.
5992         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5993         Translate \(lh and \(rh into left and right double arrows.
5995         * troff/node.c (class hyphen_inhibitor_node): New class.
5996         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5997         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5998         hyphen_inhibitor_node::type,
5999         hyphen_inhibitor_node::get_hyphenation_type): New functions.
6000         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6001         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6002         word.
6004 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
6006         * troff/node.h (dummy_node::get_hyphenation_type,
6007         transparent_dummy_node::get_hyphenation_type):  Declare them.
6008         * troff/node.c: (dummy_node::get_hyphenation_type,
6009         transparent_dummy_node::get_hyphenation_type): New functions.
6011 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
6013         * xditview/libXdvi/draw.c: If M_PI not defined after including
6014         math.h, then define it.
6016         * xditview/Makefile: Add definition of AR. Pass it to the submake
6017         in libXdvi.
6018         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6020 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
6022         * troff/dictionary.h (object_dictionary::alias): Declare return
6023         value as int.
6024         * troff/dictionary.c (object_dictionary::alias): Return non-zero
6025         if the old name was defined.
6026         * troff/input.c (alias_macro): Give a warning if the old name was
6027         not defined.
6028         * troff/reg.c (alias_reg): Likewise.
6030 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
6032         * troff/input.c (token::next): Delete implementation of \R.
6034         * macros/Makefile: Strip comments from tmac.e while installing it.
6036         * troff/input.c: New variable `nroff_mode'.
6037         (troff_request, nroff_request): New functions.
6038         (init_input_requests): Bind `troff' and `nroff' to troff_request
6039         and nroff_request.
6040         (do_if_request): Compute results of t and n conditions from
6041         nroff_mode.
6043         * text/text.c (split_text): Fix typo in >=.
6045         * eqn/lex.c: Add definition of `==' to def_table.
6047 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
6049         * pic/tex.c (tex_output::start_picture): Change the definitions of
6050         \graph and \graphtemp so that they work properly with Plain TeX.
6052         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6053         argument to `ar' is not less than the first.
6055         * pic/pic.y: Allow a comma between elements of the variable list
6056         in the argument to `reset'.
6058         * pic/object.c (arc_object::arc_object): Fix computation of
6059         radius.
6061         * eqn/main.c (main): Add exit(0).
6063 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
6065         * troff/div.c (begin_page): Test no_space_mode after doing the
6066         break, but still push the page ejector cookie before doing the
6067         break.  Also set the next page number after doing the break.
6068         
6069         * xditview/xditview.c (NewFile): Don't set the title and icon name
6070         if this is the first file and its name is `-'.
6071         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
6072         the X75 and X100 devices.
6073         (main): If a device has the XT_OPTION flag set and there's exactly
6074         one file argument, pass the driver -xrm and -title options to set
6075         the icon name and window title to the name of the file.
6077         * troff/env.c (environment_switch): If there was an argument but
6078         it wasn't a valid number or name, then pop an environment but
6079         don't give an error message on underflow.
6081         * troff/number.c (start_number): Correct spelling in error message.
6083         * troff/input.c (token::delimiter): Don't print an error message
6084         if err is false.
6086         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6087         ParseDrawFunction if dw->display_enable is true.
6089 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
6091         * pic/pic.y: Parse text positioning like normal attributes, so as
6092         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
6093         positioning attribute.
6095 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
6097         * tbl/main.c (process_data): When in state START while reading a
6098         text block, don't change to state MIDDLE if c is a newline.
6100 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
6102         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6103         so as to avoid shadowing parameter.
6105 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
6107         * tbl/table.c (trim_space): Deleted.
6108         (table::add_entry): Don't call trim_space.
6110 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
6112         * VERSION: Change version to 0.6.
6114         * troff/number.c (parse_expr): Make == work.
6116 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
6118         * man/grog.man: New file.
6119         * man/Makefile: Add grog.n to MAN1PAGES.
6120         * etc/grog.sh: New file.
6121         * etc/Makefile: Install grog.sh as grog.
6123 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
6125         * troff/input.c (token::next): Implement \E.
6127 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
6129         * xditview/tmac.X: Change font translations to match tmac.ps.
6131         * troff/input.c (non_empty_name_warning): Don't give a warning if
6132         `\{' terminates the name.
6134 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
6136         * ps/devps/symbol.diff: New file.
6137         * ps/devps/FontMakefile: Mention symbol.diff.
6139 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
6141         * troff/node.c (font_position): Use get_long_name to read the
6142         external_name.
6144         * troff/env.c (environment_switch): If we get a number that's < 0
6145         or >= NENVIRONMENTS, treat it like a name.
6146         Change NENVIRONMENTS to 10.
6148         * troff/groff.h: Remove definition of FONTS_MAX.
6149         * troff/node.h (class font_family): Make map a pointer instead of
6150         an array. Add a map_size member. Make it a class. Make nm const
6151         and public. Make invalidate_fontno a friend.
6152         * troff/node.c: Define font_table_size. Make font_info a pointer
6153         rather than an array.
6154         (class troff_output_file): Allocate font_position dynamically. Add
6155         nfont_positions member.
6156         (troff_output_file::set_font): Grow font_position if necessary.
6157         (troff_output_file::~troff_output_file): Delete font_position.
6158         (troff_output_file::troff_output_file): Allocate font_position.
6159         (grow_font_table): New function.
6160         (troff_output_file::really_begin_page,
6161         troff_output_file:really_copy_page): Use nfont_positions rather
6162         than FONTS_MAX.
6163         (mount_font_no_translate, mount_style): Call grow_font_table if
6164         necessary.
6165         (font_family::font_family): Allocate map.
6166         (font_family::make_definite): Grow map if necessary. Use
6167         font_table_size instead of FONTS_MAX.
6168         (font_family::~font_family): New function.
6169         (invalidate_fontno): Use font_family::map_size.
6170         (get_fontno, env_space_width, env_half_narrow_space_width,
6171         env_narrow_space_width, symbol_fotno, is_good_fontno,
6172         get_bold_fontno, make_glyph_node): Use font_table_size rather than
6173         FONTS_MAX.
6174         (next_available_font_position): Never return 0.
6176 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6178         * ps/tmac.ps: Add font translations for compatibility with dpost.
6180 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6182         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6183         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6184         Move definitions baseline_sep, shift_down, column_sep,
6185         matrix_side_sep into...
6186         * eqn/box.c: Add them to param_table.
6187         * eqn/pbox.h: Add declarations to pbox.h.
6189         * troff/input.c (set_string): Cast value to unsigned char *.
6191         * troff/token.h (process_input_stack): Declare it static before
6192         declaring it a friend.
6194 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6196         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6197         and bottom.
6198         * dvi/devdvi/EX: Regenerate.
6200         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6201         transparent.
6203 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6205         * eqn/lex.c: In defaults_table, make definition of `dot' call
6206         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6207         accents.
6209         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6210         argument.
6211         (for_input::get, for_input::peek): Use this.
6212         (do_for): Add by_is_multiplicative argument.
6213         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6214         Change semantic value of optional_by to be a double plus a flag
6215         saying whethet the by clause is multiplicative.
6217         * eqn/lex.c (get_delimited_text): Remember location of start of
6218         definition.  Improve error handling when EOF is encountered.
6220         * lib/font.h: Rename handle_x_command to
6221         handle_unknown_font_command.
6222         * lib/font.c (font::load): Call handle_unknown_font_command for
6223         any unknown command in the font description file.  Don't call
6224         handle_x_command. Include the name of the command in the argv.
6225         Improve message for unknown command after kernpairs or charset
6226         command.
6227         * ps/ps.c (ps_font::handle_x_command): Rename to
6228         handle_unknown_font_command.  Remove message about `x download'
6229         command.  Give error message for wrong number of arguments.
6230         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6231         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6232         handle_unknown_font_command. Give an error message for wrong
6233         number of arguments.  Rename design_size to designsize.
6234         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6235         checksum', `designsize' instead of `design_size'.
6237 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6239         * eqn/*.[chy]: Change underaccent to uaccent.
6241         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6242         give it the same precedence as ACCENT.
6243         * eqn/other.c (make_underaccent_box): New function.
6244         * eqn/box.h: Declare it.
6245         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6246         def_table.
6248 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6250         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6251         (parse_init): Call reset_all.
6252         (define_variable): When defining scale reset only those
6253         pre-defined variables that are scaled.
6254         (defaults_table): Add `scale' as non-scaled value.
6256         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6257         together with the text; allow any number of positioning words;
6258         allow center as a positioning word.
6260         * pic/object.c (output::compute_scale): Get picture maximum height
6261         and width from variables called maxpswid and maxpsht.
6262         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6264 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6266         * pic/object.c (object_spec::make_text): Multiply textht by number
6267         of text items.
6269         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6270         occur.
6271         (do_sprintf): New function.
6272         (pic.gperf): Add sprintf token.
6273         (text, sprintf): New rules.
6275         * pic/pic.y: `rand()' with no arguments returns a random number
6276         in the range [0,1).
6278         * pic/pic.y: Allow a bare expression to be an attribute: change
6279         precedences to support this.  Change optional_ordinal rule to
6280         optional_ordinal_last to avoid reduce/reduce conflict.
6281         * pic/object.c (object_spec::object_spec): Initialize direction.
6283         * pic/pic.y: Implement ^ operator meaning exponentiation.
6285         * troff/node.h: Add default argument to mount_font.
6286         * troff/node.c (font_position): Read an optional third argument
6287         giving the external_name.
6288         (mount_font): Add optional argument giving the external_name.
6289         (mount_font_not_translate): Have additional argument giving
6290         external name.  Use this name to load the font.  Pass both names
6291         to font_info::font_info.
6292         (font_info::font_info): Have additional argument giving
6293         external_name.
6294         (class tfont): New member external_name.
6295         (font_info::get_tfont): Use external name to construct tfont_spec.
6297 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6299         * eqn/lex.c (init_table): Add argument giving device.  Define
6300         name of device to be "1".
6301         (do_ifdef): Counts as true if the argument has been defined with
6302         `define'.
6303         * eqn/main.c (main): Call init_table with device argument. Make
6304         device local to main.
6305         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6306         of device.
6308         * pic/lex.c (get_delimited): Allow text to be delimited by
6309         matching {}s.  Don't recognize ending delimiter within a string.
6311         * troff/input.c (get_delim_name): New function.
6312         (token::next): Implement \C.
6314         * lib/font.c (font::load): Grok ---.  Add an alias for each
6315         character based on its code.
6316         (font::get_code_width): Deleted.
6317         * lib/font.h (class font): Declare font::number_to_index().
6318         Remove declaration of font::get_code_width.
6319         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6320         to indices of named characters.
6321         (font::number_to_index): New function.
6322         * troff/input.c (font::number_to_index): New function.
6323         (get_charinfo_by_number, charinfo::get_number,
6324         charinfo::set_number): New functions.
6325         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6326         (token::process, token::description, token::get_char,
6327         token::add_to_node_list, token::operator==): Handle
6328         TOKEN_NUMBERED_CHAR.
6329         * troff/charinfo.h: Declare get_charinfo_by_number,
6330         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6331         charinfo class.
6332         (charinfo::numbered): New function.
6333         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6334         * troff/env.h (class environment): Remove declaration of ...
6335         * troff/env.c (environment::make_numbered_char_node): Deleted.
6336         * troff/node.c (make_numbered_node): Deleted.
6337         (class numbered_glyph_node): Remove.
6338         (troff_output_file::put_char_width, troff_output_file::put_char):
6339         Handle numbered chars.
6340         (troff_output_file::numbered_char): Removed.
6341         (tfont::get_code_width): Removed.
6342         (make_glyph_node): Don't search special fonts for numbered
6343         characters.
6344         * troff/node.h: Remove declaration of make_numbered_node.
6345         * driver/input.c (do_file): Handle N command.
6346         * driver/printer.h: Add declaration of ...
6347         * driver/printer.c (printer::set_numbered_char): New function.
6348         * dvi/tfmtodit.c (main): Generate unnamed entries.
6349         * ps/devps/afmtodit: Likewise.
6350         * xditview/xtotroff.c (MapFont): Likewise.
6351         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6353         * tbl/main.c (process_format): If multiple widths are specified
6354         for a column but all the widths are the same, don't give an error
6355         message.
6357         * tbl/table.c (table::do_row): If the current row is all lines and
6358         the stuff doesn't contains a line, mark the top of the row after
6359         printing stuff before the row.  If the current row is not all
6360         lines and the stuff doesn't contain a line, don't unnecessarily
6361         mark the top of the row before printing the stuff.
6362         
6363 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6365         * troff/groff.h: Remove MAX_PATH.
6366         * troff/input.c (open_file): Dynamically allocate space for the
6367         path.
6368         (open_mac_file, process_macro_file): Corresponding changes.
6370 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6372         * troff/node.h (class output_file): Make copy_file pure.  Add
6373         vspace method ifdef COLUMN. Add is_printing method.
6374         * troff/node.c: Add class printing_reg. Add class
6375         real_output_file. Derive other output_file classes from
6376         real_output_file; in these classes rename begin_page to
6377         really_begin_page, print_line to really_print_line, copy_file to
6378         really_copy_file, transparent_char to really_transparent_char.
6379         Move output_file::flush to real_output_file. Add printing member
6380         to class output_file.
6381         * troff/div.h: Remove printing member from top_level_diversion.
6382         Add vspace member function to class diversion ifdef COLUMN. Add
6383         some declarations ifdef COLUMN.
6384         * troff/div.c (top_level_diversion::copy_file,
6385         top_level_diversion::transparent_output,
6386         top_level_diversion::output): Don't test printing member before
6387         output.
6388         * troff/input.c: Handle initial variable_space_request ifdef
6389         COLUMN.
6390         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6391         but comment it out.
6393 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6395         * troff/div.c (diversion::need): Make any space forced.  If we
6396         sprung a trap, set truncated_space to minus the distance to the
6397         trap and set needed_space to the amount that was needed.
6398         (top_level_diversion::space): A forced space turns no_space_mode
6399         off.
6400         (class constant_vunits_reg): New class.
6401         (init_div_requests): Implement number registers .trunc and .ne
6402         using constant_vunits_reg.
6403         (class truncated_space_reg): Deleted.   
6405         * troff/div.h: Don't have a no_space_mode member in diversion.
6406         Instead have it in top_level_diversion.
6407         * troff/div.c (diversion::diversion): Don't initialize
6408         no_space_mode.
6409         (top_level_diversion::top_level_diversion): Initialize
6410         no_space_mode.
6411         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6412         (macro_diversion::output): Don't clear no_space_mode.
6414         * troff/input.c (diverted_space_node::reread): Don't call
6415         environment::do_break.  In fill mode, act like a blank line.
6416         (diverted_copy_file_node::reread): Don't call
6417         environment::do_break.
6419         * troff/div.c (blank_line): New function.
6420         * troff/div.h: Declare it.
6421         * troff/input.c (process_input_stack): Call it.
6423         * troff/div.c (truncated_space_reg::get_string): New function.
6424         (init_div_requests): Bind to .trunc.
6425         (space_request, top_level_diversion::space,
6426         top_level_diversion::output, macro_diversion::space,
6427         macro_diversion::output): Update truncated_space.
6428         (macro_diversion::output): Redo calculations when trap sprung.
6429         (macro_diversion::output, macro_diversion::space): No need for
6430         trap_flag.
6432         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6433         after truncating post line spacing.
6435 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6437         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6438         defined as a procedure rather than as an operator.
6440 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6442         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6444 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6446         * troff/div.c (top_level_diversion::output): Merge
6447         output_file::print_line and output_file::end_of_line member
6448         functions.
6449         * troff/div.h (class output_file):
6450         * troff/node.c (troff_output_file::print_line,
6451         troff_output_file::end_of_line, output_file::end_of_line,
6452         ascii_output_file::print_line, suppress_output_file::print_line):
6453         Corresponding changes.  
6455 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6457         * troff/input.c (token::next): Don't give a warning for `\.'.
6459         * troff/env.c (environment::get_center_lines): New function.
6460         (init_env_requests): Bind number register .ce to it.
6461         * troff/env.h: Declare it.
6462         * tbl/table.c (table::init_output): Define reset macro to restore
6463         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6464         Then do .ce 0.
6465         (table::print): If center option not given, then imply center
6466         option if SAVED_CENTER_REG > 0.
6468 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6470         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6471         Troff.ps from DOWNLOAD.
6472         
6473         * troff/Makefile: Change comment in DEFINES to avoid confusing
6474         System V make.
6476         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6477         code.  Don't try to catch errors with stopped.
6478         (check_line_lengths): New function.
6479         * ps/devps/prologue (EXEC): Deleted.
6480         (EBEGIN, EEND): New procedures.
6482 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6484         * troff/input.c: Include request.h before node.h.
6485         * troff/node.c: Likewise.
6486         * troff/env.c: Likewise.
6487         * troff/div.c: Likewise.
6488         * troff/node.h (class special_node): Store argument as a macro
6489         rather than a char *.
6490         * troff/node.c (special_node::special_node, special_node::copy):
6491         Grok this.
6492         (special_node::~special_node): Deleted.
6493         (special_node::tprint): Deleted.
6494         (special_node::tprint_start, special_node::tprint_end,
6495         special_node::tprint_char): New functions.
6496         (troff_output_file::special): Deleted.
6497         (troff_output_file::start_special, troff_output_file::end_special,
6498         troff_output_file::special_char): New functions.
6499         * troff/input.c (special_node::tprint): New function.
6500         (do_special): Use macro not char *.
6501         (do_transparent_macro): Deleted.
6502         (token::next): Don't call do_transparent_macro.
6504         * troff/input.c (token::next): Add 'Y' case.
6505         (do_transparent_macro): New function.
6506         * troff/node.c (troff_output_file::special): Handle newlines with
6507         argument using new continuation convention.
6508         * driver/input.c (get_string): Cope with continuation convention.
6509         (do_file): Don't call skip_line after calling get_string(1).
6510         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6511         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6512         arg.
6513         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6514         with +.
6516 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6518         * troff/input.c (asciify): By default, illegal input characters
6519         should return empty string.
6521         * troff/input.c (copy_file): Handle first page transition like title.
6522         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6524         * troff/input.c (token::next): Improve error message for EOF after
6525         escape character.
6526         (input_char_description): New function.
6527         (get_char_for_escape_name): Use input_char_description.
6528         (token::next): Warn about unrecognized escape sequences.
6529         (warning_table): Add WARN_ESCAPE.
6530         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6531         accordingly.
6533         * troff/token.h: Remove declaration of process_input_stack.
6535         * troff/input.c: Remove declaration of init_hyphen_requests.
6536         * troff/request.h: Correct spelling in declaration of same.
6538         * troff/input.c (token::next): Check whether escape_char is 0.
6540 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6542         * groff.c (main, usage, help): Implement -P and -L options.
6543         * groff.sh: Likewise.
6545         * troff/input.c (token::next): Use some gotos to avoid code
6546         duplication.
6548         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6549         Avoid calling symbol::symbol if name empty.
6551 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6553         * troff/input.c (init_input_requests): Make \n(.x return the major
6554         version number and \n(.y return the minor version number.
6555         * troff/Makefile: Construct file majorminor.c defining
6556         major_version and minor_version automatically from ../VERSION.
6558         * troff/node.c (class glyph_node): Make operator new and operator
6559         delete public.
6560         (class ligature_node): Similarily.
6562         * troff/input.c (operator==(const macro &, const macro &)): New
6563         function.
6564         (non_interpreted_node::same): Use this.
6565         (string_iterator::string_iterator): Make macro& argument const.
6567         * troff/input.c (input_iterator::get): New function. Don't make
6568         asciify_macro or class non_interpreted_node friends of class
6569         input_iterator.
6570         (non_interpreted_node::interpret): Use input_iterator::get.
6571         (asciify_macro): Likewise.
6573         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6574         ~non_interpreted_node): Deleted.
6575         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6576         Deleted.
6578         * troff/symbol.h: Make all symbol member functions const.
6580         * lib/strtol.c: New file.
6581         * lib/Makefile: Add strtol.c.
6582         * Makefile: Define STRTOL as strtol.o to include strtol in
6583         libgroff.a.
6585 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6587         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6589 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6591         * troff/input.c (do_special): Use input_level.
6593         * troff/token.h (TOKEN_BACKSPACE): New token.
6594         (token::backspace): New function.
6595         * troff/input.c (token::description, token::next, token::process):
6596         Grok TOKEN_BACKSPACE.
6597         (do_special): Turn TOKEN_BACKSPACE back into \b.
6599         * troff/token.h (token::leader): New function.
6600         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6602         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6604         * troff/input.c (do_special): Use token::description in error
6605         message.
6607 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6609         * troff/input.c (decode_args): Combine quoted and
6610         quote_input_level variables. Make it a for (;;) loop.
6612         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6614         * troff/input.c (read_long_escape_name): The test for whether to
6615         expand buffer was off by 1.
6616         (read_string): Similarily.
6618 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6620         * troff/input.c: Use `const int' rather than `static const int'.
6622         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6623         (macro_diversion::copy_file): New function.
6624         * troff/node.h: New class diverted_copy_file_node.
6625         * troff/node.c: Implement it.
6626         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6627         first page transition by pushing a diverted_copy_file_node.
6628         * troff/input.c (token::next, process_input_stack): Don't handle
6629         COPY_FILE_REQUEST.
6631 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6633         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6634         whether space widths need adjusting.
6636         * troff/charinfo.h: Generalize translated_to_space to
6637         special_translation so as to allow translation to \&.
6638         * troff/input.c (translate): Allow translation to \&.
6639         (charinfo::*): Corresponding changes.
6640         * troff/node.c (make_node, node::add_char): Corresponding changes.
6641         * troff/node.h (dummy_node::dummy_node): Allow optional first
6642         argument.
6644         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6645         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6646         TOKEN_REQUEST.
6647         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6648         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6649         (token::process): Grok that.
6650         * troff/input.c (copy_file): Handle first page transition like
6651         title by pushing a COPY_FILE_REQUEST cookie.
6652         (token::next, process_input_stack): Grok that.
6653         * troff/node.h (output_file::copy_file): Add x and y arguments.
6654         Make it non-pure.
6655         * troff/div.c (top_level_diversion::copy_file): Supply them.
6656         * troff/node.c (troff_output_file::copy_file): Add x and y
6657         arguments; moveto specified position.  Invalidate font_position
6658         array after copying file.
6659         (output_file::copy_file): New function.
6660         (suppressed_output_file::copy_file, ascii_output::copy_file):
6661         Removed.
6662         * troff/input.c (transparent_file): New function.
6663         (init_input_requests): Bind to "trf".
6664         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6665         (process_input_stack): Likewise.
6667         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6669         * troff/node.c (init_node_requests): New number registers .kern
6670         pointing to global_kern_mode, and .lg pointing to
6671         global_ligature_mode.
6673         * troff/node.c (ligature): Don't change it if we get a bad
6674         integer.
6676         * troff/input.c (do_define_string): Don't strip tabs.
6678         * troff/input.c (asciify_macro): Make the string_iterator auto.
6680         * troff/node.c (init_font_requests): Rename to...
6681         (init_node_requests):
6682         * troff/node.h: Change declaration.
6683         * troff/input.c (main): Change call.
6685         * troff/input.c (node::reread, diverted_space_node::reread): New
6686         methods.
6687         (process_input_stack): Call reread rather than
6688         get_diverted_space_node.
6689         * troff/node.c (node::get_diverted_space_node,
6690         diverted_space_node::get_diverted_space_node): Removed.
6691         * troff/node.h: Declare reread methods instead of
6692         get_diverted_space_node methods. Make `n' member private.
6693         * troff/input.c: (token::diverted_space): Removed.
6694         * troff/token.h: Removed declaration.
6695         
6697 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6699         * eqn/script.c (script_box::compute_metrics): Don't let
6700         SUP_RAISE_FORMAT become negative.
6702         * tbl/table.c (table::do_row): Entries that don't end in the
6703         this row shouldn't make the row non-blank.
6704         
6705         * tbl/table.c (table::make_columns_equal): Only set the width of
6706         columns which are marked as equal.
6707         
6708         * tbl/main.c (process_data): Before issuing excess data error,
6709         if last character was a newline unget it; then get it again after
6710         the error.  Also include the contents of the entry in the message.
6712         * groff.c: New file.
6713         * Makefile: Build groff from groff.c.  Make it possible to use
6714         either groff.sh or groff.c as groff.
6715         * Makefile.bd: Similarily.
6717 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6719         * groff.sh: Don't delay expansion of $@ in assignment to files.
6720         Remove occurrences of \".
6722 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6724         * all Makefiles: Simplify and rearrange.
6726         * Makefile: Handle fmod like malloc.
6727         * lib/Makefile: Similarily.
6728         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6730         * Makefile: Rename OPTIMISE to OPTIMIZE.
6732         * groff.sh: Remove assignment to PATH.
6733         * Makefile: Remove SHPATH variable.
6734         * Makefile.bd: Similarily.
6736         * groff.sh: Add -V option to print the pipeline instead of
6737         executing it.
6739 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6741         * lib/font.c: Split off file searching into ...
6742         * lib/fontfile.c: New file.
6744         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6746 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6748         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6749         Also change misleading comment.
6750         (table::do_vspan): Change similarily misleading comment.
6751         * tbl/main.c (process_data): A format row with an explicit `s'
6752         uses up a data line, even if all the other columns are `_' or `='.
6754         * troff/input.c (token::description): Fix description of
6755         TOKEN_DUMMY and TOKEN_EMPTY.
6757 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6759         * groff.sh: Fix description of -Z in help message.
6761 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6763         * pic/object.c (object_spec::make_object): Allow negative and zero
6764         line thicknesses.
6765         * pic/pic.y: Give linethick default value of -1.0.
6766         * pic/troff.c (troff_output::troff_output): Initialize
6767         last_line_thickness to BAD_THICKNESS.
6768         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6769         (troff_output::line_thickness): Canonicalize negative thicknesses
6770         to RELATIVE_THICKNESS.
6771         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6772         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6773         to -1.0.
6774         (tex_output::start_picture): Set pen_size to -2.0.
6776         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6777         0, then use 0 linewidth.
6778         (ps_printer::ps_printer): Initialize line_thickness to -1.
6780         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6782         * ps/devps/symbolchars: Remove `or'.
6783         * ps/tmac.ps: Implement \(or with .char.
6785         * ps/devps/symbolchars: Move most characters into textmap.
6786         * ps/devps/textmap: Add names for troff bracket characters. Remove
6787         ul, ru, br, bv.
6789         * ps/devps/TSymbol.ps: Removed.
6790         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6791         * ps/tmac.ps: Do with .char what TSymbol did.
6792         * ps/devps/download: Remove TSymbol.
6794         * ps/devps/T: Removed.
6795         * ps/devps/Troff.ps: Removed.
6796         * ps/devps/Troff.afm: Removed.
6797         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6798         * ps/devps/download: Remove Troff.
6799         * ps/devps/FontMakefile: Remove T target.
6800         * ps/devps/DESC-A4: Remove T from font list.
6801         * ps/devps/DESC-letter: Likewise.
6803         * troff/input.c (macro_to_node): Rename to ...
6804         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6805         character's definition while processing it.
6806         * troff/node.c (node::add_char, make_node): Change calls to
6807         macro_to_node accordingly.
6809         * troff/input.c (token::next): Translate \_ to \(ul.
6811         * tty/devascii/R.proto: Add `|'.
6812         * tty/devlatin1/R.proto: Likewise.
6814 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6816         * man: Put the version number in all the man pages.
6818 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6820         * Makefile.bd: New file.
6821         * README.bd: New file.
6823         * VERSION: New file.
6824         * lib/version.c: Removed.
6825         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6826         in clean target.
6828         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6829         environment variable.
6831         * all Makefiles: Split install target into install.bin for
6832         binaries, and install.nobin for everything else.
6833         * Makefile: Add bindist target.
6835         * man/afmtodit.man: New file.
6836         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6837         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6838         in BINDIR.
6839         * ps/Makefile: Pass BINDIR to make install in devps.
6841         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6842         the space character.
6844         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6846 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6848         * ps/ps.c: Redo font downloading.
6849         * ps/devps/download: New file.
6850         * ps/devps/Makefile: Add download to DEVICEFILES.
6851         * ps/devps/afmtodit: Remove -d option.
6852         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6853         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6854         * ps/devps/zapfdr.ps: Likewise.
6855         * ps/devps/TSymbol.ps: Likewise.
6857 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6859         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6861 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6863         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6864         then strip the first line if it starts with %.
6865         * Makefile: Add a comment about this.
6867         * man/tfmtodit.man: New file.
6868         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6869         * dvi/Makefile: Install tfmtodit in BINDIR.
6871         * dvi/tfmtodit.c (usage): Mention -v option.
6873 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6875         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6876         * troff/node.c (troff_output_file::transparent_char): Don't call
6877         flush_tbuf.
6879         * eqn: Add check_tabs method to most box classes.
6880         * eqn/box.c (box::top_level): Call check_tabs.
6882         * eqn/script.c (script_box::output): Use \Z.
6883         * eqn/limit.c (limit_box::output): Use \Z.
6885         * eqn/box.c (box::top_level): Use itoa.
6887 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6889         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6890         * dvi/devdvi/Makefile: Don't make links to CW.
6892         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6893         HX, HD.
6894         * xditview/tmac.X: Likewise.
6896         * troff/node.c: Add font translation feature.
6897         (get_font_translation): New function.
6898         (symbol_fontno): Translate the font name.
6899         (mount_font_no_translate): Rename to mount_font to this.
6900         (mount_font): New function.
6901         (font_family::make_definite): Call mount_font_no_translate instead
6902         of mount_font.
6903         (mount_style): Translate the font name.
6904         (font_translate): New function.
6905         (init_font_requests): Bind "ftr" to font_translate.
6907         * ps/devps/prologue (SN): New procedure that rounds a position to
6908         the nearest (pixel + (.25,.25)).
6909         (DL): Use SN to round endpoints.
6911         * lib/version.c: Changed version to 0.5.
6913 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6915         * Makefile: Move definition of PAGE to the very beginning, so that
6916         people are less likely to miss it.
6918 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6920         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6922         * troff/env.c (environment::choose_breakpoint): Make `can't find
6923         breakpoint' error a warning of type WARN_BREAK.  Change message to
6924         `can't break line'.
6925         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6926         code 040000.
6927         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6928         WARN_BREAK in DEFAULT_WARNING_MASK.
6930         * tty/tmac.tty: Add definition of \(+-.
6932         * groff.sh: Remove `--' option to set command.
6934         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6936         * ps/devps/eqnchar: Better definition of cdot using md.
6937         * dvi/devdvi/eqnchar:  Likewise.
6938         * xditview/devX100/eqnchar:  Likewise.
6939         * xditview/devX75/eqnchar: Likewise.
6940         * eqn/lex.c: Add definition of cdot.
6942 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6944         * troff/input.c (get_optional_char): New function.
6945         * troff/input.c (set_page_character): Use get_optional_char(),
6946         rather than has_arg() and tok.get_char(1).
6947         * troff/env.c (tab_character, leader_character, hyphen_char,
6948         field_characters): Likewise.
6949         (margin_character): Likewise.  Also always delete the
6950         margin_character_node.
6952         * troff/input.c (token::get_char): Use token::description.
6954         * troff/input.c (has_arg): Don't skip over tab and \}.
6955         * troff/number.c (start_number): Give a warning if the number
6956         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6958 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6960         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6961         functions.
6962         (get_name, get_long_name): Use these.  Rename `warn' argument to
6963         `required'.
6965         * troff/node.c (get_fontno): Test that the symbol is not null.
6967         * troff/input.c (token::description): New function.
6968         * troff/number.c (parse_term): Use token::description in `numeric
6969         expression expected' message.
6970         * troff/groff.h: Add WARN_MISSING.
6971         * troff/number.c (start_number): New function.
6972         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6973         get_incr_number): Use start_number().
6974         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6975         default.
6976         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6977         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6978         token::descripion.
6979         * troff/input.c (token::get_char): Use WARN_MISSING.
6980         * troff/input.c (token::delimiter): Use token::description.
6981         * troff/env.c (environment_switch): Back out Aug 3 change.
6982         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6983         warning.
6984         * troff/token.h (token::tab): New function.
6985         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6986         * troff/reg.c (alter_format): Likewise.
6987         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6989 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6991         * troff (most files): Redo warnings. Divide warnings into various
6992         categories; warning() has an additional first argument indicating
6993         the category it falls into.
6994         * troff/input.c (main): -w now takes an argument. New option -W.
6995         (enable_warning, disable_warning): New functions.
6997         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6998         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7000 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
7002         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7003         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7004         * xditview/devX75/eqnchar: Likewise.
7005         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7007         * eqn/other.c: When bar or over applies to a single character
7008         don't produce an overline_box or an underline_box. Instead produce
7009         an accent_box or an underaccent_box, with the accent a line
7010         whose width is accent_width.  New classes underaccent_box,
7011         overline_char_box and underline_char_box.
7012         * eqn/box.h: Move overline_box, underline_box, accent_box class
7013         declarations into eqn/other.c. Add declarations of
7014         make_underline_box, make_overline_box, make_accent_box.
7015         * eqn/eqn.y: Call make_overline_box, make_underline_box
7016         make_accent_box instead of constructors.
7017         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7019         * eqn/other.c: Add accent_box::~accent_box.
7020         * eqn/box.h: Declare it.
7022         * groff.sh: With -Tps, use eqn -D.
7024         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7025         rather than \l.
7026         (underline_box::output): Similarily.
7027         (accent_box::output): Use \Z.
7029         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7030         bit smaller.)
7032 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
7034         * troff/div.c (top_level_diversion::transparent_output(unsigned
7035         char)): Use asciify.
7036         * troff/input.c (asciify): Don't make it static.
7037         * troff/token.h (asciify): Declare it.
7038         
7039         * troff/input.c (get_name, get_long_name, token::get_char,
7040         token::delimiter): Add an extra default argument which says
7041         whether a warning should be printed.
7042         * troff: Pass a non-zero argument to one of these rather than
7043         printing a warning directly.
7045 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
7047         * troff: Consistently use symbol::is_null.
7049         * troff/dictionary.h: Move some inline functions into
7050         dictionary.c.
7052         * troff/request.h: Move inline functions into input.c.
7053         (request_or_macro::invoke): Make it pure.
7055         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7056         * troff/input.c (init_input_requests): Use class constant_int_reg.
7057         (class compatible_reg): Deleted.
7058         * troff/div.c (init_div_requests): Use class constant_int_reg.
7059         (class last_post_line_extra_space_reg): Deleted.
7061         * troff/env.c (tab_character): Don't change the tab character if
7062         we get an invalid argument.
7063         (hyphen_char): Similarily.
7065         * troff/reg.c (alter_format): Check that nm is not null.
7067         * Makefile, groff.sh: Make it possible to customize the commands
7068         used for printing PostScript and dvi files. Also make it possible
7069         to customize the path used by groff.sh.
7071         * eqn/eqn.y: Make `left' right associative.
7073 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
7075         * pic/pic.h: Added definition of M_SQRT2 for those systems that
7076         don't have it.
7078         * pic/pic.h: Removed definition of INT_MAX.
7080         * troff/node.c (italic_corrected_node::vertical_extent): Omit
7081         `return'.
7083         * troff/input.c (token::next):  Handle \R like \n.
7085 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
7087         * ps/tmac.pc (PSPIC): Simplify.
7089         * troff/env.c (tab_stops::to_string):
7090         * pic/pic.y (object_type_name):
7091         * pic/troff.c (simple_output::line):
7092         * pic/tex.c (tex_output::spline):
7093         * pic/object.c (object_spec::make_object):
7094         * tbl/main.c (process_data):  Add cases to switch statements to
7095         avoid cfront warnings. (Some of these are spurious, since the
7096         switch already has a default case.)
7098         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
7099         `ps-'.  Don't test systat; instead check number of arguments to
7100         ps-bb.
7102 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
7104         * macros/tmac.e: Do not decrease the page offset by 0.5i.
7106         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7107         Unlink the file as soon as we have opened it, so that we don't
7108         have to bother with signal handlers.
7109         (handler): Deleted.
7110         (fatal_error_exit): Deleted.
7111         (main): Don't call signal.
7113         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7114         can be ignored.
7115         * dvi/devdvi/Makefile: Use the -k option with S and MI.
7117         * pic/pic.y:  If there is a label, or an nth construction before
7118         the first `.' in the argument to `with', ignore it and generate a
7119         warning.
7120         * pic/lex.c (lex_warning): New function.
7122         * tbl/table.c (table::init_output): In section keep and release
7123         macro, use 0 indent when diverting and the correct indent when
7124         rereading.
7126         * troff/input.c (interpolate_number_format): Do not interpolate
7127         anything if the number register is not defined.
7129         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7131 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
7133         * ps/devps/prologue (PICTURE): Set components of graphics state to
7134         their default values.
7136         * ps/devps/text.enc: Add trademark
7137         * ps/devps/textmap: Add names for club, spade, heart, diamond,
7138         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7139         * ps/devps/symbolchars: Add names for summation and product.
7141         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7142         suchthat. Add pp. Add upper-case letters.
7144         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7145         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7146         Upsilon.
7148         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7149         rA (right angle bracket) to ra.  Introduce names for double-headed
7150         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7151         * ps/devps/textmap: Likewise for ps device.
7152         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7153         * tty/devascii/R.proto: Rename lA to la and rA to ra.
7154         * tty/devascii/R.proto: Likewise.
7155         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7156         \(uA, \(dA.
7157         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7159         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7161         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7162         def_table.
7164 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
7166         * troff/div.c (when_request): Use symbol::is_null rather than
7167         has_arg to determine whether we have an argument.
7168         (change_trap): Remove the trap if we get an invalid number. Give
7169         an error if we don't get at least the macro name.
7170         (diversion_trap): Remove trap if we get an invalid name or number.
7172         * troff/env.c (environment_switch): Pop if we get an invalid
7173         symbol or numeric expression.
7175         * troff/input.c (do_define_macro):  If EOF is encoutered while
7176         defining the macro, do tok.next() before returning.
7178         * troff/token.h (has_arg): Move definition from here, to ...
7179         * troff/input.c (has_arg): ... here
7181         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7182         * troff/input.c (shift): Likewise.
7184         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7185         for `.c'.
7187         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7188         `..'.
7190         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7191         interpret_lf_args succeeds.
7193         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7194         \\.  This avoids problems with \$N.
7196         * groff.sh: Pass -C to preprocessors.
7198         * lib/lf.c (interpret_lf_args):  Be more flexible.
7200         * tbl/main.c (main): Add -C option.
7201         (table_input::get): Do not recognize TE if followed by character
7202         other than a space or newline unless -C option given.
7203         (process_input_file): Likewise for lf, TS.
7204         (process_data): Likewise for lf in text blocks.
7206         * eqn/main.c (main): Add -C option.
7207         (do_file): Don't recognize EQ, EN or lf if followed by character
7208         other than space or newline unless -C option given.
7209         * eqn/lex.c (file_input::read_line): Similarily.
7210         * eqn/eqn.h: Declare compatible_flag.
7212         * etc/soelim.c (main): Add -C option.
7213         (interpret_lf_args): Use version in libgroff.
7214         (do_file):
7216         * pic/main.c (main): Add -C option, which sets compatible_flag.
7217         (top_input::get), (top_input::peek):  If -C option not given,
7218         do not recognize .PS/.PE/.PF/.lf if followed by a character
7219         other than space or newline.
7220         * pic/lex.c (file_input::read_line): Similarily.
7221         * pic/pic.h: Add declaration of compatible_flag.
7223 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7225         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7227         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7228         derived from node.  New class space_char_hmotion_node.
7229         * troff/input.c (asciify_macro): New function.
7230         * troff/input.c (init_input_requests): New request `asciify' bound
7231         to asciify_macro.
7232         * macros/mm.diff: New file.
7233         * Makefile:  In install.mm target use `patch' to apply
7234         macros/mm.diff.
7236         * troff/input.c (macro::print_size): Just print the size in bytes.
7238         * troff/div.c (return_request): Correct the argument
7239         interpretation.
7241 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7243         * troff/node.h (class composite_node): Add sz member.
7244         * troff/node.c (composite_node::size): Return sz.
7245         * troff/input.c (macro_to_node):  Use the initial size in the
7246         environment as the size of the composite_node.
7248         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7249         default.
7251 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7253         * troff/div.c (change_trap): If we get a bad number expression,
7254         do nothing.
7256 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7258         * lib/matherr.c (matherr): Define this only if math.h defines
7259         TLOSS.
7261 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7263         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7264         no diversion trap return vunits(INT_MAX - vresolution).
7266 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7268         * troff/input.c (do_zero_width): New implementation that doesn't
7269         use a temporary environment. Use instead:
7270         (token::add_to_node_list): New function.
7271         * troff/env.c (environment::get_prev_char_height),
7272         (environment::get_prev_char_height),
7273         (environment::get_prev_char_skew): New functions.
7274         (environment::get_prev_char): New function.
7275         (environment::get_prev_char_width): Change to use get_prev_char.
7276         (init_env_request): Implement new registers .cht, .cdp, .csk.
7277         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7278         \Z being processed in a separate environment.
7280 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7282         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7284         * tbl/table.c (table::init_output): In the section release macro,
7285         give a warning message if the section won't fit on one page.
7287         * tbl/table.c (table::do_top): Emit table keep only if table is
7288         boxed.
7289         (table::do_bottom): Likewise for table release.
7290         (table::table), (table::add_vertical_rule):  Remove reference to
7291         keep member.
7292         * tbl/table.h: Remove keep member.
7294         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7295         SECTION_RELEASE_MACRO, if there's not enough space before the next
7296         trap to output the diversion, call T# ourselves, set
7297         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7298         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7299         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7300         vertical position and return to it before turning traps on again.
7301         
7302 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7304         * troff/node.c, troff/node.h: In classes derived from node,
7305         replace prev_char_width method by last_char_node method.
7306         * troff/env.c (environment::get_prev_char_width): Use
7307         node::last_char_node rather than node::get_prev_char_width.
7309         * Makefile: Added comment about -fno-inline on 68030-based
7310         Apollos.
7312         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7313         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7314         expressions using sizeof to int.
7315         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7317         * macros/tmac.e (TS):  Don't move @f back past the current
7318         position.
7320 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7322         * ps/ps.c (main): Buffer stderr.
7323         * dvi/dvi.c (main): Likewise.
7324         * tty/tty.c (main): Likewise.
7326         * ps/ps.c (ps_printer::do_import): Improve error handling.
7328         * troff/input.c (abort_request): Use asciify.
7330         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7331         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7332         type of first argument int rather than char.  This works around a
7333         bug on the 68030 based Apollo using g++ 1.37.1.
7335         * tbl/table.h (class table): Add `keep' member.
7336         * tbl/table.c (table::table): Initialize `keep'.
7337         (table::add_vertical_rule): Set `keep' to 1.
7338         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7339         (table::do_bottom): Likewise for table release macro.
7340         (table::do_row): Emit section keep macro even if the row is 0.
7342 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7344         * macros/tmac.e (@C): Preserve the font family across the change
7345         in environments.
7347 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7349         * lib/font.c: Initialize font::hor and font::vert to 1.
7350         (font::load_desc): Check the values of font::hor and font::vert.
7352         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7353         be included in a C compilation.
7354         (iftoa): Use INT_DIGITS. Include lib.h.
7355         (itoa): Likewise.
7356         (as_string): Likewise.
7357         * tbl/table.c: Removed definition of INT_DIGITS.
7358         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7359         * troff/input.c (input_input_requests): Likewise.
7360         * ps/ps.c (make_encoding_name): Likewise.
7361         (ps_printer::set_style): Likewise.
7362         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7364         * tty/devascii/R.proto: Map fm onto '.
7365         * tty/devlatin1/R.proto: Likewise.
7367 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7369         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7370         argument to \w is at a different input level.
7372         * tbl/table.c (table::init_output): Define a new macro
7373         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7374         transparently outputs itself.
7375         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7376         vpt.
7377         (table::do_row): Likewise.
7379         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7380         TRANSPARENT_STRING_NAME.
7382         * tbl/table.c (table::init_output): In the table release macro
7383         print an error message and don't produce any output if after
7384         issuing the need request the table still will not fit.  Also
7385         remove the diversion after bringing it back.
7387         * tbl/table.c (table::init_output): Define a new macro
7388         REPEATED_MARK_MACRO, like mk but if in a diversion also
7389         transparently outputs itself.
7390         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7391         is necessary because .TH might not call .T#.
7392         (table::do_top): Likewise TOP_REG.
7393         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7394         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7395         table header might contain just the two top rules.
7397 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7399         * troff/div.c: Implement new request `ptr' to print all traps.
7401         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7402         init_string_env_reg.
7403         * troff/env.c (class tab_reg): Deleted.
7405 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7407         * troff/div.c: New number register .pn returns the number of the
7408         next page as set by the pn request.
7410         * macros/tmac.an: Redid headers and footers.  Number each manual
7411         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7412         optional 5th argument to .TH which specifies the manual name and
7413         appears in the center of the header.  Understand the X, P and D
7414         registers like Sun.
7416 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7418         * troff/env.c (init_env_requests): New number register `.lt' to
7419         return the title length.
7421         * troff/node.h (class transparent_dummy_node): New class.
7422         * troff/node.c (class transparent_dummy_node): Provide member
7423         functions. 
7424         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7425         than a dummy_node.
7427         * troff/input.c (token::next): New escape sequence \).
7428         * troff/input.c (get_copy): Recognize \) in copy mode.
7430         * troff/input.c (input_stack::clear): New function.
7431         * troff/input.c (exit_request): Use input_stack::clear.
7433         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7434         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7436         * troff/env.c: Move set_page_character to input.c.  Move
7437         page_character to input.c also.
7438         * troff/env.c (title): Split off the reading of the parts of the
7439         title into read_title_parts.
7440         * troff/input.c (read_title_parts): New function.  Check the
7441         input_level when testing whether a token matches the delimiter.
7443         * troff/input.c (exit_request): New function.
7444         * troff/input.c (init_input_requests): Bind ex request to
7445         exit_request rather than exit_groff.
7447         * troff/input.c (exit_groff): Call tok.next() before
7448         process_input_stack().
7450 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7452         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7453         * troff/env.h: ditto.
7454         * troff/input.c: ditto.
7456         * troff/env.c (environment::is_empty): Test pending_lines.
7458         * troff/env.c (environment::have_pending_lines): Removed.
7460         * troff/input.c: Add request to flush pending lines from the
7461         environment.
7463         * troff/env.c, troff/env.h: Add automatic widow control feature.
7465         * troff/input.c (exit_groff):  Do process_input_stack() after
7466         do_break() but before setting exit_flag to 2.
7468         * troff/input.c: Remove FLUSH_PENDING_LINES and
7469         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7470         environment after END_TRAP token seen, but only if there aren't
7471         any more traps still unfinished.
7472         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7474 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7476         * troff/env.c: Rename the `retain_size' member of class
7477         pending_output_line to `no_fill'.
7479         * troff/env.c (title): When the line is output, make the
7480         retain_size argument !fill.
7482         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7483         * troff/node.c (space_node::get_breakpoints),
7484         (dbreak_node::get_breakpoints):  Fill this in.
7485         * troff/env.c:  Allow specification of maximum number of
7486         consecutive hyphenated lines.
7488         * troff/env.c (environment::is_empty): Add test for !current_tab.
7490 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7492         * troff/env.c (environment::hyphenate_line): Don't completely give
7493         up if the word is not to be hyphenated; continue so that breaks
7494         can be made at break_char_node's.
7496         * lib/lib.h: Only define INT_MAX if it's not already defined;
7497         undef INT_MIN if it's already defined.
7499         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7501         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7502         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7503         compiler.
7504         
7505         * macros/tmac.an (an-header): Set no-space mode.
7507         * macros/tmac.an (TH): Start a new page if necessary.
7509         * Started using ChangeLog at version 0.4.
7511 Local Variables:
7512 version-control: never
7513 End: