* Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
[s-roff.git] / ChangeLog
blob2c3f0f67f1512d1345828485955ae86240777f81
1 2000-06-28  Paul Eggert  <eggert@twinsun.com>
3         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
4         commands that fail.  Don't assume that "export a=b" is valid shell
5         syntax.  This is needed for Solaris 2.5.1.
7         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8         comment about missing Solaris headers.
10         * PROBLEMS: Add section about problems with Sun Make and VPATH.
12 2000-06-25  Werner LEMBERG  <wl@gnu.org>
14         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
15         SET_BINARY().
17         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
19         * win32-diffs: Updated.
20         * README.WIN32: Added CRs to make all Windows editors happy.
22         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
23         src/roff/groff/pipeline.c).
25 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
27         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
28         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
30 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
32         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
33         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
34         are binary files.
35         (main): Support non-Posix systems with several different styles of
36         slash characters in file names.
38         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
39         (main) [SET_BINARY]: Switch stdin into binary mode.
41         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
42         (main): Support file names with several possible slash-type
43         characters, as given by DIR_SEPS[] in nonposix.h.
44         (main) [__MSDOS__]: If renaming the temporary index file fails
45         because it has more than one dot in its trunk, replace the dot
46         with an underscore and try again.
47         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
48         Newline.
49         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
51         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
52         (File::File): Open the input file in binary mode.  Strip CR
53         characters from each CR-LF pair.
54         (xbasename): Support file names with several possible slash-type
55         characters, as given by DIR_SEPS[] in nonposix.h.
57         * src/include/Makefile.sub (HDRS): Add nonposix.h.
59         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
60         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
61         [!_POSIX_VERSION]: Define for traditional Unix systems.
62         (real_output_file::real_output_file): Remove the MSVC-specific
63         call to popen, use instead POPEN_WT, appropriately defined on
64         nonposix.h.  #include nonposix.h.
65         (real_output_file::~real_output_file): Remove the MSVC-specific
66         call to pclose, a suitable macro is now defined on nonposix.h.
67         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
68         and WEXITSTATUS instead of assuming traditional Unix
69         interpretation of the status returned by pclose.
71         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
72         call to popen, use POPEN_RT instead (appropriately defined on
73         nonposix.h).  #include nonposix.h.
74         (ps_bbox_request): Open the PostScript file in binary mode.
75         Close the file after processing it.
76         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
77         nonposix.h.
79         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
80         A version of run_pipeline that doesn't use `fork'.
81         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
82         (system_shell_name, system_shell_dash_c)
83         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
84         the ugliness of testing DOS/Windows file names for equality, and
85         support both stock shells and ports of Unix shells.
87         * src/roff/groff/groff.cc: #include nonposix.h.
88         (BSHELL): Definition moved to nonposix.h.
89         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
90         instead of a literal "-c".
91         (xbasename): Support file names with several possible slash-type
92         characters, as given by DIR_SEPS[] in nonposix.h.
93         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
94         of literal strings.
96         * src/preproc/soelim/soelim.cc: #include nonposix.h.
97         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
99         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
100         pic_tab.h.
102         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
104         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
105         eqn_tab.h.
107         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
109         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
110         P_tmpdir is defined, use it instead of the literal "/tmp".
111         (remove_tmp_files, add_tmp_file): New functions.
112         (xtmpfile): Record temporary files and register an atexit function
113         to delete them explicitly, instead of relying on the OS to do
114         that, which doesn't work on non-Unix systems.
116         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
117         (search_path::search_path): Use PATH_SEP instead of a literal
118         colon.
119         (search_path::command_line_dir): Ditto.
120         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
121         to support non-Posix systems.
123         * src/libc/libbib/search.cc: #include nonposix.h.
124         (search_list::add_file): Open the file in binary mode.
126         * src/libs/libbib/linear.cc: #include nonposix.h.
127         (file_buffer::load): Remove \r characters preceding \n from the
128         loaded buffer.
130         * src/libs/libbib/index.cc: #include nonposix.h.
131         (make_index_search_item): Open index_filename in O_BINARY mode.
132         (index_search_item_iterator::get_tag): Ditto.  Remove \r
133         characters before \n characters.
134         (index_search_item::check_files): Open files in binary mode.
135         (index_search_item::munge_filename): Support DOS-style file names
136         with backslashes and drive letters, use IS_ABSOLUTE.
138         * src/devices/grops/ps.cc: #include nonposix.h.
139         (main) [SET_BINARY]: Switch stdout to binary mode.
141         * src/devices/grolj4/lj4.cc: #include nonposix.h.
142         (main) [SET_BINARY]: Switch stdout to binary mode.
144         * src/devices/grolbp/lbp.cc: #include nonposix.h
145         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
147         * src/devices/grodvi/dvi.cc: #include nonposix.h.
148         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
149         nonposix.h).
150         (main) [SET_BINARY]: Switch stdout to binary mode.
151         [_MSC_VER]: Remove an explicit call to _setmode.
153         * src/include/nonposix.h: New file.
155         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
156         operation when building with DJGPP.
157         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
158         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
159         ENVSETUP.
161         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
162         MS-DOS.
163         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
164         etc. can include a semi-colon on DOS/Windows.
165         (depend.temp): Use depend1.temp instead of depend.temp1, to
166         prevent files from overerwiting each other on 8+3 filesystems.
168         * gendef.sh (t): Change definition to work with DOS/Windows.
170         doc/groff.texinfo: Apart of some typo corrections, I also changed
171         some index entris, to make them more non-ambiguous, and also put
172         @ignore around some parts that are not yet written, to allow the
173         Info output be readable.
175 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
177         Replaced specific checks for function declarations with a generic
178         routine taken from GNU bfd.
180         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
181         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
182         * configure.in: Use it.
183         * src/devices/grolbp/lbp.cc, src/include/lib.h,
184         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
185         src/roff/groff/groff.cc: Use it.
186         * Makefile.in, configure: Updated.
188 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
190         * src/devides/grolbp/lbp.h: Removed unused variables.
192 2000-05-31  Keith Thompson  <kst@sdsc.edu>
194         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
195         strncasecmp().
197 2000-05-31  Werner LEMBERG  <wl@gnu.org>
199         * aclocal.m4 (GROFF_SRAND): New function to test the return value
200         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
201         * configure.in: Use it.
202         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
203         * configure, Makefile.in: Updated.
205         * configure.in: Add test for strncasecmp().
206         * src/include/lib.h: Use it.
208 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
210         * src/preproc/grn/Makefile.sub: Add MLIB.
212 2000-05-29  Nix  <nix@esperi.demon.co.uk>
214         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
216 2000-05-29  Werner LEMBERG  <wl@gnu.org>
218         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
220         * PROBLEMS: Small update.
222         * src/devices/grolbp/lbp.cc: Various small fixes.
224 2000-05-28  Keith Thompson  <kst@sdsc.edu>
226         * src/roff/nroff/nroff.sh: Fix main loop syntax.
228         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
230 2000-05-25  Werner LEMBERG  <wl@gnu.org>
232         * man/roff.man: Removed unused macro.
234 2000-05-24  Werner LEMBERG  <wl@gnu.org>
236         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
237         This is needed e.g. if you do
238         `make distclean; ./configure; make dist'.
240 Version 1.16 released
241 =====================
243 2000-05-23  Werner LEMBERG  <wl@gnu.org>
245         Adding font CWI (constant width italic) to devdvi.
247         * font/devdvi/CWI: New file.
248         * font/devdvi/generate/Makefile: Add generating rule.
249         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
250         tmac/tmac.dvi: Use it.
251         * NEWS: Announce it.
253         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
254         * font/devlj4/generate/Makefile: Cosmetic changes only.
256         * man/groff.man: Removed most of the redundant description of
257         special characters (which is in groff_char.man).  Added font
258         translation CB->CR for devdvi.  Other minor fixes.
260         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
261         (registered) symbols.
263 2000-05-22  Werner LEMBERG  <wl@gnu.org>
265         * doc/Makefile: Added rule for creating info files.
267         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
268         AMS font metrics.
269         * font/devdvi/generate/Makefile: Fixed dependencies.
271         * font/devps/*: Regenerated.  Heavy changes for Bookman and
272         NewCentury Schoolbook!
273         * font/devps/generate/afmname: Will now run with GNU awk.
274         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
275         * font/devps/generate/Makefile: Cosmetic changes only.
277 2000-05-21  Werner LEMBERG  <wl@gnu.org>
279         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
280         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
281         `.SS' now produces a heading with a smaller size than `.SH'. 
282         Completely formatted.
283         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
285         * man/groff.man: Improved table appearance.  Use of `eo' request
286         to reduce number of doubled backslashes in macro definitions.
287         Replacing `\e' with `\(rs'.  Other minor fixes.
289         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
290         to have correct line number.
292         * INSTALL: Small improvement.
294 2000-05-20  Bernd Warken  <bwarken@mayn.de>
296         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
297         WL).
299 2000-05-19  Bernd Warken  <bwarken@mayn.de>
301         * man/groff.man: Complete update (with a lot of corrections by WL).
303 2000-05-18  Werner LEMBERG  <wl@gnu.org>
305         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
307         * font/*/*: Implement it.
308         * man/groff_char.man, NEWS: Document it.
310         * src/include/unix.h: Removed.  It isn't used.
312         * doc/groff.texinfo: Slight improvements.
314 2000-05-17  Werner LEMBERG  <wl@gnu.org>
316         * README, win32-diffs: Small fixes and improvements.
318 2000-05-16  Werner LEMBERG  <wl@gnu.org>
320         * FDL: New file (the Free Documentation License version 1.1).
322         * doc/groff.texinfo: Added many start-up values for gtroff.
323         Some structural improvements of the source code.
325 2000-05-15  Werner LEMBERG  <wl@gnu.org>
327         * src/roff/troff/input.cc: Added small comment about troffrc-end.
328         * src/roff/troff/troff.man: Added info about troffrc-end.
330 2000-05-14  Werner LEMBERG  <wl@gnu.org>
332         * Makefile.in (EXTRADIRS): Fix typos.
333         (dist): Handle deletion of old .tar.gz file correctly.
334         (DISTDIRS): Include all tty output devices.
336         * doc/groff.texinfo: Adding more cross references; countless other
337         fixes.
339 2000-05-13  Werner LEMBERG  <wl@gnu.org>
341         * MORE.STUFF: Added Robert Marks's utilities.
343 2000-05-12  Werner LEMBERG  <wl@gnu.org>
345         Added win32 port contributed by Blake McBride
346         <blake@florida-software.com>.
348         * README.WIN32, win32-diffs: New files.
349         * NEWS: Updated.
351         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
352         (tmove, tmove2): Added parentheses to avoid compiler warnings.
353         (change): Removed unused variables.
355         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
356         (savebounds): Changed return value from `int' to `void'.
357         * src/preproc/grn/hdb.cc: Ditto.
359         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
360         final backslash in comment to avoid compiler warning.
362         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
364         * doc/groff.texinfo: More fixes.
366 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
368         * tmac/tmac.doc: Documentation fix.
370 2000-05-11  Werner LEMBERG  <wl@gnu.org>
372         * doc/groff.texinfo: Reading the source code shows up a lot of
373         omissions and incorrect data...  More conversion to @Deffn macros.
375 2000-05-10  Werner LEMBERG  <wl@gnu.org>
377         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
378         dependency.
380         * src/roff/troff/request.h: Removing unused `no_break_flag'.
382 2000-05-09  Werner LEMBERG  <wl@gnu.org>
384         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
385         improvements.
387         * doc/groff.texinfo: Extended history section.  More conversion to
388         @Deffn macros.  More .tr documentation.
390 2000-05-07  Werner LEMBERG  <wl@gnu.org>
392         * doc/groff.texinfo: Completed tab section.  Added info about
393         fields.
395 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
397         * PROBLEMS: Describe configure script fix for OS/390 Unix.
399 2000-05-05  Werner LEMBERG  <wl@gnu.org>
401         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
402         LaTeX 2e).
403         * NEWS: Document it.
405         * man/troff.man: Minor optical improvements.
407 2000-05-03  Werner LEMBERG  <wl@gnu.org>
409         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
411         * font/*/*: Implement it.
412         * man/groff_char.man, NEWS: Document it.
414 2000-05-02  Werner LEMBERG  <wl@gnu.org>
416         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
417         expansion.
418         * NEWS: Document the three new man pages.
420         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
421         * configure: Updated.
423         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
425 2000-05-01  Werner LEMBERG  <wl@gnu.org>
427         Added grap support to grog.
429         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
430         * src/roff/grog/grog.man: Document it.
432         * doc/groff.texinfo, NEWS: Add info about grap support.
434         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
435         (with slight fixes by me).
437         * tmac/groff_tmac.man: New file documenting tmac mechanism.
438         * tmac/Makefile.sub: Add groff_tmac.man.
439         * man/roff.man: New file giving overview of roff system.
440         * man/troff.man: A short reference of troff.
441         * man/Makefile.sub: Add roff.man and troff.man.
443 2000-04-30  Werner LEMBERG  <wl@gnu.org>
445         Added grap support to groff.
447         * src/roff/groff/groff.cc: Implement it.
448         * src/roff/groff/groff.man: Document it.
450         * src/devices/grotty/grotty.man: Add cp1047 device.
451         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
452         Ditto.
453         * src/roff/groff/groff.man: Ditto.
454         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
455         * doc/groff.texinfo: Ditto.
457         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
458         for cp1047.
460 2000-04-29  Werner LEMBERG  <wl@gnu.org>
462         * man/groff_char.man: Add `pc' glyph.
463         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
464         * tmac/tmac.tty: Add `pc' glyph.
465         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
466         we use cp1047 output device.
468         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
469         there are still hardcoded latin1->unicode values in utf8's font
470         definition files.
471         * configure: Updated.
472         * NEWS: Minor clarification.  Updated.
474         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
475         Unix.
477 2000-04-28  Werner LEMBERG  <wl@gnu.org>
479         Adding EBCDIC code page 1047.
481         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
482         font/devcp1047/DESC.proto: New files.
484         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
485         either ascii/latin1 or cp1047.
486         * Makefile.in: Use it.
487         * configure: Updated.
489         Replacing and/or adding `md' (mathdot) glyph with `pc'
490         (periodcentered) in all text fonts.
492         * font/*/*: Change it.
494 2000-04-27  Werner LEMBERG  <wl@gnu.org>
496         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
498         * configure.in: Add check for strings.h.
499         * src/include/driver.h: Use HAVE_STRINGS_H.
500         * src/devices/grolbp/lpb.cc: Remove string.h.
502         * src/include/groff-getopt.h: New file.  It will be used instead of
503         getopt.h (to be included in lib.h) to avoid endless problems with
504         picky C++ compilers.
505         * src/include/lib.h: Use groff-getopt.h.
506         * src/include/Makefile.sub: Updated.
508         * configure: Updated.
509         * Makefile.in: Updated.
511         * NEWS: Mention EBCDIC support.
513 2000-04-26  Werner LEMBERG  <wl@gnu.org>
515         * TODO: Some additions.
517 2000-04-25  Werner LEMBERG  <wl@gnu.org>
519         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
520         of mso request.
522 2000-04-23  Werner LEMBERG  <wl@gnu.org>
524         * src/roff/troff/troff.man: Minor fixes.
526 2000-04-22  Werner LEMBERG  <wl@gnu.org>
528         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
529         `.T' string register and the incompatible definition of the `.T'
530         number register (compared to Unix troff).
532         * man/groff_char.man: Add some missing characters.
533         * font/devutf8/NOTES: Update.
535 2000-04-21  Werner LEMBERG  <wl@gnu.org>
537         * src/include/htmlindicate.h, src/include/lib.h,
538         src/include/posix.h: Fix copyright.
540         * src/include/Makefile.sub: Update.
542 2000-04-20  Werner LEMBERG  <wl@gnu.org>
544         * src/roff/troff/input.cc (input_char_description): Removing
545         superfluous space char.
547         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
549         * doc/groff.texinfo: Document EBCDIC.
551 2000-04-19  Werner LEMBERG  <wl@gnu.org>
553         Introducing `shc' as the glyph name for the soft hyphen character.
555         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
556         font/devlatin1/R.proto: Use it.
558         * NEWS: Updated.
560 2000-04-18  Werner LEMBERG  <wl@gnu.org>
562         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
563         dependency on ASCII order.
565 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
567         * src/libs/libgroff/illegal.c: Added EBCDIC table.
568         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
570         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
571         to increase portability.
573 2000-04-15  Werner LEMBERG  <wl@gnu.org>
575         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
576         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
577         the generic `\n' if under OS/390 Unix.
579         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
581         * configure: Regenerated.
583 2000-04-14  Werner LEMBERG  <wl@gnu.org>
585         * doc/groff.texinfo: More conversions to @Deffn.
587 2000-04-12  Werner LEMBERG  <wl@gnu.org>
589         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
590         with `:'.
592         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
594 2000-04-10  Werner LEMBERG  <wl@gnu.org>
596         * doc/groff.texinfo: More conversions to @Deffn.
598 2000-04-08  Werner LEMBERG  <wl@gnu.org>
600         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
601         Updated to latest version (glibc 2.1.3).
603 2000-04-07  Werner LEMBERG  <wl@gnu.org>
605         * doc/Makefile (clean): Include more index files.
606         Add rule texinfo->dvi.
608 2000-04-05  Werner LEMBERG  <wl@gnu.org>
610         * doc/groff.texinfo: Added new index `op' for operators.  More
611         info on end of sentence characters.  More use of @Deffn.
613 2000-03-30  Werner LEMBERG  <wl@gnu.org>
615         * */*.man: Adding a note that a whitespace can be inserted between
616         a command line option and its parameter -- we are using GNU getopt.
618         * src/roff/groff/groff.man: Add example of `-m mandoc'.
620 2000-03-28  Werner LEMBERG  <wl@gnu.org>
622         Correct anachronism of calling the man macro file with `-man'
623         instead of `-m man' etc.
625         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
626         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
627         load tmac.<package>.
629         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
631         * NEWS: Updated.
633         * doc/groff.texinfo: Updated.
635         * tmac/groff_man.man: Copyright added.
637 2000-03-27  Werner LEMBERG  <wl@gnu.org>
639         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
640         typeset the request resp. escape name with a tt font -- due to a
641         bug in texinfo.tex it is necessary to use the `-e' switch with
642         texi2dvi.
644         Improving info about usage of groff units.
646         Other minor fixes.
648 2000-03-20  Werner LEMBERG  <wl@gnu.org>
650         * doc/groff.texinfo: Added section about man macro package
651         (I've basically taken groff_man.man).  Introducing new indices `ma'
652         for macros/strings and `gl' for glyph names.  Other minor fixes.
654         * tmac/groff_man.man: Fixed some typos.
656 2000-03-19  Werner LEMBERG  <wl@gnu.org>
658         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
659         Other minor fixes.
661         * doc/texinfo.tex: New file.
663 2000-03-18  Werner LEMBERG  <wl@gnu.org>
665         * doc/groff.texinfo: Improved section on number registers.  Other
666         minor updates.
668 2000-03-16  Werner LEMBERG  <wl@gnu.org>
670         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
671         synopsis.
673         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
674         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
675         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
676         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
678         * src/preproc/grn/grn.man: Better synopsis; added copyright.
680         * src/roff/grog/grog.man: Updated copyright date.
682 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
684         * configure.in: Added test for strdup.
686         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
687         is available.
689         Replaced dynamic allocation of arrays `[...]' with `new' operator.
691         Other minor fixes.
693 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
695         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
697 2000-03-11  Werner LEMBERG  <wl@gnu.org>
699         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
700         compilers silent.
701         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
702         * src/include/lib.h: Remove some spaces.
704 2000-03-10  Werner LEMBERG  <wl@gnu.org>
706         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
707         initializers from arguments (some compilers don't like this).
709 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
711         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
712         used by pic and eqn to tell grohtml where the graphic regions start
713         and end.
714         * src/libs/libgroff/Makefile.sub: Use it.
715         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
716         graphic_start() and graphic_end() from htmlindicate.cc.
718 2000-03-09  Werner LEMBERG  <wl@gnu.org>
720         * tmac/tmac.safer: Will now work correctly in compatibility mode.
721         * tmac/groff_man.man: More fixes.
723 2000-03-08  Werner LEMBERG  <wl@gnu.org>
725         * doc/Makefile: Added texput.log to the `clean' target.
726         * doc/groff.texinfo: Added info about delimiters for escapes.
728 2000-03-08  Bernd Warken  <bwarken@mayn.de>
730         * src/preproc/pic/pic.man: Add info on conversion of pic images to
731         other graphic formats.
733 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
735         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
736         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
737         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
738         files.
740 2000-03-07  Werner LEMBERG  <wl@gnu.org>
742         * doc/groff.texinfo: Spelling fixes.
744 2000-03-06  Werner LEMBERG  <wl@gnu.org>
746         * tmac/groff_man.man: Completely revised to cover everything in
747         tmac.an.
749         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
750         Other minor fixings.
751         * src/roff/troff/env.cc (environment_copy): Improve error message and
752         fix itoa->i_to_a.
753         * src/roff/troff/TODO: Updated.
755         * doc/Makefile: Bug fixes -- this is still provisional, though...
757         * tmac/eqnrc: Small fixes.
759 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
761         Adding a request `evc' to copy environments.
763         * src/roff/troff/env.cc (environment::copy, environment_copy):
764         Implement it.
765         * src/roff/troff/env.h: Add prototype.
767 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
769         Adding strsep() -- Solaris 8 doesn't have it.
771         * configure.in: Test it.
772         * src/devices/grolbp/lbp.cc: Add code.
774 2000-03-05  Werner LEMBERG  <wl@gnu.org>
776         * src/roff/troff/div.cc (macro_diversion::output,
777         top_level_diversion::output): Fixing an incompatibility with
778         original troff: \x'0' updates the .a register also.  Thanks to
779         <Andries.Brouwer@cwi.nl> for pointing this out.
780         * doc/groff.texinfo: Document it.
782         * Makefile.in: Create Makefile.dep if necessary before calling the
783         submake process to avoid warning about nonexistent file.
785         * NEWS, PROJECTS: Updated.
787 2000-03-04  Werner LEMBERG  <wl@gnu.org>
789         * tmac/troffrc: Add tmac.lbp.
791 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
793         * tmac/tmac.lbp: New file.
794         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
795         command.
797 2000-03-03  Werner LEMBERG  <wl@gnu.org>
799         * Makefile.in: Fixing $(subdir).
801         * README, NEWS: Small fixes.
803         * test-groff: Adding path to grolbp.
805         * configure.in: The (new) file src/xditview/Imakefile.in will be
806         also configured -- it is now possible to build gxditview in a
807         directory different from $srcdir.
809 2000-03-02  Blake McBride  <blake@florida-software.com>
811         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
813         * MORE.STUFF: Added website of bell labs and info about plot2dev.
815 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
817         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
818         files.
820 2000-02-29  Werner LEMBERG  <wl@gnu.org>
822         Adding GNU getopt to the groff distribution.
824         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
825         New files.
826         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
827         * aclocal.a4: Remove GROFF_GETOPT function.
828         * configure.in, Makefile.in, PROBLEMS: Update.
829         * src/include/lib.h: Replace getopt tests with getopt.h.
830         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
832         * doc/groff.texinfo: Further checking/updating.  Adding more index
833         entries.
835         * man/groff_out.man: Fix nroff mode activation (for emacs).
836         * man/groff_font.man: Add missing ligature.
838 2000-02-28  Werner LEMBERG  <wl@gnu.org>
840         * doc/groff.texinfo: Further checking/updating.  Adding more index
841         entries.
843         * src/devices/grolbp/grolbp.man: Added a comment line at the
844         beginning of the file (similar to shell scripts) which indicates
845         that `tbl' should be used as a preprocessor.
847 2000-02-27  Blake McBride  <blake@florida-software.com>
849         Adapting groff to MS Visual C++ 6.0 compiler (tested with
850         Windows NT 4.0).  Uses _MSC_VER define where necessary.
852         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
853         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
854         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
855         src/include/lib.h, src/libs/libgroff/errarg.cc,
856         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
857         src/preproc/refer/label.y, src/preproc/refer/label.cc,
858         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
859         src/roff/troff/div.cc, src/roff/troff/env.cc,
860         src/roff/troff/input.cc, src/roff/troff/node.cc,
861         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
862         if_to_a() to avoid name clashes.
863         * src/include/posix.h: Don't use unistd.h.
864         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
865         clause for integrating non-Unix xtmpfile() code.
866         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
867         structure; use "rt" for popen() in pipe_source(); add getpid()
868         dummy function.
869         * src/roff/troff/node.cc: Use special versions of popen() in
870         real_output_file() and pclose() in ~real_output_file().
872 2000-02-27  Werner LEMBERG  <wl@gnu.org>
874         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
875         LBP-8 series laser printers).  This code has been contributed by
876         Francisco Andres Verdu <pandres@dragonet.es>.
878         * src/devices/grolbp/*: The grolbp output device.
879         * font/devlpb/*: The font description files.
880         * Makefile.in: Add grolpb and devlbp subdirectories.
882         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
883         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
884         typographic fixes.
886         * doc/groff.texinfo: Further checking/updating.  Adding more index
887         entries.
889         * NEWS: Updated.
891         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
893         * man/groff_font.man: Adding info about obsolete DESC keywords.
894         * src/devices/grolj4/grolj4.man: Documenting additional DESC
895         keywords.
897 2000-02-26  Werner LEMBERG  <wl@gnu.org>
899         * src/preproc/grn/grn.man: Added info about the gremlin file format
900         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
902 2000-02-25  Werner LEMBERG  <wl@gnu.org>
904         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
905         friends to be non-integer.
907         * src/preproc/grn/grn.man: Document it.
909         * doc/groff.texinfo: Further checking/updating.  Adding more index
910         entries.
912 2000-02-24  Werner LEMBERG  <wl@gnu.org>
914         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
915         line thicknesses to be integer multiples of this value.
917         * src/preproc/grn/grn.man: Commenting out the -s option -- the
918         corresponding code doesn't work (yet).
920         * doc/groff.texinfo: Further checking/updating.  Adding more index
921         entries.
923 2000-02-23  Werner LEMBERG  <wl@gnu.org>
925         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
926         specify line thickness instead of base units.  The new default
927         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
928         thick lines respectively.
930         Removed unused variable `prevval'.
932         * src/preproc/grn/grn.man: Updated.
934 2000-02-22  Werner LEMBERG  <wl@gnu.org>
936         * src/preproc/grn/main.cc: Slight formatting.
938         * src/roff/groff/groff.man: Formatting fix.
939         * src/preproc/grn/grn.man: Ditto.
941         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
943         * doc/groff.texinfo: Further checking/updating.
945 2000-02-21  Werner LEMBERG  <wl@gnu.org>
947         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
949         * test-groff: Added grn subdir to path.
951         * doc/groff.texinfo: Some restructing and other small improvements.
953         * src/roff/groff/groff.cc (help): Fixed info string.
955 2000-02-20  Werner LEMBERG  <wl@gnu.org>
957         * doc/meref.me: Fix description of .GS request.
959         * src/roff/troff/troff.man: Fixing typo.
961         Adding the `grn' preprocessor for gremlin graphic files.
963         * src/preproc/grn/*: This is the Berkeley distribution written by
964         David Slattengren and Barry Roitblat, adapted to groff by Daniel
965         Senderowicz and Werner Lemberg.
967         * doc/grnexampl.{me,g}: A sample for grn.
969         * Makefile.in: Added subdirectory entry for grn.
971         * src/roff/groff/groff.cc: Added support for grn.  It can be now
972         called with the switch `-g'.
974         * src/roff/groff/groff.man: Updated.
976         * src/roff/grog/grog.{man,pl,sh}: Updated.
978         * NEWS: Updated.
980 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
982         * src/include/lib.h: Added xtmptemplate and made xtmpfile
983         parametrically polymorphic.
985         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
986         and the alterations to xtmpfile.
987         xtmpfile can be requested to return the filename created
988         and asked not to unlink the temp file.  The default behaviour
989         if parameters are absent is exactly the same as before.
991 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
993         A new request `length' is available which returns the length of a
994         string in a number register:
996         * src/roff/troff/input.cc (length_macro): Implement it.
997         * src/roff/troff/input.cc (init_input_requests): Register it.
999 2000-02-11  Werner LEMBERG  <wl@gnu.org>
1001         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1002         of the `substring' request.
1004         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1005         request.
1007         * src/roff/troff/TODO, NEWS: Updated.
1009 2000-02-09  Werner LEMBERG  <wl@gnu.org>
1011         * src/roff/groff/groff.man: Added an example.
1013 2000-02-06  Werner LEMBERG  <wl@gnu.org>
1015         I've considerably modified the directory structure of the
1016         distribution to get a more vertical layout.  For example, the number
1017         of top level directories has been reduced from 42 to 6.
1019         As a consequence, many changes, especially to the makefiles, were
1020         necessary:
1022         * The makefile variables `top_builddir' and `top_srcdir' have been
1023         introduced.  Virtually all relative paths have been replaced with
1024         absolute ones using these two variables.
1026         * Dependencies (in the files `Makefile.dep') are no longer part of
1027         the distribution.  Instead, they are created during a `make install'
1028         in the build directory.
1030         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1031         make `top_srcdir' and `top_builddir' absolute.
1033         Some other changes:
1035         * Man pages no depend on the files `VERSION' and `REVISION'.
1037         * The added shell script `mkinstalldirs' will replace `mkdir' in
1038         almost all cases.
1040         * VERSION: Version number increased to 1.16.
1042 2000-02-04  Werner LEMBERG  <wl@gnu.org>
1044         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1046         * Makefile.in: Removed $(tmac_m) since it is no longer needed
1047         (after an update of the mm stuff).
1049         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1051 2000-02-03  Werner LEMBERG  <wl@gnu.org>
1053         The .psbb request will now also accept Mac PS images (i.e. using LF
1054         as the EOL character).
1056         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1057         (with slight modifications).
1058         * troff/input.cc (do_ps_file): Use it.
1060         * test-groff: Add grohtml and grolj4 output devices to PATH.
1062 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1064         * NEWS, MORE.STUFF: Updated.
1066 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
1068         Add the `srand' command to pic.
1070         * pic/lex.cc, pic/pic.y: Implement it.
1071         * pic/pic.man: Document it.
1072         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1074 2000-01-30  Werner LEMBERG  <wl@gnu.org>
1076         Add a new request `.psbb'.  This does exactly what the external
1077         program psbb did.  It scans a PostScript image file for a
1078         %%BoundingBox comment and extracts the bounding box values (in
1079         PostScript units) which are then stored in the four new (read-only)
1080         number registers `llx', `lly', `urx', and `ury'.
1082         This will allow the usage of the .PSPIC macro without worrying
1083         about unsafe behaviour of groff, i.e., it will work without the
1084         `-U' switch of groff.
1086         * troff/input.cc: Implement it.
1087         * tmac/tmac.pspic: Use it.
1088         * troff/troff.man, grops/grops.man, NEWS: Document it.
1089         * psbb/*, Makefile.in: Remove it since it is no longer needed.
1091         This is bloody C code simply adapted from psbb.c!  Any improvements
1092         welcome.
1094 2000-01-29  Werner LEMBERG  <wl@gnu.org>
1096         * man/groff_font.man: Minor clarifications.
1098         * NEWS: Updated.
1100 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1102         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1104 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
1106         * man/groff_font.man: Brought up to date regarding tcommand
1107         extensions.
1108         * libgroff/font.cc: Handle everything after `--' as a comment
1109         in the font files.
1110         * devps/*: Added comment delimiter inside devps font files.
1112 2000-01-28  Werner LEMBERG  <wl@gnu.org>
1114         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1115         \fC...\fP (which now works as expected).
1117         * troff/troff.man: Fix typo.
1119 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1121         Completed the pass_filenames implementation in troff.
1123         * libdriver/input.cc: Will read the new `F' tcommand.
1124         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1125         * troff/input.cc: Use it.
1127 2000-01-26  Werner LEMBERG  <wl@gnu.org>
1129         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
1130         font will now be updated even if an invalid font is selected.
1132 2000-01-24  Werner LEMBERG  <wl@gnu.org>
1134         * doc/homepage.ms: Updated for new tmac.arkup.
1136         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1138         * tmac/tmac.arkup: Cleanup.
1140         Added `\&' to .HTML macro to `leave vertical mode', so to say.
1142         Removed obsolete .LINK macro completely.
1144         The macros .URL, .FTP, and .MAILTO now accept a third argument which
1145         will be immediately appended to the second argument (to be used with
1146         punctuation, for example).
1148         Disabled .CDFTP macro temporarily for security reasons.
1150         * tmac/groff_markup.man: Complete revision for latest changes in
1151         tmac.arkup -- note that it does not yet format correctly with
1152         grohtml :-(
1154 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
1156         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1157         * devutf8/R.proto: Add mappings for wp, lh, rh.
1158         * devutf8/NOTES: Updated.
1160 2000-01-23  Werner LEMBERG  <wl@gnu.org>
1162         * doc/groff.texinfo: Updated version/copyright info.
1164 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
1166         Added support for two new directives in device descriptions:
1167         `pass_filenames' (to pass the input file name to the output device)
1168         and `use_charnames_in_special' (to support e.g. accented characters
1169         in the `X' request).
1171         * include/font.h, troff/charinfo.h: Declare it.
1173         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1175         * devhtml/DESC: Use it.
1177         * troff/input.cc: New function encoded_char.
1179         * troff/token.h: Add test for `specialness'.
1181 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1183         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1184         mistake from the list of files to be installed.
1186 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1188         * README: Added info how to apply patches.
1190 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1192         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1194 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1196         * troff/input.cc: Add support for troffrc-end.
1198         * tbl/main.cc: Altered to issue table-start and table-end special
1199         characters if using the html device.
1201         * devhtml/*: Modified font files to incorporate html encoding of
1202         characters.
1204         * tmac/groff_markup.man: New file documenting tmac.arkup.
1206         * tmac/troffrc-end: New file.  This is invoked after all user
1207         specified macros.  Currently used by the html device to include
1208         tmac.html.  Thus no need for users to specify -mhtml anymore.
1210         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1211         (MAN7): Add groff_markup.man.
1213         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1215         * tmac/troffrc: tmac.arkup will now be called for the html device.
1217         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1218         extra device specific information about fonts.
1220         * doc/homepage.ms: New file.  It is an example how an HTML home page
1221         could look like with grohtml.
1223         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1225 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1227         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1228         of Im, Re.
1230         * devutf8/NOTES: Updated.
1232 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1234         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1235         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1236         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1237         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1238         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1239         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1240         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1241         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1242         warnings.
1244         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1246 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1248         grolj4: Paper size will be searched case-insensitively.
1250         * include/lib.h: Add check for strcasecmp().
1251         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1252         * configure.in: Check for strcasecmp().
1254 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1256         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1257         `REVISION'.
1259 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1261         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1262         revision scheme.
1264         Add a new read-only register, `.Y', which contains the groff
1265         revision.
1267         * troff/input.cc (init_input_requests): Define it.
1268         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1269         * doc/groff.texinfo, troff/troff.man: Document it.
1271         * libgroff/Makefile.sub (version.cc): Add definition of
1272         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1273         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1274         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1275         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1276         troff/input.cc, pfbtops/pfbtops.c: Use it.
1278 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1280         Add a revision scheme to the groff package.
1282         * REVISION: New file.
1283         * libgroff/Makefile.sub (version.cc): Use it to define
1284         `revision_string[]'.
1285         * grops/psrm.cc: Use revision_string (converted to an unsigned
1286         integer) in constructor of resource_manager.
1288 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1290         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1291         files.
1292         * Makefile.in (DEVDIRS): Add devutf8.
1293         * grotty/tty.cc: Include device.h.
1294         (glyph): Change type of `code' to `unsigned int'.
1295         (tty_printer): New field is_utf8.  Constructor takes device argument.
1296         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1297         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1298         (tty_printer::put_char): New function.
1299         (tty_printer::end_page): Use put_char() instead of ::putchar().
1300         (make_printer): Pass device to tty_printer constructor.
1301         * nroff.sh: Determine default device by calling 'locale'.  As a
1302         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1303         Recognize UTF-8 locales.
1304         * tmac/eqnrc: Recognize utf8 like latin1.
1305         * tmac/troffrc: Device utf8 needs tmac.tty.
1307 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1309         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1311 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1313         Add a new predefined writeable number register, `year',
1314         which contains the current year.
1316         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1317         * tmac/tmac.s: Use it.
1318         * troff/input.cc (init_registers): Initialize it.
1320 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1322         * PROBLEMS: Fixed typo.
1324 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1326         * PROBLEMS: Add Y2k advice for the yr number register.
1328 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1330         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1332 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1334         * tmac/tmac.arkup: Slight modification of macros to provide better
1335         appearance for non-HTML formats.
1337 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1339         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1340         does not automatically translate to malloc(n) on all OSes
1341         (e.g., SunOS) so do it explicitly.  Also, check the returned
1342         value.
1344 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1346         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1348         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1349         expects this variable
1351 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1353         * doc/Makefile: Added instructions to create HTML and text
1354         versions of some files.
1356 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1358         * Updated INSTALL.gen.
1360         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1361         better resp. correctly with non-HTML devices.
1363 Version 1.15 released
1364 =====================
1366 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1368         * NEWS, VERSION: Changed to 1.15
1370 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1372         * nroff/nroff.man: -S is safer, not safe.
1374         * groff/groff.cc (main): Use `safer', not `safe', in variable
1375         names.  This does not change the behavior.
1377         * troff/input.cc (main): Likewise.
1379         * nroff/nroff.sh: Likewise.
1381         * troff/input.cc (prepend_string): New function.
1382         (main): Prepend -msafer, so that we check macro libraries for
1383         safety.
1385         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1387 Version 1.14 released
1388 =====================
1390 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1392         * NEWS, VERSION: Changed to 1.14.
1394 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1396         * refer/refer.cc: Fixing the last fix.
1398 Version 1.13 released
1399 =====================
1401 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1403         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1404         number disappear.
1406         * NEWS: Updated.
1408         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1410         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1411         document conventions, the version number must be a real.
1413 Version 1.12.1 released
1414 =======================
1416 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1418         * VERSION: Changed to 1.12.1.
1420 1999-12-22  Alan Rooks  <arooks@istar.ca>
1422         * refer/refer.cc (do_file): Slight modification to satisfy the
1423         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1424         UnixWare 7.1.
1426 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1428         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1429         notices.
1431         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1432         list of unsafe requests.
1434         * pic/pic.man: Fixed a typo.
1436         * man/groff_out.man: Fixed a typo.
1438 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1440         * Makefile.in: Doc fixes.
1442 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1444         * groff/groff.cc: Missing `U' option added to getopt().
1446         * troff/troff.man: Missing `U' option added to synopsis.
1448 Version 1.12 released
1449 =====================
1451 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1453         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1454         to the synopsis.
1456         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1457         with the more appropriate terms `safer' and `unsafe'.
1459         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1460         sys_nerr and sys_errlist[].
1462         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1464         * pic/pic.y, pic/pic.cc: Added check for fmod().
1466 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1468         * VERSION: Changed to 1.12.
1470         Here some patches from various sources; most of them taken from
1471         the Debian distribution.
1473         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1474         tmac/Makefile.sub: New files copied directly from the NetBSD
1475         distribution.  Probably, some additional adaptation later on is
1476         necessary...
1478         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1479         of unsafe requests.
1481         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1482         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1483         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1484         (`-S') is now the default.
1486         * README, NEWS: Updated.
1488 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1490         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1492         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1494 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1496         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1497         grief than relief today.  Additionally, it is against the GNU
1498         coding standards.
1500         * configure: Recreated.
1502 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1504         * configure.in: Added GROFF_LIBM.
1506         * configure: Recreated.
1508         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1509         necessary.
1511         * Makefile.in: Added definition of $(LIBM).
1513         * Makefile.comm (LIBM): Removed.
1515         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1517 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1519         * doc/Makefile: Added rule for generation pic.html.
1521         (clean): Files produced by grohtml will be removed also.
1523         * doc/pic.ms: Small fix.
1525         * tmac/tmac.html: Fixed suppression of headers.
1527 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1529         * tmac/tmac.html: Fixing horizontal arrows.
1531         Turning off hyphenation.
1533         * tmac/tmac.an: Improved support for grohtml; better indentation,
1534         no footers/headers.
1536 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1538         * tmac/tmac.arkup: Added CDFTP macro
1540         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1541         macros.
1543         * tmac/troffrc: Some additions for HTML stuff.
1545 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1547         * tmac/tmac.html: Small changes.
1549 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1551         * doc/groff.texinfo: Minor fixes.
1553 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1555         * devhtml/TR: Changed spacewidth to 3.
1557         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1559         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1561         * tmac/tmac.arkup: New file.
1563         * grohtml/ChangeLog: New file.
1565 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1567         * doc/groff.texinfo (Common Features): Added Copying chapter.
1568         Changed format to @smallbook.
1570 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1572         * NEWS: Added info about groff.texinfo.
1574         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1575         warning messages.
1577 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1579         * groff/groff.man: More updates.
1581 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1583         * doc/groff.texinfo: New file.  This manual is still very
1584         rudimentary.  It has been originally contributed by Trent
1585         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1586         additions by me.
1588         * INSTALL: Added information about the `doc' subdir
1590         * troff/troff.man: Minor fixes.
1592         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1593         reordered options.
1595         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1597         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1598         also, otherwise it is included itself in another call of `make
1599         dist'.
1601         * groff/groff.cc (synopsis): Removed superfluous space.
1603         * PROJECTS, PROBLEMS, NEWS: Updated.
1605         * xditview/Makefile: Removed.
1607         * VERSION: Updated to 1.12beta.
1609         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1611         * README: Updated: Included documentation about CVS repository,
1612         mailing lists, and daily snapshots.
1614         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1616 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1618         * tmac/tmac.an: If the tag didn't fit into the space that the
1619         macro `TP' specifies, the rest of the tag went into the space for
1620         the next line.
1622 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1624         * grolj4/lj4.cc: Added duplex printing (option `-d').
1626         * grolj4/grolj4.man: Document duplex printing.
1628 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1630         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1631         non-GNUish sed programs.
1633         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1634         definition.
1636         * configure.in (LIBS): Added `-lc'
1638         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1640         * pic/tex.cc (solid_arc): Casting M_PI to double.
1642         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1644         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1645         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1646         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1648         * groff/groff_man.man: New file.  This manual page was originally
1649         written for the Debian GNU/Linux system by Susan G. Kleinmann
1650         <sgk@debian.org>.
1652         * eqn/list.cc (list_box::compute_metrics,
1653         list_box::compute_sublist_width): Removed variable declaration to
1654         avoid shadowing warnings.
1656         * grops/psrm.cc (resource_manager::process_file): Ditto.
1658         * tfmtodit/tfmtodit.cc (main): Ditto.
1660         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1661         to avoid shadowing warnings.
1663         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1664         shadowing loop variable.
1666         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1668 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1670         New grohtml frontend to convert groff input to html.
1672         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1674         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1676         * tmac/eqnrc: Added html device.
1678         * tmac/tmac.html: New file.
1680         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1681         (troff_output::start_picture, troff_output::finish_picture),
1682         tbl/main.cc (process_input_file):
1683         Surrounded output with `graphics_start' and `graphics_end' so that
1684         the html driver can identify non-text portions.
1686         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1687         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1688         grotty/tty.ps (tty_printer::set_char): Additional parameter
1689         `name'.
1691         * include/printer.h: Class printer: New function
1692         set_char_and_width; new variables (is_char_named, is_named_set,
1693         named_command, named_char_s, named_char_n) to hold information
1694         about named characters -- needed by the html driver.
1696         * libdriver/printer.cc (printer::set_ascii_char,
1697         printer::set_special_char): Use set_char_and_width.
1699         * devhtml/*: New device files for html driver.
1701         * grohtml/*: New driver grohtml.
1703 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1705         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1706         default strings.
1708 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1710         * libgroff/string.cc (search): Small fix to test against NULL
1711         pointer.
1713 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1715         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1716         \b'abc') were stacked in reverse order when processed in a
1717         diversion.
1719         * troff/node.h: Added `*last' to struct `node' to make the above
1720         fix work.
1722         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1723         The default scale for the 'f' and 't' graphics functions were 'm'
1724         rather than 'u' (i.e., no scaling).
1726 1999-09-11  Peter Miller  <peterm@jna.com.au>
1728         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1729         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1730         defining include paths.
1732         * soelim/soelim.cc (include_path_append): New function.
1734 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1736         * tbl/main.cc (process_options): Unix (at least Documenter's
1737         Workbench) tbl allows arbitrary non-alpha characters between
1738         options.
1740 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1742         Y2k fixes.  Don't assume that the current year precedes 2000.
1744         * doc/meref.me: Add \n(y2, \n(y4.
1746         * tmac/doc-common (Yr): New number register.
1747         (Dd): Don't assume current year precedes 2000.
1749         * tmac/tmac.e (td): Likewise.
1750         (y2, y4): New number registers.
1752         * pic/pic.man: Update reference for pic paper to May, 1991
1753         version.
1755 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1757         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1758         Removed quotation marks which prevented correct expansion of
1759         $(tmac_wrap).
1761         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1763 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1765         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1766         `config.cache'.
1768         * Removed configure.old.
1770 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1772         * VERSION: Updated to 1.11.1
1774 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1776         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1778         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1779         added quotations around $(tmac_wrap) to avoid syntax error if
1780         variable is empty.
1782         * configure: Newly generated using autoconf 2.13.
1784         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1786 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1788         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1789         doc/Makefile. doc/pic.ms, groff/groff.man:
1790         Prepare for 1.11 release.  No code changes.
1791         Documentation for pic added (doc/pic.ms).
1793 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1795         * Version 1.10 released.
1797 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1799         * afmtodit/afmtodit.pl: Avoid comment on first line.
1801 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1803         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1804         * configure.in: Call it.
1806         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1807         (distfiles): Doesn't depend on config.log or config.cache.
1809 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1811         * grog/grog.sh: Use print "" rather than print in END rule.
1813 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1815         * tbl/main.cc (process_data): Don't give error for excess data
1816         entries that are comments.
1818 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1820         * tbl/main.cc (process_data): Fix case where new for-scope rules
1821         silently change meaning of code.
1823 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1825         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1826         of non-zero hyphenation codes.
1828 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1830         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1832 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1834         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1836 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1838         * tmac/tmac.andoc: Make it work in compatibility mode.
1840         * refer/token.h (token_info::is_range_sep): New function.
1841         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1842         * refer/ref.cc (reference::output): More sophisticated check for
1843         multiple pages.
1845         * devps/prologue.ps (MANUAL): New procedure.
1846         * grops/ps.cc (main): New -m option.
1847         (usage): Include -m.
1848         (ps_printer::~ps_printer): Implement -m.
1850         * aclocal.m4 (GROFF_G): New macro.
1851         * configure.in: Call it.
1852         * Makefile.in (g): Provided by configure.
1854         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1856         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1857         translations.
1859         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1860         (tmac_m, tmac_s): Deleted.
1861         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1862         tmac_s_prefix): New variables.
1863         (MDEFINES): Change accordingly.
1864         * Makefile.comm (.man.n): Use new TMAC_* variables.
1865         * configure.in (GROFF_TMAC): Call.
1866         * aclocal.m4 (GROFF_TMAC): Define.
1867         * tmac/Makefile.sub (stamp_wrap): New target.
1868         (install_data, uninstall_sub): Handle macro wrapping.
1870 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1872         * tbl/main.cc (main): Ignore -T option.
1874 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1876         * devlj4/generate/special.map: Add definition of \(nb.
1878         * tmac/tmac.dvi: Add definition of \(nb.
1880         * troff/dictionary.c (dictionary::dictionary): association::v gets
1881         initialized by association::association.
1883         * tmac/Makefile.sub: Avoid using temporary files when installing.
1885         * troff/env.cc (environment::set_font): Make bad font number a
1886         warning.
1888         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1890         * Makefile.in (datadir): Use share rather than lib.
1892         * groff/groff.cc (basename): Rename to xbasename.
1894 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1896         * Makefile (CCLIBS): Don't use.
1897         * Makefile.ccpg: Likewise.
1899         * acgroff.m4: Rename to...
1900         * aclocal.m4: Modify extensively for autoconf 2.
1901         * configure.in: Likewise.
1902         * Makefile.in: Likewise.
1904         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1905         defined.
1906         (xstrsignal): Check for definition of NSIG. Conditionalize
1907         on SYS_SIGLIST_DECLARED.  Make return type const.
1909 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1911         * troff/input.cc (interpolate_macro): Rephrase missing space
1912         warning.
1914 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1916         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1917         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1918         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1919         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1920         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1921         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1922         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1923         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1924         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1925         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1926         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1927         Fix 'for' scoping.
1929 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1931         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1932         string_iterator.
1933         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1934         file.
1935         (macro_iterator::macro_iterator): Add additional argument.
1937 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1939         * troff/div.cc (vertical_size::vertical_size): In place of integer
1940         specifying line spacing use cunits specifying post vertical
1941         space.
1942         (macro_diversion::output, top_level_diversion::output): Likewise.
1943         * troff/div.h: Change declarations accordingly.
1944         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1945         field.
1946         (pending_output_line::pending_output_line,
1947         pending_output_line::output, environment::output,
1948         environment::output_line, environment::output_title,
1949         environment::hyphenate_line):  In place of
1950         integer specifying line spacing use cunits specifying post vertical
1951         space.
1952         (environment::environment): Add post_vertical_spacing and
1953         prev_post_vertical_spacing arguments.
1954         (environment::get_post_vertical_spacing): New function.
1955         (environment::total_post_vertical_spacing): New function.
1956         (environment::post_vertical_spacing): New function.
1957         (init_env_requests): Initialize pvs request and .pvs register.
1958         * troff/env.h: Change declarations.
1960 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1962         * tmac/tmac.pspic: Immediately remove the temporary file.
1964 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1966         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1967         height is specified.
1969 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1971         * tbl/table.c (struct vertical rule, class table_entry): Use int
1972         not short for start_row and end_row.
1974 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1976         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1977         functions.
1978         (diverted_space_node::reread, process_input_stack): Call
1979         trapping_blank_line() rather than blank_line().
1980         (init_input_requests): Bind "blm" to blank_line_macro().
1982         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1984 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1986         * troff/env.cc (environment::possibly_break_line): Require that
1987         width total excluding width of final space node be greater than
1988         the target text length.
1990 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1992         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1994 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1996         * troff/node.cc (charinfo_node): New class.
1997         (glyph_node, composite_node): Derive from charinfo_node.  Change
1998         member functions accordingly.
2000 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
2002         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2004 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
2006         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2008         * devps/generate/textmap (notsubset): Add.
2010         * tmac/tmac.a4: New file.
2012 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
2014         * pic/main.cc (had_parse_error): New variable.
2015         (do_picture, do_whole_file): Set had_parse_error if yyparse()
2016         returns non-zero.
2017         (main): Return 1 if had_parse_error is true.
2019 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
2021         * grolj4/lj4.cc (main): Avoid use of strtoul.
2023 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
2025         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2026         iso_8859_1 or $LESSCHARSET is latin1.
2028 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
2030         * hpftodit: New directory.
2031         * Makefile.in (CCPROGDIRS): Add hpftodit.
2032         * devlj4/generate: New directory.
2034 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
2036         * configure.in: Don't use AC_VFORK.
2037         * groff/pipeline.c (run_pipeline): Use fork() always.
2039 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
2041         * grops/ps.cc (main): Use %1 not %s in error message for -w.
2043         * Makefile.in (CCPROGDIRS): Add grolj4.
2044         (DEVDIRS): Add devlj4.
2045         * grolj4, devlj4: New directories.
2046         * tmac/troffrc: Handle lj4.
2047         * tmac/tmac.lj4: New file.
2049 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
2051         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2053 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
2055         * troff/input.cc (do_if_request): At end of second string, switch
2056         environments before getting next token.
2058 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
2060         * devps/psstrip.sed: Split rule that strips whitespace on either
2061         side of delimiters.
2063 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
2065         * troff/node.h (font_family::make_definition): Add return value to
2066         declaration.  * troff/symbol.h (symbol::operator==,
2067         symbol::operator!=): Likewise.
2069 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
2071         * groff/groff.cc (main, help, synopsis): Handle -S.
2072         (possible_command::insert_arg): New function.
2074         * tmac/tmac.safer: New file.
2075         * tmac/msafer.man: New file.
2076         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2078 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
2080         * pic/pic.h, pic/main.cc (safer_flag): New variable.
2081         * pic/pic.y (placeless_element): Avoid unsafe operations if
2082         `safer_flag' is set.
2083         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2085 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
2087         * eqn/lex.cc (get_token): Put call to add_context() in block to
2088         work around Sun C++ 4.0 bug.
2090         * include/stringclass.h (operator +): Use ?: instead of `if' to
2091         work around Sun C++ 4.0 bug.
2093 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
2095         * tbl/main.cc (process_format): Accept - as a synonym for the _
2096         key letter.
2098         * libbib/index.cc (minus_one): Don't declare as const.
2100 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
2102         * troff/input.cc (get_char_for_escape_name): Push back a newline.
2104 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
2106         * troff/input.cc (write_macro_request): New function.
2107         (init_input_requests): Bind write_macro_request to writem.
2109 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
2111         * tmac/tmac.s (@EN): Turn filling back on even if there was no
2112         equation.
2114         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2116         * tmac/tmac.s (@TS): Renamed from TS.
2117         (TS): Call LP then TS again.
2118         (cov*ab-init): Alias @TS to TS.
2120         * tmac/tmac.s: Allow QP or RS to initialize.
2122         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
2123         Move initializations of PS and LL here.
2124         (par@init): Don't initialize HY.  Avoid changing environment 0.
2125         (par*env-init): Don't all par@reset.
2127 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
2129         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2131 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
2133         * Makefile.in (MDEFINES): Add LDFLAGS.
2134         (LDFLAGS): Add definition line.
2136 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
2138         * troff/input.cc (get_optional_char): Split off error check into...
2139         (check_missing_character): New function.
2140         * troff/token.h: Declare it.
2141         * troff/env.cc (margin_character): Don't call get_optional_char.
2142         Only call tok.next() after making the node.
2144         * include/lib.h (getopt): Make 2nd argument char *const *.
2146 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
2148         * nroff/conftest.sh: Deleted.
2150 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
2152         * pic/make-dos-dist: Deleted.
2154 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
2156         * devps/psstrip.sed: Strip comments before stripping trailing
2157         white space.
2159 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
2161         * Version 1.09 released.
2163 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
2165         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2167 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
2169         * libgroff/font.cc (font::load_desc): Fix typo in error message.
2171 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
2173         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2174         about returning without a value.
2176         * troff/charinfo.h (charinfo::get_special_translation): Cast
2177         TRANSLATE_NONE to int.
2179         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2180         test.  Fix test so that it works with n unsigned.
2182         * pic/pic.y (defaults_table): Fully bracket initializer.
2183         * pic/lex.cc (lookup_keyword): Likewise.
2184         * eqn/lex.cc (token_table, def_table): Likewise.
2185         * eqn/box.cc (param_table): Likewise.
2186         * troff/input.cc (warning_table): Likewise.
2187         * libgroff/font.cc (table): Likewise.
2188         * grops/ps.cc (ps_printer::special): Likewise.
2189         * grops/psrm.cc (resource_manager::process_file): Likewise.
2190         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2191         * refer/command.cc (command_table): Likewise.
2192         * addftinfo/addftinfo.cc (param_table): Likewise.
2194         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2195         about temp's being unused.
2196         (unused): New function.
2198         * groff/pipeline.cc: Declare c_fatal.
2200         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2201         uchar.
2203         * libbib/index.cc (index_search_item::load): Prevent compiler
2204         warnings about fd_closer's being unused.
2205         (unused): New function.
2207 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2209         * troff/input.cc (copy_mode_error): Make `prefix' static.
2210         Fix typo.
2212         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2213         defined.
2214         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2215         HAVE_CC_OSFCN_H and modify accordingly.
2217         * troff/input.cc (init_charset_table): radicalex overlaps
2218         horizontally.
2220         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2221         udodo!hans@relay.NL.net).
2222         * groff/configure.in: Call it.
2224         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2225         * groff/configure.in: Call it.
2226         * include/lib.h: Conditionalize declaration of pclose.
2228         * troff/div.cc (last_page_number): New global variable.
2229         (top_level_diversion::begin_page): Exit if we just printed the
2230         last page.
2231         * troff/div.h (last_page_number): Declare it.
2232         * troff/input.cc (parse_output_page_list): Set last_page_number.
2234         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2235         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2236         tmac/tmac.X: Likewise.
2237         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2238         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2240 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2242         * tmac/doc-ditroff (hK): Remove groff specific code which
2243         prevented page-breaks between separate manual entries.  If this is
2244         the first page, don't set the page number to 1.
2246         * acgroff.m4 (GROFF_POSIX): New macro.
2247         * configure.in: Use it.
2249         * troff/node.cc (class real_output_file,
2250         real_output_file::real_output_file,
2251         real_output_file::~real_output_file): Conditionalize use of
2252         popen/pclose on POPEN_MISSING.
2253         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2254         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2255         (pipe_source): Similarily.
2257         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2259         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2260         presence of declarations by trying to compile example with
2261         conflicting declarations.  (gcc only gives a warning for missing
2262         declarations.)
2264 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2266         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2267         (from Ulrich Lauther).
2269 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2271         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2273 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2275         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2276         pointers and ints have different sizes.
2278 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2280         * tmac/tmac.s (par*env-init): Call par@reset.
2282 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2284         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2285         tag.
2286         (par*push-tag-env, par*pop-tag-env): New macros.
2288 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2290         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2291         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2293         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2294         comment.  Include <time.h>.
2296 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2298         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2299         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2300         lines.
2302 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2304         * troff/input.cc (read_request): Only print a prompt if reading
2305         from the terminal.  Also clearerr on EOF if reading from the
2306         terminal.  Declare isatty.
2308 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2310         * refer/label.y: Rename map_t to map_func and extractor_t to
2311         extractor_func.
2313 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2315         * include/assert.h: Don't use volatile.
2316         * libgroff/assert.cc: Likewise.
2318 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2320         * troff/input.cc (abort_request): Look at character in tok before
2321         calling get_copy().
2323 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2325         * troff/troff.h (NO_RETURN): Deleted.
2326         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2327         * troff/input.cc (exit_troff): Likewise
2329         * Makefile.in: Remove `Making ...' messages since GNU make now
2330         gives these. 
2332         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2334 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2336         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2337         to constant 1 inch.
2339 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2341         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2343 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2345         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2346         MARK_REG if there was no left delimiter.
2348 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2350         * pic/troff.cc (troff_output::text): Set line thickness to
2351         relative before outputting text.
2353         * tmac/tmac.e (@k): Don't zero ?T.
2354         ((z): Likewise.
2356 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2358         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2360 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2362         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2363         Paul Eggert).
2365 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2367         * troff/input.cc (ignoring): New variable.
2368         (ignore): Set ignoring during call to do_define_macro.
2369         (do_define_macro): Clear ignoring before interpolating terminating
2370         macro.
2371         (copy_mode_error): New function.
2372         (get_char_for_escape_name, read_long_escape_name,
2373         interpolate_arg): Use copy_mode_error.
2374         (warning_table): Add WARN_IG.
2375         * troff/troff.h (WARN_IG): Declare.
2376         (WARN_TOTAL): Change accordingly.
2378         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2379         * groff/groff.cc (strsignal): Delete declaration.
2381 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2383         * troff/div.cc (page_offset): Use 'm' as default scaling.
2385 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2387         * nroff/nroff.sh: Ignore -u.
2389 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2391         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2393 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2395         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2396         drawing box.
2397         (B2): With -Tascii, leave additional vertical space before
2398         and after. Ensure that the left and right indent is restored to
2399         what it was even if the point size changes.  Don't call
2400         par@finish. Change the indent, line length and title length
2401         directly.  With -Tascii, make the width of the box 1n less.
2402         (B1): Remember 1n at the current point size.  Don't call
2403         par@reset.  Change the indent, line length and title length
2404         directly.  Ensure that the temporary indent is preserved.
2405         (par*box-mark-top): Turn off no spacing mode.
2407 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2409         * Makefile.in (dist): Use .gz suffix.
2411 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2413         * troff/input.cc (main): Add return 0.
2414         * pic/main.cc (main): Use return instead of exit.
2415         * tbl/main.cc (main): Likewise.
2416         * eqn/main.cc (main): Likewise.
2417         * grops/ps.cc (main): Likewise.
2418         * grotty/tty.cc (main): Likewise.
2419         * groff/groff.cc (main): Likewise.
2420         * grodvi/dvi.cc (main): Likewise.
2421         * refer/refer.cc (main): Likewise.
2422         * indxbib/indxbib.cc (main): Likewise.
2423         * lkbib/lkbib.cc (main): Likewise.
2424         * soelim/soelim.cc (main): Likewise.
2425         * addftinfo/addftinfo.cc (main): Likewise.
2426         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2427         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2429         * troff/token.h (process_input_stack): Don't declare as static.
2430         * troff/input.cc: Likewise.
2432         * troff/node.c (invalidate_fontno): Make it a static member of
2433         class font_family.  Change callers.
2434         * troff/node.c: Change declaration.
2436         * tbl/main.cc (struct input_entry_format): Add explicit public
2437         specifier.
2438         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2439         struct double_hline_stuff): Likewise.
2440         * tbl/table.h (struct entry_format): Likewise.
2441         * pic/object.h (struct saved_state): Likewise.
2443         * include/stringclass.h: Add forward declarations of friend
2444         functions that are later declared as inline.  Don't include inline
2445         specifier in friend declaration.
2447         * libgroff/lib.h: Declare popen and pclose.
2448         * acgroff.m4 (GROFF_POPEN): New macro.
2449         * configure.in: Call it.
2451         * include/lib.h (PI): New constant. Undef first if necessary.
2452         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2453         * grops/ps.cc (degrees, radians): Likewise.
2454         * libgroff/font.cc (font::get_skew): Likewise.
2456         * grops/ps.cc (is_ascii): New function.
2457         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2458         isprint.
2459         (ps_printer::define_encoding): Use csspace.
2460         * libgroff/strtol.c (ISASCII): New macro.
2461         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2462         Use ISASCII rather than isascii.
2463         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2464         * libgroff/cset.cc: Likewise.
2465         * libdriver/input.cc: Include cset.h.
2466         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2467         than isdigit().
2469         * refer/refer.cc (main): Use %ld rather than %d for longs.
2471         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2472         S_ISREG macro.
2474         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2476 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2478         * troff/input.cc (hyphenation_code): Skip white space between
2479         char/code pairs.
2481 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2483         * tbl/table.h (table::entry_list_tailp): New member.
2484         (table::table): Initialize it.
2485         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2486         behaviour.
2488 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2490         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2491         with negative horizontal positions. Remove casts of glyph::hpos to
2492         int.
2493         (USHRT_MAX): Delete definition.
2494         (SHRT_MAX, SHRT_MIN): New definitions.
2495         (glyph::hpos): Change type to short.
2496         (tty_printer::end_page): Output multiple backspaces if necessary.
2497          Remove casts of glyph::hpos to int.
2498         
2499 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2501         * tmac/tmac.s (@RT): New definition.
2503 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2505         * refer/refer.cc (do_file): Make sure current_filename is set when
2506         filename is "-".
2508         * pic/common.cc (common_output::dot_line): Handle zero length
2509         lines.
2511 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2513         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2514         (par@init): Initialize \n[HY].
2516 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2518         * troff/dictionary.cc (dictionary::remove): Continue when
2519         r < j < i.
2521 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2523         * Makefile.com (.y.cc): Avoid ending up with two versions of
2524         $(YTABH).
2526 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2528         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2529         (\(,C): Likewise.  Also fix typo.
2531 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2533         * lib.h: Delete extraneous semi-colon.
2535         * Add pso request: `so' from a pipe.
2536         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2537         (file_iterator::close): New function.
2538         (file_iterator::~file_iterator, file_iterator::next_file): Use
2539         file_iterator::close.
2540         (file_iterator::backtrace): Say `process' rather than `file' when
2541         the stream is popened.
2542         (pipe_source): New function.
2543         (init_input_requests): Bind ".pso" to pipe_source.
2545 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2547         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2549         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2550         digits in lower case.
2552 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2554         * Version 1.08 released.
2556         * Makefile.in (dist): Insert || true after ln -s commands that
2557         might fail.
2559         * mm: Update to mm 1.16.
2561         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2562         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2563         SH_SCRIPT_SED_CMD.
2564         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2565         MDEFINES.
2566         * nroff/Makefile.sub (nroff): New target.
2567         (install_data): Install nroff.
2568         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2569         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2571 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2573         * eqn/Makefile.sub (neqn): Add chmod +x.
2575         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2577 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2579         * troff/input.cc (string_iterator::string_iterator()): Initialize
2580         lineno and count.
2582 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2584         * troff/div.cc (macro_diversion::space,
2585         top_level_diversion::space): Don't set high_water_mark.
2586         (macro_diversion::output, top_level_diversion::output): Don't
2587         include post line space in high water mark.
2589 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2591         * eqn/eqn.y: Don't define YYDEBUG.
2592         * pic/pic.y: Likewise.
2594 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2596         * tmac/tmac.e ([3): Add space after comma following editors.
2597         Change double spaces to single spaces.
2598         ([4): Change double spaces to single spaces.
2600         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2601         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2602         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2603         after %!PS-Adobe- (for Newsprint).
2605         * troff/div.cc (top_level_diversion::begin_page): When
2606         before_first_page is 1, set page_number to 1.
2608 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2610         * eqn/box.cc (box::top_level): Protect equation with \&.
2612 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2614         * groff/groff.cc (possible_command::set_name): Delete old name.
2616         * groff/groff.cc (possible_command::~possible_command): Use
2617         a_delete.
2619         * troff/node.cc (troff_output_file::begun_page): New member.
2620         (troff_output_file::troff_output_file): Initialize it.
2621         (troff_output_file::really_begin_page): Only output V command if a
2622         page has been begun.
2624         * pic/pic.y (placeless_element): Delete argument to PRINT after
2625         use.
2627 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2629         * Make wrapman work.
2630         * troff/div.h (class top_level_diversion): Replace
2631         first_page_begun by before_first_page (with opposite sense).
2632         * Change first_page_begun to before_first_page inverting sense.
2633         * troff/div.cc (class nl_reg): New class.
2634         (init_div_requests): Use class nl_reg for \n(nl.
2635         (top_level_diversion::begin_page): Don't call
2636         output_file::begin_page if before_first_page is 2;
2637         reset before_first_page afterwards.  If have_next_page_number is
2638         false, then always increment page_number.
2639         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2640         Restore compatibility mode after loading, and then disable
2641         compatibility mode in TH.
2643 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2645         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2646         past last line.
2647         * troff/node.h (output_file::trailer): Declare.
2648         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2649         * troff/node.cc (output_file::trailer): New function.
2650         (troff_output_file::~troff_output_file): Move most code into...
2651         (troff_output_file::trailer): New function.
2652         (class troff_output_file): Delete page_length member. Declare
2653         trailer().
2654         (troff_output_file::really_begin_page): Use current page length
2655         for final V command.
2657         * tbl/main.cc (struct options): New decimal_point_char member.
2658         (options::options): Initialize this.
2659         (process_options): Implement decimalpoint option.
2660         (process_data): Pass decimal_point_char option to table::table.
2661         * tbl/table.h (class table): New decimal_point_char member.
2662         (table::table): Add additional argument.
2663         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2664         second argument specifying decimal point character.  Use this
2665         instead of '.'.
2666         (table::table): Initialize decimal_point_char.
2667         (table::add_entry): Change call to find_dot.
2669         * troff/input.cc (get_copy, token::next): Implement \V.
2670         (interpolate_environment_variable): New function.
2672 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2674         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2675         * pic/pic.y: Likewise.
2677         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2678         Add casts to int.
2679         * refer/ref.cc (reference::insert_field, reference::delete_field):
2680         Likewise.
2681         * troff/number.cc (parse_term): Likewise.
2683         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2684         * configure.in: Use GROFF_PROG_YACC.
2686         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2687         and g++.
2688         * Makefile.in (OPTIMIZE): New define.
2689         (DEBUG): Empty by default.
2690         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2692         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2693         (GROFF_ARRAY_DELETE): Likewise.
2694         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2696         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2698         * devps/psstrip.sed: Use different delimiter on last line (so that
2699         it works with BSD 4.4 sed.)
2701 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2703         * devps/psstrip.sed: Delete comments.
2705         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2706         optind, opterr, optarg.
2707         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2708         opterr, optarg.
2710 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2712         * Makefile.in (check): Dummy target.
2714 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2716         * Version 1.07 released.
2718         * Integrate mm 1.11.
2720         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2721         where start_col was meant.
2723 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2725         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2727 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2729         * troff/input.cc (token::next): Make \z\o'...' and similar things
2730         work.
2732         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2733         constants.
2734         (environment): Add margin_character_flags member.
2735         * env.cc (environment::environment(symbol),
2736         environment::environment(const environment *): Initialize
2737         margin_character_flags.
2738         (margin_character): Rewrite.
2739         (environment::output_line): Add a margin character if
2740         margin_character_flags is non-zero.  Turn off the
2741         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2742         zero, use margin_character_node without copying and then set
2743         margin_character_node to 0.
2745         * devps/DESC.in: Change minimum size to 1000.
2747 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2749         * troff/symbol.h (symbol::hash): Change return type to unsigned
2750         long.
2751         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2752         Add casts to int.
2754         * test-groff: Use -r rather than -x.
2756         * grops/psfig.diff: Include in distribution again.
2758 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2760         * Makefile.in (dist): Use gzip.
2762 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2764         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2765         unistd.h as well as in stdlib.h.
2766         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2767         defined; otherwise include <sys/types.h> and <unistd.h> if
2768         UNISTD_H_DECLARES_GETOPT is defined.
2770         * configure.in: use builtin(include, ... rather than include(...
2771         * configure: Regenerate with autoconf 1.3.
2773         * libdriver/print.cc (printer::adjust_arc_center): Use new
2774         algorithm suggested by Andy Fyfe.
2776         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2777         * include/printer.h: Declare this.
2778         * grops/ps.cc (ps_printer::draw): Use it.
2779         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2781 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2783         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2785 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2787         * eqn/main.cc (main): Handle "eqn -".
2789 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2791         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2793         * mm: Integrate version 1.08.
2795         * pic/troff.cc (troff_output::finish_picture): Set
2796         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2797         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2798         if it's not defined. Check whether the register is non-zero rather
2799         than whether it's not defined.
2800         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2802         * indxbib/indxbib.cc: Move all signal handling into...
2803         * indxbib/signal.c: New file.
2804         * configure.in: Call AC_RETSIGTYPE.
2806         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2807         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2808         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2810         * troff/input.cc (token::token, token::operator=): Work round SGI
2811         C++ bug.
2812         * pic/object.cc (position::position): Likewise.
2814 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2816         * pic/pic.h: Move declaration of hypot().
2818 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2820         * pic/pic.h: Declare hypot().
2822         * pic/pic.h: Define M_PI if necessary.
2824 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2826         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2827         `.ta T' feature.
2829         * devps/prologue.ps (RE): Handle the possibility that the old font
2830         doesn't have a FontName entry.
2832 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2834         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2835         (@C): Use @fam not fam.
2837 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2839         * lookbib/lookbib.cc (main): Change type of start to const char *.
2840         * lkbib/lkbib.cc (main): Likewise.
2842         * eqn/lex.cc (definition::definition): Don't use member
2843         initializer syntax for members of anonymous unions.
2845         * troff/input.cc (input_stack::backtrace): Change type of to const
2846         char *.
2848 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2850         * include/stringclass.h (class string): Declare inline friend
2851         functions as inline in class declaration.
2852         * troff/hvunits.h (class hunits, class vunits): Likewise.
2853         * include/refid.h (class reference_id): Likewise
2854         * troff/troff.h (points_to_units(units), scale(units, double)):
2855         Delete declarations.
2856         * libdriver/input.cc (get_char): Delete declaration.
2857         * include/lib.h: Change 2nd argument of getopt from const char **
2858         to char **.
2859         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2860         char **' before assigning to a `const char **'.
2861         * tbl/table.cc: Delete extra declarations of prints().
2863 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2865         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2866         char **' before assigning to a `const char **'.
2868         * libgroff/errarg.cc (errarg::errarg): Don't use member
2869         initializer syntax for members of anonymous unions.
2871 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2873         * mm: Integrate version 1.07.
2875 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2877         * troff/input.c (translate2): Rename to
2878         (translate_no_transparent).
2879         (init_input_requests): Rename tr2 to trnt.
2881 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2883         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2884         (charinfo::set_translation, charinfo::set_special_translation):
2885         Add second argument that specifies value for
2886         transparent_translate.
2887         (charinfo::get_translation, charinfo::get_special_translation):
2888         Add optional second argument that specifies whether translation is
2889         being used for transparent throughput.
2890         * troff/input.cc (charinfo::set_translation,
2891         charinfo::set_special_translation): Handle second argument.
2892         (charinfo::charinfo): Initialize transparent_translate.
2893         (translate): Split main part off into
2894         (do_translate): New function.  Pass argument saying whether
2895         translation applies to transparent throughput.
2896         (translate2): New request.
2897         (init_input_requests): Bind translate2 to `tr2'.
2899 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2901         * tbl/table.h (class table): Add `nokeep' flag.
2902         * tbl/main.cc (process_options): Handle `nokeep' option.
2903         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2904         table::do_bottom): Don't output keep/release macro definitions or
2905         calls when `nokeep' option has been specified.
2907 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2909         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2911 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2913         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2914         block_entry::divert, alphabetic_block_entry::divert): Add extra
2915         argument giving column separation.
2916         (table::compute_widths): Pass column separation to
2917         table_entry::divert().
2918         (block_entry::do_divert): If an entry spans multiple columns and a
2919         minimumum width has been specified for each column, then set the
2920         line length to the sum of the widths (plus possibly the column
2921         separations).
2923         * troff/input.cc (set_escape_char): Don't set the escape_char
2924         until after calling has_arg().
2926 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2928         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2929         case.
2931         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2932         in case where r > nrows - 1.
2934         * tbl/table.cc (BODY_HEIGHT): Deleted.
2935         (LINE_SEP): New definition.
2936         (table::print_single_hline, table::print_double_hline,
2937         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2938         table::do_row, table::do_top): Use LINE_SEP space before a line
2939         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2941         * tbl/table.cc (text_entry::print_contents): New function.
2942         (text_string_name, right_text_string_name): Deleted.
2943         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2944         (simple_text_entry::do_width, numeric_text_entry::do_width,
2945         alphabetic_text_entry::do_width): Don't store the contents of the
2946         entry in a string.
2947         (left_text_entry::simple_print, right_text_entry::simple_print,
2948         center_text_entry::simple_print,
2949         alphabetic_text_entry::simple_print,
2950         numeric_text_entry::simple_print): Print the entry directly
2951         instead of using the stored string.
2953 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2955         * devps/Makefile: Strip PostScript files.
2956         * devps/prologue: Rename to...
2957         * devps/prologue.ps.
2958         * devps/psstrip.sed: New file.
2959         * devps/download: Use .pfa rather than .ps for installed versions
2960         of fonts.
2962 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2964         * troff/env.cc (input_trap): Give a warning if the argument is out
2965         of range.
2967         * troff/env.cc (adjust): Treat negative argument as missing. Round
2968         argument > 5 down to 5.
2970         * troff/env.cc (center, right_justify): Make negative argument zero.
2972         * troff/div.cc (page_offset, vertical_position_traps): Treat
2973         invalid argument as missing.
2974         * troff/env.cc (line_spacing, line_length, title_length, indent,
2975         underline, hyphen_line_max_request, control_char,
2976         no_break_control_char, widow_control_request, adjust, input_trap,
2977         point_size): Likewise.
2978         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2979         constant_space): Likewise.
2980         * troff/input.cc (compatible, shift, warn_request,
2981         set_escape_char): Likewise.
2983         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2984         * tbl/table.cc (table::table): Likewise.
2986         * Makefile.dev (install_dev): depends on $(DEVFILES).
2988 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2990         * devX75, devX75-12, devX100, devX100-12: New directories.
2991         * Makefile.in: Add these to DEVDIRS.
2993         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2994         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2995         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2996         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2997         targets.
2998         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2999         (uninstall): New target.
3000         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3001         uninstall_prog, uninstall_dev): New targets.
3003         * troff/div.cc (return_request): Treat an invalid argument as
3004         missing.
3006 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
3008         * tmac/tmac.e ((f): Set up the environment even when there's a
3009         current diversion.  Transperently throughput a call to @N.
3010         (@N): New macro.
3012 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
3014         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3015         up to vertical resolution.
3017         * tbl/table.cc (table::do_row): Change row number after printing
3018         stuff list.
3020         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3022 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
3024         * Rename CHANGES to NEWS.
3026 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
3028         * libgroff/new.cc (operator new): Avoid calling malloc(0).
3030 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
3032         * man.ultrix: Removed.
3034 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
3036         * Makefile.comm (extraclean): Delete files whose names begin with
3037         `='.
3039         * pic/troff.cc (troff_output::text): Fix typo in implementation of
3040         aligned text.
3042 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
3044         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3045         * troff/div.cc (page_length, need_space, space_request): Treat
3046         invalid optional argument as missing.
3047         * troff/env.cc (number_lines): If the first argument is present
3048         but not a number, turn on line numbering, don't change the next
3049         line number and parse the remaining arguments.
3051         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3053 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
3055         * eqn/box.h: Change declaration accordingly.
3056         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
3057         the specified size was bad but don't give an error.  Check for
3058         overflow.
3059         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3060         * eqn/lex (do_size): Likewise.
3062 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
3064         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3065         compatible headers.
3067 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
3069         * tbl/table.cc (table::init_output): Improve error message when
3070         table won't fit on one page.
3072 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
3074         * pic/troff.cc (troff_output::start_picture): Generate line
3075         containing a horizontal motion equal to the width of the picture.
3077         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3078         using GROFF_COMMAND_PREFIX environment variable.
3080 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
3082         * mdate.sh: Use $NF rather than $(NF).
3084 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
3086         * pic/main.cc (main):  Use %1 not %c in argument to warning.
3088         * eqn/main.cc (main): Output code to check that geqn was given the
3089         correct -T option.
3091 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
3093         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3094         `ln -s ../Makefile .; make; rm -f Makefile'.
3096         * troff/hyphen: Rename to...
3097         * troff/hyphen.us:
3098         * troff/input.cc (main): Delete -H option. Don't call
3099         read_hyphen_file().
3100         * troff/env.cc: Include searchpath.h and macropath.h.
3101         (exception_dictionary): Deleted.
3102         (ht): Deleted.
3103         (read_hyphen_file): Deleted.
3104         (hyphenation_language): New struct.
3105         (class trie, class hyphen_trie): Move declarations up.
3106         (trie_node::~trie_node): Deleted.
3107         (trie::delete_trie_node): New function.
3108         (trie::do_delete): New pure virtual function.
3109         (hyphen_trie::do_delete): New function.
3110         (trie::~trie): New function.
3111         (hyphen_trie::~hyphen_trie): New function.
3112         (trie::clear): No need to chcek that tp is not 0.
3113         (current_language, language_dictionary): New variables.
3114         (hyphen_word): Give an error if no current language.  Use
3115         exceptions dictionary in current language.
3116         (hyphen_trie::read_patterns_file): Find file using macro_path.
3117         Allow comments (starting with %) in patterns file.  Don't make it
3118         a fatal error if the file can't be found.
3119         (hyphenate): Return if no current language.  Get the exceptions
3120         dictionary and the hyphenation patterns from the current language.
3121         (set_hyphenation_language): New variable.
3122         (hyphenation_patterns_file): New function.
3123         (hyphenation_language_reg): New class.
3124         (hyphenation_language_reg::get_string): New function.
3125         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3126         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
3127         register.
3128         * groff/groff.cc (main, help, synopsis): Delete -H option.
3129         * include/Makefile.sub: Don't define HYPHENFILE.
3130         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3131         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3132         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3133         hyphenation patterns.
3135 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
3137         * eqn/neqn.sh: New file.
3138         * eqn/Makefile.sub: Handle neqn.sh.
3140         * eqn/eqn.h: Declare `nroff' variable.
3141         * eqn/box.cc (param_table): Add `nroff' param.
3142         (nroff): Define it.
3143         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3144         variable.
3145         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3147         * troff/troff.h (WARN_FONT): New warning.
3148         (WARN_TOTAL): Change accordingly.
3149         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3150         (warning_table): Add WARN_FONT.
3151         * troff/node.cc (mount_font_no_translate): Pass argument to
3152         font::load_font.  If this is non-zero, give a warning.
3153         Don't give an error message when accessing a font that has already
3154         been found to be invalid.
3155         * include/font.h (font::load, font::load_font): Add additional
3156         optional argument which suppresses error message if the font is
3157         not found.
3158         * libgroff/font.cc (font::load_font): Handle additional argument.
3159         (font::load): Add additional argument. If this is non-null, set it
3160         to 1 and don't give error message.
3162         * include/printer.h (printer::end_page): Add argument giving
3163         length of page.
3164         * libdriver/input.cc (do_file): Pass this.
3165         * grops/ps.cc (ps_printer::end_page): Add argument.
3166         * grodvi/dvi.cc (dvi_printer::end_page,
3167         draw_dvi_printer::end_page): Add argument.
3168         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3169         columns_per_page members. New member nlines.
3170         (DEFAULT_LINES_PER_PAGE): Deleted.
3171         (tty_printer::tty_printer): Don't compute lines_per_page from
3172         font::paperlength. Don't compute columns_per_page from
3173         font::paperwidth.
3174         (tty_printer::add_char): Don't check horizontal position against
3175         columns_per_page. Grow glyphs vector if neccessary.
3176         (tty_printer::end_page): Add argument giving page_length in units.
3177         Discard lines past end of page.
3179 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3181         * tmac/tmac.tty-char: Fix definition of \(/l.
3183         * tmac/tmac.X: Define \(en.
3185 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3187         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3188         lpq, then use lp rather than lpr.
3190         * tmac/tmac.s (par@reset): Don't call `ad'.
3191         (par*env-init): Call `ad'.
3193 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3195         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3196         date.
3198         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3199         * indxbib/indxbib.cc: Likewise.
3201 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3203         * libgroff/putenv.c: New file.
3204         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3205         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3206         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3207         stdlib.h with AC_HAVE_HEADERS.
3209 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3211         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3212         does not exist.
3214 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3216         * eqn/box.cc (gsize): Make it an int.
3217         (set_gsize): Parse argument handling increment or decrement.
3218         (box::top_level): Convert gsize to a string.
3220         * troff/input.cc (exit_troff): Make buf unsigned char [].
3221         Call to make_temp_iterator casts buf to char*.
3223         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3225         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3226         * Makefile.cpg (depend.temp): Likewise.
3228         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3230         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3232 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3234         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3236 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3238         * Version 1.06 released.
3240         * Integrate mm 1.04.
3242 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3244         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3246 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3248         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3249         ligatures command.
3250         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3251         afmtodit. Regenerate.
3253         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3254         @f back past the current position.
3256         * tmac/tmac.e: Change calls to @R so that comments are not part of
3257         arguments.
3259 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3261         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3263         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3264         check that we can link a call to a function declared in <stdio.h>.
3265         (GROFF_UNISTD_H): New macro.
3266         * configure.in: Call it.
3267         * Makefile.in: Document it.
3268         * include/posix.h: New file.
3269         * troff/troff.h: Don't include <osfcn.h>
3270         * troff/input.cc: Include posix.h.
3271         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3272         osfcn.h.
3273         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3274         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3275         <fcntl.h>.
3276         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3277         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3278         * libbib/search.cc (O_RDONLY): Delete definition.
3279         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3280         Don't include <osfcn.h>.
3282         * acgroff.m4 (GROFF_TIME_T): New macro.
3283         * configure.in: Call it.
3284         * Makefile.in: Document it.
3286         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3287         * configure.in: Call it.
3288         * Makefile.in: Document -DTRADITIONAL_CPP.
3289         * include/ptable.h: Don't include generic.h.
3290         (name2): Define it.
3292         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3293         Afterwards remove [T1 and [T2.
3294         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3295         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3296         (ref*add-T2): Renamed from ref*add-T.
3297         (ref*add-T1): New macro.
3299 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3301         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3303         * libbib/index.cc: Include <fcntl.h>.
3304         (O_RDONLY): Define if necessary.
3305         (make_index_search_item, index_search_item_iterator::get_tag,
3306         index_search_item::check_files): Use O_RDONLY.
3307         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3308         (O_RDONLY): Define if necessary.
3309         (search_list::add_file): Use O_RDONLY.
3310         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3311         <sys/stat.h>.
3312         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3313         (main): Use these.
3315         * libbib/index.cc (S_ISREG): Define it if necessary.
3316         (index_search_item::load): Use S_ISREG.
3318         * include/driver.h: Include <errno.h>.
3320 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3322         * eqn/box.cc (body_height): Increase default value to 85.
3323         (body_depth): Increase default value to 35.
3325 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3327         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3328         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3329         protected from expansion with \E.
3331         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3333         * Makefile (Makefile): New target.
3335         * Makefile.sub (configure, distfiles): New targets.
3337         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3338         construct.
3340 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3342         * eqn/box.cc (param_table): Add body_height and body_depth.
3344         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3346 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3348         * psbb/Makefile.sub: Don't link with libgroff.a.
3350         * acgroff.m4 (GROFF_PUTENV): New macro.
3351         * configure.in: Call GROFF_PUTENV.
3352         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3353         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3354         is defined.
3356         * troff/env.cc (distribute_space): Rename force_forward argument
3357         to force_reverse.  Reverse the list if force_reverse is true.
3359 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3361         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3363         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3364         height or depth to be negative.  Guard against SUP_RAISE quantity
3365         being negative.
3367 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3369         * devps/generate/textmap: Add `an' (arrowhorizex).
3370         * tmac/tmac.ps: \(an overlaps horizontally.
3371         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3373         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3374         * devps/textmap: Add arrowvertex.
3375         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3376         updownarrow delimiters.
3377         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3379         * tbl/table.cc (simple_entry::position_vertically,
3380         block_entry::position_vertically):  For a centered entry, perform
3381         the motion in two stages.
3383         * refer/refer.cc (split_punct): Don't call lookup_token if there
3384         is no token.
3386 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3388         * troff/input.cc (token::next): Delete token_node after copying
3389         token.
3391         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3392         cur_point_size.
3394         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3396         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3398 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3400         * grops/ps.cc (usage): -b option takes an argument.
3402         * devps/prologue (PLG): New procedure.
3403         * grops/ps.cc (main, usage): New -g option.
3404         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3405         length using PLG.
3407 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3409         * include/cset.h: Include <limits.h> if we have it.
3411         * libgroff/illegal.cc: New file.
3412         * include/lib.h (illegal_input_char): Use table.
3413         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3414         * pic/lex.cc (ARG1): Renumber to 14.
3415         * eqn/lex.cc (ARG1: Likewise.
3417         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3418         (eg 1.05.90) correctly.
3420 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3422         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3423         Rename $r and $R registers to $v and $V.
3424         ($r, $R): Initialize to 0.
3425         (@v, @V): New macros.
3426         (sz): Call @v.
3427         (@M): Call @V.
3429         * troff/input.cc (main, usage): Add -R option that says not to
3430         load troffrc.
3431         * eqn/main.cc (main, usage): Rename -n to -R.
3433 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3435         * devps/DESC.in: Leave font positions 5-9 blank.
3436         * devdvi/DESC.in: Likewise.
3438         * grog/grog.pl: Handle `.PS <file' correctly.
3440         * troff/input.cc (input_stack::push): Improve error message when
3441         input stack limit exceeded.
3443 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3445         * refer/refer.cc (main): Fix typo in handling of `a' option.
3447         * refer/refer.cc (do_bib): In state START after a newline remain
3448         in state START.
3450         * groff/groff.sh: Deleted.
3451         * groff/Makefile.sub: Delete handling of groff.sh.
3453         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3454         to determine whether to use \X'ps:...'.
3455         * tmac/troffrc: Set 0p register to 0.
3456         * tmac/tmac.ps: Set 0p register to 1.
3458         * groff/groff.cc: Support -X option. Give warning for -TXps and
3459         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3460         * tmac/troffrc: Support -r.X=1.
3462         * pic/troff.cc (troff_output::dot): Don't test
3463         zero_length_line_flag.
3465 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3467         * include/lib.h: Declare getopt() and friends unless
3468         STDLIB_H_DECLARES_GETOPT is defined.
3470         * doc/chars.tr: Delete.
3471         * man/groff_char.man: New file.
3473 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3475         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3476         user has changed register format.
3478 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3480         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3481         `postpro' command in DESC file.  Get spooler command from `print'
3482         command in DESC file.  Execute spooler command with /bin/sh.
3484         * groff/groff.cc: Split Unix-specific parts into...
3485         * groff/pipeline.c: New file.
3487         * LICENSE: Delete.
3488         * COPYING: New file.
3489         * all files: Update copyright notices.
3491         * Rearrange files.  Redo Makefiles.  Use autoconf.
3493 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3495         * troff/input.c (charinfo_to_node_list): Interpret character
3496         definition with escape_char of `\'.
3498 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3500         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3501         Define INT_DIGITS as big enough for 64-bit integer.
3502         * lib/strtol.c: Don't include lib.h.
3503         * lib/lib.h: Delete ifdef __cplusplus stuff.
3505 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3507         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3508         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3509         get DESC from current directory.
3511 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3513         * tbl/main.c (main): Always reset the line number when reading
3514         from stdin.
3516         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3517         table::define_bottom_macro, table::do_row, table::do_top): Round
3518         vertical spacing up to vertical resolution.
3520 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3522         * ps/ps.h (enum resource_type): Avoid comma at end of
3523         enumerator-list.
3524         * dvi/dvi.c (class dvi_printer): Likewise.
3525         * dvi/tfmtodit.c (gf::load): Likewise.
3526         * refer/label.y (struct expression): Likewise.
3527         * refer/refer.c (class label_processing_state): Likewise.
3528         * refer/indxbib.c (do_file): Likewise.
3529         * troff/troff.c (enum warning_type): Likewise.
3530         * tbl/main.c (process_data): Likewise.
3531         * troff/charinfo.h (class charinfo):
3533 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3535         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3537 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3539         * groff.c: Move to new groff subdirectory.
3540         * groff/Makefile: New file.
3541         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3543         * man/mdate.sh: Use ls -L if supported.
3545         * Consolidate all header files produced by gendef into lib/defs.h.
3546         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3547         Don't include path.h.
3548         * lib/Makefile (path.h): Don't generate.
3549         * troff/input.c: Include defs.h. Don't include config.h.
3550         * troff/Makefile (config.h): Don't generate.
3551         * refer/index.h: Don't include suffix.h.
3552         * refer/index.c: Include defs.h.
3553         * refer/indxbib.c: Include defs.h.
3554         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3555         defs.h.
3556         * refer/Makefile (suffix.h, path.h): Don't generate.
3557         * groff.c: Don't include config.h. Include defs.h.
3558         * Makefile (config.h): Don't generate.
3559         (lib/defs.h): Generate.
3560         (topclean): Remove lib/defs.h.
3562 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3564         * lib/malloc.c, lib/getpagesize.h: Deleted.
3565         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3566         related stuff.
3567         * lib/Makefile: Delete malloc-related stuff.
3568         * lib/new.c: Workaround COOKIE_BUG if necessary.
3570         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3571         needed header files directly.
3572         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3573         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3575 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3577         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3578         argument.
3579         * lib/font (font::load_desc, font::load): Don't split argument of
3580         unknown command.
3581         (font::handle_unknown_font_command): Change type.
3582         * ps/ps.c (ps_font::handle_unknown_font_command,
3583         handle_unknown_desc_command): Change type.
3584         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3586 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3588         * lib/font.h (font::handle_unknown_font_command): Add file and
3589         line arguments.
3590         * lib/font.c (font::handle_unknown_font_command):
3591         * ps/ps.c (ps_font::handle_unknown_font_command):
3592         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3593         lineno arguments.  Use _with_file_and_line functions for error
3594         reporting.
3596         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3597         data member.
3598         * lib/font.c (font::set_unknown_desc_command_handler): New
3599         function.
3600         (font::load_desc): For unknown commands, call
3601         unknown_desc_command_handler if not null.
3602         * lib/font.h (class font): Declare them.
3603         (FONT_COMMAND_HANDLER): New typedef.
3604         * ps/ps.c (handle_unknown_desc_command): New function.
3605         (main): Set bflag if we had a -b option. Call
3606         font::set_unknown_desc_command_handler.
3607         (broken.h): Don't include.
3608         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3609         submake 
3610         * ps/devps/Makefile: Add `broken' command to DESC file using
3611         BROKEN_SPOOLER_FLAGS.
3613         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3615         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3617         * macros/tmac.e (@R, @S): New macros.
3618         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3619         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3620         Declare $H, $[0-9], .. macros with @S.
3621         Declare |0, |1, |2, |3 strings with @S.
3623         * macros/tmac.e (@S): Rename to @U.
3625         * macros/tmac.e (@z): Define @b and bp as empty instead of
3626         deleting them,
3628         * macros/tmac.e (@m): Deleted.
3629         (@h): Don't call @m.
3630         (@z): Don't set @m trap.
3632         * macros/tmac.e ($h, $f): Define |z as empty string.
3634         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3635         (@q): Likewise.
3637         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3638         removing them.
3639         ()f): Likewise for * register.
3641         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3642         argument is missing, don't change $R.  Call sr with three
3643         arguments when initializing.
3645 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3647         * macros/tmac.e (sr): New macro.
3648         Initialize $r and $R using sr.
3650         * macros/tmac.e (,): Delete \*(#[.
3652         * troff/env.c (set_tabs): Read the tab type even if the position
3653         is bad.  Allow the position of the first tab stop to be negative.
3655 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3657         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3658         _POSIX_VERSION.
3659         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3660         rather than -DPATHCONF_MISSING.
3661         * Makefile: Get rid of PATHCONF_MISSING.
3663         * refer/map.c: New file.
3664         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3665         to map_len.
3666         * refer/Makefile: Handle map.c.
3667         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3669 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3671         * Makefile: RANLIB should be `true' if there is no ranlib.
3672         * lib/Makefile (libgroff.a): Simplify.
3673         * driver/Makefile (libdriver.a): Simplify.
3675         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3676         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3677         defined.
3679 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3681         * troff/env.c (compare_ranges): Declare as extern "C".
3683         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3685         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3687 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3689         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3690         but conditionalize use of \X based on \*(.T.
3691         (grops_output::*): Deleted.
3692         * pic/output.h: Delete declaration of make_grops_output.
3693         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3694         by default. -n sets it to 0.
3695         (usage): Corresponding changes.
3696         * groff.c (main): Don't pass -x or -p to pic.
3697         * groff.sh: Likewise.
3699         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3700         to be non-zero.
3702         * ps/devps/afmtodit: Change calculation of asc_boundary and
3703         desc_boundary.  Make these bounds inclusive.
3704         * ps/devps: Regenerate font files.
3706 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3708         * macros/tmac.latin1: New file.
3709         * macros/tmac.tty-char: Use tmac.latin1.
3710         (tmac.tty-tr): Deleted.
3711         * macros/Makefile: Install tmac.latin1.
3712         * macros/tmac.dvi: Use tmac.latin1.
3713         * macros/troffrc: Translate \[char160] onto no-break space here.
3714         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3716 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3718         * macros/tmac.Xps: Use `do' request.
3720         * macros/tmac.ps: Use `do' request.
3722         * macros/tmac.e (@C): Use `do' request.
3724         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3725         * macros/Makefile: Install tmac.X*.
3727         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3728         * tty/Makefile: Don't install tmac.tty*.
3729         * macros/Makefile: Install tmac.tty*.
3731         * dvi/tmac.dvi: Move to macros.
3732         * dvi/Makefile: Don't install tmac.dvi.
3733         * macros/Makefile: Install tmac.dvi.
3735         * ps/tmac.ps*: Move to macros.
3736         * ps/Makefile: Don't install tmac.ps*.
3737         * macros/Makefile: Install tmac.ps*.
3739         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3740         option.
3741         * macros/eqnrc: Set draw_lines parameter based on device.
3742         * groff.c: Don't pass -D flag to eqn.
3743         * groff.sh: Likewise.
3744         * eqn/main.c: Warn about use of -D.
3746         * troff/input.c (process_startup_file): New function.
3747         (main): Call process_startup_file().
3748         * macros/troffrc: New file.
3749         * macros/Makefile: Install troffrc.
3750         * groff.c (main): Don't pass extra -m option to troff. For a 
3751         pseudo device pass the name of the pseudo device to troff using
3752         -d.
3753         * groff.sh: Likewise.
3754         * groff.c (possible_command::prepend_arg): Deleted.
3756         * troff/input.c (do_request): New function.
3757         (init_input_requests): Bind "do" to do_request.
3759         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3760         load eqnrc from macro directory.
3761         * macros/eqnrc: New file.
3762         * macros/Makefile: Install eqnrc.
3763         * ps/devps/eqnchar: Deleted.
3764         * ps/devps/Makefile: Don't install eqnchar.
3765         * dvi/devdvi/eqnchar: Deleted.
3766         * dvi/devdvi/Makefile: Don't install eqnchar.
3767         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3768         variable optM.
3770         * lib/device.[ch]: New files.
3771         * lib/font.h (font::set_device_name, font::get_device_name):
3772         Deleted.
3773         * lib/fontfile.c: Use device.h.
3774         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3775         * troff/input.c: Delete definition of `device'.
3776         (main): Don't initialize device.
3777         * troff/troff.h: Include device.h rather than declaring device.
3778         * troff/Makefile: No need to handle DEVICE.
3779         * driver/input.c: Include device.h. Don't use
3780         font::{set,get}_device_name.
3781         * groff.c, Makefile: Rename device.h to config.h.
3782         * groff.c: Use library device variable.
3783         * eqn/main.c: Use library device variable.
3784         * eqn/Makefile: No need to handle DEVICE.
3786         * lib/searchpath.[ch]: New files.
3787         * lib/Makefile: Handle searchpath.[ch].
3788         * troff/input.c (open_file, init_dirs): Deleted.
3789         (macro_dirs): Deleted.
3790         (open_mac_file, macro_source): Use class search_path.
3791         (add_string, struct string_list): Move definition.
3792         (main): Change -M option to use macro_path. Delete call to
3793         init_dirs().
3794         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3795         Rewrite to use class search_path.
3796         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3797         * lib/Makefile: fontfile.c depends on searchpath.h.
3798         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3799         MACROPATH.
3800         * lib/macropath.[ch]: New files.
3801         * troff/Makefile: No need to handle MACROPATH.
3803         * troff/input.c: Delete DUMP code.
3804         * lib/fontfile.c, lib/font.h: Delete
3805         font::forget_command_line_font_dirs.
3807         * troff/input.c (push_token): New function.
3808         (handle_first_page_transition): Use push_token().
3809         (process_input_stack): Change handling of a space at the beginning
3810         of the line.
3812 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3814         * troff/input.c (font_dirs): Delete unused variable.
3816         * eqn/lex.c (do_set): Correct error messages.
3818 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3820         * troff/input.c (do_define_string): Allow the string name to be
3821         followed immediately by a tab.
3822         (define_character): Likewise.
3824 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3826         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3827         be negative.
3829         * troff/input.c (input_iterator::is_file): New virtual function.
3830         (file_iterator::is_file): New function.
3831         (input_stack::end_file): New function.
3832         (input_stack::next_file): Handle the situation where there is no
3833         file on the input stack correctly.  Avoid making two passes over
3834         the input stack.
3835         (next_file): Make the filename optional; in this case call
3836         input_stack::end_file().
3838 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3840         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3841         produce a real _ charater when the current font is CW and _
3842         otherwise.
3844         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3845         expression to work around gcc 2.2 bug.
3847 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3849         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3851         * troff/env.c (environment::add_padding): New function.
3852         (environment::add_char): Use add_padding().
3853         (environment::space): Likewise.
3854         (environment::wrap_up_field): Add some padding if there is none
3855         and there's no current tab.
3856         * troff/env.h: Declare environment::add_padding.
3858 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3860         * pic/pic.y: undef fmod and rand before declaring them.
3862 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3864         * troff/input.c (main): If the DESC file specifies a font name of
3865         0, then leave the corresponding font position empty.
3867         * nroff.sh: New file.
3868         * Makefile (install.nobin): Install nroff.sh.
3870         * tty/devlatin1/R.proto: Add ao as synonym for de.
3871         * tty/tmac.tty-char: Define ao as o.
3873         * tty/dev{ascii,latin1}/R.proto: Add aq.
3874         * tty/tmac.tty-char: Delete definition of aq.
3876 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3878         * troff/input.c (init_charset_table): Don't translate 0240.
3879         * ps/tmac.ps: Translate char160 to space.
3880         * dvi/tmac.dvi: Likewise.
3881         * tty/tmac.tty: Likewise.
3883 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3885         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3887         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3888         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3889         \(oe, \(r?, \(r!.
3891         * tty/tmac.tty-char: Add \(ah.
3893         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3894         No need to define \(FM and \(!/. Conditionalize all character
3895         definitions.
3897         * ps/devps/lgreekmap: Add +h, +f, +p.
3899         * ps/tmac.psnew: New file.
3900         * ps/Makefile: Install tmac.psnew.
3902         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3903         character definitions in compatible mode.
3905         * troff/input.c (remove_character): New function.
3906         (init_input_requests): Bind remove_character to "rchar".
3908         * ps/tmac.psold: New file.
3909         * ps/Makefile: Install tmac.psold.
3910         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3911         characters into tmac.psold.  Make these definitions unconditional.
3913         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3915         * ps/tmac.ps: Don't define \('c and \('C.
3917         * ps/devps/textmap: Move Greek characters to...
3918         * ps/devps/symbolchars:
3920 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3922         * ps/devps/text.enc: Add quotesingle.
3923         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3924         * tty/tmac.tty-char: Likewise.
3925         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3926         * dvi/devdvi/texi.map: Add Fn.
3927         * dvi/devdvi/msam.map: Add lz.
3928         * dvi/tmac.dvi: Handle Bq, bq, aq.
3930         * pic/lex.c (get_token): Recognize 'th.
3931         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3933 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3935         * ps/devps/textmap: Move di, mu, +- to...
3936         * ps/devps/symbolchars:
3938         * macros/tmac.s (@XS): Don't call par@reset or fi.
3939         (XA): Call LP. Turn off adjustment. Reduce line length.
3941         * macros/tmac.s: Initially alias XS to LP.
3942         (XS): Rename to @XS.
3943         (cov*ab-init): Alias XS to @XS.
3945 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3947         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3948         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3949         (token::is_size, token::changes_env): Deleted.
3950         * troff/number.c (parse_term): No need to process \s explicitly.
3951         Call tok.next() only after scale indicator has been processed.
3952         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3953         \f etc explicitly.
3954         (token::next): Handle \s, \f, \S, \H immediately rather than
3955         returning them as tokens.
3956         (token::operator==, token::description, token::add_to_node_list,
3957         token::process): Remove handling of deleted tokens.
3959         * troff/env.c (environment::add_char): When adding padding
3960         indicator character, call start_line() if necessary.
3962 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3964         * ps/devps/afmtodit: Don't output 0 kerns.
3966         * ps/devps/afmtodit: Remove directory from name of encoding in
3967         font description file.
3969         * ps/devps/afmtodit: Improve error messages.
3971         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3973         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3974         * ps/devps/FontMakefile: Deleted.
3975         * ps/devps/afmname: New file.
3977         * ps/devps/symbol.sed: New file.
3978         * ps/devps/symbol.diff: Deleted.
3979         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3980         Generate zapfdr.afm from zapfd.afm.
3982         * tty/tmac.tty (tty-char): Prefix definition with ".
3984         * macros/tmac.an (TP): Don't start a diversion if one has already
3985         been started.
3987         * tty/tmac.tty-char: Add Latin-1 characters.
3989         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3991 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3993         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3994         Move declaration of struct horizontal_span.
3996         * tbl/table.c (table::table): Initialize span_list.
3997         (table::~table): Delete span_list.
3999         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4001         * ps/devps/Makefile: Avoid dependency on GNU make.
4003         * ps/tmac.ps: Check that character does not already exist before
4004         defining it.
4006         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4007         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4008         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4009         files.
4011         * tty/tmac.tty-char: New file.
4012         * tty/Makefile: Install tmac.tty-char.
4013         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4014         tmac.tty-char.
4016         * tty/tmac.tty: Fix definition of \(34.
4018         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4019         bracket-drawing characters onto |. Add *o.
4021         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4022         only if current_field.
4024         * troff/dictionary.c (dictionary::lookup): Free old_table after
4025         rehashing. 
4027 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
4029         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4030         whose glyphs are identical to glyphs of some Roman character.
4032         * tty/devlatin1/R.proto (bu): Deleted.
4033         * tty/devascii/R.proto (bu): Deleted.
4034         * tty/tmac.tty: Add definition of \(bu.
4036         * eqn/main.c (do_file): Pass FILE as argument.
4037         (main): Automatically load eqnchar.  New options -F and -n.
4038         Pass do_file an opened FILE.
4039         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4040         No need to include font.h.
4041         * groff.sh: Likewise.  Don't need to use - for standard input.
4042         Prefix files with -- if first file starts with -.
4044         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4046         * troff/env.c (environment::possibly_break_line): Don't set line
4047         to 0 across call to output_line().  Don't call output_line() until
4048         after discarding nodes after break.
4050 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
4052         * request.h (macro::empty): Declare it.
4053         * input.c (macro::empty): New method.
4054         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
4055         macro is empty.
4057 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
4059         * troff/env.c (environment::start_field): Decrement space_total
4060         when a space is frozen.
4062 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
4064         * macros/tmac.an (R): Delete macro.
4066         * troff/input.c (get_copy, token::next): Support \# (like \" but
4067         newline is ignored).
4069         * troff/input.c (token::next): Fix error message in 'Y' case.
4071 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
4073         * eqn/delim.c (define_extensible_string): Recognize any prefix of
4074         a delimiter name.
4076 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
4078         * c++test.c: Include <osfcn.h>.
4080         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4081         <errno.h> doesn't.
4083 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
4085         * tbl/table.c (table::divide_span): Don't count column separation
4086         if expand was specified.
4088         * tbl/main.c (process_format): Don't ignore width specs in
4089         continued format.  Give warning for changing equal widths or
4090         column separation in continued format.
4091         (process_data): Set column separation, minimum width, equal
4092         columns at end of table.
4094 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
4096         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4097         node::add_discretionary_hyphen): Use soft_hyphen_char.
4098         (set_soft_hyphen_char): New function.
4099         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
4101         * Makefile (c++tested): Give more helpful message if test fails.
4103 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
4105         * troff/input.c (init_charset_table): Translate 0240 to
4106         an unbreakable space.
4108         * troff/token.h (token::hyphen_indicator): New function.
4109         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4110         translation.
4111         * troff/input.c (translate): Allow translation to \%.
4112         * troff/node.c (node::add_char): Handle
4113         TRANSLATE_HYPHEN_INDICATOR.     
4114         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4116         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4117         for \(hy.
4119         * tty/devlatin1/R.proto: \(hy and - should print as 055.
4121 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
4123         * groff.c (run_commands): If the last command gets a SIGPIPE send
4124         a SIGPIPE to all children than haven't yet terminated.  When
4125         command terminates, set pid field to -1.
4127 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
4129         * groff.c (main): Pass an appropriate -filename option to gxditview.
4131 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
4133         * Makefile.bd (install): Remove existing program before copying.
4135         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4136         programs which have Unix counterparts to be installed with
4137         user-specified prefix.
4139         * troff/input.c (exit_troff): Don't check if exit_started.
4140         (exit_request): Don't call exit_troff if exit_started.
4142         * Makefile.bd (install.mm): Rename to install.dwbmm.
4144 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
4146         * driver/input.c (do_file): Add missing break for '#' case.
4148 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
4150         * troff/input.c (input_stack::clear):  Clear past any boundaries and
4151         then add the boundaries back.
4153         * troff/input.c (exit_troff): Return immediately if already
4154         exiting.
4156         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
4157         end macro.
4158         (pg*end-page): If the text has ended and there are no more
4159         footnotes or keeps, exit.
4161         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4163         * troff/input.c (init_charset_table): Make \(rq transparent by
4164         default.
4166         * macros/tmac.an: Define lq and rq strings.
4168         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4170 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
4172         * troff/env.c (environment::final_break): New function.
4173         (environment::newline): Set prev_line_interrupted to 2 if
4174         exit_started.
4175         * troff/env.h: Declare environment::final_break.
4176         * troff/input.c (exit_troff): Call environment::final_break()
4177         instead of environment::do_break().
4179         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4180         doesn't already exist.
4181         * macros/man.local: New file.
4182         * macros/tmac.an: Load man.local.
4183         * macros/man.ultrix: New file.
4185 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4187         * troff/input.c (exit_groff): Rename to...
4188         (exit_troff): New function.
4190         * troff/div.c (exit_started, done_end_macro,
4191         seen_last_page_ejector): New global variables.
4192         (began_page_in_end_macro): New static variable.
4193         (exit_flag): Deleted.
4194         (top_level_diversion::top_level_diversion): Initialize
4195         last_page_count.
4196         (top_level_diversion): More elaborate test for whether
4197         cleanup_and_exit() should be called.
4198         Set began_page_in_end_macro if the end macro isn't yet finished.
4199         * troff/div.h (top_level_diversion::last_page_count): New data
4200         member.
4201         (top_level_diversion::set_last_page): New function.
4202         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4203         * troff/env.c (do_break): Zero prev_line_interrupted.
4204         * troff/input.c (exit_flag): Delete declaration.
4205         (LAST_PAGE_EJECTOR): New magic cookie.
4206         (token::next): Handle LAST_PAGE_EJECTOR.
4207         (exit_groff): Set exit_started and done_end_macro instead of
4208         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4209         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4210         another ejection after setting seen_last_page_ejector.
4212 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4214         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4216         * macros/tmac.e (TH): Make sure there's room for the initial
4217         header.
4219         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4220         Set FVS in points rather than units.
4222 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4224         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4225         position of empty slots.
4227 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4229         * ps/devps/S: Fix height and depth of parenrightex.
4230         * ps/devps/symbol.diff: Regenerate.
4232 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4234         * tmac.e (u): Do underlining as in -mgs.
4236 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4238         * tty/tty.c (tty_printer::end_page): If overstriking is
4239         suppressed, still turn overstruck horizontal and vertical lines
4240         into +.
4242         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4243         2.1.
4245         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4247 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4249         * Version 1.05 released.
4251 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4253         * tty/tty.c: Instead of keeping an array of glyphs and then
4254         sorting it, keep a ordered linked list of glyphs for each line.
4256         * driver/driver.h: Include stddef.h.
4258         * tty/tty.c (compare_glyph):
4259         * refer/refer.c (rcompare):
4260         * troff/env.c (compare_ranges): Arguments of qsort comparison
4261         function should be const void *.
4263         * troff/number.c (parse_term):
4264         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4265         switch statement.
4267         * refer/label.y (consider_authors): Don't access variables
4268         constructed under a condition outside that condition: put braces
4269         round for statement containing declaration; redeclare use of same
4270         variable later.
4272         * pic/pic.y (text_expr): Delete production that allows
4273         parenthesised text_expr.
4274         (expr): Allow a conditional_expr to appear in parentheses.
4275         (conditional_expr): Rename to any_expr.
4277         * mm: Install new version 1.01 from jh.
4279         * lib/font.c (font::get_width): Cache scaled widths.
4280         (font::font): Initialize widths_cache.
4281         (font::~font): Destroy widths_cache.
4282         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4284 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4286         * c++test.c, c++test.ref: New files.
4287         * Makefile: Check that the C++ compiler works.
4289         * ps/tmac.pspic (PSPIC): Do a break.
4291         * ps/tmac.ps: Move definition of PSPIC into...
4292         * ps/tmac.pspic: New file.
4293         (PSPIC): Draw box around picture, but make it invisible to grops.
4294         * ps/tmac.ps: Load tmac.pspic.
4295         * ps/Makefile: Install tmac.pspic.
4297 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4299         * lib/font.c (scale_round): If n is negative,
4300         subtract .5 before truncating floating point result.
4302         * lib/fontfile.c: Include <errno.h>.
4304 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4306         * driver/input.c (get_char): Inline. Don't update current_lineno.
4307         Change callers to up date current_lineno if necessary.
4308         Use get_char() instead of getc(current_file).
4310 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4312         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4314 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4316         * tty/tty.c (tmac.tty): Define \(rg as (R).
4318 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4320         * lib/lib.h: New define a_delete.
4321         * Use a_delete instead of delete when deleting an array of objects
4322         without destructors.
4324         * lib/lib.h: Rename adelete to ad_delete.
4325         * Change uses of adelete.
4327 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4329         * eqn/eqn.y: Include lib.h.
4331         * troff/node.c (grow_font_table): Delete old_font_table.
4333         * mm: Install new version from jh.
4335 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4337         * tbl/table.h (format_type): Make global instead of local to class
4338         entry_format.  Prefix enumerators with FORMAT_.
4339         * tbl/table.c, tbl/main.c: Corresponding changes.
4340         * refer/token.h (token_type): Make global.  Prefix enumerators
4341         with TOKEN_.
4342         * refer/token.[ch]: Corresponding changes.
4343         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4345         * troff/div.c (node::set_vertical_size): Don't name argument.
4347 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4349         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4350         * lib/lib.h: Define adelete accordingly.
4351         * pic/object.c (graphic_object::graphic_object):
4352         * tbl/main.c (format::~format):
4353         * tbl/table.c (table::~table):
4354         * refer/ref.c (reference::~reference, reference::merge,
4355         reference::insert_field, reference::delete_field): Use adelete.
4357         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4358         * refer/token.h:
4359         * tbl/table.h: Corresponding changes.
4361         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4362         Ensure total_angle is positive.
4364 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4366         * refer/ref.c (reference::merge, reference::insert_field,
4367         reference::delete_field): Avoid delete[0].
4369         * refer/token.c (init_special_chars): Move calls to cmupper
4370         outside calls to init_two_char_letter to work around bug in gcc
4371         2.0.
4373 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4375         * lib/new.c (operator new): Use __builtin_new for g++.
4377         * pic/object.c (graphic_object::~graphic_object):  Don't use
4378         delete [] on 0.
4380         * pic/object.c (output::compute_scale): Initialize max_width and
4381         max_height.
4383 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4385         * troff/input.c (write_request): Call fflush.
4387         * troff/node.h (class composite_node): Move declaration to node.c
4388         * troff/input.c (charinfo_to_node): Rename to ...
4389         (charinfo_to_node_list): Return node list rather than composite
4390         node.
4391         * troff/node.c (make_composite_node): New function.
4392         (make_node, add_char): Call make_composite_node instead of
4393         charinfo_to_node.
4394         (class composite_node): Add a tfont * member.  Delete font_size
4395         member.
4396         (composite_node::composite_node, composite_node::copy,
4397         composite_node::size): Corresponding changes.
4398         (composite_node::tprint): Provide constant spacing, emboldening
4399         and track kerning as specified in tfont.
4400         (composite_node::width): Change width calculation accordingly.
4401         * troff/env.h (environment::composite): New member.
4402         (environment::is_composite, environment::set_composite): New
4403         functions.
4404         * troff/env.c (environment::environment): Initialize composite.
4405         * troff/input.c (charinfo_to_node): Call
4406         environment::set_composite.
4407         * troff/node.c (make_composite_node, make_glyph_node): Use the
4408         plain version of the tfont if the environment is composite.
4410         * troff/node.c (font_info::get_space_width): Additional argument
4411         giving space_size.  Handle constant space correctly. Scale by
4412         space_size unless constant spaced.
4413         (env_sentence_space_width): New function.
4414         * troff/node.h: Declare it.
4415         * troff/env.h (environment::get_space_size,
4416         environment::get_sentence_space_size,
4417         environment::get_narrow_space_width,
4418         environment::get_half_narrow_space_width): Make inline.
4419         (environment::get_space_width): Make inline.  Just call
4420         env_space_width.
4421         * troff/env.c: Delete definitions for funtions made inline.
4422         (environment::space_newline, environment::space): Use
4423         env_sentence_space_width(). Don't scale by space_size.
4424         * troff/node.h: Move declarations of env*space_width() functions
4425         into env.h.
4427 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4429         * macros/tmac.s (PS): Don't try to set negative indent.
4431 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4433         * pic/pic.y: Fix min function.
4435 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4437         * man/mdate.sh: Clear LANGUAGE.
4439 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4441         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4442         * pic/lex.c: New COMMAND keyword.
4443         * pic/pic.y (print_args, print_arg): New rules.
4444         (placeless_element): Use print_args for PRINT.
4445         New COMMAND element.
4447 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4449         * troff/input.c (terminal): Handle missing argument correctly.
4451         * pic/pic.y (text_expr): New rule.
4453         * pic/pic.y: Implement := operator.
4455 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4457         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4458         mdoc.
4460 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4462         * ps/devps/dingbatsrmap: Include this in the distribution.
4464         * macros/tmac.doc: Replace with new version from 2nd Networking
4465         Release. Fix loading of doc-* files.
4466         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4467         * macros/tmac.doc.old: New file.  Apply fixes that had been
4468         applied to old tmac.doc.
4469         * macros/tmac.andoc: Check that we're running under groff.
4470         * macros/Makefile: Rework.
4472 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4474         * tbl/table.h (format_type): 
4475         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4476         typedef to make these types visible at file scope.
4477         * Makefile: Add NESTED_TYPES configuration option.
4479         * troff/div.c (mark): At the top level use the value of
4480         nl_reg_contents rather than the current vertical position.
4482 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4484         * tty/tty.c: Implement \D for horizontal or vertical lines.
4485         (tty_printer::set_char): Use vec_used+2 as serial number.
4486         Don't allow size of vector to exceed USHRT_MAX-2.
4487         Split off part into...
4488         (tty_printer::add_char): New function.
4489         (tty_printer::draw): New function.
4490         (compare_glyph): Handle equal serial numbers.
4491         (tty_printer::end_page): Handle overstruck characters from \D.
4492         (main, usage): Implement -d option.
4494 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4496         * tbl/main.c (process_format):
4497         * eqn/text.c (split_text):
4498         * troff/input.c (token::next): Use inner block for declarations
4499         with initializers in switch statement.
4501 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4503         * pic/common.c (common_output::dash_line): Cope with zero-length
4504         lines.
4506 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4508         * Version 1.04 released.
4510 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4512         * macros/tmac.an (TH): Define a macro an-init to define variables
4513         based on command line arguments.
4514         (an-header): Call it.
4516 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4518         * Makefile (install.mm): Rename to install.dwbmm.
4520         * Makefile: Integrate mm.
4521         * mm: New directory.
4523 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4525         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4526         <sys/types.h>.
4528         * pic/troff.c (troff_output::simple_spline,
4529         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4530         shadowing parameter.
4532         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4534         * lib/ptable.h: Add explicit casts when converting from unsigned
4535         long to unsigned.
4537         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4538         * dvi/devdvi/Makefile: Install SA, SB.
4540         * refer/indxbib.c: Add declaration of mktemp.
4542         * refer/lookbib.c: Add declaration of isatty.
4544 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4546         * pic/lex.c (interpolate_macro_with_args):  While collecting
4547         arguments, keep track of whether we're in a string.
4549 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4551         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4552         down with \v, so as to avoid problems with top of page trap
4553         setting no space mode.
4555 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4557         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4559 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4561         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4562         Improve error message.
4564 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4566         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4567         printf("%03o");
4569 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4571         * groff.c (possible_command::execp): Always use _exit() after a
4572         failed exec.
4574         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4575         NO_SYS_WAIT_H   configuration options.
4576         * groff.c: Use these options.  Use POSIX-style macros to extract
4577         fields from the status returned by wait().
4579 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4581         * tbl/table.c (table::compute_separation_factor): Allow the
4582         separation factor to drop to 0.
4584 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4586         * refer/search.c: Include <errno.h>.
4588 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4590         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4592         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4593         C++. 
4595         * pic/lex.c (input_stack::bol): Move definition out of class body.
4597         * pic/main.c: On MSDOS munge argv[0].
4599         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4601         * lib/ptable.c (hash_string): Use unsigned long rather than
4602         unsigned.
4603         (next_ptable_size): Use unsigned rather than int.  Give an error
4604         message if we've hit the largest table size.
4605         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4606         table size.
4608         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4609         flags as const unisgned long rather than as enums.
4611         * pic/output.c: Deleted.
4613         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4615         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4616         Add additional argument.
4617         (line_entry::note_double_vrule_on_{left,right}): Set value of
4618         douvle_vrule_on_{right,left} flag according to argument.
4619         (simple_line_entry::simple_print,
4620         simple_line_entry::double_line_print): If adjacent to double vrule
4621         on a corner extend rather than shorten the rule by half the double
4622         vrule sep.
4624         * troff/number.c (parse_term): In checking for overflow, handle the
4625         case where the current horizontal position is negative.
4627 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4629         * pic/object.c (draw_arrow): Check for object having zero length.
4631 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4633         * eqn/main.c (do_file): Split off inline equation handling into...
4634         (inline_equation): New function.  Search for starting delimiter
4635         using...
4636         (delim_search): New function. Don't recognize a delimiter that
4637         occurs in the name of an escape sequence, number register, string
4638         etc.
4640 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4642         * eqn/delim.c (delim_box::compute_metrics): Don't call
4643         define_extensible_string if left is 0.
4644         (delim_box::output):  Don't print the left delimiter if left is 0.
4645         (delim_box::debug_print): Check for left == 0 before calling printf.
4647 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4649         * troff/Makefile (majorminor.c): Include only digits in
4650         minor_version.
4652 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4654         * refer/dirnamemax.c: new file.
4655         * refer/genlimits.c: Deleted.
4656         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4657         Don't check path length.
4658         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4659         * Makefile: Add PATHCONF_MISSING option.
4661         * refer/indxbib.c (get_cwd): New function.
4662         (main): Use get_cwd().
4663         * lib/getcwd.c: New file.
4664         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4665         GETCWD in SUBFLAGS.
4666         * lib/Makefile: Compile getcwd.o.
4668         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4669         userdict.
4671         * refer/indxbib.c (main): Check success of mktemp.
4673         * lib/tmpfile.c: New file.
4674         * lib/Makefile: Add tmpfile.c.
4675         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4676         * ps/ps.h: Delete declaration of mktemp().
4677         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4678         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4679         * driver/driver.h: No need now to include errno.h.
4681         * everywhere: Set errno to 0 before calling fopen().
4683         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4684         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4685         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4687 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4689         * troff/env.h (translate_space_to_dummy): Declare it.
4690         * troff/env.c (environment::space_newline, environment::space):
4691         If translate_space_to_dummy is set then make the width of spaces 0.
4692         * troff/input.c (translate): If the second character of a
4693         translation is a space, translate to unbreakable space.  If the
4694         first character is a space, set or clear translate_space_to_dummy
4695         according to whether the second character is \&.  Weird!
4697 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4699         * groff.c (run_commands): Don't use non-zero exit code because a
4700         command gets SIGPIPE.
4702         * groff.c, groff.sh: Use -mXps with -TXps.
4704         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4705         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4706         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4707         (ps_printer::special): New specials invis and endinvis.
4708         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4709         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4710         (ps_printer::end_page): Check that invis_count == 0.
4711         (ps_printer::invis_count): New member.
4712         (ps_printer::ps_printer): Initialize invis_count to 0.
4714         * troff/env.c (environment::hyphenate_line): Hyphenation
4715         indicator at beginning of word inhibits splitting after -, \(em
4716         etc.
4718         * pic/pic.y (element): Allow another element to follow } without
4719         any intervening separator.
4721 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4723         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4725 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4727         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4728         declaration of wait() in header files.
4729         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4731         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4733         * lib/lib.h: Declare return type of strerror as char *.
4735         * man/Makefile: Add g flag to sed substitutions.
4736         * Makefile (shgroff, bindist): Likewise.
4738 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4740         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4741         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4742         userdict.
4744 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4746         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4747         userdict.
4749 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4751         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4752         group.
4754 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4756         * troff/input.c (define_number_reg):  If currently undefined,
4757         don't define it if the argument is an invalid expression.
4759         * Makefile: Ignore return value of `if' commands without `else'
4760         parts.
4762         * Makefile: Split up CPPDEFINES into a series of separate
4763         configuration options.
4765         * troff/input.c (init_registers): Use time_t instead of long
4766         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4767         than passing pointer.
4768         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4770         * lib/Makefile (fontpath.h): Use gendef.
4772 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4774         * troff/input.c (input_iterator::shift): Delete argument name.
4775         * troff/node.c (suppress_output_file::really_begin_page,
4776         suppress_output_file::really_transparent_char, node::ascii_print,
4777         node::tprint): Delete names of unused arguments.
4779 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4781         * refer/label.y (string):  Pass $4 to command_error.
4783 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4785         * Version 1.03 released.
4787 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4789         * Makefile: Pass definition of SHELL in SUBFLAGS.
4791         * gendef: New file.
4792         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4793         ps/Makefile: Use gendef to construct header files that are
4794         constructed from the Makefile.
4796         * macros/Makefile: make all should build stripped version of tmac.e.
4798         * refer/Makefile (clean): Remove y.output.
4800 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4802         * ps/pfbtops.c (main): Add -v option which prints out a version
4803         number.
4804         * ps/Makefile (pfbtops): Link with libgroff.a.
4806 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4808         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4809         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4811         * refer/lkbib.c (main): Always terminate reference with blank
4812         line.
4813         * refer/lookbib.c (main): Likewise.
4815         * refer/linear.c (file_buffer::load): Check that the file is not a
4816         binary file.
4818         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4819         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4820         Delete second inclusion of <sys/param.h>.
4822 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4824         * troff/token.h (token::special): Deleted.
4826         * tbl/main.c (process_format): Rework so that opt->tab_char is
4827         recognized only when appropriate.
4829         * ps/Makefile (clean): Remove pfbtops.
4831 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4833         * lib/font.c (text_file::next): Don't return if we have got a
4834         blank line.
4836 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4838         * refer/refer.c (store_reference): Get hash code from old_table[i]
4839         when rehashing the table.
4841 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4843         * eqn/box.c (box::top_level): Save size and prev size using \R and
4844         restore it afterwards. Set the size to the size at the beginning
4845         of the line.
4846         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4847         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4849         * refer/Makefile (limits.h): Use ./genlimits.
4851 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4853         * refer/index.c: Delete declarations of stat() and fstat().
4855 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4857         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4859 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4861         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4863 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4865         * troff/input.c (token::get_char): Handle \e.
4867         * refer/linear.c: Delete declarations of fstat() and stat().
4869 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4871         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4872         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4874 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4876         * troff/input.c (do_define_macro): Improve error handling for end
4877         of file while defining macro.
4879 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4881         * eqn/box.h: Fix declaration of set_gsize.
4882         * eqn/box.c (set_gsize): Make argument const char *.
4883         (gsize): Declare as char *.
4884         * eqn/main.c (main): Don't convert gsize to int.
4885         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4887         * Version 1.02 released.
4889 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4891         * macros/tmac.andoc: New file.
4892         * macros/Makefile: Install tmac.andoc.
4894         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4895         operator new and delete on OP_DELETE_BROKEN not being defined.
4896         * Makefile: Mention OP_DELETE_BROKEN.
4898 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4900         * Makefile (bindist): Pass SUBFLAGS.
4902 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4904         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4906         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4907         parameter.
4909         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4911         * ps/ps.h, ps/psrm.c: Make comment_table and
4912         header_comment_table local to resource_manager::process_file.
4914         * groff.sh: With -TXps pass -printCommand option to gxditview.
4916         * groff.c (possible_command::print): Implement using
4917         append_arg_to_string.
4919         * xditview: Merge in new implementation with own ChangeLog.
4921 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4923         * groff.c (main): Implement PRINT_OPTION.
4924         (append_arg_to_string): New command.
4925         (device_table): Set PRINT_OPTION flag for Xps.
4927 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4929         * troff/groff.h: Rename to troff.h.
4931         * pic/lex.c (lookup_keyword, docmp): New functions.
4932         (get_token): Use new lookup_keyword.
4933         Don't include key.h.
4934         * pic/key.[ch], pic/pic.gperf: Deleted.
4935         * pic/Makefile: Remove gperf stuff.
4937         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4938         into output.h.
4939         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4941         * troff/Makefile, troff/node.c: Move definition of
4942         STORE_WIDTH into node.c.
4944         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4946 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4948         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4949         dvi/devdvi/texb.map: Add lq and rq.
4950         dvi/devdvi: Regenerate fonts.
4951         * ps/devps/textmap: Add lq and rq.
4952         * ps/devps: Regenerate fonts.
4953         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4954         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4956         * pic/object.c (position_rectangle): When checking radius
4957         cope with possiblity that width or height is negative.
4958         (box_object::box_object): Have separate xrad and yrad with
4959         signs matching signs of dim components.
4960         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4961         (box_object::print): With rounded boxes use absolute values
4962         for dim and rad arguments.
4964         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4965         in fontpath.h.
4967         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4969         * various files: Add explicit destructors to keep Saber CC +d
4970         happy.
4972 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4974         * eqn/box.c (box::top_level): Restore fonts correctly after
4975         font changes in line containing inline equation.  Also
4976         restore previous font as well as current font.
4977         * eqn/pbox.h: Define necessary string and register names.
4979         * troff/input.c (token::next): Case 'R' calls do_register.
4980         (do_register): New function.
4982 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4984         * groff.c, groff.sh: Support Xps device.  Allow each device
4985         to have a pseudo_name and a real_name.
4987         * groff.c (run_commands): Don't print `Broken pipe' messages.
4989         * ps/pfbtops.c: New file.
4990         * ps/Makefile: Add pfbtops.
4992         * troff/number.c (parse_term): Improved error message.
4994 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4996         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4998         * Makefile: Integrate refer.
4999         * refer: New directory.
5000         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5001         man/lkbib.man: New files.
5002         * man/Makefile: Support refer man pages.
5004         * lib/lib.h: Declare is_prime.
5005         * lib/prime.c: New file.
5007         * troff/input.c (macro_source): New function.
5008         (init_input_requests): Bind "mso" to macro_source.
5010         * troff/env.c (environment::possibly_break_line): Maintain
5011         pointer to pointer to node to be split in ndp so as to avoid
5012         using address of freed node.
5014         * troff/env.c (environment::hyphenate_line): Maintain pointer to
5015         pointer to first node to be hyphenated in startp so as to
5016         avoid using address of freed node.
5018         * troff/env.c (class trie, class hyphen_trie): Make the
5019         elements of the trie be of type char not unsigned char.
5020         Declare arguments to be const char* instead of unsigned char *.
5021         
5022         * troff/env.c (hyphenate): Initialize hbuf[0].
5024         * troff/input.c (set_string): Declare p to be char * and cast
5025         *p to unsigned char when necessary.
5027         * troff/input.c (do_define_macro): Declare s to be const
5028         char*. Cast element to unisgned char when necessary, Declare
5029         d to be an int.  Handle EOF better.
5031         * troff/Makefile, troff/input.c: Different scheme for passing
5032         definitions of MACROPATH, HYPHENFILE and DEVICE.
5034 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
5036         * tty/devascii/R.proto: Delete entry for em.
5037         * tty/devlatin1/R.proto: Likewise.
5039 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
5041         * troff/input.c (translate): Stop when we get a space. Treat eof
5042         like newline.
5044         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5046 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
5048         * tbl/main.c (process_format): A font name following a `f'
5049         modifier that starts with a digit can be only one character long.
5050         Also deal with EOF on the second character of the font name.
5052 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
5054         * troff/input.c (token::next): Turn \~ into an
5055         unbreakable_space_node.
5056         * troff/node.c (unbreakable_space_node): New class.
5057         * troff/node.h: Declare it.
5059 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
5061         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
5062         it's >= 0, before outputting it as a single byte.
5064 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
5066         * lib/font.c: Make font_char_metric::code an int.
5067         (font::get_code): Change return type to int.
5068         (font::load): Allow code to be arbitrary integer.
5069         * lib/font.h (font::get_code): Change return type to int.
5070         (font::number_to_index): Change argument type to int.
5071         * troff/input.c (token::next):  In case 'N', allow any value.
5072         Store value in token::val.
5073         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5074         (token::get_char, token::add_to_node_list, token::process): Get
5075         number from val.
5076         (charinfo::set_number): Change argument to int.
5077         (charinfo::get_number):  Require that NUMBERED flag be set.
5078         (get_charinfo_by_number): Store numbered characters not between 0
5079         and 255 in a dictionary.
5080         * troff/charinfo.h (get_charinfo_by_number): Change argument type
5081         to int.
5082         (charinfo::number): Change type to int.
5083         (charinfo::set_number): Change type of set_number to int.
5084         * troff/node.c (troff_output_file::put_char_width,
5085         troff_output_file::put_char): Test whether character is numbered
5086         using charinfo::numbered().
5087         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5088         values of num.
5089         * lib/nametoindex.c: New implementation to cope with arbitrary
5090         number characters.
5092         * troff/input.c (token::operator==): Test val for
5093         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5094         TOKEN_SIZE.
5096         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5097         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
5099 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
5101         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
5102         variable.
5104         * all Makefiles: rm targets of cp and >.
5106         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5107         it.
5109         * eqn/lex.c (def_table): Add dollar.
5111 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
5113         * troff/input.c (do_width): Push back newline before closing delim
5114         like do_bracket.
5116 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
5118         * groff.c (possible_command::prepend_arg): New function.
5119         (main): Prepend device -m option.
5120         * groff.sh: Put device -m options before command-line options.
5122 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
5124         * macros/tmac.an (IP): Quote argument to TP.
5126         * ps/ps.c (main): New option -b, which sets...
5127         (broken_flags): New variable.
5128         (ps_printer::~ps_printer): Incorporate the setup section in the
5129         prolog if (broken_flags & NO_SETUP_SECTION).
5130         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5131         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5132         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5133         ps_printer::print_needed_font_comment,
5134         ps_printer::print_supplied_font_comment,
5135         ps_printer::print_include_font_comments,
5136         ps_printer::lookup_doc_font, ps_printer::download_fonts,
5137         ps_printer::read_download_file, read_document_fonts, add_font,
5138         skip_line, parse_fonts_arg, document_font::document_font,
5139         document_font::~document_font, document_font::download,
5140         ps_output::include_file):  Deleted.
5141         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5142         rather than %!PS-Adobe-2.0.  Make calls to
5143         resource_manager::need_font for each font that we used. Replace
5144         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5145         print_supplied_font_comment, print_needed_font_comment by call to
5146         resource_manager::print_header_comments. Output %%Orientation
5147         comment. Output %%Requirements: numcopies comment if ncopies > 1.
5148         Don't output the prolog directly.  Instead call
5149         resource_manager::output_prolog.  Only define #copies when ncopies
5150         > 1.  Delete calls to print_include_font_comments  and
5151         download_fonts.  Add call to resource_manager::document_setup.
5152         (ps_printer::do_file): Call resource_manager::import_file instead
5153         of including it ourselves.
5154         (ps_printer::do_import): Likewise.  Also don't call
5155         merge_import_fonts. Push userdict on the dictionary stack before
5156         and pop it afterwards.
5157         Move declaration of ps_output into ps.h.
5158         * ps/psrm.c: New file implementing resource_manager class.
5159         * ps/ps.h: New file declaring ps_output and resource_manager
5160         classes.
5161         * ps/devps/zapfdr.ps:
5162         * ps/devps/symbolsl.ps:
5163         * ps/devps/prologue:  Use 3.0 conventions.
5164         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5165         Add default definition of BROKEN_SPOOLER_FLAGS.
5166         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
5167         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5169 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
5171         * etc/grog.pl: New file.
5172         * Makefile (GROG): New variable.
5173         Add GROG to SUBFLAGS.
5174         * etc/Makefile (GROG): New variable.
5175         (install.nobin): Install $(GROG) rather than grog.sh.
5177 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5179         * eqn/special.c (special_box::compute_metrics): Make the input and
5180         output strings the same.  Get the new height and depth from the
5181         predefined height and depth registers.  Also make subscript kern
5182         and skew available.
5183         (special_box::compute_subscript_kern, special_box::compute_skew):
5184         New functions.
5186         * eqn/box.c (pointer_box::compute_skew,
5187         simple_box::compute_metrics, box::top_level)
5188         * eqn/text.c (prime_box::compute_metrics,
5189         prime_box::comput_subscript_kern)
5190         * eqn/limit.c (limit_box::compute_metrics):
5191         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5192         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5193         negative numbers in `nr' requests with a leading 0.
5195 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5197         * eqn/special.c: New file.
5198         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5199         Add new rule for simple.
5200         * eqn/lex.c (token_table): Add SPECIAL.
5201         * eqn/box.h: Declare make_special_box.
5202         * eqn/Makefile: Add special.[co].
5204 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5206         * ps/devps/prologue: Possibly set packing to true while defining.
5207         Create grops dictionary here.  Initialize local variables before
5208         defining procedures.
5209         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5210         the dictionary stack. Set strokeadjust and overprint to false if
5211         the relevant operators are defined.
5212         (PEND): New procedure.
5213         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5214         prologue.  Do everything else in the setup section.
5215         (ps_printer::do_import): Just call PBEGIN and PEND around the
5216         picture. Also push userdict before, and pop it afterwards.
5218 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5220         * troff/node.c (bracket_node::tprint): Brackets were being printed
5221         1m too low.
5223         * macros/tmac.an (SH, SS): Set fill mode.
5225 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5227         * troff/div.c (top_level_diversion::begin_page): Set
5228         high_water_mark to 0.
5230 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5232         * man/mdate.sh: New file.
5233         * man/mdate.c: Deleted.
5234         * man/Makefile: Use mdate.sh instead of mdate.
5235         (mdate): Deleted.
5237         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5239 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5241         * man/mdate.c: New file.
5242         * man/*.man: Replace modification date by @MDATE@.
5243         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5244         (mdate): New target.
5246         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5247         Remove illegal input characters.
5249 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5251         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5253 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5255         * troff/div.c (begin_page): Change behaviour when
5256         !first_page_begun and !break_flag.
5258         * troff/input.c (do_name_test): Return 0 if argument is empty.
5260         * troff/input.c (read_long_escape_name): Require closing ] to be
5261         at same input level as opening [.
5263         * troff/input.c (read_increment_and_escape_name): New function.
5264         (get_copy, process_input_stack): Use this for \n.
5266 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5268         * troff/div.c (top_level_diversion::begin_page): Ignore the
5269         current value of page_number if !first_page_begun.
5271         * groff.c (main): Fix declaration of buf.
5273         * troff/input.c (do_name_test): New function.
5274         (token::next): Implement \A.
5275         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5276         (token::description, token::add_to_node_list, token::process):
5277         Handle TOKEN_ESCAPE.
5278         * troff/token.h: New token TOKEN_ESCAPE.
5280 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5282         * pic/main.c (do_picture): Allow space before and after filename
5283         following `<'.  Check that the filename is not empty.
5285 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5287         * Version 1.01 released. 
5289         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5291         * dvi/tmac.dvi: ftr HR to H.
5293         * macros/tmac.e: Round up computation of $r.
5295         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5296         Use \n(.s instead of \n[.s].
5298         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5299         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5300         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5301         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5302         short names in the char definitions.
5304         * ps/tmac.ps: Don't give up completely in compatibility mode.
5305         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5306         quote in front of \n(.s. Add u to factors inside \s[...].
5308 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5310         * tty/tmac.tty: Call the nroff request.
5312         * macros/tmac.e ((x, )x):  Better definitions that work properly
5313         in a diversion.
5314         (@0, @1): Helper macros for (x.
5316         * macros/tmac.e ($s, hl): Use \l rather than \D.
5318         * tty/tmac.tty: Make it work better in compatibility mode.
5319         (pchar): Rename to tty-char.
5321         * macros/tmac.e (@E): New macro.
5322         (r, i, b, rb, bi): Use @E.
5324         * macros/tmac.e (@F): Don't use (;...) syntax.
5326         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5327         it was modified for groff.
5329         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5331         * macros/tmac.e (<., .>): Removed.
5332         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5334         * macros/tmac.e: Remove check that groff is being used.
5336         * macros/tmac.e (@C): Change families only if using groff; turn
5337         compatibility mode off while changing familes. Save compatibility
5338         mode before changing families and restore it afterwards.
5340         * macros/tmac.e (@h): Remove test for offset + line length.
5342         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5343         (lo, th, ac): Define to call @S instead of using als.
5345         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5346         the ratio of the vertical spacing to the point size in units
5347         expressed as a percentage.  Use these instead of $10r and $10R,
5348         Delete $10r and $10R.
5350         * lib/font.c (font::load): In default computation of space_width,
5351         divide by sizescale.  Use scale_round.
5353         * macros/tmac.an (TP): Don't call `nf'.
5354         (an-do-tag): Don't call `fi'.
5356 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5358         * troff/input.c (process_input_stack): Handle the case where
5359         spaces at the beginning of an input line are followed by a
5360         newline.
5362 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5364         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5365         * groff.sh: Use pic -x with the dvi device.
5367         * dvi/devdvi/FontMakefile (H): Don't use -s.
5369         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5370         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5371         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5372         in FONTS.
5374 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5376         * ps/psfig.diff: New file.
5377         * ps/tmac.psfig: New file.
5379 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5381         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5382         (]-): Don't call ref*do-tl.
5384         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5386         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5387         (fn@do-FS): Rename to fn*do-FS.
5389         * troff/input.c (transparent_translate): New function.
5390         (process_input_stack): Apply transparent_translate before calling
5391         diversion::transparent_output(unsigned char).
5393 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5395         * troff/input.c (do_define_macro): Define the macro before calling
5396         skip_line.
5398         * xditview/Makefile: Add DEVICES variable.  Change install target
5399         to use this.
5401 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5403         * groff.c (run_commands): Handle the possibility that there are
5404         child processes other than those forked by us.
5406 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5408         * lib/string.c (string::append): New function.
5409         * lib/stringclass.h: Declare it.
5411 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5413         * eqn/main.c (main): New option -N which sets
5414         no_newline_in_delim_flag. 
5415         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5416         in delimiters.
5417         * groff.c (main): Pass -N on to eqn.
5418         (help, synopsis): Mention -N.
5419         * groff.sh: Implement -N.
5421 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5423         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5424         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5425         (XP): Allow as initializer.
5427 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5429         * troff/env.c (environment::wrap_up_field): If field_spaces are
5430         non-zero and we have a current_tab, subtract padding from
5431         tab_distance.  If this makes tab_distance <= 0, use the next tab
5432         stop instead.  If there isn't any next tab or it's a left tab,
5433         wrap up the current tab.
5434         (environment::start_field): Initialize tab_precedes_field.
5435         (environment::wrap_up_tab): If there's a current field, update
5436         pre_field_width, field_distance and tab_precedes_field.
5437         * troff/env.h (environment::tab_precedes_field): New member.
5439 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5441         * ps/ps.c (ps_printer::do_file): New function.
5442         (ps_printer::special): Bind to `file' special.
5443         (ps_printer::do_exec): Set ndefined_styles to 0.
5445 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5447         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5448         Avoid stripping first character from the start of unrecognized
5449         escapes.  Use lex_error instead of error to report errors.
5450         * eqn/lex.c (get_token): Rework handling of escapes.
5451         (lex_error): Move declaration into...
5452         * eqn/eqn.h.
5454         * xditview/xditview.c (main): Make -page option work.
5456         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5458 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5460         * macros/tmac.s (B2): Correct size of box.
5462 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5464         * macros/tmac.s (B2): Postpone drawing the box until in the
5465         top-level diversion.
5467         * tty/tmac.tty: Add font translations for C, CR, CW.
5469         * groff.c (synopsis, help): Document -i.
5470         * groff.sh: Implement -i.
5472         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5473         Simplify the construction of SN.
5475         * troff/number.c (parse_term): Give `|' a higher precedence.
5476         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5477         accordingly.
5479         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5481 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5483         * lib/string.c (string::move): New function.
5484         * lib/stringclass.h: Declare it.
5486 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5488         * troff/env.c (distribute_space): Add optional argument
5489         `force_forward'.
5490         (environment::wrap_up_field): Call distribute_space with
5491         `force_forward' argument of 1.
5493 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5495         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5496         Inline it.  Move reallocation into...
5497         (string::grow1): New function.
5498         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5499         dependencies to include library header files.
5500         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5502 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5504         * macros/tmac.s (@NH): Use the same number registers than -ms does
5505         for the heading level counters.  Use the same string that -ms does
5506         for the number for this heading.
5508 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5510         * lib/new.c (operator new): Cast result of malloc to char *.
5512         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5513         is not null.
5515 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5517         * groff.c (main): Support -i.
5519 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5521         * pic/pic.h: Include <osfcn.h>.
5523         * ps/ps.c: Add declaration of mktemp.
5525         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5526         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5527         argument as union wait *.
5528         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5529         argument to union wait *.
5531 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5533         * tty/tmac.tty: Add definition of \(co.
5535         * pic/object.c (make_arc): Only increase radius when radius
5536         strictly less than d.
5537         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5538         more than once.
5540         * troff/env.c (environment::environment(symbol),
5541         environment::environment(const environment *)):  Initialize
5542         input_trap_count.
5544 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5546         * tbl/main.c (main): Add exit(0).
5548         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5550         * pic/main.c (main):
5551         * eqn/main.c (main):
5552         * tbl/main.c (main):
5553         * etc/soelim.c (main):
5554         * driver/printer.c (printer::~printer):
5555         * troff/node.c (real_output_file::~real_output_file,
5556         real_output_file::flush):  Check for errors on stdout.
5558         * most files: Add 1991 to copyright notice.
5560         * macros/tmac.s: Don't test \n(.x and \n(.y.
5562         * troff/input.c (token::next): Rename `escape_char' label to
5563         `handle_escape_char' and `normal_char' label to
5564         `handle_normal_char'.
5566 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5568         * groff.c (main, synopsis, help): Support -a option.
5569         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5570         to trflags while parsing options.
5572 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5574         * troff/number.c (parse_term): With `m', `M' and `n' scale
5575         indicators, convert scale factor to hunits before scaling.
5577 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5579         * lib/font.c (scale_round): Better test for overflow when n is
5580         negative.
5582 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5584         * tbl/main.c (process_format): Add second argument of type
5585         options*. Change callers.  Allow opt->tab_char as well as '\t'
5586         between format items.
5588 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5590         * macros/tmac.an (PD): With no arguments, make sure register PD is
5591         at least \n[.V].
5592         (TH): Call PD with no argument, instead of setting register PD
5593         directly.
5595 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5597         * Version 1.00 released.
5599 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5601         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5603         * dvi/devdvi/DESC: Mount CW instead of CR.
5605         * dvi/tmac.dvi: Add definition of \(tm.
5607         * dvi/devdvi/texsy.map: Add lh, and rh.
5608         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5609         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5611         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5612         * dvi/devdvi/Makefile: Install H.
5613         * dvi/devdvi/H: New file.
5615 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5617         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5618         be 0.
5620 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5622         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5624         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5626         * macros/tmac.s (@EN): Handle the case where the equation is empty
5627         but the label is not.
5629 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5631         * troff/groff.h: New warning category WARN_SPACE.
5632         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5633         WARN_SPACE to warning_table.
5634         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5635         is longer than two characters and is not defined, but the first
5636         two characters do make a defined name.
5638         * PROBLEMS: New file.
5640         * CHANGES: New file.
5641         * README-0.6, README-1.00: Deleted.
5643         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5644         * xditview/devX75/Makefile: Make devX75-12.
5645         * xditview/devX100/Makefile: Make devX100-12.
5647         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5648         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5650 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5652         * README-0.7: Rename to README-1.00.
5654         * macros/tmac.pic: New file.
5655         * macros/Makefile (install.nobin): Install tmac.pic.
5657 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5659         * troff/env.c (hyphen_word): Correct the test for whether the
5660         token is a hyphen.  Reset npos to 0.
5662         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5664 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5666         * macros/tmac.s (ds*common-end): Call par*reset.
5667         (PE): Likewise.
5668         (par@reset-indent): Deleted.
5670         * macros/tmac.s (@IP): Divert the label.
5672 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5674         * xditview/draw.c (setGC): Use a line width of .1m rather than
5675         .04m by default; round rather than truncate value.
5677         * tbl/table.c (class empty_entry): New class.
5678         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5679         (table::add_entry): Represent empty entries by objects of type
5680         empty_entry.
5681         (table_entry::line_type): Return -1.
5682         (table::determine_row_type): Ignore entries with line_type 0.
5683         Treat type -1 as non-lines.
5685 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5687         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5688         macros/tmac.s: Rename \(-d to \(Sd.
5690 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5692         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5693         * xditview/libXdvi/DviChar.c: Likewise.
5694         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5696 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5698         * troff/div.c (top_level_diversion::begin_page): Call
5699         init_output() if the_output is 0.
5701 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5703         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5704         ESCAPE_c.
5705         (get_copy): Turn \E into ESCAPE_E.
5706         (token::process, asciify): Handle ESCAPE_E.
5708         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5709         (RD): New macro.
5710         (DS): Implement `.DS R'.
5712 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5714         * macros/tmac.s (FS): New macro.
5716         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5718         * macros/tmac.s (cov*tl-init): Remove after first execution
5719         instead of aliasing to @nop.  Call top of page macro explicitly
5720         instead of setting trap; call @init first.  Set pg@top as top of
5721         page macro.
5722         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5723         cov*auto-init as top of page trap. 
5724         (TL, LP): Do a break instead of calling cov*tl-init.
5725         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5726         @FE; in this case also give a warning and always start another
5727         page. No need to set pg@top here.
5728         (cov*tl-init): Rename to cov*first-page-init.
5730         * macros/tmac.s (RP): Do `.pn 0'.
5731         (cov*tl-init): With RP format don't do `.pn 0'.
5733         * macros/tmac.s (pg@cs-top): Set no space mode.
5735         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5736         (cov*ab-init): Alias TL, AU and AI to these.
5738 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5740         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5741         (@EN): Do nothing unless \n[dl] is > 0.
5743 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5745         * pic/object.c (ellipse_object::radius): New function.
5747         * VERSION: Change version to 0.7.
5749         * tbl/table.c (block_entry::do_divert): Declare return type as
5750         void.
5751         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5753 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5755         * troff/column.c: New file.
5756         * troff/Makefile: Corresponding changes.
5758         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5759         Friend of vunits.
5761         * troff/div.c (top_level_diversion::space): If the space causes
5762         the first-page transition and springs a trap, truncate the space
5763         to 0.
5765 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5767         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5768         the document.
5770         * pic/troff.c (troff_output::line_thickness,
5771         troff_output::set_fill): Do a horizontal motion to compensate for
5772         the width of the \D escape sequence.
5774 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5776         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5777         (not X75).
5779         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5780         to printf.
5782         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5783         Supply empty definition.
5784         (text_entry::simple_print, simple_text_entry::simple_print):
5785         Delete declarations.
5786         (table::add_entry): Represent empty entries by objects of type
5787         `simple_entry'.
5789 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5791         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5793         * tbl/table.c (left_text_entry::add_tab): New function.
5795         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5796         initialize like LP.
5798 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5800         * troff/env.c (environment::start_field): Give an error message if
5801         there is no next tab.
5803 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5805         * troff/env.c (hyphenate): Skip initial elements with zero
5806         hyphenation code.
5808         * macros/tmac.s (par@init): Keep VS in points rather than units.
5810 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5812         * pic/main.c (main): Implement `-c' option.
5813         * pic/output.h: Declare make_tpic_output().
5814         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5815         protected.
5816         (tpic_output): New class.
5817         (tpic_output::tpic_output, tpic_output::set_pen_size,
5818         tpic_output::command, make_tpic_output): New functions.
5820 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5822         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5823         if they're not already defined.
5824         * tbl/table.c (init_output): Don't test \n(.g.
5826         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5827         `d', `r' and `c' conditions even in compatibility mode.
5829 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5831         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5832         box.
5834 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5836         * troff/env.h (environment::prev_line_interrupted): New member.
5837         (environment::get_prev_line_interrupted): New function.
5838         * troff/env.c (environment::newline): Set prev_line_interrupted.
5839         (environment::environment(const environment *),
5840         environment::environment(symbol)): Initialize
5841         prev_line_interrupted.
5842         * troff/input.c (process_input_stack): Don't give special
5843         treatment to space and newline at the beginning of the line if the
5844         previous line was interrupted.
5846 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5848         * eqn/eqn.y: Disallow PRIME by itself.
5849         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5850         PRIME.
5851         (def_table): Remove definition of '.  Define prime to be `.
5853         * eqn/eqn.y: Split off part of rule `script' into a new rule
5854         `nonsup'.
5856 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5858         * macros/tmac.s ({, }): New string aliases.
5860 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5862         * README-0.7: New file.
5864 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5866         * macros/tmac.s: New file.
5867         * man/groff_ms.man: New file.
5868         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5869         * Makefile.bd: Similarily.
5870         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5871         definition of TMAC_S.
5872         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5873         * macros/TODO: New file.
5875 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5877         * troff/env.c (right_justify): New function.
5878         (init_env_requests): Bind this to request "rj".
5879         (center_lines): Set right_justify_lines to 0. If we get a bad
5880         integer, center 1 line.
5881         (environment::environment(symbol), environment::environment(const
5882         environment *)): Initialize right_justify_lines.
5883         (environment::get_right_justify_lines): New function.
5884         (init_env_requests): Bind this to number_register ".rj".
5886         * troff/env.c (environment::choose_breakpoint): Implement
5887         hyphenation_margin and hyphenation_space.
5888         (environment::get_hyphenation_space,
5889         environment::get_hyphenation_margin): New functions.
5890         (init_env_requests): Bind these to .hys and .hym.
5891         (hyphenation_space_request, hyphenation_margin_request): New
5892         functions
5893         (init_env_requests): Bind these to hys and hym.
5894         (environment::environment(symbol), environment::environment(const
5895         environment *)): Initialize hyphenation_margin and
5896         hyphenation_space.
5897         * troff/env.h: Corresponding changes to class environment.
5899 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5901         * troff/div.c (blank_line): Always do a break.
5903         * eqn/box.c (do_text): Turn off escapes while appending text to
5904         string.
5906 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5908         * troff/input.c (while_break_request, while_continue_request): New
5909         functions.
5910         (init_input_requests): Bind these to "break" and "continue".
5911         (while_depth, while_break_flag): New variables.
5912         (while_request): Update while_depth.  Break out of loop if
5913         while_break_flag is set.
5915 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5917         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5918         rather than 0.
5920 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5922         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5924         * stringify: New file.
5925         * Makefile (groff.o): Use stringify.
5927         * xditview/tmac.X: Remove definition of \(rn.
5928         * xditview/libXdvi/DviChar.c: Remove radicalex from
5929         Adobe_symbol_map.
5931 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5933         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5934         (alphabetic_block_entry::alphabetic_block_entry,
5935         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5936         New functions.
5937         (block_entry::divert): Split off body into ...
5938         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5939         from the line length; also update the span width to dl+2n, and the
5940         alphabetic span width to dl.
5942         * driver/input.c (do_file):  While reading argument to D command,
5943         when expanding buffer, multiply szp by sizeof(int) rather than 2
5944         in the argument to memcpy.
5946         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5947         width of alphabetic columns.
5949 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5951         * troff/node.c (lookup_family): Supply second argument to lookup.
5953         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5954         search, return immediately if v is 0.
5956         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5957         (troff_output::start_picture): Set this reg.
5958         (troff_output::end_picture): Remove this reg
5959         * eqn/box.c (box::extra_space): Don't produce `\x's if
5960         EQN_NO_EXTRA_SPACE_REG is defined.
5962         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5963         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5964         character.
5966 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5968         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5969         requests.
5971         * troff/div.c (top_level_diversion::top_level_diversion):
5972         Initialize page_number to 0.
5974 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5976         * groff/troff (environment::environment(const environment *)):
5977         Initialize name to e->name, rather than "anonymous".
5979 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5981         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5982         requested_page.  Split middle part into ...
5983         (FindPage): New function.
5984         (SetValues): If we don't yet know the last page, and the requested
5985         page is greater than the current page, call FindPage.
5986         Update the font_map_string before doing this.
5988         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5989         Translate \(lh and \(rh into left and right double arrows.
5991         * troff/node.c (class hyphen_inhibitor_node): New class.
5992         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5993         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5994         hyphen_inhibitor_node::type,
5995         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5996         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5997         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5998         word.
6000 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
6002         * troff/node.h (dummy_node::get_hyphenation_type,
6003         transparent_dummy_node::get_hyphenation_type):  Declare them.
6004         * troff/node.c: (dummy_node::get_hyphenation_type,
6005         transparent_dummy_node::get_hyphenation_type): New functions.
6007 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
6009         * xditview/libXdvi/draw.c: If M_PI not defined after including
6010         math.h, then define it.
6012         * xditview/Makefile: Add definition of AR. Pass it to the submake
6013         in libXdvi.
6014         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6016 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
6018         * troff/dictionary.h (object_dictionary::alias): Declare return
6019         value as int.
6020         * troff/dictionary.c (object_dictionary::alias): Return non-zero
6021         if the old name was defined.
6022         * troff/input.c (alias_macro): Give a warning if the old name was
6023         not defined.
6024         * troff/reg.c (alias_reg): Likewise.
6026 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
6028         * troff/input.c (token::next): Delete implementation of \R.
6030         * macros/Makefile: Strip comments from tmac.e while installing it.
6032         * troff/input.c: New variable `nroff_mode'.
6033         (troff_request, nroff_request): New functions.
6034         (init_input_requests): Bind `troff' and `nroff' to troff_request
6035         and nroff_request.
6036         (do_if_request): Compute results of t and n conditions from
6037         nroff_mode.
6039         * text/text.c (split_text): Fix typo in >=.
6041         * eqn/lex.c: Add definition of `==' to def_table.
6043 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
6045         * pic/tex.c (tex_output::start_picture): Change the definitions of
6046         \graph and \graphtemp so that they work properly with Plain TeX.
6048         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6049         argument to `ar' is not less than the first.
6051         * pic/pic.y: Allow a comma between elements of the variable list
6052         in the argument to `reset'.
6054         * pic/object.c (arc_object::arc_object): Fix computation of
6055         radius.
6057         * eqn/main.c (main): Add exit(0).
6059 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
6061         * troff/div.c (begin_page): Test no_space_mode after doing the
6062         break, but still push the page ejector cookie before doing the
6063         break.  Also set the next page number after doing the break.
6064         
6065         * xditview/xditview.c (NewFile): Don't set the title and icon name
6066         if this is the first file and its name is `-'.
6067         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
6068         the X75 and X100 devices.
6069         (main): If a device has the XT_OPTION flag set and there's exactly
6070         one file argument, pass the driver -xrm and -title options to set
6071         the icon name and window title to the name of the file.
6073         * troff/env.c (environment_switch): If there was an argument but
6074         it wasn't a valid number or name, then pop an environment but
6075         don't give an error message on underflow.
6077         * troff/number.c (start_number): Correct spelling in error message.
6079         * troff/input.c (token::delimiter): Don't print an error message
6080         if err is false.
6082         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6083         ParseDrawFunction if dw->display_enable is true.
6085 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
6087         * pic/pic.y: Parse text positioning like normal attributes, so as
6088         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
6089         positioning attribute.
6091 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
6093         * tbl/main.c (process_data): When in state START while reading a
6094         text block, don't change to state MIDDLE if c is a newline.
6096 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
6098         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6099         so as to avoid shadowing parameter.
6101 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
6103         * tbl/table.c (trim_space): Deleted.
6104         (table::add_entry): Don't call trim_space.
6106 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
6108         * VERSION: Change version to 0.6.
6110         * troff/number.c (parse_expr): Make == work.
6112 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
6114         * man/grog.man: New file.
6115         * man/Makefile: Add grog.n to MAN1PAGES.
6116         * etc/grog.sh: New file.
6117         * etc/Makefile: Install grog.sh as grog.
6119 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
6121         * troff/input.c (token::next): Implement \E.
6123 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
6125         * xditview/tmac.X: Change font translations to match tmac.ps.
6127         * troff/input.c (non_empty_name_warning): Don't give a warning if
6128         `\{' terminates the name.
6130 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
6132         * ps/devps/symbol.diff: New file.
6133         * ps/devps/FontMakefile: Mention symbol.diff.
6135 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
6137         * troff/node.c (font_position): Use get_long_name to read the
6138         external_name.
6140         * troff/env.c (environment_switch): If we get a number that's < 0
6141         or >= NENVIRONMENTS, treat it like a name.
6142         Change NENVIRONMENTS to 10.
6144         * troff/groff.h: Remove definition of FONTS_MAX.
6145         * troff/node.h (class font_family): Make map a pointer instead of
6146         an array. Add a map_size member. Make it a class. Make nm const
6147         and public. Make invalidate_fontno a friend.
6148         * troff/node.c: Define font_table_size. Make font_info a pointer
6149         rather than an array.
6150         (class troff_output_file): Allocate font_position dynamically. Add
6151         nfont_positions member.
6152         (troff_output_file::set_font): Grow font_position if necessary.
6153         (troff_output_file::~troff_output_file): Delete font_position.
6154         (troff_output_file::troff_output_file): Allocate font_position.
6155         (grow_font_table): New function.
6156         (troff_output_file::really_begin_page,
6157         troff_output_file:really_copy_page): Use nfont_positions rather
6158         than FONTS_MAX.
6159         (mount_font_no_translate, mount_style): Call grow_font_table if
6160         necessary.
6161         (font_family::font_family): Allocate map.
6162         (font_family::make_definite): Grow map if necessary. Use
6163         font_table_size instead of FONTS_MAX.
6164         (font_family::~font_family): New function.
6165         (invalidate_fontno): Use font_family::map_size.
6166         (get_fontno, env_space_width, env_half_narrow_space_width,
6167         env_narrow_space_width, symbol_fotno, is_good_fontno,
6168         get_bold_fontno, make_glyph_node): Use font_table_size rather than
6169         FONTS_MAX.
6170         (next_available_font_position): Never return 0.
6172 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6174         * ps/tmac.ps: Add font translations for compatibility with dpost.
6176 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6178         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6179         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6180         Move definitions baseline_sep, shift_down, column_sep,
6181         matrix_side_sep into...
6182         * eqn/box.c: Add them to param_table.
6183         * eqn/pbox.h: Add declarations to pbox.h.
6185         * troff/input.c (set_string): Cast value to unsigned char *.
6187         * troff/token.h (process_input_stack): Declare it static before
6188         declaring it a friend.
6190 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6192         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6193         and bottom.
6194         * dvi/devdvi/EX: Regenerate.
6196         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6197         transparent.
6199 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6201         * eqn/lex.c: In defaults_table, make definition of `dot' call
6202         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6203         accents.
6205         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6206         argument.
6207         (for_input::get, for_input::peek): Use this.
6208         (do_for): Add by_is_multiplicative argument.
6209         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6210         Change semantic value of optional_by to be a double plus a flag
6211         saying whethet the by clause is multiplicative.
6213         * eqn/lex.c (get_delimited_text): Remember location of start of
6214         definition.  Improve error handling when EOF is encountered.
6216         * lib/font.h: Rename handle_x_command to
6217         handle_unknown_font_command.
6218         * lib/font.c (font::load): Call handle_unknown_font_command for
6219         any unknown command in the font description file.  Don't call
6220         handle_x_command. Include the name of the command in the argv.
6221         Improve message for unknown command after kernpairs or charset
6222         command.
6223         * ps/ps.c (ps_font::handle_x_command): Rename to
6224         handle_unknown_font_command.  Remove message about `x download'
6225         command.  Give error message for wrong number of arguments.
6226         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6227         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6228         handle_unknown_font_command. Give an error message for wrong
6229         number of arguments.  Rename design_size to designsize.
6230         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6231         checksum', `designsize' instead of `design_size'.
6233 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6235         * eqn/*.[chy]: Change underaccent to uaccent.
6237         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6238         give it the same precedence as ACCENT.
6239         * eqn/other.c (make_underaccent_box): New function.
6240         * eqn/box.h: Declare it.
6241         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6242         def_table.
6244 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6246         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6247         (parse_init): Call reset_all.
6248         (define_variable): When defining scale reset only those
6249         pre-defined variables that are scaled.
6250         (defaults_table): Add `scale' as non-scaled value.
6252         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6253         together with the text; allow any number of positioning words;
6254         allow center as a positioning word.
6256         * pic/object.c (output::compute_scale): Get picture maximum height
6257         and width from variables called maxpswid and maxpsht.
6258         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6260 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6262         * pic/object.c (object_spec::make_text): Multiply textht by number
6263         of text items.
6265         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6266         occur.
6267         (do_sprintf): New function.
6268         (pic.gperf): Add sprintf token.
6269         (text, sprintf): New rules.
6271         * pic/pic.y: `rand()' with no arguments returns a random number
6272         in the range [0,1).
6274         * pic/pic.y: Allow a bare expression to be an attribute: change
6275         precedences to support this.  Change optional_ordinal rule to
6276         optional_ordinal_last to avoid reduce/reduce conflict.
6277         * pic/object.c (object_spec::object_spec): Initialize direction.
6279         * pic/pic.y: Implement ^ operator meaning exponentiation.
6281         * troff/node.h: Add default argument to mount_font.
6282         * troff/node.c (font_position): Read an optional third argument
6283         giving the external_name.
6284         (mount_font): Add optional argument giving the external_name.
6285         (mount_font_not_translate): Have additional argument giving
6286         external name.  Use this name to load the font.  Pass both names
6287         to font_info::font_info.
6288         (font_info::font_info): Have additional argument giving
6289         external_name.
6290         (class tfont): New member external_name.
6291         (font_info::get_tfont): Use external name to construct tfont_spec.
6293 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6295         * eqn/lex.c (init_table): Add argument giving device.  Define
6296         name of device to be "1".
6297         (do_ifdef): Counts as true if the argument has been defined with
6298         `define'.
6299         * eqn/main.c (main): Call init_table with device argument. Make
6300         device local to main.
6301         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6302         of device.
6304         * pic/lex.c (get_delimited): Allow text to be delimited by
6305         matching {}s.  Don't recognize ending delimiter within a string.
6307         * troff/input.c (get_delim_name): New function.
6308         (token::next): Implement \C.
6310         * lib/font.c (font::load): Grok ---.  Add an alias for each
6311         character based on its code.
6312         (font::get_code_width): Deleted.
6313         * lib/font.h (class font): Declare font::number_to_index().
6314         Remove declaration of font::get_code_width.
6315         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6316         to indices of named characters.
6317         (font::number_to_index): New function.
6318         * troff/input.c (font::number_to_index): New function.
6319         (get_charinfo_by_number, charinfo::get_number,
6320         charinfo::set_number): New functions.
6321         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6322         (token::process, token::description, token::get_char,
6323         token::add_to_node_list, token::operator==): Handle
6324         TOKEN_NUMBERED_CHAR.
6325         * troff/charinfo.h: Declare get_charinfo_by_number,
6326         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6327         charinfo class.
6328         (charinfo::numbered): New function.
6329         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6330         * troff/env.h (class environment): Remove declaration of ...
6331         * troff/env.c (environment::make_numbered_char_node): Deleted.
6332         * troff/node.c (make_numbered_node): Deleted.
6333         (class numbered_glyph_node): Remove.
6334         (troff_output_file::put_char_width, troff_output_file::put_char):
6335         Handle numbered chars.
6336         (troff_output_file::numbered_char): Removed.
6337         (tfont::get_code_width): Removed.
6338         (make_glyph_node): Don't search special fonts for numbered
6339         characters.
6340         * troff/node.h: Remove declaration of make_numbered_node.
6341         * driver/input.c (do_file): Handle N command.
6342         * driver/printer.h: Add declaration of ...
6343         * driver/printer.c (printer::set_numbered_char): New function.
6344         * dvi/tfmtodit.c (main): Generate unnamed entries.
6345         * ps/devps/afmtodit: Likewise.
6346         * xditview/xtotroff.c (MapFont): Likewise.
6347         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6349         * tbl/main.c (process_format): If multiple widths are specified
6350         for a column but all the widths are the same, don't give an error
6351         message.
6353         * tbl/table.c (table::do_row): If the current row is all lines and
6354         the stuff doesn't contains a line, mark the top of the row after
6355         printing stuff before the row.  If the current row is not all
6356         lines and the stuff doesn't contain a line, don't unnecessarily
6357         mark the top of the row before printing the stuff.
6358         
6359 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6361         * troff/groff.h: Remove MAX_PATH.
6362         * troff/input.c (open_file): Dynamically allocate space for the
6363         path.
6364         (open_mac_file, process_macro_file): Corresponding changes.
6366 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6368         * troff/node.h (class output_file): Make copy_file pure.  Add
6369         vspace method ifdef COLUMN. Add is_printing method.
6370         * troff/node.c: Add class printing_reg. Add class
6371         real_output_file. Derive other output_file classes from
6372         real_output_file; in these classes rename begin_page to
6373         really_begin_page, print_line to really_print_line, copy_file to
6374         really_copy_file, transparent_char to really_transparent_char.
6375         Move output_file::flush to real_output_file. Add printing member
6376         to class output_file.
6377         * troff/div.h: Remove printing member from top_level_diversion.
6378         Add vspace member function to class diversion ifdef COLUMN. Add
6379         some declarations ifdef COLUMN.
6380         * troff/div.c (top_level_diversion::copy_file,
6381         top_level_diversion::transparent_output,
6382         top_level_diversion::output): Don't test printing member before
6383         output.
6384         * troff/input.c: Handle initial variable_space_request ifdef
6385         COLUMN.
6386         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6387         but comment it out.
6389 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6391         * troff/div.c (diversion::need): Make any space forced.  If we
6392         sprung a trap, set truncated_space to minus the distance to the
6393         trap and set needed_space to the amount that was needed.
6394         (top_level_diversion::space): A forced space turns no_space_mode
6395         off.
6396         (class constant_vunits_reg): New class.
6397         (init_div_requests): Implement number registers .trunc and .ne
6398         using constant_vunits_reg.
6399         (class truncated_space_reg): Deleted.   
6401         * troff/div.h: Don't have a no_space_mode member in diversion.
6402         Instead have it in top_level_diversion.
6403         * troff/div.c (diversion::diversion): Don't initialize
6404         no_space_mode.
6405         (top_level_diversion::top_level_diversion): Initialize
6406         no_space_mode.
6407         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6408         (macro_diversion::output): Don't clear no_space_mode.
6410         * troff/input.c (diverted_space_node::reread): Don't call
6411         environment::do_break.  In fill mode, act like a blank line.
6412         (diverted_copy_file_node::reread): Don't call
6413         environment::do_break.
6415         * troff/div.c (blank_line): New function.
6416         * troff/div.h: Declare it.
6417         * troff/input.c (process_input_stack): Call it.
6419         * troff/div.c (truncated_space_reg::get_string): New function.
6420         (init_div_requests): Bind to .trunc.
6421         (space_request, top_level_diversion::space,
6422         top_level_diversion::output, macro_diversion::space,
6423         macro_diversion::output): Update truncated_space.
6424         (macro_diversion::output): Redo calculations when trap sprung.
6425         (macro_diversion::output, macro_diversion::space): No need for
6426         trap_flag.
6428         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6429         after truncating post line spacing.
6431 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6433         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6434         defined as a procedure rather than as an operator.
6436 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6438         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6440 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6442         * troff/div.c (top_level_diversion::output): Merge
6443         output_file::print_line and output_file::end_of_line member
6444         functions.
6445         * troff/div.h (class output_file):
6446         * troff/node.c (troff_output_file::print_line,
6447         troff_output_file::end_of_line, output_file::end_of_line,
6448         ascii_output_file::print_line, suppress_output_file::print_line):
6449         Corresponding changes.  
6451 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6453         * troff/input.c (token::next): Don't give a warning for `\.'.
6455         * troff/env.c (environment::get_center_lines): New function.
6456         (init_env_requests): Bind number register .ce to it.
6457         * troff/env.h: Declare it.
6458         * tbl/table.c (table::init_output): Define reset macro to restore
6459         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6460         Then do .ce 0.
6461         (table::print): If center option not given, then imply center
6462         option if SAVED_CENTER_REG > 0.
6464 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6466         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6467         Troff.ps from DOWNLOAD.
6468         
6469         * troff/Makefile: Change comment in DEFINES to avoid confusing
6470         System V make.
6472         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6473         code.  Don't try to catch errors with stopped.
6474         (check_line_lengths): New function.
6475         * ps/devps/prologue (EXEC): Deleted.
6476         (EBEGIN, EEND): New procedures.
6478 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6480         * troff/input.c: Include request.h before node.h.
6481         * troff/node.c: Likewise.
6482         * troff/env.c: Likewise.
6483         * troff/div.c: Likewise.
6484         * troff/node.h (class special_node): Store argument as a macro
6485         rather than a char *.
6486         * troff/node.c (special_node::special_node, special_node::copy):
6487         Grok this.
6488         (special_node::~special_node): Deleted.
6489         (special_node::tprint): Deleted.
6490         (special_node::tprint_start, special_node::tprint_end,
6491         special_node::tprint_char): New functions.
6492         (troff_output_file::special): Deleted.
6493         (troff_output_file::start_special, troff_output_file::end_special,
6494         troff_output_file::special_char): New functions.
6495         * troff/input.c (special_node::tprint): New function.
6496         (do_special): Use macro not char *.
6497         (do_transparent_macro): Deleted.
6498         (token::next): Don't call do_transparent_macro.
6500         * troff/input.c (token::next): Add 'Y' case.
6501         (do_transparent_macro): New function.
6502         * troff/node.c (troff_output_file::special): Handle newlines with
6503         argument using new continuation convention.
6504         * driver/input.c (get_string): Cope with continuation convention.
6505         (do_file): Don't call skip_line after calling get_string(1).
6506         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6507         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6508         arg.
6509         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6510         with +.
6512 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6514         * troff/input.c (asciify): By default, illegal input characters
6515         should return empty string.
6517         * troff/input.c (copy_file): Handle first page transition like title.
6518         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6520         * troff/input.c (token::next): Improve error message for EOF after
6521         escape character.
6522         (input_char_description): New function.
6523         (get_char_for_escape_name): Use input_char_description.
6524         (token::next): Warn about unrecognized escape sequences.
6525         (warning_table): Add WARN_ESCAPE.
6526         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6527         accordingly.
6529         * troff/token.h: Remove declaration of process_input_stack.
6531         * troff/input.c: Remove declaration of init_hyphen_requests.
6532         * troff/request.h: Correct spelling in declaration of same.
6534         * troff/input.c (token::next): Check whether escape_char is 0.
6536 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6538         * groff.c (main, usage, help): Implement -P and -L options.
6539         * groff.sh: Likewise.
6541         * troff/input.c (token::next): Use some gotos to avoid code
6542         duplication.
6544         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6545         Avoid calling symbol::symbol if name empty.
6547 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6549         * troff/input.c (init_input_requests): Make \n(.x return the major
6550         version number and \n(.y return the minor version number.
6551         * troff/Makefile: Construct file majorminor.c defining
6552         major_version and minor_version automatically from ../VERSION.
6554         * troff/node.c (class glyph_node): Make operator new and operator
6555         delete public.
6556         (class ligature_node): Similarily.
6558         * troff/input.c (operator==(const macro &, const macro &)): New
6559         function.
6560         (non_interpreted_node::same): Use this.
6561         (string_iterator::string_iterator): Make macro& argument const.
6563         * troff/input.c (input_iterator::get): New function. Don't make
6564         asciify_macro or class non_interpreted_node friends of class
6565         input_iterator.
6566         (non_interpreted_node::interpret): Use input_iterator::get.
6567         (asciify_macro): Likewise.
6569         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6570         ~non_interpreted_node): Deleted.
6571         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6572         Deleted.
6574         * troff/symbol.h: Make all symbol member functions const.
6576         * lib/strtol.c: New file.
6577         * lib/Makefile: Add strtol.c.
6578         * Makefile: Define STRTOL as strtol.o to include strtol in
6579         libgroff.a.
6581 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6583         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6585 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6587         * troff/input.c (do_special): Use input_level.
6589         * troff/token.h (TOKEN_BACKSPACE): New token.
6590         (token::backspace): New function.
6591         * troff/input.c (token::description, token::next, token::process):
6592         Grok TOKEN_BACKSPACE.
6593         (do_special): Turn TOKEN_BACKSPACE back into \b.
6595         * troff/token.h (token::leader): New function.
6596         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6598         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6600         * troff/input.c (do_special): Use token::description in error
6601         message.
6603 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6605         * troff/input.c (decode_args): Combine quoted and
6606         quote_input_level variables. Make it a for (;;) loop.
6608         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6610         * troff/input.c (read_long_escape_name): The test for whether to
6611         expand buffer was off by 1.
6612         (read_string): Similarily.
6614 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6616         * troff/input.c: Use `const int' rather than `static const int'.
6618         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6619         (macro_diversion::copy_file): New function.
6620         * troff/node.h: New class diverted_copy_file_node.
6621         * troff/node.c: Implement it.
6622         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6623         first page transition by pushing a diverted_copy_file_node.
6624         * troff/input.c (token::next, process_input_stack): Don't handle
6625         COPY_FILE_REQUEST.
6627 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6629         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6630         whether space widths need adjusting.
6632         * troff/charinfo.h: Generalize translated_to_space to
6633         special_translation so as to allow translation to \&.
6634         * troff/input.c (translate): Allow translation to \&.
6635         (charinfo::*): Corresponding changes.
6636         * troff/node.c (make_node, node::add_char): Corresponding changes.
6637         * troff/node.h (dummy_node::dummy_node): Allow optional first
6638         argument.
6640         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6641         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6642         TOKEN_REQUEST.
6643         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6644         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6645         (token::process): Grok that.
6646         * troff/input.c (copy_file): Handle first page transition like
6647         title by pushing a COPY_FILE_REQUEST cookie.
6648         (token::next, process_input_stack): Grok that.
6649         * troff/node.h (output_file::copy_file): Add x and y arguments.
6650         Make it non-pure.
6651         * troff/div.c (top_level_diversion::copy_file): Supply them.
6652         * troff/node.c (troff_output_file::copy_file): Add x and y
6653         arguments; moveto specified position.  Invalidate font_position
6654         array after copying file.
6655         (output_file::copy_file): New function.
6656         (suppressed_output_file::copy_file, ascii_output::copy_file):
6657         Removed.
6658         * troff/input.c (transparent_file): New function.
6659         (init_input_requests): Bind to "trf".
6660         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6661         (process_input_stack): Likewise.
6663         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6665         * troff/node.c (init_node_requests): New number registers .kern
6666         pointing to global_kern_mode, and .lg pointing to
6667         global_ligature_mode.
6669         * troff/node.c (ligature): Don't change it if we get a bad
6670         integer.
6672         * troff/input.c (do_define_string): Don't strip tabs.
6674         * troff/input.c (asciify_macro): Make the string_iterator auto.
6676         * troff/node.c (init_font_requests): Rename to...
6677         (init_node_requests):
6678         * troff/node.h: Change declaration.
6679         * troff/input.c (main): Change call.
6681         * troff/input.c (node::reread, diverted_space_node::reread): New
6682         methods.
6683         (process_input_stack): Call reread rather than
6684         get_diverted_space_node.
6685         * troff/node.c (node::get_diverted_space_node,
6686         diverted_space_node::get_diverted_space_node): Removed.
6687         * troff/node.h: Declare reread methods instead of
6688         get_diverted_space_node methods. Make `n' member private.
6689         * troff/input.c: (token::diverted_space): Removed.
6690         * troff/token.h: Removed declaration.
6691         
6693 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6695         * eqn/script.c (script_box::compute_metrics): Don't let
6696         SUP_RAISE_FORMAT become negative.
6698         * tbl/table.c (table::do_row): Entries that don't end in the
6699         this row shouldn't make the row non-blank.
6700         
6701         * tbl/table.c (table::make_columns_equal): Only set the width of
6702         columns which are marked as equal.
6703         
6704         * tbl/main.c (process_data): Before issuing excess data error,
6705         if last character was a newline unget it; then get it again after
6706         the error.  Also include the contents of the entry in the message.
6708         * groff.c: New file.
6709         * Makefile: Build groff from groff.c.  Make it possible to use
6710         either groff.sh or groff.c as groff.
6711         * Makefile.bd: Similarily.
6713 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6715         * groff.sh: Don't delay expansion of $@ in assignment to files.
6716         Remove occurrences of \".
6718 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6720         * all Makefiles: Simplify and rearrange.
6722         * Makefile: Handle fmod like malloc.
6723         * lib/Makefile: Similarily.
6724         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6726         * Makefile: Rename OPTIMISE to OPTIMIZE.
6728         * groff.sh: Remove assignment to PATH.
6729         * Makefile: Remove SHPATH variable.
6730         * Makefile.bd: Similarily.
6732         * groff.sh: Add -V option to print the pipeline instead of
6733         executing it.
6735 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6737         * lib/font.c: Split off file searching into ...
6738         * lib/fontfile.c: New file.
6740         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6742 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6744         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6745         Also change misleading comment.
6746         (table::do_vspan): Change similarily misleading comment.
6747         * tbl/main.c (process_data): A format row with an explicit `s'
6748         uses up a data line, even if all the other columns are `_' or `='.
6750         * troff/input.c (token::description): Fix description of
6751         TOKEN_DUMMY and TOKEN_EMPTY.
6753 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6755         * groff.sh: Fix description of -Z in help message.
6757 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6759         * pic/object.c (object_spec::make_object): Allow negative and zero
6760         line thicknesses.
6761         * pic/pic.y: Give linethick default value of -1.0.
6762         * pic/troff.c (troff_output::troff_output): Initialize
6763         last_line_thickness to BAD_THICKNESS.
6764         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6765         (troff_output::line_thickness): Canonicalize negative thicknesses
6766         to RELATIVE_THICKNESS.
6767         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6768         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6769         to -1.0.
6770         (tex_output::start_picture): Set pen_size to -2.0.
6772         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6773         0, then use 0 linewidth.
6774         (ps_printer::ps_printer): Initialize line_thickness to -1.
6776         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6778         * ps/devps/symbolchars: Remove `or'.
6779         * ps/tmac.ps: Implement \(or with .char.
6781         * ps/devps/symbolchars: Move most characters into textmap.
6782         * ps/devps/textmap: Add names for troff bracket characters. Remove
6783         ul, ru, br, bv.
6785         * ps/devps/TSymbol.ps: Removed.
6786         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6787         * ps/tmac.ps: Do with .char what TSymbol did.
6788         * ps/devps/download: Remove TSymbol.
6790         * ps/devps/T: Removed.
6791         * ps/devps/Troff.ps: Removed.
6792         * ps/devps/Troff.afm: Removed.
6793         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6794         * ps/devps/download: Remove Troff.
6795         * ps/devps/FontMakefile: Remove T target.
6796         * ps/devps/DESC-A4: Remove T from font list.
6797         * ps/devps/DESC-letter: Likewise.
6799         * troff/input.c (macro_to_node): Rename to ...
6800         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6801         character's definition while processing it.
6802         * troff/node.c (node::add_char, make_node): Change calls to
6803         macro_to_node accordingly.
6805         * troff/input.c (token::next): Translate \_ to \(ul.
6807         * tty/devascii/R.proto: Add `|'.
6808         * tty/devlatin1/R.proto: Likewise.
6810 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6812         * man: Put the version number in all the man pages.
6814 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6816         * Makefile.bd: New file.
6817         * README.bd: New file.
6819         * VERSION: New file.
6820         * lib/version.c: Removed.
6821         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6822         in clean target.
6824         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6825         environment variable.
6827         * all Makefiles: Split install target into install.bin for
6828         binaries, and install.nobin for everything else.
6829         * Makefile: Add bindist target.
6831         * man/afmtodit.man: New file.
6832         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6833         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6834         in BINDIR.
6835         * ps/Makefile: Pass BINDIR to make install in devps.
6837         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6838         the space character.
6840         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6842 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6844         * ps/ps.c: Redo font downloading.
6845         * ps/devps/download: New file.
6846         * ps/devps/Makefile: Add download to DEVICEFILES.
6847         * ps/devps/afmtodit: Remove -d option.
6848         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6849         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6850         * ps/devps/zapfdr.ps: Likewise.
6851         * ps/devps/TSymbol.ps: Likewise.
6853 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6855         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6857 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6859         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6860         then strip the first line if it starts with %.
6861         * Makefile: Add a comment about this.
6863         * man/tfmtodit.man: New file.
6864         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6865         * dvi/Makefile: Install tfmtodit in BINDIR.
6867         * dvi/tfmtodit.c (usage): Mention -v option.
6869 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6871         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6872         * troff/node.c (troff_output_file::transparent_char): Don't call
6873         flush_tbuf.
6875         * eqn: Add check_tabs method to most box classes.
6876         * eqn/box.c (box::top_level): Call check_tabs.
6878         * eqn/script.c (script_box::output): Use \Z.
6879         * eqn/limit.c (limit_box::output): Use \Z.
6881         * eqn/box.c (box::top_level): Use itoa.
6883 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6885         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6886         * dvi/devdvi/Makefile: Don't make links to CW.
6888         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6889         HX, HD.
6890         * xditview/tmac.X: Likewise.
6892         * troff/node.c: Add font translation feature.
6893         (get_font_translation): New function.
6894         (symbol_fontno): Translate the font name.
6895         (mount_font_no_translate): Rename to mount_font to this.
6896         (mount_font): New function.
6897         (font_family::make_definite): Call mount_font_no_translate instead
6898         of mount_font.
6899         (mount_style): Translate the font name.
6900         (font_translate): New function.
6901         (init_font_requests): Bind "ftr" to font_translate.
6903         * ps/devps/prologue (SN): New procedure that rounds a position to
6904         the nearest (pixel + (.25,.25)).
6905         (DL): Use SN to round endpoints.
6907         * lib/version.c: Changed version to 0.5.
6909 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6911         * Makefile: Move definition of PAGE to the very beginning, so that
6912         people are less likely to miss it.
6914 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6916         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6918         * troff/env.c (environment::choose_breakpoint): Make `can't find
6919         breakpoint' error a warning of type WARN_BREAK.  Change message to
6920         `can't break line'.
6921         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6922         code 040000.
6923         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6924         WARN_BREAK in DEFAULT_WARNING_MASK.
6926         * tty/tmac.tty: Add definition of \(+-.
6928         * groff.sh: Remove `--' option to set command.
6930         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6932         * ps/devps/eqnchar: Better definition of cdot using md.
6933         * dvi/devdvi/eqnchar:  Likewise.
6934         * xditview/devX100/eqnchar:  Likewise.
6935         * xditview/devX75/eqnchar: Likewise.
6936         * eqn/lex.c: Add definition of cdot.
6938 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6940         * troff/input.c (get_optional_char): New function.
6941         * troff/input.c (set_page_character): Use get_optional_char(),
6942         rather than has_arg() and tok.get_char(1).
6943         * troff/env.c (tab_character, leader_character, hyphen_char,
6944         field_characters): Likewise.
6945         (margin_character): Likewise.  Also always delete the
6946         margin_character_node.
6948         * troff/input.c (token::get_char): Use token::description.
6950         * troff/input.c (has_arg): Don't skip over tab and \}.
6951         * troff/number.c (start_number): Give a warning if the number
6952         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6954 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6956         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6957         functions.
6958         (get_name, get_long_name): Use these.  Rename `warn' argument to
6959         `required'.
6961         * troff/node.c (get_fontno): Test that the symbol is not null.
6963         * troff/input.c (token::description): New function.
6964         * troff/number.c (parse_term): Use token::description in `numeric
6965         expression expected' message.
6966         * troff/groff.h: Add WARN_MISSING.
6967         * troff/number.c (start_number): New function.
6968         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6969         get_incr_number): Use start_number().
6970         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6971         default.
6972         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6973         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6974         token::descripion.
6975         * troff/input.c (token::get_char): Use WARN_MISSING.
6976         * troff/input.c (token::delimiter): Use token::description.
6977         * troff/env.c (environment_switch): Back out Aug 3 change.
6978         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6979         warning.
6980         * troff/token.h (token::tab): New function.
6981         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6982         * troff/reg.c (alter_format): Likewise.
6983         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6985 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6987         * troff (most files): Redo warnings. Divide warnings into various
6988         categories; warning() has an additional first argument indicating
6989         the category it falls into.
6990         * troff/input.c (main): -w now takes an argument. New option -W.
6991         (enable_warning, disable_warning): New functions.
6993         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6994         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6996 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6998         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6999         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7000         * xditview/devX75/eqnchar: Likewise.
7001         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7003         * eqn/other.c: When bar or over applies to a single character
7004         don't produce an overline_box or an underline_box. Instead produce
7005         an accent_box or an underaccent_box, with the accent a line
7006         whose width is accent_width.  New classes underaccent_box,
7007         overline_char_box and underline_char_box.
7008         * eqn/box.h: Move overline_box, underline_box, accent_box class
7009         declarations into eqn/other.c. Add declarations of
7010         make_underline_box, make_overline_box, make_accent_box.
7011         * eqn/eqn.y: Call make_overline_box, make_underline_box
7012         make_accent_box instead of constructors.
7013         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7015         * eqn/other.c: Add accent_box::~accent_box.
7016         * eqn/box.h: Declare it.
7018         * groff.sh: With -Tps, use eqn -D.
7020         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7021         rather than \l.
7022         (underline_box::output): Similarily.
7023         (accent_box::output): Use \Z.
7025         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7026         bit smaller.)
7028 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
7030         * troff/div.c (top_level_diversion::transparent_output(unsigned
7031         char)): Use asciify.
7032         * troff/input.c (asciify): Don't make it static.
7033         * troff/token.h (asciify): Declare it.
7034         
7035         * troff/input.c (get_name, get_long_name, token::get_char,
7036         token::delimiter): Add an extra default argument which says
7037         whether a warning should be printed.
7038         * troff: Pass a non-zero argument to one of these rather than
7039         printing a warning directly.
7041 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
7043         * troff: Consistently use symbol::is_null.
7045         * troff/dictionary.h: Move some inline functions into
7046         dictionary.c.
7048         * troff/request.h: Move inline functions into input.c.
7049         (request_or_macro::invoke): Make it pure.
7051         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7052         * troff/input.c (init_input_requests): Use class constant_int_reg.
7053         (class compatible_reg): Deleted.
7054         * troff/div.c (init_div_requests): Use class constant_int_reg.
7055         (class last_post_line_extra_space_reg): Deleted.
7057         * troff/env.c (tab_character): Don't change the tab character if
7058         we get an invalid argument.
7059         (hyphen_char): Similarily.
7061         * troff/reg.c (alter_format): Check that nm is not null.
7063         * Makefile, groff.sh: Make it possible to customize the commands
7064         used for printing PostScript and dvi files. Also make it possible
7065         to customize the path used by groff.sh.
7067         * eqn/eqn.y: Make `left' right associative.
7069 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
7071         * pic/pic.h: Added definition of M_SQRT2 for those systems that
7072         don't have it.
7074         * pic/pic.h: Removed definition of INT_MAX.
7076         * troff/node.c (italic_corrected_node::vertical_extent): Omit
7077         `return'.
7079         * troff/input.c (token::next):  Handle \R like \n.
7081 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
7083         * ps/tmac.pc (PSPIC): Simplify.
7085         * troff/env.c (tab_stops::to_string):
7086         * pic/pic.y (object_type_name):
7087         * pic/troff.c (simple_output::line):
7088         * pic/tex.c (tex_output::spline):
7089         * pic/object.c (object_spec::make_object):
7090         * tbl/main.c (process_data):  Add cases to switch statements to
7091         avoid cfront warnings. (Some of these are spurious, since the
7092         switch already has a default case.)
7094         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
7095         `ps-'.  Don't test systat; instead check number of arguments to
7096         ps-bb.
7098 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
7100         * macros/tmac.e: Do not decrease the page offset by 0.5i.
7102         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7103         Unlink the file as soon as we have opened it, so that we don't
7104         have to bother with signal handlers.
7105         (handler): Deleted.
7106         (fatal_error_exit): Deleted.
7107         (main): Don't call signal.
7109         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7110         can be ignored.
7111         * dvi/devdvi/Makefile: Use the -k option with S and MI.
7113         * pic/pic.y:  If there is a label, or an nth construction before
7114         the first `.' in the argument to `with', ignore it and generate a
7115         warning.
7116         * pic/lex.c (lex_warning): New function.
7118         * tbl/table.c (table::init_output): In section keep and release
7119         macro, use 0 indent when diverting and the correct indent when
7120         rereading.
7122         * troff/input.c (interpolate_number_format): Do not interpolate
7123         anything if the number register is not defined.
7125         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7127 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
7129         * ps/devps/prologue (PICTURE): Set components of graphics state to
7130         their default values.
7132         * ps/devps/text.enc: Add trademark
7133         * ps/devps/textmap: Add names for club, spade, heart, diamond,
7134         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7135         * ps/devps/symbolchars: Add names for summation and product.
7137         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7138         suchthat. Add pp. Add upper-case letters.
7140         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7141         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7142         Upsilon.
7144         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7145         rA (right angle bracket) to ra.  Introduce names for double-headed
7146         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7147         * ps/devps/textmap: Likewise for ps device.
7148         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7149         * tty/devascii/R.proto: Rename lA to la and rA to ra.
7150         * tty/devascii/R.proto: Likewise.
7151         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7152         \(uA, \(dA.
7153         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7155         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7157         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7158         def_table.
7160 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
7162         * troff/div.c (when_request): Use symbol::is_null rather than
7163         has_arg to determine whether we have an argument.
7164         (change_trap): Remove the trap if we get an invalid number. Give
7165         an error if we don't get at least the macro name.
7166         (diversion_trap): Remove trap if we get an invalid name or number.
7168         * troff/env.c (environment_switch): Pop if we get an invalid
7169         symbol or numeric expression.
7171         * troff/input.c (do_define_macro):  If EOF is encoutered while
7172         defining the macro, do tok.next() before returning.
7174         * troff/token.h (has_arg): Move definition from here, to ...
7175         * troff/input.c (has_arg): ... here
7177         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7178         * troff/input.c (shift): Likewise.
7180         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7181         for `.c'.
7183         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7184         `..'.
7186         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7187         interpret_lf_args succeeds.
7189         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7190         \\.  This avoids problems with \$N.
7192         * groff.sh: Pass -C to preprocessors.
7194         * lib/lf.c (interpret_lf_args):  Be more flexible.
7196         * tbl/main.c (main): Add -C option.
7197         (table_input::get): Do not recognize TE if followed by character
7198         other than a space or newline unless -C option given.
7199         (process_input_file): Likewise for lf, TS.
7200         (process_data): Likewise for lf in text blocks.
7202         * eqn/main.c (main): Add -C option.
7203         (do_file): Don't recognize EQ, EN or lf if followed by character
7204         other than space or newline unless -C option given.
7205         * eqn/lex.c (file_input::read_line): Similarily.
7206         * eqn/eqn.h: Declare compatible_flag.
7208         * etc/soelim.c (main): Add -C option.
7209         (interpret_lf_args): Use version in libgroff.
7210         (do_file):
7212         * pic/main.c (main): Add -C option, which sets compatible_flag.
7213         (top_input::get), (top_input::peek):  If -C option not given,
7214         do not recognize .PS/.PE/.PF/.lf if followed by a character
7215         other than space or newline.
7216         * pic/lex.c (file_input::read_line): Similarily.
7217         * pic/pic.h: Add declaration of compatible_flag.
7219 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7221         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7223         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7224         derived from node.  New class space_char_hmotion_node.
7225         * troff/input.c (asciify_macro): New function.
7226         * troff/input.c (init_input_requests): New request `asciify' bound
7227         to asciify_macro.
7228         * macros/mm.diff: New file.
7229         * Makefile:  In install.mm target use `patch' to apply
7230         macros/mm.diff.
7232         * troff/input.c (macro::print_size): Just print the size in bytes.
7234         * troff/div.c (return_request): Correct the argument
7235         interpretation.
7237 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7239         * troff/node.h (class composite_node): Add sz member.
7240         * troff/node.c (composite_node::size): Return sz.
7241         * troff/input.c (macro_to_node):  Use the initial size in the
7242         environment as the size of the composite_node.
7244         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7245         default.
7247 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7249         * troff/div.c (change_trap): If we get a bad number expression,
7250         do nothing.
7252 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7254         * lib/matherr.c (matherr): Define this only if math.h defines
7255         TLOSS.
7257 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7259         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7260         no diversion trap return vunits(INT_MAX - vresolution).
7262 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7264         * troff/input.c (do_zero_width): New implementation that doesn't
7265         use a temporary environment. Use instead:
7266         (token::add_to_node_list): New function.
7267         * troff/env.c (environment::get_prev_char_height),
7268         (environment::get_prev_char_height),
7269         (environment::get_prev_char_skew): New functions.
7270         (environment::get_prev_char): New function.
7271         (environment::get_prev_char_width): Change to use get_prev_char.
7272         (init_env_request): Implement new registers .cht, .cdp, .csk.
7273         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7274         \Z being processed in a separate environment.
7276 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7278         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7280         * tbl/table.c (table::init_output): In the section release macro,
7281         give a warning message if the section won't fit on one page.
7283         * tbl/table.c (table::do_top): Emit table keep only if table is
7284         boxed.
7285         (table::do_bottom): Likewise for table release.
7286         (table::table), (table::add_vertical_rule):  Remove reference to
7287         keep member.
7288         * tbl/table.h: Remove keep member.
7290         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7291         SECTION_RELEASE_MACRO, if there's not enough space before the next
7292         trap to output the diversion, call T# ourselves, set
7293         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7294         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7295         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7296         vertical position and return to it before turning traps on again.
7297         
7298 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7300         * troff/node.c, troff/node.h: In classes derived from node,
7301         replace prev_char_width method by last_char_node method.
7302         * troff/env.c (environment::get_prev_char_width): Use
7303         node::last_char_node rather than node::get_prev_char_width.
7305         * Makefile: Added comment about -fno-inline on 68030-based
7306         Apollos.
7308         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7309         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7310         expressions using sizeof to int.
7311         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7313         * macros/tmac.e (TS):  Don't move @f back past the current
7314         position.
7316 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7318         * ps/ps.c (main): Buffer stderr.
7319         * dvi/dvi.c (main): Likewise.
7320         * tty/tty.c (main): Likewise.
7322         * ps/ps.c (ps_printer::do_import): Improve error handling.
7324         * troff/input.c (abort_request): Use asciify.
7326         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7327         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7328         type of first argument int rather than char.  This works around a
7329         bug on the 68030 based Apollo using g++ 1.37.1.
7331         * tbl/table.h (class table): Add `keep' member.
7332         * tbl/table.c (table::table): Initialize `keep'.
7333         (table::add_vertical_rule): Set `keep' to 1.
7334         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7335         (table::do_bottom): Likewise for table release macro.
7336         (table::do_row): Emit section keep macro even if the row is 0.
7338 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7340         * macros/tmac.e (@C): Preserve the font family across the change
7341         in environments.
7343 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7345         * lib/font.c: Initialize font::hor and font::vert to 1.
7346         (font::load_desc): Check the values of font::hor and font::vert.
7348         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7349         be included in a C compilation.
7350         (iftoa): Use INT_DIGITS. Include lib.h.
7351         (itoa): Likewise.
7352         (as_string): Likewise.
7353         * tbl/table.c: Removed definition of INT_DIGITS.
7354         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7355         * troff/input.c (input_input_requests): Likewise.
7356         * ps/ps.c (make_encoding_name): Likewise.
7357         (ps_printer::set_style): Likewise.
7358         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7360         * tty/devascii/R.proto: Map fm onto '.
7361         * tty/devlatin1/R.proto: Likewise.
7363 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7365         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7366         argument to \w is at a different input level.
7368         * tbl/table.c (table::init_output): Define a new macro
7369         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7370         transparently outputs itself.
7371         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7372         vpt.
7373         (table::do_row): Likewise.
7375         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7376         TRANSPARENT_STRING_NAME.
7378         * tbl/table.c (table::init_output): In the table release macro
7379         print an error message and don't produce any output if after
7380         issuing the need request the table still will not fit.  Also
7381         remove the diversion after bringing it back.
7383         * tbl/table.c (table::init_output): Define a new macro
7384         REPEATED_MARK_MACRO, like mk but if in a diversion also
7385         transparently outputs itself.
7386         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7387         is necessary because .TH might not call .T#.
7388         (table::do_top): Likewise TOP_REG.
7389         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7390         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7391         table header might contain just the two top rules.
7393 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7395         * troff/div.c: Implement new request `ptr' to print all traps.
7397         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7398         init_string_env_reg.
7399         * troff/env.c (class tab_reg): Deleted.
7401 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7403         * troff/div.c: New number register .pn returns the number of the
7404         next page as set by the pn request.
7406         * macros/tmac.an: Redid headers and footers.  Number each manual
7407         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7408         optional 5th argument to .TH which specifies the manual name and
7409         appears in the center of the header.  Understand the X, P and D
7410         registers like Sun.
7412 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7414         * troff/env.c (init_env_requests): New number register `.lt' to
7415         return the title length.
7417         * troff/node.h (class transparent_dummy_node): New class.
7418         * troff/node.c (class transparent_dummy_node): Provide member
7419         functions. 
7420         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7421         than a dummy_node.
7423         * troff/input.c (token::next): New escape sequence \).
7424         * troff/input.c (get_copy): Recognize \) in copy mode.
7426         * troff/input.c (input_stack::clear): New function.
7427         * troff/input.c (exit_request): Use input_stack::clear.
7429         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7430         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7432         * troff/env.c: Move set_page_character to input.c.  Move
7433         page_character to input.c also.
7434         * troff/env.c (title): Split off the reading of the parts of the
7435         title into read_title_parts.
7436         * troff/input.c (read_title_parts): New function.  Check the
7437         input_level when testing whether a token matches the delimiter.
7439         * troff/input.c (exit_request): New function.
7440         * troff/input.c (init_input_requests): Bind ex request to
7441         exit_request rather than exit_groff.
7443         * troff/input.c (exit_groff): Call tok.next() before
7444         process_input_stack().
7446 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7448         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7449         * troff/env.h: ditto.
7450         * troff/input.c: ditto.
7452         * troff/env.c (environment::is_empty): Test pending_lines.
7454         * troff/env.c (environment::have_pending_lines): Removed.
7456         * troff/input.c: Add request to flush pending lines from the
7457         environment.
7459         * troff/env.c, troff/env.h: Add automatic widow control feature.
7461         * troff/input.c (exit_groff):  Do process_input_stack() after
7462         do_break() but before setting exit_flag to 2.
7464         * troff/input.c: Remove FLUSH_PENDING_LINES and
7465         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7466         environment after END_TRAP token seen, but only if there aren't
7467         any more traps still unfinished.
7468         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7470 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7472         * troff/env.c: Rename the `retain_size' member of class
7473         pending_output_line to `no_fill'.
7475         * troff/env.c (title): When the line is output, make the
7476         retain_size argument !fill.
7478         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7479         * troff/node.c (space_node::get_breakpoints),
7480         (dbreak_node::get_breakpoints):  Fill this in.
7481         * troff/env.c:  Allow specification of maximum number of
7482         consecutive hyphenated lines.
7484         * troff/env.c (environment::is_empty): Add test for !current_tab.
7486 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7488         * troff/env.c (environment::hyphenate_line): Don't completely give
7489         up if the word is not to be hyphenated; continue so that breaks
7490         can be made at break_char_node's.
7492         * lib/lib.h: Only define INT_MAX if it's not already defined;
7493         undef INT_MIN if it's already defined.
7495         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7497         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7498         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7499         compiler.
7500         
7501         * macros/tmac.an (an-header): Set no-space mode.
7503         * macros/tmac.an (TH): Start a new page if necessary.
7505         * Started using ChangeLog at version 0.4.
7507 Local Variables:
7508 version-control: never
7509 End: