* html.cc [!_POSIX_VERSION]: Include limits.h and dirent.h or
[s-roff.git] / ChangeLog
blob0b1b445182ce4a8355d009ebd0feb253dd8cef14
1 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
3         Replaced specific checks for function declarations with a generic
4         routine taken from GNU bfd.
6         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
7         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8         * configure.in: Use it.
9         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11         src/roff/groff/groff.cc: Use it.
12         * Makefile.in, configure: Updated.
14 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
16         * src/devides/grolbp/lbp.h: Removed unused variables.
18 2000-05-31  Keith Thompson  <kst@sdsc.edu>
20         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
21         strncasecmp().
23 2000-05-31  Werner LEMBERG  <wl@gnu.org>
25         * aclocal.m4 (GROFF_SRAND): New function to test the return value
26         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
27         * configure.in: Use it.
28         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
29         * configure, Makefile.in: Updated.
31         * configure.in: Add test for strncasecmp().
32         * src/include/lib.h: Use it.
34 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
36         * src/preproc/grn/Makefile.sub: Add MLIB.
38 2000-05-29  Nix  <nix@esperi.demon.co.uk>
40         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
42 2000-05-29  Werner LEMBERG  <wl@gnu.org>
44         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
46         * PROBLEMS: Small update.
48         * src/devices/grolbp/lbp.cc: Various small fixes.
50 2000-05-28  Keith Thompson  <kst@sdsc.edu>
52         * src/roff/nroff/nroff.sh: Fix infinite loop syntax.
54         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
56 2000-05-25  Werner LEMBERG  <wl@gnu.org>
58         * man/roff.man: Removed unused macro.
60 2000-05-24  Werner LEMBERG  <wl@gnu.org>
62         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
63         This is needed e.g. if you do
64         `make distclean; ./configure; make dist'.
66 Version 1.16 released
67 =====================
69 2000-05-23  Werner LEMBERG  <wl@gnu.org>
71         Adding font CWI (constant width italic) to devdvi.
73         * font/devdvi/CWI: New file.
74         * font/devdvi/generate/Makefile: Add generating rule.
75         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
76         tmac/tmac.dvi: Use it.
77         * NEWS: Announce it.
79         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
80         * font/devlj4/generate/Makefile: Cosmetic changes only.
82         * man/groff.man: Removed most of the redundant description of
83         special characters (which is in groff_char.man).  Added font
84         translation CB->CR for devdvi.  Other minor fixes.
86         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
87         (registered) symbols.
89 2000-05-22  Werner LEMBERG  <wl@gnu.org>
91         * doc/Makefile: Added rule for creating info files.
93         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
94         AMS font metrics.
95         * font/devdvi/generate/Makefile: Fixed dependencies.
97         * font/devps/*: Regenerated.  Heavy changes for Bookman and
98         NewCentury Schoolbook!
99         * font/devps/generate/afmname: Will now run with GNU awk.
100         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
101         * font/devps/generate/Makefile: Cosmetic changes only.
103 2000-05-21  Werner LEMBERG  <wl@gnu.org>
105         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
106         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
107         `.SS' now produces a heading with a smaller size than `.SH'. 
108         Completely formatted.
109         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
111         * man/groff.man: Improved table appearance.  Use of `eo' request
112         to reduce number of doubled backslashes in macro definitions.
113         Replacing `\e' with `\(rs'.  Other minor fixes.
115         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
116         to have correct line number.
118         * INSTALL: Small improvement.
120 2000-05-20  Bernd Warken  <bwarken@mayn.de>
122         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
123         WL).
125 2000-05-19  Bernd Warken  <bwarken@mayn.de>
127         * man/groff.man: Complete update (with a lot of corrections by WL).
129 2000-05-18  Werner LEMBERG  <wl@gnu.org>
131         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
133         * font/*/*: Implement it.
134         * man/groff_char.man, NEWS: Document it.
136         * src/include/unix.h: Removed.  It isn't used.
138         * doc/groff.texinfo: Slight improvements.
140 2000-05-17  Werner LEMBERG  <wl@gnu.org>
142         * README, win32-diffs: Small fixes and improvements.
144 2000-05-16  Werner LEMBERG  <wl@gnu.org>
146         * FDL: New file (the Free Documentation License version 1.1).
148         * doc/groff.texinfo: Added many start-up values for gtroff.
149         Some structural improvements of the source code.
151 2000-05-15  Werner LEMBERG  <wl@gnu.org>
153         * src/roff/troff/input.cc: Added small comment about troffrc-end.
154         * src/roff/troff/troff.man: Added info about troffrc-end.
156 2000-05-14  Werner LEMBERG  <wl@gnu.org>
158         * Makefile.in (EXTRADIRS): Fix typos.
159         (dist): Handle deletion of old .tar.gz file correctly.
160         (DISTDIRS): Include all tty output devices.
162         * doc/groff.texinfo: Adding more cross references; countless other
163         fixes.
165 2000-05-13  Werner LEMBERG  <wl@gnu.org>
167         * MORE.STUFF: Added Robert Marks's utilities.
169 2000-05-12  Werner LEMBERG  <wl@gnu.org>
171         Added win32 port contributed by Blake McBride
172         <blake@florida-software.com>.
174         * README.WIN32, win32-diffs: New files.
175         * NEWS: Updated.
177         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
178         (tmove, tmove2): Added parentheses to avoid compiler warnings.
179         (change): Removed unused variables.
181         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
182         (savebounds): Changed return value from `int' to `void'.
183         * src/preproc/grn/hdb.cc: Ditto.
185         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
186         final backslash in comment to avoid compiler warning.
188         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
190         * doc/groff.texinfo: More fixes.
192 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
194         * tmac/tmac.doc: Documentation fix.
196 2000-05-11  Werner LEMBERG  <wl@gnu.org>
198         * doc/groff.texinfo: Reading the source code shows up a lot of
199         omissions and incorrect data...  More conversion to @Deffn macros.
201 2000-05-10  Werner LEMBERG  <wl@gnu.org>
203         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
204         dependency.
206         * src/roff/troff/request.h: Removing unused `no_break_flag'.
208 2000-05-09  Werner LEMBERG  <wl@gnu.org>
210         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
211         improvements.
213         * doc/groff.texinfo: Extended history section.  More conversion to
214         @Deffn macros.  More .tr documentation.
216 2000-05-07  Werner LEMBERG  <wl@gnu.org>
218         * doc/groff.texinfo: Completed tab section.  Added info about
219         fields.
221 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
223         * PROBLEMS: Describe configure script fix for OS/390 Unix.
225 2000-05-05  Werner LEMBERG  <wl@gnu.org>
227         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
228         LaTeX 2e).
229         * NEWS: Document it.
231         * man/troff.man: Minor optical improvements.
233 2000-05-03  Werner LEMBERG  <wl@gnu.org>
235         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
237         * font/*/*: Implement it.
238         * man/groff_char.man, NEWS: Document it.
240 2000-05-02  Werner LEMBERG  <wl@gnu.org>
242         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
243         expansion.
244         * NEWS: Document the three new man pages.
246         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
247         * configure: Updated.
249         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
251 2000-05-01  Werner LEMBERG  <wl@gnu.org>
253         Added grap support to grog.
255         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
256         * src/roff/grog/grog.man: Document it.
258         * doc/groff.texinfo, NEWS: Add info about grap support.
260         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
261         (with slight fixes by me).
263         * tmac/groff_tmac.man: New file documenting tmac mechanism.
264         * tmac/Makefile.sub: Add groff_tmac.man.
265         * man/roff.man: New file giving overview of roff system.
266         * man/troff.man: A short reference of troff.
267         * man/Makefile.sub: Add roff.man and troff.man.
269 2000-04-30  Werner LEMBERG  <wl@gnu.org>
271         Added grap support to groff.
273         * src/roff/groff/groff.cc: Implement it.
274         * src/roff/groff/groff.man: Document it.
276         * src/devices/grotty/grotty.man: Add cp1047 device.
277         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
278         Ditto.
279         * src/roff/groff/groff.man: Ditto.
280         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
281         * doc/groff.texinfo: Ditto.
283         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
284         for cp1047.
286 2000-04-29  Werner LEMBERG  <wl@gnu.org>
288         * man/groff_char.man: Add `pc' glyph.
289         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
290         * tmac/tmac.tty: Add `pc' glyph.
291         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
292         we use cp1047 output device.
294         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
295         there are still hardcoded latin1->unicode values in utf8's font
296         definition files.
297         * configure: Updated.
298         * NEWS: Minor clarification.  Updated.
300         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
301         Unix.
303 2000-04-28  Werner LEMBERG  <wl@gnu.org>
305         Adding EBCDIC code page 1047.
307         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
308         font/devcp1047/DESC.proto: New files.
310         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
311         either ascii/latin1 or cp1047.
312         * Makefile.in: Use it.
313         * configure: Updated.
315         Replacing and/or adding `md' (mathdot) glyph with `pc'
316         (periodcentered) in all text fonts.
318         * font/*/*: Change it.
320 2000-04-27  Werner LEMBERG  <wl@gnu.org>
322         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
324         * configure.in: Add check for strings.h.
325         * src/include/driver.h: Use HAVE_STRINGS_H.
326         * src/devices/grolbp/lpb.cc: Remove string.h.
328         * src/include/groff-getopt.h: New file.  It will be used instead of
329         getopt.h (to be included in lib.h) to avoid endless problems with
330         picky C++ compilers.
331         * src/include/lib.h: Use groff-getopt.h.
332         * src/include/Makefile.sub: Updated.
334         * configure: Updated.
335         * Makefile.in: Updated.
337         * NEWS: Mention EBCDIC support.
339 2000-04-26  Werner LEMBERG  <wl@gnu.org>
341         * TODO: Some additions.
343 2000-04-25  Werner LEMBERG  <wl@gnu.org>
345         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
346         of mso request.
348 2000-04-23  Werner LEMBERG  <wl@gnu.org>
350         * src/roff/troff/troff.man: Minor fixes.
352 2000-04-22  Werner LEMBERG  <wl@gnu.org>
354         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
355         `.T' string register and the incompatible definition of the `.T'
356         number register (compared to Unix troff).
358         * man/groff_char.man: Add some missing characters.
359         * font/devutf8/NOTES: Update.
361 2000-04-21  Werner LEMBERG  <wl@gnu.org>
363         * src/include/htmlindicate.h, src/include/lib.h,
364         src/include/posix.h: Fix copyright.
366         * src/include/Makefile.sub: Update.
368 2000-04-20  Werner LEMBERG  <wl@gnu.org>
370         * src/roff/troff/input.cc (input_char_description): Removing
371         superfluous space char.
373         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
375         * doc/groff.texinfo: Document EBCDIC.
377 2000-04-19  Werner LEMBERG  <wl@gnu.org>
379         Introducing `shc' as the glyph name for the soft hyphen character.
381         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
382         font/devlatin1/R.proto: Use it.
384         * NEWS: Updated.
386 2000-04-18  Werner LEMBERG  <wl@gnu.org>
388         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
389         dependency on ASCII order.
391 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
393         * src/libs/libgroff/illegal.c: Added EBCDIC table.
394         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
396         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
397         to increase portability.
399 2000-04-15  Werner LEMBERG  <wl@gnu.org>
401         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
402         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
403         the generic `\n' if under OS/390 Unix.
405         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
407         * configure: Regenerated.
409 2000-04-14  Werner LEMBERG  <wl@gnu.org>
411         * doc/groff.texinfo: More conversions to @Deffn.
413 2000-04-12  Werner LEMBERG  <wl@gnu.org>
415         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
416         with `:'.
418         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
420 2000-04-10  Werner LEMBERG  <wl@gnu.org>
422         * doc/groff.texinfo: More conversions to @Deffn.
424 2000-04-08  Werner LEMBERG  <wl@gnu.org>
426         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
427         Updated to latest version (glibc 2.1.3).
429 2000-04-07  Werner LEMBERG  <wl@gnu.org>
431         * doc/Makefile (clean): Include more index files.
432         Add rule texinfo->dvi.
434 2000-04-05  Werner LEMBERG  <wl@gnu.org>
436         * doc/groff.texinfo: Added new index `op' for operators.  More
437         info on end of sentence characters.  More use of @Deffn.
439 2000-03-30  Werner LEMBERG  <wl@gnu.org>
441         * */*.man: Adding a note that a whitespace can be inserted between
442         a command line option and its parameter -- we are using GNU getopt.
444         * src/roff/groff/groff.man: Add example of `-m mandoc'.
446 2000-03-28  Werner LEMBERG  <wl@gnu.org>
448         Correct anachronism of calling the man macro file with `-man'
449         instead of `-m man' etc.
451         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
452         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
453         load tmac.<package>.
455         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
457         * NEWS: Updated.
459         * doc/groff.texinfo: Updated.
461         * tmac/groff_man.man: Copyright added.
463 2000-03-27  Werner LEMBERG  <wl@gnu.org>
465         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
466         typeset the request resp. escape name with a tt font -- due to a
467         bug in texinfo.tex it is necessary to use the `-e' switch with
468         texi2dvi.
470         Improving info about usage of groff units.
472         Other minor fixes.
474 2000-03-20  Werner LEMBERG  <wl@gnu.org>
476         * doc/groff.texinfo: Added section about man macro package
477         (I've basically taken groff_man.man).  Introducing new indices `ma'
478         for macros/strings and `gl' for glyph names.  Other minor fixes.
480         * tmac/groff_man.man: Fixed some typos.
482 2000-03-19  Werner LEMBERG  <wl@gnu.org>
484         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
485         Other minor fixes.
487         * doc/texinfo.tex: New file.
489 2000-03-18  Werner LEMBERG  <wl@gnu.org>
491         * doc/groff.texinfo: Improved section on number registers.  Other
492         minor updates.
494 2000-03-16  Werner LEMBERG  <wl@gnu.org>
496         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
497         synopsis.
499         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
500         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
501         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
502         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
504         * src/preproc/grn/grn.man: Better synopsis; added copyright.
506         * src/roff/grog/grog.man: Updated copyright date.
508 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
510         * configure.in: Added test for strdup.
512         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
513         is available.
515         Replaced dynamic allocation of arrays `[...]' with `new' operator.
517         Other minor fixes.
519 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
521         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
523 2000-03-11  Werner LEMBERG  <wl@gnu.org>
525         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
526         compilers silent.
527         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
528         * src/include/lib.h: Remove some spaces.
530 2000-03-10  Werner LEMBERG  <wl@gnu.org>
532         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
533         initializers from arguments (some compilers don't like this).
535 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
537         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
538         used by pic and eqn to tell grohtml where the graphic regions start
539         and end.
540         * src/libs/libgroff/Makefile.sub: Use it.
541         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
542         graphic_start() and graphic_end() from htmlindicate.cc.
544 2000-03-09  Werner LEMBERG  <wl@gnu.org>
546         * tmac/tmac.safer: Will now work correctly in compatibility mode.
547         * tmac/groff_man.man: More fixes.
549 2000-03-08  Werner LEMBERG  <wl@gnu.org>
551         * doc/Makefile: Added texput.log to the `clean' target.
552         * doc/groff.texinfo: Added info about delimiters for escapes.
554 2000-03-08  Bernd Warken  <bwarken@mayn.de>
556         * src/preproc/pic/pic.man: Add info on conversion of pic images to
557         other graphic formats.
559 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
561         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
562         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
563         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
564         files.
566 2000-03-07  Werner LEMBERG  <wl@gnu.org>
568         * doc/groff.texinfo: Spelling fixes.
570 2000-03-06  Werner LEMBERG  <wl@gnu.org>
572         * tmac/groff_man.man: Completely revised to cover everything in
573         tmac.an.
575         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
576         Other minor fixings.
577         * src/roff/troff/env.cc (environment_copy): Improve error message and
578         fix itoa->i_to_a.
579         * src/roff/troff/TODO: Updated.
581         * doc/Makefile: Bug fixes -- this is still provisional, though...
583         * tmac/eqnrc: Small fixes.
585 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
587         Adding a request `evc' to copy environments.
589         * src/roff/troff/env.cc (environment::copy, environment_copy):
590         Implement it.
591         * src/roff/troff/env.h: Add prototype.
593 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
595         Adding strsep() -- Solaris 8 doesn't have it.
597         * configure.in: Test it.
598         * src/devices/grolbp/lbp.cc: Add code.
600 2000-03-05  Werner LEMBERG  <wl@gnu.org>
602         * src/roff/troff/div.cc (macro_diversion::output,
603         top_level_diversion::output): Fixing an incompatibility with
604         original troff: \x'0' updates the .a register also.  Thanks to
605         <Andries.Brouwer@cwi.nl> for pointing this out.
606         * doc/groff.texinfo: Document it.
608         * Makefile.in: Create Makefile.dep if necessary before calling the
609         submake process to avoid warning about nonexistent file.
611         * NEWS, PROJECTS: Updated.
613 2000-03-04  Werner LEMBERG  <wl@gnu.org>
615         * tmac/troffrc: Add tmac.lbp.
617 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
619         * tmac/tmac.lbp: New file.
620         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
621         command.
623 2000-03-03  Werner LEMBERG  <wl@gnu.org>
625         * Makefile.in: Fixing $(subdir).
627         * README, NEWS: Small fixes.
629         * test-groff: Adding path to grolbp.
631         * configure.in: The (new) file src/xditview/Imakefile.in will be
632         also configured -- it is now possible to build gxditview in a
633         directory different from $srcdir.
635 2000-03-02  Blake McBride  <blake@florida-software.com>
637         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
639         * MORE.STUFF: Added website of bell labs and info about plot2dev.
641 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
643         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
644         files.
646 2000-02-29  Werner LEMBERG  <wl@gnu.org>
648         Adding GNU getopt to the groff distribution.
650         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
651         New files.
652         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
653         * aclocal.a4: Remove GROFF_GETOPT function.
654         * configure.in, Makefile.in, PROBLEMS: Update.
655         * src/include/lib.h: Replace getopt tests with getopt.h.
656         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
658         * doc/groff.texinfo: Further checking/updating.  Adding more index
659         entries.
661         * man/groff_out.man: Fix nroff mode activation (for emacs).
662         * man/groff_font.man: Add missing ligature.
664 2000-02-28  Werner LEMBERG  <wl@gnu.org>
666         * doc/groff.texinfo: Further checking/updating.  Adding more index
667         entries.
669         * src/devices/grolbp/grolbp.man: Added a comment line at the
670         beginning of the file (similar to shell scripts) which indicates
671         that `tbl' should be used as a preprocessor.
673 2000-02-27  Blake McBride  <blake@florida-software.com>
675         Adapting groff to MS Visual C++ 6.0 compiler (tested with
676         Windows NT 4.0).  Uses _MSC_VER define where necessary.
678         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
679         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
680         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
681         src/include/lib.h, src/libs/libgroff/errarg.cc,
682         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
683         src/preproc/refer/label.y, src/preproc/refer/label.cc,
684         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
685         src/roff/troff/div.cc, src/roff/troff/env.cc,
686         src/roff/troff/input.cc, src/roff/troff/node.cc,
687         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
688         if_to_a() to avoid name clashes.
689         * src/include/posix.h: Don't use unistd.h.
690         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
691         clause for integrating non-Unix xtmpfile() code.
692         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
693         structure; use "rt" for popen() in pipe_source(); add getpid()
694         dummy function.
695         * src/roff/troff/node.cc: Use special versions of popen() in
696         real_output_file() and pclose() in ~real_output_file().
698 2000-02-27  Werner LEMBERG  <wl@gnu.org>
700         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
701         LBP-8 series laser printers).  This code has been contributed by
702         Francisco Andres Verdu <pandres@dragonet.es>.
704         * src/devices/grolbp/*: The grolbp output device.
705         * font/devlpb/*: The font description files.
706         * Makefile.in: Add grolpb and devlbp subdirectories.
708         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
709         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
710         typographic fixes.
712         * doc/groff.texinfo: Further checking/updating.  Adding more index
713         entries.
715         * NEWS: Updated.
717         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
719         * man/groff_font.man: Adding info about obsolete DESC keywords.
720         * src/devices/grolj4/grolj4.man: Documenting additional DESC
721         keywords.
723 2000-02-26  Werner LEMBERG  <wl@gnu.org>
725         * src/preproc/grn/grn.man: Added info about the gremlin file format
726         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
728 2000-02-25  Werner LEMBERG  <wl@gnu.org>
730         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
731         friends to be non-integer.
733         * src/preproc/grn/grn.man: Document it.
735         * doc/groff.texinfo: Further checking/updating.  Adding more index
736         entries.
738 2000-02-24  Werner LEMBERG  <wl@gnu.org>
740         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
741         line thicknesses to be integer multiples of this value.
743         * src/preproc/grn/grn.man: Commenting out the -s option -- the
744         corresponding code doesn't work (yet).
746         * doc/groff.texinfo: Further checking/updating.  Adding more index
747         entries.
749 2000-02-23  Werner LEMBERG  <wl@gnu.org>
751         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
752         specify line thickness instead of base units.  The new default
753         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
754         thick lines respectively.
756         Removed unused variable `prevval'.
758         * src/preproc/grn/grn.man: Updated.
760 2000-02-22  Werner LEMBERG  <wl@gnu.org>
762         * src/preproc/grn/main.cc: Slight formatting.
764         * src/roff/groff/groff.man: Formatting fix.
765         * src/preproc/grn/grn.man: Ditto.
767         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
769         * doc/groff.texinfo: Further checking/updating.
771 2000-02-21  Werner LEMBERG  <wl@gnu.org>
773         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
775         * test-groff: Added grn subdir to path.
777         * doc/groff.texinfo: Some restructing and other small improvements.
779         * src/roff/groff/groff.cc (help): Fixed info string.
781 2000-02-20  Werner LEMBERG  <wl@gnu.org>
783         * doc/meref.me: Fix description of .GS request.
785         * src/roff/troff/troff.man: Fixing typo.
787         Adding the `grn' preprocessor for gremlin graphic files.
789         * src/preproc/grn/*: This is the Berkeley distribution written by
790         David Slattengren and Barry Roitblat, adapted to groff by Daniel
791         Senderowicz and Werner Lemberg.
793         * doc/grnexampl.{me,g}: A sample for grn.
795         * Makefile.in: Added subdirectory entry for grn.
797         * src/roff/groff/groff.cc: Added support for grn.  It can be now
798         called with the switch `-g'.
800         * src/roff/groff/groff.man: Updated.
802         * src/roff/grog/grog.{man,pl,sh}: Updated.
804         * NEWS: Updated.
806 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
808         * src/include/lib.h: Added xtmptemplate and made xtmpfile
809         parametrically polymorphic.
811         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
812         and the alterations to xtmpfile.
813         xtmpfile can be requested to return the filename created
814         and asked not to unlink the temp file.  The default behaviour
815         if parameters are absent is exactly the same as before.
817 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
819         A new request `length' is available which returns the length of a
820         string in a number register:
822         * src/roff/troff/input.cc (length_macro): Implement it.
823         * src/roff/troff/input.cc (init_input_requests): Register it.
825 2000-02-11  Werner LEMBERG  <wl@gnu.org>
827         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
828         of the `substring' request.
830         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
831         request.
833         * src/roff/troff/TODO, NEWS: Updated.
835 2000-02-09  Werner LEMBERG  <wl@gnu.org>
837         * src/roff/groff/groff.man: Added an example.
839 2000-02-06  Werner LEMBERG  <wl@gnu.org>
841         I've considerably modified the directory structure of the
842         distribution to get a more vertical layout.  For example, the number
843         of top level directories has been reduced from 42 to 6.
845         As a consequence, many changes, especially to the makefiles, were
846         necessary:
848         * The makefile variables `top_builddir' and `top_srcdir' have been
849         introduced.  Virtually all relative paths have been replaced with
850         absolute ones using these two variables.
852         * Dependencies (in the files `Makefile.dep') are no longer part of
853         the distribution.  Instead, they are created during a `make install'
854         in the build directory.
856         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
857         make `top_srcdir' and `top_builddir' absolute.
859         Some other changes:
861         * Man pages no depend on the files `VERSION' and `REVISION'.
863         * The added shell script `mkinstalldirs' will replace `mkdir' in
864         almost all cases.
866         * VERSION: Version number increased to 1.16.
868 2000-02-04  Werner LEMBERG  <wl@gnu.org>
870         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
872         * Makefile.in: Removed $(tmac_m) since it is no longer needed
873         (after an update of the mm stuff).
875         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
877 2000-02-03  Werner LEMBERG  <wl@gnu.org>
879         The .psbb request will now also accept Mac PS images (i.e. using LF
880         as the EOL character).
882         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
883         (with slight modifications).
884         * troff/input.cc (do_ps_file): Use it.
886         * test-groff: Add grohtml and grolj4 output devices to PATH.
888 2000-01-30  Werner LEMBERG  <wl@gnu.org>
890         * NEWS, MORE.STUFF: Updated.
892 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
894         Add the `srand' command to pic.
896         * pic/lex.cc, pic/pic.y: Implement it.
897         * pic/pic.man: Document it.
898         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
900 2000-01-30  Werner LEMBERG  <wl@gnu.org>
902         Add a new request `.psbb'.  This does exactly what the external
903         program psbb did.  It scans a PostScript image file for a
904         %%BoundingBox comment and extracts the bounding box values (in
905         PostScript units) which are then stored in the four new (read-only)
906         number registers `llx', `lly', `urx', and `ury'.
908         This will allow the usage of the .PSPIC macro without worrying
909         about unsafe behaviour of groff, i.e., it will work without the
910         `-U' switch of groff.
912         * troff/input.cc: Implement it.
913         * tmac/tmac.pspic: Use it.
914         * troff/troff.man, grops/grops.man, NEWS: Document it.
915         * psbb/*, Makefile.in: Remove it since it is no longer needed.
917         This is bloody C code simply adapted from psbb.c!  Any improvements
918         welcome.
920 2000-01-29  Werner LEMBERG  <wl@gnu.org>
922         * man/groff_font.man: Minor clarifications.
924         * NEWS: Updated.
926 2000-01-28  Werner LEMBERG  <wl@gnu.org>
928         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
930 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
932         * man/groff_font.man: Brought up to date regarding tcommand
933         extensions.
934         * libgroff/font.cc: Handle everything after `--' as a comment
935         in the font files.
936         * devps/*: Added comment delimiter inside devps font files.
938 2000-01-28  Werner LEMBERG  <wl@gnu.org>
940         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
941         \fC...\fP (which now works as expected).
943         * troff/troff.man: Fix typo.
945 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
947         Completed the pass_filenames implementation in troff.
949         * libdriver/input.cc: Will read the new `F' tcommand.
950         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
951         * troff/input.cc: Use it.
953 2000-01-26  Werner LEMBERG  <wl@gnu.org>
955         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
956         font will now be updated even if an invalid font is selected.
958 2000-01-24  Werner LEMBERG  <wl@gnu.org>
960         * doc/homepage.ms: Updated for new tmac.arkup.
962         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
964         * tmac/tmac.arkup: Cleanup.
966         Added `\&' to .HTML macro to `leave vertical mode', so to say.
968         Removed obsolete .LINK macro completely.
970         The macros .URL, .FTP, and .MAILTO now accept a third argument which
971         will be immediately appended to the second argument (to be used with
972         punctuation, for example).
974         Disabled .CDFTP macro temporarily for security reasons.
976         * tmac/groff_markup.man: Complete revision for latest changes in
977         tmac.arkup -- note that it does not yet format correctly with
978         grohtml :-(
980 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
982         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
983         * devutf8/R.proto: Add mappings for wp, lh, rh.
984         * devutf8/NOTES: Updated.
986 2000-01-23  Werner LEMBERG  <wl@gnu.org>
988         * doc/groff.texinfo: Updated version/copyright info.
990 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
992         Added support for two new directives in device descriptions:
993         `pass_filenames' (to pass the input file name to the output device)
994         and `use_charnames_in_special' (to support e.g. accented characters
995         in the `X' request).
997         * include/font.h, troff/charinfo.h: Declare it.
999         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1001         * devhtml/DESC: Use it.
1003         * troff/input.cc: New function encoded_char.
1005         * troff/token.h: Add test for `specialness'.
1007 2000-01-21  Werner LEMBERG  <wl@gnu.org>
1009         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1010         mistake from the list of files to be installed.
1012 2000-01-18  Werner LEMBERG  <wl@gnu.org>
1014         * README: Added info how to apply patches.
1016 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
1018         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
1020 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1022         * troff/input.cc: Add support for troffrc-end.
1024         * tbl/main.cc: Altered to issue table-start and table-end special
1025         characters if using the html device.
1027         * devhtml/*: Modified font files to incorporate html encoding of
1028         characters.
1030         * tmac/groff_markup.man: New file documenting tmac.arkup.
1032         * tmac/troffrc-end: New file.  This is invoked after all user
1033         specified macros.  Currently used by the html device to include
1034         tmac.html.  Thus no need for users to specify -mhtml anymore.
1036         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1037         (MAN7): Add groff_markup.man.
1039         * tmac/tmac.an, tmac/tmac.html: Small html updates.
1041         * tmac/troffrc: tmac.arkup will now be called for the html device.
1043         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1044         extra device specific information about fonts.
1046         * doc/homepage.ms: New file.  It is an example how an HTML home page
1047         could look like with grohtml.
1049         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
1051 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
1053         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
1054         of Im, Re.
1056         * devutf8/NOTES: Updated.
1058 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
1060         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1061         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1062         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1063         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1064         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1065         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1066         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1067         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1068         warnings.
1070         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1072 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
1074         grolj4: Paper size will be searched case-insensitively.
1076         * include/lib.h: Add check for strcasecmp().
1077         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1078         * configure.in: Check for strcasecmp().
1080 2000-01-11  Werner LEMBERG  <wl@gnu.org>
1082         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1083         `REVISION'.
1085 2000-01-10  Werner LEMBERG  <wl@gnu.org>
1087         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1088         revision scheme.
1090         Add a new read-only register, `.Y', which contains the groff
1091         revision.
1093         * troff/input.cc (init_input_requests): Define it.
1094         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1095         * doc/groff.texinfo, troff/troff.man: Document it.
1097         * libgroff/Makefile.sub (version.cc): Add definition of
1098         `Version_string[]', consisting of `<major>.<minor>.<revision>'
1099         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1100         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1101         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1102         troff/input.cc, pfbtops/pfbtops.c: Use it.
1104 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
1106         Add a revision scheme to the groff package.
1108         * REVISION: New file.
1109         * libgroff/Makefile.sub (version.cc): Use it to define
1110         `revision_string[]'.
1111         * grops/psrm.cc: Use revision_string (converted to an unsigned
1112         integer) in constructor of resource_manager.
1114 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
1116         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1117         files.
1118         * Makefile.in (DEVDIRS): Add devutf8.
1119         * grotty/tty.cc: Include device.h.
1120         (glyph): Change type of `code' to `unsigned int'.
1121         (tty_printer): New field is_utf8.  Constructor takes device argument.
1122         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1123         (tty_printer::add_char): Change type of first arg to `unsigned int'.
1124         (tty_printer::put_char): New function.
1125         (tty_printer::end_page): Use put_char() instead of ::putchar().
1126         (make_printer): Pass device to tty_printer constructor.
1127         * nroff.sh: Determine default device by calling 'locale'.  As a
1128         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1129         Recognize UTF-8 locales.
1130         * tmac/eqnrc: Recognize utf8 like latin1.
1131         * tmac/troffrc: Device utf8 needs tmac.tty.
1133 2000-01-07  Werner LEMBERG  <wl@gnu.org>
1135         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1137 2000-01-07  Paul Eggert  <eggert@twinsun.com>
1139         Add a new predefined writeable number register, `year',
1140         which contains the current year.
1142         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1143         * tmac/tmac.s: Use it.
1144         * troff/input.cc (init_registers): Initialize it.
1146 2000-01-06  Werner LEMBERG  <wl@gnu.org>
1148         * PROBLEMS: Fixed typo.
1150 2000-01-04  Paul Eggert  <eggert@twinsun.com>
1152         * PROBLEMS: Add Y2k advice for the yr number register.
1154 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1156         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1158 2000-01-02  Werner LEMBERG  <wl@gnu.org>
1160         * tmac/tmac.arkup: Slight modification of macros to provide better
1161         appearance for non-HTML formats.
1163 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
1165         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1166         does not automatically translate to malloc(n) on all OSes
1167         (e.g., SunOS) so do it explicitly.  Also, check the returned
1168         value.
1170 2000-01-01  Werner LEMBERG  <wl@gnu.org>
1172         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
1174         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1175         expects this variable
1177 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
1179         * doc/Makefile: Added instructions to create HTML and text
1180         versions of some files.
1182 1999-12-31  Werner LEMBERG  <wl@gnu.org>
1184         * Updated INSTALL.gen.
1186         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1187         better resp. correctly with non-HTML devices.
1189 Version 1.15 released
1190 =====================
1192 1999-12-28  Werner LEMBERG  <wl@gnu.org>
1194         * NEWS, VERSION: Changed to 1.15
1196 1999-12-27  Paul Eggert  <eggert@twinsun.com>
1198         * nroff/nroff.man: -S is safer, not safe.
1200         * groff/groff.cc (main): Use `safer', not `safe', in variable
1201         names.  This does not change the behavior.
1203         * troff/input.cc (main): Likewise.
1205         * nroff/nroff.sh: Likewise.
1207         * troff/input.cc (prepend_string): New function.
1208         (main): Prepend -msafer, so that we check macro libraries for
1209         safety.
1211         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1213 Version 1.14 released
1214 =====================
1216 1999-12-26  Werner LEMBERG  <wl@gnu.org>
1218         * NEWS, VERSION: Changed to 1.14.
1220 1999-12-24  Werner LEMBERG  <wl@gnu.org>
1222         * refer/refer.cc: Fixing the last fix.
1224 Version 1.13 released
1225 =====================
1227 1999-12-23  Werner LEMBERG  <wl@gnu.org>
1229         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1230         number disappear.
1232         * NEWS: Updated.
1234         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1236         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1237         document conventions, the version number must be a real.
1239 Version 1.12.1 released
1240 =======================
1242 1999-12-22  Werner LEMBERG  <wl@gnu.org>
1244         * VERSION: Changed to 1.12.1.
1246 1999-12-22  Alan Rooks  <arooks@istar.ca>
1248         * refer/refer.cc (do_file): Slight modification to satisfy the
1249         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1250         UnixWare 7.1.
1252 1999-12-20  Werner LEMBERG  <wl@gnu.org>
1254         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1255         notices.
1257         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1258         list of unsafe requests.
1260         * pic/pic.man: Fixed a typo.
1262         * man/groff_out.man: Fixed a typo.
1264 1999-12-18  Werner LEMBERG  <wl@gnu.org>
1266         * Makefile.in: Doc fixes.
1268 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
1270         * groff/groff.cc: Missing `U' option added to getopt().
1272         * troff/troff.man: Missing `U' option added to synopsis.
1274 Version 1.12 released
1275 =====================
1277 1999-12-14  Werner LEMBERG  <wl@gnu.org>
1279         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1280         to the synopsis.
1282         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1283         with the more appropriate terms `safer' and `unsafe'.
1285         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1286         sys_nerr and sys_errlist[].
1288         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1290         * pic/pic.y, pic/pic.cc: Added check for fmod().
1292 1999-12-13  Werner LEMBERG  <wl@gnu.org>
1294         * VERSION: Changed to 1.12.
1296         Here some patches from various sources; most of them taken from
1297         the Debian distribution.
1299         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1300         tmac/Makefile.sub: New files copied directly from the NetBSD
1301         distribution.  Probably, some additional adaptation later on is
1302         necessary...
1304         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1305         of unsafe requests.
1307         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1308         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1309         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
1310         (`-S') is now the default.
1312         * README, NEWS: Updated.
1314 1999-12-09  Werner LEMBERG  <wl@gnu.org>
1316         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1318         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1320 1999-12-06  Werner LEMBERG  <wl@gnu.org>
1322         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1323         grief than relief today.  Additionally, it is against the GNU
1324         coding standards.
1326         * configure: Recreated.
1328 1999-12-05  Werner LEMBERG  <wl@gnu.org>
1330         * configure.in: Added GROFF_LIBM.
1332         * configure: Recreated.
1334         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1335         necessary.
1337         * Makefile.in: Added definition of $(LIBM).
1339         * Makefile.comm (LIBM): Removed.
1341         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1343 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
1345         * doc/Makefile: Added rule for generation pic.html.
1347         (clean): Files produced by grohtml will be removed also.
1349         * doc/pic.ms: Small fix.
1351         * tmac/tmac.html: Fixed suppression of headers.
1353 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1355         * tmac/tmac.html: Fixing horizontal arrows.
1357         Turning off hyphenation.
1359         * tmac/tmac.an: Improved support for grohtml; better indentation,
1360         no footers/headers.
1362 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1364         * tmac/tmac.arkup: Added CDFTP macro
1366         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1367         macros.
1369         * tmac/troffrc: Some additions for HTML stuff.
1371 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1373         * tmac/tmac.html: Small changes.
1375 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1377         * doc/groff.texinfo: Minor fixes.
1379 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1381         * devhtml/TR: Changed spacewidth to 3.
1383         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1385         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1387         * tmac/tmac.arkup: New file.
1389         * grohtml/ChangeLog: New file.
1391 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1393         * doc/groff.texinfo (Common Features): Added Copying chapter.
1394         Changed format to @smallbook.
1396 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1398         * NEWS: Added info about groff.texinfo.
1400         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1401         warning messages.
1403 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1405         * groff/groff.man: More updates.
1407 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1409         * doc/groff.texinfo: New file.  This manual is still very
1410         rudimentary.  It has been originally contributed by Trent
1411         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1412         additions by me.
1414         * INSTALL: Added information about the `doc' subdir
1416         * troff/troff.man: Minor fixes.
1418         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1419         reordered options.
1421         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1423         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1424         also, otherwise it is included itself in another call of `make
1425         dist'.
1427         * groff/groff.cc (synopsis): Removed superfluous space.
1429         * PROJECTS, PROBLEMS, NEWS: Updated.
1431         * xditview/Makefile: Removed.
1433         * VERSION: Updated to 1.12beta.
1435         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1437         * README: Updated: Included documentation about CVS repository,
1438         mailing lists, and daily snapshots.
1440         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1442 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1444         * tmac/tmac.an: If the tag didn't fit into the space that the
1445         macro `TP' specifies, the rest of the tag went into the space for
1446         the next line.
1448 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1450         * grolj4/lj4.cc: Added duplex printing (option `-d').
1452         * grolj4/grolj4.man: Document duplex printing.
1454 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1456         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1457         non-GNUish sed programs.
1459         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1460         definition.
1462         * configure.in (LIBS): Added `-lc'
1464         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1466         * pic/tex.cc (solid_arc): Casting M_PI to double.
1468         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1470         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1471         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1472         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1474         * groff/groff_man.man: New file.  This manual page was originally
1475         written for the Debian GNU/Linux system by Susan G. Kleinmann
1476         <sgk@debian.org>.
1478         * eqn/list.cc (list_box::compute_metrics,
1479         list_box::compute_sublist_width): Removed variable declaration to
1480         avoid shadowing warnings.
1482         * grops/psrm.cc (resource_manager::process_file): Ditto.
1484         * tfmtodit/tfmtodit.cc (main): Ditto.
1486         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1487         to avoid shadowing warnings.
1489         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1490         shadowing loop variable.
1492         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1494 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1496         New grohtml frontend to convert groff input to html.
1498         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1500         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1502         * tmac/eqnrc: Added html device.
1504         * tmac/tmac.html: New file.
1506         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1507         (troff_output::start_picture, troff_output::finish_picture),
1508         tbl/main.cc (process_input_file):
1509         Surrounded output with `graphics_start' and `graphics_end' so that
1510         the html driver can identify non-text portions.
1512         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1513         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1514         grotty/tty.ps (tty_printer::set_char): Additional parameter
1515         `name'.
1517         * include/printer.h: Class printer: New function
1518         set_char_and_width; new variables (is_char_named, is_named_set,
1519         named_command, named_char_s, named_char_n) to hold information
1520         about named characters -- needed by the html driver.
1522         * libdriver/printer.cc (printer::set_ascii_char,
1523         printer::set_special_char): Use set_char_and_width.
1525         * devhtml/*: New device files for html driver.
1527         * grohtml/*: New driver grohtml.
1529 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1531         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1532         default strings.
1534 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1536         * libgroff/string.cc (search): Small fix to test against NULL
1537         pointer.
1539 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1541         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1542         \b'abc') were stacked in reverse order when processed in a
1543         diversion.
1545         * troff/node.h: Added `*last' to struct `node' to make the above
1546         fix work.
1548         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1549         The default scale for the 'f' and 't' graphics functions were 'm'
1550         rather than 'u' (i.e., no scaling).
1552 1999-09-11  Peter Miller  <peterm@jna.com.au>
1554         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1555         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1556         defining include paths.
1558         * soelim/soelim.cc (include_path_append): New function.
1560 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1562         * tbl/main.cc (process_options): Unix (at least Documenter's
1563         Workbench) tbl allows arbitrary non-alpha characters between
1564         options.
1566 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1568         Y2k fixes.  Don't assume that the current year precedes 2000.
1570         * doc/meref.me: Add \n(y2, \n(y4.
1572         * tmac/doc-common (Yr): New number register.
1573         (Dd): Don't assume current year precedes 2000.
1575         * tmac/tmac.e (td): Likewise.
1576         (y2, y4): New number registers.
1578         * pic/pic.man: Update reference for pic paper to May, 1991
1579         version.
1581 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1583         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1584         Removed quotation marks which prevented correct expansion of
1585         $(tmac_wrap).
1587         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1589 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1591         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1592         `config.cache'.
1594         * Removed configure.old.
1596 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1598         * VERSION: Updated to 1.11.1
1600 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1602         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1604         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1605         added quotations around $(tmac_wrap) to avoid syntax error if
1606         variable is empty.
1608         * configure: Newly generated using autoconf 2.13.
1610         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1612 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1614         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1615         doc/Makefile. doc/pic.ms, groff/groff.man:
1616         Prepare for 1.11 release.  No code changes.
1617         Documentation for pic added (doc/pic.ms).
1619 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1621         * Version 1.10 released.
1623 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1625         * afmtodit/afmtodit.pl: Avoid comment on first line.
1627 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1629         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1630         * configure.in: Call it.
1632         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1633         (distfiles): Doesn't depend on config.log or config.cache.
1635 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1637         * grog/grog.sh: Use print "" rather than print in END rule.
1639 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1641         * tbl/main.cc (process_data): Don't give error for excess data
1642         entries that are comments.
1644 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1646         * tbl/main.cc (process_data): Fix case where new for-scope rules
1647         silently change meaning of code.
1649 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1651         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1652         of non-zero hyphenation codes.
1654 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1656         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1658 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1660         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1662 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1664         * tmac/tmac.andoc: Make it work in compatibility mode.
1666         * refer/token.h (token_info::is_range_sep): New function.
1667         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1668         * refer/ref.cc (reference::output): More sophisticated check for
1669         multiple pages.
1671         * devps/prologue.ps (MANUAL): New procedure.
1672         * grops/ps.cc (main): New -m option.
1673         (usage): Include -m.
1674         (ps_printer::~ps_printer): Implement -m.
1676         * aclocal.m4 (GROFF_G): New macro.
1677         * configure.in: Call it.
1678         * Makefile.in (g): Provided by configure.
1680         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1682         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1683         translations.
1685         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1686         (tmac_m, tmac_s): Deleted.
1687         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1688         tmac_s_prefix): New variables.
1689         (MDEFINES): Change accordingly.
1690         * Makefile.comm (.man.n): Use new TMAC_* variables.
1691         * configure.in (GROFF_TMAC): Call.
1692         * aclocal.m4 (GROFF_TMAC): Define.
1693         * tmac/Makefile.sub (stamp_wrap): New target.
1694         (install_data, uninstall_sub): Handle macro wrapping.
1696 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1698         * tbl/main.cc (main): Ignore -T option.
1700 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1702         * devlj4/generate/special.map: Add definition of \(nb.
1704         * tmac/tmac.dvi: Add definition of \(nb.
1706         * troff/dictionary.c (dictionary::dictionary): association::v gets
1707         initialized by association::association.
1709         * tmac/Makefile.sub: Avoid using temporary files when installing.
1711         * troff/env.cc (environment::set_font): Make bad font number a
1712         warning.
1714         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1716         * Makefile.in (datadir): Use share rather than lib.
1718         * groff/groff.cc (basename): Rename to xbasename.
1720 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1722         * Makefile (CCLIBS): Don't use.
1723         * Makefile.ccpg: Likewise.
1725         * acgroff.m4: Rename to...
1726         * aclocal.m4: Modify extensively for autoconf 2.
1727         * configure.in: Likewise.
1728         * Makefile.in: Likewise.
1730         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1731         defined.
1732         (xstrsignal): Check for definition of NSIG. Conditionalize
1733         on SYS_SIGLIST_DECLARED.  Make return type const.
1735 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1737         * troff/input.cc (interpolate_macro): Rephrase missing space
1738         warning.
1740 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1742         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1743         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1744         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1745         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1746         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1747         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1748         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1749         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1750         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1751         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1752         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1753         Fix 'for' scoping.
1755 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1757         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1758         string_iterator.
1759         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1760         file.
1761         (macro_iterator::macro_iterator): Add additional argument.
1763 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1765         * troff/div.cc (vertical_size::vertical_size): In place of integer
1766         specifying line spacing use cunits specifying post vertical
1767         space.
1768         (macro_diversion::output, top_level_diversion::output): Likewise.
1769         * troff/div.h: Change declarations accordingly.
1770         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1771         field.
1772         (pending_output_line::pending_output_line,
1773         pending_output_line::output, environment::output,
1774         environment::output_line, environment::output_title,
1775         environment::hyphenate_line):  In place of
1776         integer specifying line spacing use cunits specifying post vertical
1777         space.
1778         (environment::environment): Add post_vertical_spacing and
1779         prev_post_vertical_spacing arguments.
1780         (environment::get_post_vertical_spacing): New function.
1781         (environment::total_post_vertical_spacing): New function.
1782         (environment::post_vertical_spacing): New function.
1783         (init_env_requests): Initialize pvs request and .pvs register.
1784         * troff/env.h: Change declarations.
1786 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1788         * tmac/tmac.pspic: Immediately remove the temporary file.
1790 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1792         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1793         height is specified.
1795 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1797         * tbl/table.c (struct vertical rule, class table_entry): Use int
1798         not short for start_row and end_row.
1800 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1802         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1803         functions.
1804         (diverted_space_node::reread, process_input_stack): Call
1805         trapping_blank_line() rather than blank_line().
1806         (init_input_requests): Bind "blm" to blank_line_macro().
1808         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1810 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1812         * troff/env.cc (environment::possibly_break_line): Require that
1813         width total excluding width of final space node be greater than
1814         the target text length.
1816 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1818         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1820 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1822         * troff/node.cc (charinfo_node): New class.
1823         (glyph_node, composite_node): Derive from charinfo_node.  Change
1824         member functions accordingly.
1826 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1828         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1830 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1832         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1834         * devps/generate/textmap (notsubset): Add.
1836         * tmac/tmac.a4: New file.
1838 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1840         * pic/main.cc (had_parse_error): New variable.
1841         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1842         returns non-zero.
1843         (main): Return 1 if had_parse_error is true.
1845 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1847         * grolj4/lj4.cc (main): Avoid use of strtoul.
1849 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1851         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1852         iso_8859_1 or $LESSCHARSET is latin1.
1854 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1856         * hpftodit: New directory.
1857         * Makefile.in (CCPROGDIRS): Add hpftodit.
1858         * devlj4/generate: New directory.
1860 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1862         * configure.in: Don't use AC_VFORK.
1863         * groff/pipeline.c (run_pipeline): Use fork() always.
1865 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1867         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1869         * Makefile.in (CCPROGDIRS): Add grolj4.
1870         (DEVDIRS): Add devlj4.
1871         * grolj4, devlj4: New directories.
1872         * tmac/troffrc: Handle lj4.
1873         * tmac/tmac.lj4: New file.
1875 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1877         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1879 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1881         * troff/input.cc (do_if_request): At end of second string, switch
1882         environments before getting next token.
1884 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1886         * devps/psstrip.sed: Split rule that strips whitespace on either
1887         side of delimiters.
1889 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1891         * troff/node.h (font_family::make_definition): Add return value to
1892         declaration.  * troff/symbol.h (symbol::operator==,
1893         symbol::operator!=): Likewise.
1895 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1897         * groff/groff.cc (main, help, synopsis): Handle -S.
1898         (possible_command::insert_arg): New function.
1900         * tmac/tmac.safer: New file.
1901         * tmac/msafer.man: New file.
1902         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1904 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1906         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1907         * pic/pic.y (placeless_element): Avoid unsafe operations if
1908         `safer_flag' is set.
1909         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1911 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1913         * eqn/lex.cc (get_token): Put call to add_context() in block to
1914         work around Sun C++ 4.0 bug.
1916         * include/stringclass.h (operator +): Use ?: instead of `if' to
1917         work around Sun C++ 4.0 bug.
1919 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1921         * tbl/main.cc (process_format): Accept - as a synonym for the _
1922         key letter.
1924         * libbib/index.cc (minus_one): Don't declare as const.
1926 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1928         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1930 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1932         * troff/input.cc (write_macro_request): New function.
1933         (init_input_requests): Bind write_macro_request to writem.
1935 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1937         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1938         equation.
1940         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1942         * tmac/tmac.s (@TS): Renamed from TS.
1943         (TS): Call LP then TS again.
1944         (cov*ab-init): Alias @TS to TS.
1946         * tmac/tmac.s: Allow QP or RS to initialize.
1948         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1949         Move initializations of PS and LL here.
1950         (par@init): Don't initialize HY.  Avoid changing environment 0.
1951         (par*env-init): Don't all par@reset.
1953 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1955         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1957 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1959         * Makefile.in (MDEFINES): Add LDFLAGS.
1960         (LDFLAGS): Add definition line.
1962 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1964         * troff/input.cc (get_optional_char): Split off error check into...
1965         (check_missing_character): New function.
1966         * troff/token.h: Declare it.
1967         * troff/env.cc (margin_character): Don't call get_optional_char.
1968         Only call tok.next() after making the node.
1970         * include/lib.h (getopt): Make 2nd argument char *const *.
1972 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1974         * nroff/conftest.sh: Deleted.
1976 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1978         * pic/make-dos-dist: Deleted.
1980 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1982         * devps/psstrip.sed: Strip comments before stripping trailing
1983         white space.
1985 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1987         * Version 1.09 released.
1989 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1991         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1993 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1995         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1997 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1999         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2000         about returning without a value.
2002         * troff/charinfo.h (charinfo::get_special_translation): Cast
2003         TRANSLATE_NONE to int.
2005         * refer/token.cc (lookup_token, store_token): Remove bogus loop
2006         test.  Fix test so that it works with n unsigned.
2008         * pic/pic.y (defaults_table): Fully bracket initializer.
2009         * pic/lex.cc (lookup_keyword): Likewise.
2010         * eqn/lex.cc (token_table, def_table): Likewise.
2011         * eqn/box.cc (param_table): Likewise.
2012         * troff/input.cc (warning_table): Likewise.
2013         * libgroff/font.cc (table): Likewise.
2014         * grops/ps.cc (ps_printer::special): Likewise.
2015         * grops/psrm.cc (resource_manager::process_file): Likewise.
2016         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2017         * refer/command.cc (command_table): Likewise.
2018         * addftinfo/addftinfo.cc (param_table): Likewise.
2020         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2021         about temp's being unused.
2022         (unused): New function.
2024         * groff/pipeline.cc: Declare c_fatal.
2026         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2027         uchar.
2029         * libbib/index.cc (index_search_item::load): Prevent compiler
2030         warnings about fd_closer's being unused.
2031         (unused): New function.
2033 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
2035         * troff/input.cc (copy_mode_error): Make `prefix' static.
2036         Fix typo.
2038         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2039         defined.
2040         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2041         HAVE_CC_OSFCN_H and modify accordingly.
2043         * troff/input.cc (init_charset_table): radicalex overlaps
2044         horizontally.
2046         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2047         udodo!hans@relay.NL.net).
2048         * groff/configure.in: Call it.
2050         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2051         * groff/configure.in: Call it.
2052         * include/lib.h: Conditionalize declaration of pclose.
2054         * troff/div.cc (last_page_number): New global variable.
2055         (top_level_diversion::begin_page): Exit if we just printed the
2056         last page.
2057         * troff/div.h (last_page_number): Declare it.
2058         * troff/input.cc (parse_output_page_list): Set last_page_number.
2060         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2061         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2062         tmac/tmac.X: Likewise.
2063         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2064         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2066 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
2068         * tmac/doc-ditroff (hK): Remove groff specific code which
2069         prevented page-breaks between separate manual entries.  If this is
2070         the first page, don't set the page number to 1.
2072         * acgroff.m4 (GROFF_POSIX): New macro.
2073         * configure.in: Use it.
2075         * troff/node.cc (class real_output_file,
2076         real_output_file::real_output_file,
2077         real_output_file::~real_output_file): Conditionalize use of
2078         popen/pclose on POPEN_MISSING.
2079         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2080         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2081         (pipe_source): Similarily.
2083         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2085         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2086         presence of declarations by trying to compile example with
2087         conflicting declarations.  (gcc only gives a warning for missing
2088         declarations.)
2090 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
2092         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2093         (from Ulrich Lauther).
2095 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
2097         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2099 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
2101         * indxbib/indxbib.cc (write_hash_table): Add code for case where
2102         pointers and ints have different sizes.
2104 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
2106         * tmac/tmac.s (par*env-init): Call par@reset.
2108 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
2110         * tmac/tmac.s (@IP): Switch to a new environment when diverting
2111         tag.
2112         (par*push-tag-env, par*pop-tag-env): New macros.
2114 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
2116         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2117         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
2119         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2120         comment.  Include <time.h>.
2122 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
2124         * grops/ps.cc (is_small_h, is_small_v): Deleted.
2125         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2126         lines.
2128 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
2130         * troff/input.cc (read_request): Only print a prompt if reading
2131         from the terminal.  Also clearerr on EOF if reading from the
2132         terminal.  Declare isatty.
2134 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
2136         * refer/label.y: Rename map_t to map_func and extractor_t to
2137         extractor_func.
2139 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
2141         * include/assert.h: Don't use volatile.
2142         * libgroff/assert.cc: Likewise.
2144 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
2146         * troff/input.cc (abort_request): Look at character in tok before
2147         calling get_copy().
2149 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
2151         * troff/troff.h (NO_RETURN): Deleted.
2152         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
2153         * troff/input.cc (exit_troff): Likewise
2155         * Makefile.in: Remove `Making ...' messages since GNU make now
2156         gives these. 
2158         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2160 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
2162         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2163         to constant 1 inch.
2165 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
2167         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2169 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
2171         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2172         MARK_REG if there was no left delimiter.
2174 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
2176         * pic/troff.cc (troff_output::text): Set line thickness to
2177         relative before outputting text.
2179         * tmac/tmac.e (@k): Don't zero ?T.
2180         ((z): Likewise.
2182 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
2184         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2186 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
2188         * troff/input.cc (decode_args): Warn about unquoted tabs (from
2189         Paul Eggert).
2191 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
2193         * troff/input.cc (ignoring): New variable.
2194         (ignore): Set ignoring during call to do_define_macro.
2195         (do_define_macro): Clear ignoring before interpolating terminating
2196         macro.
2197         (copy_mode_error): New function.
2198         (get_char_for_escape_name, read_long_escape_name,
2199         interpolate_arg): Use copy_mode_error.
2200         (warning_table): Add WARN_IG.
2201         * troff/troff.h (WARN_IG): Declare.
2202         (WARN_TOTAL): Change accordingly.
2204         * groff/pipeline.c (strsignal): Rename to xstrsignal.
2205         * groff/groff.cc (strsignal): Delete declaration.
2207 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
2209         * troff/div.cc (page_offset): Use 'm' as default scaling.
2211 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
2213         * nroff/nroff.sh: Ignore -u.
2215 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
2217         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2219 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
2221         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2222         drawing box.
2223         (B2): With -Tascii, leave additional vertical space before
2224         and after. Ensure that the left and right indent is restored to
2225         what it was even if the point size changes.  Don't call
2226         par@finish. Change the indent, line length and title length
2227         directly.  With -Tascii, make the width of the box 1n less.
2228         (B1): Remember 1n at the current point size.  Don't call
2229         par@reset.  Change the indent, line length and title length
2230         directly.  Ensure that the temporary indent is preserved.
2231         (par*box-mark-top): Turn off no spacing mode.
2233 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
2235         * Makefile.in (dist): Use .gz suffix.
2237 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
2239         * troff/input.cc (main): Add return 0.
2240         * pic/main.cc (main): Use return instead of exit.
2241         * tbl/main.cc (main): Likewise.
2242         * eqn/main.cc (main): Likewise.
2243         * grops/ps.cc (main): Likewise.
2244         * grotty/tty.cc (main): Likewise.
2245         * groff/groff.cc (main): Likewise.
2246         * grodvi/dvi.cc (main): Likewise.
2247         * refer/refer.cc (main): Likewise.
2248         * indxbib/indxbib.cc (main): Likewise.
2249         * lkbib/lkbib.cc (main): Likewise.
2250         * soelim/soelim.cc (main): Likewise.
2251         * addftinfo/addftinfo.cc (main): Likewise.
2252         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2253         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2255         * troff/token.h (process_input_stack): Don't declare as static.
2256         * troff/input.cc: Likewise.
2258         * troff/node.c (invalidate_fontno): Make it a static member of
2259         class font_family.  Change callers.
2260         * troff/node.c: Change declaration.
2262         * tbl/main.cc (struct input_entry_format): Add explicit public
2263         specifier.
2264         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2265         struct double_hline_stuff): Likewise.
2266         * tbl/table.h (struct entry_format): Likewise.
2267         * pic/object.h (struct saved_state): Likewise.
2269         * include/stringclass.h: Add forward declarations of friend
2270         functions that are later declared as inline.  Don't include inline
2271         specifier in friend declaration.
2273         * libgroff/lib.h: Declare popen and pclose.
2274         * acgroff.m4 (GROFF_POPEN): New macro.
2275         * configure.in: Call it.
2277         * include/lib.h (PI): New constant. Undef first if necessary.
2278         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2279         * grops/ps.cc (degrees, radians): Likewise.
2280         * libgroff/font.cc (font::get_skew): Likewise.
2282         * grops/ps.cc (is_ascii): New function.
2283         (ps_output::put_string): Use is_ascii.  Use csprint rather than
2284         isprint.
2285         (ps_printer::define_encoding): Use csspace.
2286         * libgroff/strtol.c (ISASCII): New macro.
2287         (strtol): Cast arguments to is*() and tolower() to unsigned char.
2288         Use ISASCII rather than isascii.
2289         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2290         * libgroff/cset.cc: Likewise.
2291         * libdriver/input.cc: Include cset.h.
2292         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2293         than isdigit().
2295         * refer/refer.cc (main): Use %ld rather than %d for longs.
2297         * libbib/index.cc (index_search_item_iterator::get_tag): Use
2298         S_ISREG macro.
2300         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2302 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
2304         * troff/input.cc (hyphenation_code): Skip white space between
2305         char/code pairs.
2307 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
2309         * tbl/table.h (table::entry_list_tailp): New member.
2310         (table::table): Initialize it.
2311         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2312         behaviour.
2314 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
2316         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2317         with negative horizontal positions. Remove casts of glyph::hpos to
2318         int.
2319         (USHRT_MAX): Delete definition.
2320         (SHRT_MAX, SHRT_MIN): New definitions.
2321         (glyph::hpos): Change type to short.
2322         (tty_printer::end_page): Output multiple backspaces if necessary.
2323          Remove casts of glyph::hpos to int.
2324         
2325 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
2327         * tmac/tmac.s (@RT): New definition.
2329 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
2331         * refer/refer.cc (do_file): Make sure current_filename is set when
2332         filename is "-".
2334         * pic/common.cc (common_output::dot_line): Handle zero length
2335         lines.
2337 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
2339         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2340         (par@init): Initialize \n[HY].
2342 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
2344         * troff/dictionary.cc (dictionary::remove): Continue when
2345         r < j < i.
2347 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
2349         * Makefile.com (.y.cc): Avoid ending up with two versions of
2350         $(YTABH).
2352 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2354         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2355         (\(,C): Likewise.  Also fix typo.
2357 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2359         * lib.h: Delete extraneous semi-colon.
2361         * Add pso request: `so' from a pipe.
2362         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2363         (file_iterator::close): New function.
2364         (file_iterator::~file_iterator, file_iterator::next_file): Use
2365         file_iterator::close.
2366         (file_iterator::backtrace): Say `process' rather than `file' when
2367         the stream is popened.
2368         (pipe_source): New function.
2369         (init_input_requests): Bind ".pso" to pipe_source.
2371 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2373         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2375         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2376         digits in lower case.
2378 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2380         * Version 1.08 released.
2382         * Makefile.in (dist): Insert || true after ln -s commands that
2383         might fail.
2385         * mm: Update to mm 1.16.
2387         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2388         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2389         SH_SCRIPT_SED_CMD.
2390         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2391         MDEFINES.
2392         * nroff/Makefile.sub (nroff): New target.
2393         (install_data): Install nroff.
2394         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2395         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2397 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2399         * eqn/Makefile.sub (neqn): Add chmod +x.
2401         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2403 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2405         * troff/input.cc (string_iterator::string_iterator()): Initialize
2406         lineno and count.
2408 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2410         * troff/div.cc (macro_diversion::space,
2411         top_level_diversion::space): Don't set high_water_mark.
2412         (macro_diversion::output, top_level_diversion::output): Don't
2413         include post line space in high water mark.
2415 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2417         * eqn/eqn.y: Don't define YYDEBUG.
2418         * pic/pic.y: Likewise.
2420 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2422         * tmac/tmac.e ([3): Add space after comma following editors.
2423         Change double spaces to single spaces.
2424         ([4): Change double spaces to single spaces.
2426         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2427         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2428         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2429         after %!PS-Adobe- (for Newsprint).
2431         * troff/div.cc (top_level_diversion::begin_page): When
2432         before_first_page is 1, set page_number to 1.
2434 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2436         * eqn/box.cc (box::top_level): Protect equation with \&.
2438 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2440         * groff/groff.cc (possible_command::set_name): Delete old name.
2442         * groff/groff.cc (possible_command::~possible_command): Use
2443         a_delete.
2445         * troff/node.cc (troff_output_file::begun_page): New member.
2446         (troff_output_file::troff_output_file): Initialize it.
2447         (troff_output_file::really_begin_page): Only output V command if a
2448         page has been begun.
2450         * pic/pic.y (placeless_element): Delete argument to PRINT after
2451         use.
2453 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2455         * Make wrapman work.
2456         * troff/div.h (class top_level_diversion): Replace
2457         first_page_begun by before_first_page (with opposite sense).
2458         * Change first_page_begun to before_first_page inverting sense.
2459         * troff/div.cc (class nl_reg): New class.
2460         (init_div_requests): Use class nl_reg for \n(nl.
2461         (top_level_diversion::begin_page): Don't call
2462         output_file::begin_page if before_first_page is 2;
2463         reset before_first_page afterwards.  If have_next_page_number is
2464         false, then always increment page_number.
2465         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2466         Restore compatibility mode after loading, and then disable
2467         compatibility mode in TH.
2469 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2471         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2472         past last line.
2473         * troff/node.h (output_file::trailer): Declare.
2474         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2475         * troff/node.cc (output_file::trailer): New function.
2476         (troff_output_file::~troff_output_file): Move most code into...
2477         (troff_output_file::trailer): New function.
2478         (class troff_output_file): Delete page_length member. Declare
2479         trailer().
2480         (troff_output_file::really_begin_page): Use current page length
2481         for final V command.
2483         * tbl/main.cc (struct options): New decimal_point_char member.
2484         (options::options): Initialize this.
2485         (process_options): Implement decimalpoint option.
2486         (process_data): Pass decimal_point_char option to table::table.
2487         * tbl/table.h (class table): New decimal_point_char member.
2488         (table::table): Add additional argument.
2489         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2490         second argument specifying decimal point character.  Use this
2491         instead of '.'.
2492         (table::table): Initialize decimal_point_char.
2493         (table::add_entry): Change call to find_dot.
2495         * troff/input.cc (get_copy, token::next): Implement \V.
2496         (interpolate_environment_variable): New function.
2498 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2500         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2501         * pic/pic.y: Likewise.
2503         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2504         Add casts to int.
2505         * refer/ref.cc (reference::insert_field, reference::delete_field):
2506         Likewise.
2507         * troff/number.cc (parse_term): Likewise.
2509         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2510         * configure.in: Use GROFF_PROG_YACC.
2512         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2513         and g++.
2514         * Makefile.in (OPTIMIZE): New define.
2515         (DEBUG): Empty by default.
2516         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2518         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2519         (GROFF_ARRAY_DELETE): Likewise.
2520         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2522         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2524         * devps/psstrip.sed: Use different delimiter on last line (so that
2525         it works with BSD 4.4 sed.)
2527 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2529         * devps/psstrip.sed: Delete comments.
2531         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2532         optind, opterr, optarg.
2533         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2534         opterr, optarg.
2536 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2538         * Makefile.in (check): Dummy target.
2540 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2542         * Version 1.07 released.
2544         * Integrate mm 1.11.
2546         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2547         where start_col was meant.
2549 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2551         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2553 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2555         * troff/input.cc (token::next): Make \z\o'...' and similar things
2556         work.
2558         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2559         constants.
2560         (environment): Add margin_character_flags member.
2561         * env.cc (environment::environment(symbol),
2562         environment::environment(const environment *): Initialize
2563         margin_character_flags.
2564         (margin_character): Rewrite.
2565         (environment::output_line): Add a margin character if
2566         margin_character_flags is non-zero.  Turn off the
2567         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2568         zero, use margin_character_node without copying and then set
2569         margin_character_node to 0.
2571         * devps/DESC.in: Change minimum size to 1000.
2573 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2575         * troff/symbol.h (symbol::hash): Change return type to unsigned
2576         long.
2577         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2578         Add casts to int.
2580         * test-groff: Use -r rather than -x.
2582         * grops/psfig.diff: Include in distribution again.
2584 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2586         * Makefile.in (dist): Use gzip.
2588 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2590         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2591         unistd.h as well as in stdlib.h.
2592         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2593         defined; otherwise include <sys/types.h> and <unistd.h> if
2594         UNISTD_H_DECLARES_GETOPT is defined.
2596         * configure.in: use builtin(include, ... rather than include(...
2597         * configure: Regenerate with autoconf 1.3.
2599         * libdriver/print.cc (printer::adjust_arc_center): Use new
2600         algorithm suggested by Andy Fyfe.
2602         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2603         * include/printer.h: Declare this.
2604         * grops/ps.cc (ps_printer::draw): Use it.
2605         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2607 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2609         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2611 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2613         * eqn/main.cc (main): Handle "eqn -".
2615 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2617         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2619         * mm: Integrate version 1.08.
2621         * pic/troff.cc (troff_output::finish_picture): Set
2622         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2623         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2624         if it's not defined. Check whether the register is non-zero rather
2625         than whether it's not defined.
2626         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2628         * indxbib/indxbib.cc: Move all signal handling into...
2629         * indxbib/signal.c: New file.
2630         * configure.in: Call AC_RETSIGTYPE.
2632         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2633         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2634         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2636         * troff/input.cc (token::token, token::operator=): Work round SGI
2637         C++ bug.
2638         * pic/object.cc (position::position): Likewise.
2640 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2642         * pic/pic.h: Move declaration of hypot().
2644 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2646         * pic/pic.h: Declare hypot().
2648         * pic/pic.h: Define M_PI if necessary.
2650 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2652         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2653         `.ta T' feature.
2655         * devps/prologue.ps (RE): Handle the possibility that the old font
2656         doesn't have a FontName entry.
2658 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2660         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2661         (@C): Use @fam not fam.
2663 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2665         * lookbib/lookbib.cc (main): Change type of start to const char *.
2666         * lkbib/lkbib.cc (main): Likewise.
2668         * eqn/lex.cc (definition::definition): Don't use member
2669         initializer syntax for members of anonymous unions.
2671         * troff/input.cc (input_stack::backtrace): Change type of to const
2672         char *.
2674 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2676         * include/stringclass.h (class string): Declare inline friend
2677         functions as inline in class declaration.
2678         * troff/hvunits.h (class hunits, class vunits): Likewise.
2679         * include/refid.h (class reference_id): Likewise
2680         * troff/troff.h (points_to_units(units), scale(units, double)):
2681         Delete declarations.
2682         * libdriver/input.cc (get_char): Delete declaration.
2683         * include/lib.h: Change 2nd argument of getopt from const char **
2684         to char **.
2685         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2686         char **' before assigning to a `const char **'.
2687         * tbl/table.cc: Delete extra declarations of prints().
2689 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2691         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2692         char **' before assigning to a `const char **'.
2694         * libgroff/errarg.cc (errarg::errarg): Don't use member
2695         initializer syntax for members of anonymous unions.
2697 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2699         * mm: Integrate version 1.07.
2701 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2703         * troff/input.c (translate2): Rename to
2704         (translate_no_transparent).
2705         (init_input_requests): Rename tr2 to trnt.
2707 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2709         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2710         (charinfo::set_translation, charinfo::set_special_translation):
2711         Add second argument that specifies value for
2712         transparent_translate.
2713         (charinfo::get_translation, charinfo::get_special_translation):
2714         Add optional second argument that specifies whether translation is
2715         being used for transparent throughput.
2716         * troff/input.cc (charinfo::set_translation,
2717         charinfo::set_special_translation): Handle second argument.
2718         (charinfo::charinfo): Initialize transparent_translate.
2719         (translate): Split main part off into
2720         (do_translate): New function.  Pass argument saying whether
2721         translation applies to transparent throughput.
2722         (translate2): New request.
2723         (init_input_requests): Bind translate2 to `tr2'.
2725 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2727         * tbl/table.h (class table): Add `nokeep' flag.
2728         * tbl/main.cc (process_options): Handle `nokeep' option.
2729         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2730         table::do_bottom): Don't output keep/release macro definitions or
2731         calls when `nokeep' option has been specified.
2733 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2735         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2737 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2739         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2740         block_entry::divert, alphabetic_block_entry::divert): Add extra
2741         argument giving column separation.
2742         (table::compute_widths): Pass column separation to
2743         table_entry::divert().
2744         (block_entry::do_divert): If an entry spans multiple columns and a
2745         minimumum width has been specified for each column, then set the
2746         line length to the sum of the widths (plus possibly the column
2747         separations).
2749         * troff/input.cc (set_escape_char): Don't set the escape_char
2750         until after calling has_arg().
2752 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2754         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2755         case.
2757         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2758         in case where r > nrows - 1.
2760         * tbl/table.cc (BODY_HEIGHT): Deleted.
2761         (LINE_SEP): New definition.
2762         (table::print_single_hline, table::print_double_hline,
2763         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2764         table::do_row, table::do_top): Use LINE_SEP space before a line
2765         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2767         * tbl/table.cc (text_entry::print_contents): New function.
2768         (text_string_name, right_text_string_name): Deleted.
2769         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2770         (simple_text_entry::do_width, numeric_text_entry::do_width,
2771         alphabetic_text_entry::do_width): Don't store the contents of the
2772         entry in a string.
2773         (left_text_entry::simple_print, right_text_entry::simple_print,
2774         center_text_entry::simple_print,
2775         alphabetic_text_entry::simple_print,
2776         numeric_text_entry::simple_print): Print the entry directly
2777         instead of using the stored string.
2779 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2781         * devps/Makefile: Strip PostScript files.
2782         * devps/prologue: Rename to...
2783         * devps/prologue.ps.
2784         * devps/psstrip.sed: New file.
2785         * devps/download: Use .pfa rather than .ps for installed versions
2786         of fonts.
2788 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2790         * troff/env.cc (input_trap): Give a warning if the argument is out
2791         of range.
2793         * troff/env.cc (adjust): Treat negative argument as missing. Round
2794         argument > 5 down to 5.
2796         * troff/env.cc (center, right_justify): Make negative argument zero.
2798         * troff/div.cc (page_offset, vertical_position_traps): Treat
2799         invalid argument as missing.
2800         * troff/env.cc (line_spacing, line_length, title_length, indent,
2801         underline, hyphen_line_max_request, control_char,
2802         no_break_control_char, widow_control_request, adjust, input_trap,
2803         point_size): Likewise.
2804         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2805         constant_space): Likewise.
2806         * troff/input.cc (compatible, shift, warn_request,
2807         set_escape_char): Likewise.
2809         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2810         * tbl/table.cc (table::table): Likewise.
2812         * Makefile.dev (install_dev): depends on $(DEVFILES).
2814 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2816         * devX75, devX75-12, devX100, devX100-12: New directories.
2817         * Makefile.in: Add these to DEVDIRS.
2819         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2820         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2821         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2822         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2823         targets.
2824         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2825         (uninstall): New target.
2826         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2827         uninstall_prog, uninstall_dev): New targets.
2829         * troff/div.cc (return_request): Treat an invalid argument as
2830         missing.
2832 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2834         * tmac/tmac.e ((f): Set up the environment even when there's a
2835         current diversion.  Transperently throughput a call to @N.
2836         (@N): New macro.
2838 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2840         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2841         up to vertical resolution.
2843         * tbl/table.cc (table::do_row): Change row number after printing
2844         stuff list.
2846         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2848 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2850         * Rename CHANGES to NEWS.
2852 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2854         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2856 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2858         * man.ultrix: Removed.
2860 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2862         * Makefile.comm (extraclean): Delete files whose names begin with
2863         `='.
2865         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2866         aligned text.
2868 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2870         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2871         * troff/div.cc (page_length, need_space, space_request): Treat
2872         invalid optional argument as missing.
2873         * troff/env.cc (number_lines): If the first argument is present
2874         but not a number, turn on line numbering, don't change the next
2875         line number and parse the remaining arguments.
2877         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2879 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2881         * eqn/box.h: Change declaration accordingly.
2882         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2883         the specified size was bad but don't give an error.  Check for
2884         overflow.
2885         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2886         * eqn/lex (do_size): Likewise.
2888 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2890         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2891         compatible headers.
2893 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2895         * tbl/table.cc (table::init_output): Improve error message when
2896         table won't fit on one page.
2898 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2900         * pic/troff.cc (troff_output::start_picture): Generate line
2901         containing a horizontal motion equal to the width of the picture.
2903         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2904         using GROFF_COMMAND_PREFIX environment variable.
2906 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2908         * mdate.sh: Use $NF rather than $(NF).
2910 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2912         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2914         * eqn/main.cc (main): Output code to check that geqn was given the
2915         correct -T option.
2917 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2919         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2920         `ln -s ../Makefile .; make; rm -f Makefile'.
2922         * troff/hyphen: Rename to...
2923         * troff/hyphen.us:
2924         * troff/input.cc (main): Delete -H option. Don't call
2925         read_hyphen_file().
2926         * troff/env.cc: Include searchpath.h and macropath.h.
2927         (exception_dictionary): Deleted.
2928         (ht): Deleted.
2929         (read_hyphen_file): Deleted.
2930         (hyphenation_language): New struct.
2931         (class trie, class hyphen_trie): Move declarations up.
2932         (trie_node::~trie_node): Deleted.
2933         (trie::delete_trie_node): New function.
2934         (trie::do_delete): New pure virtual function.
2935         (hyphen_trie::do_delete): New function.
2936         (trie::~trie): New function.
2937         (hyphen_trie::~hyphen_trie): New function.
2938         (trie::clear): No need to chcek that tp is not 0.
2939         (current_language, language_dictionary): New variables.
2940         (hyphen_word): Give an error if no current language.  Use
2941         exceptions dictionary in current language.
2942         (hyphen_trie::read_patterns_file): Find file using macro_path.
2943         Allow comments (starting with %) in patterns file.  Don't make it
2944         a fatal error if the file can't be found.
2945         (hyphenate): Return if no current language.  Get the exceptions
2946         dictionary and the hyphenation patterns from the current language.
2947         (set_hyphenation_language): New variable.
2948         (hyphenation_patterns_file): New function.
2949         (hyphenation_language_reg): New class.
2950         (hyphenation_language_reg::get_string): New function.
2951         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2952         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2953         register.
2954         * groff/groff.cc (main, help, synopsis): Delete -H option.
2955         * include/Makefile.sub: Don't define HYPHENFILE.
2956         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2957         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2958         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2959         hyphenation patterns.
2961 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2963         * eqn/neqn.sh: New file.
2964         * eqn/Makefile.sub: Handle neqn.sh.
2966         * eqn/eqn.h: Declare `nroff' variable.
2967         * eqn/box.cc (param_table): Add `nroff' param.
2968         (nroff): Define it.
2969         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2970         variable.
2971         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2973         * troff/troff.h (WARN_FONT): New warning.
2974         (WARN_TOTAL): Change accordingly.
2975         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2976         (warning_table): Add WARN_FONT.
2977         * troff/node.cc (mount_font_no_translate): Pass argument to
2978         font::load_font.  If this is non-zero, give a warning.
2979         Don't give an error message when accessing a font that has already
2980         been found to be invalid.
2981         * include/font.h (font::load, font::load_font): Add additional
2982         optional argument which suppresses error message if the font is
2983         not found.
2984         * libgroff/font.cc (font::load_font): Handle additional argument.
2985         (font::load): Add additional argument. If this is non-null, set it
2986         to 1 and don't give error message.
2988         * include/printer.h (printer::end_page): Add argument giving
2989         length of page.
2990         * libdriver/input.cc (do_file): Pass this.
2991         * grops/ps.cc (ps_printer::end_page): Add argument.
2992         * grodvi/dvi.cc (dvi_printer::end_page,
2993         draw_dvi_printer::end_page): Add argument.
2994         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2995         columns_per_page members. New member nlines.
2996         (DEFAULT_LINES_PER_PAGE): Deleted.
2997         (tty_printer::tty_printer): Don't compute lines_per_page from
2998         font::paperlength. Don't compute columns_per_page from
2999         font::paperwidth.
3000         (tty_printer::add_char): Don't check horizontal position against
3001         columns_per_page. Grow glyphs vector if neccessary.
3002         (tty_printer::end_page): Add argument giving page_length in units.
3003         Discard lines past end of page.
3005 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
3007         * tmac/tmac.tty-char: Fix definition of \(/l.
3009         * tmac/tmac.X: Define \(en.
3011 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
3013         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3014         lpq, then use lp rather than lpr.
3016         * tmac/tmac.s (par@reset): Don't call `ad'.
3017         (par*env-init): Call `ad'.
3019 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
3021         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3022         date.
3024         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3025         * indxbib/indxbib.cc: Likewise.
3027 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
3029         * libgroff/putenv.c: New file.
3030         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3031         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3032         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3033         stdlib.h with AC_HAVE_HEADERS.
3035 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
3037         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3038         does not exist.
3040 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
3042         * eqn/box.cc (gsize): Make it an int.
3043         (set_gsize): Parse argument handling increment or decrement.
3044         (box::top_level): Convert gsize to a string.
3046         * troff/input.cc (exit_troff): Make buf unsigned char [].
3047         Call to make_temp_iterator casts buf to char*.
3049         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3051         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3052         * Makefile.cpg (depend.temp): Likewise.
3054         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3056         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3058 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
3060         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3062 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
3064         * Version 1.06 released.
3066         * Integrate mm 1.04.
3068 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
3070         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3072 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
3074         * afmtodit/afmtodit.pl: Add -n option that disables generation of
3075         ligatures command.
3076         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3077         afmtodit. Regenerate.
3079         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3080         @f back past the current position.
3082         * tmac/tmac.e: Change calls to @R so that comments are not part of
3083         arguments.
3085 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
3087         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3089         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3090         check that we can link a call to a function declared in <stdio.h>.
3091         (GROFF_UNISTD_H): New macro.
3092         * configure.in: Call it.
3093         * Makefile.in: Document it.
3094         * include/posix.h: New file.
3095         * troff/troff.h: Don't include <osfcn.h>
3096         * troff/input.cc: Include posix.h.
3097         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3098         osfcn.h.
3099         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3100         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3101         <fcntl.h>.
3102         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3103         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3104         * libbib/search.cc (O_RDONLY): Delete definition.
3105         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3106         Don't include <osfcn.h>.
3108         * acgroff.m4 (GROFF_TIME_T): New macro.
3109         * configure.in: Call it.
3110         * Makefile.in: Document it.
3112         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3113         * configure.in: Call it.
3114         * Makefile.in: Document -DTRADITIONAL_CPP.
3115         * include/ptable.h: Don't include generic.h.
3116         (name2): Define it.
3118         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3119         Afterwards remove [T1 and [T2.
3120         (ref*spec!0, ref*spec!2): Use T1 rather than T.
3121         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3122         (ref*add-T2): Renamed from ref*add-T.
3123         (ref*add-T1): New macro.
3125 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
3127         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3129         * libbib/index.cc: Include <fcntl.h>.
3130         (O_RDONLY): Define if necessary.
3131         (make_index_search_item, index_search_item_iterator::get_tag,
3132         index_search_item::check_files): Use O_RDONLY.
3133         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3134         (O_RDONLY): Define if necessary.
3135         (search_list::add_file): Use O_RDONLY.
3136         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3137         <sys/stat.h>.
3138         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3139         (main): Use these.
3141         * libbib/index.cc (S_ISREG): Define it if necessary.
3142         (index_search_item::load): Use S_ISREG.
3144         * include/driver.h: Include <errno.h>.
3146 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
3148         * eqn/box.cc (body_height): Increase default value to 85.
3149         (body_depth): Increase default value to 35.
3151 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
3153         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3154         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3155         protected from expansion with \E.
3157         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3159         * Makefile (Makefile): New target.
3161         * Makefile.sub (configure, distfiles): New targets.
3163         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3164         construct.
3166 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
3168         * eqn/box.cc (param_table): Add body_height and body_depth.
3170         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3172 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
3174         * psbb/Makefile.sub: Don't link with libgroff.a.
3176         * acgroff.m4 (GROFF_PUTENV): New macro.
3177         * configure.in: Call GROFF_PUTENV.
3178         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3179         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3180         is defined.
3182         * troff/env.cc (distribute_space): Rename force_forward argument
3183         to force_reverse.  Reverse the list if force_reverse is true.
3185 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
3187         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3189         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3190         height or depth to be negative.  Guard against SUP_RAISE quantity
3191         being negative.
3193 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
3195         * devps/generate/textmap: Add `an' (arrowhorizex).
3196         * tmac/tmac.ps: \(an overlaps horizontally.
3197         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3199         * devps/symbolchars: Add arrowverttp, arrowvertbt.
3200         * devps/textmap: Add arrowvertex.
3201         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3202         updownarrow delimiters.
3203         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3205         * tbl/table.cc (simple_entry::position_vertically,
3206         block_entry::position_vertically):  For a centered entry, perform
3207         the motion in two stages.
3209         * refer/refer.cc (split_punct): Don't call lookup_token if there
3210         is no token.
3212 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
3214         * troff/input.cc (token::next): Delete token_node after copying
3215         token.
3217         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3218         cur_point_size.
3220         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3222         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3224 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
3226         * grops/ps.cc (usage): -b option takes an argument.
3228         * devps/prologue (PLG): New procedure.
3229         * grops/ps.cc (main, usage): New -g option.
3230         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
3231         length using PLG.
3233 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
3235         * include/cset.h: Include <limits.h> if we have it.
3237         * libgroff/illegal.cc: New file.
3238         * include/lib.h (illegal_input_char): Use table.
3239         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3240         * pic/lex.cc (ARG1): Renumber to 14.
3241         * eqn/lex.cc (ARG1: Likewise.
3243         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3244         (eg 1.05.90) correctly.
3246 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
3248         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3249         Rename $r and $R registers to $v and $V.
3250         ($r, $R): Initialize to 0.
3251         (@v, @V): New macros.
3252         (sz): Call @v.
3253         (@M): Call @V.
3255         * troff/input.cc (main, usage): Add -R option that says not to
3256         load troffrc.
3257         * eqn/main.cc (main, usage): Rename -n to -R.
3259 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
3261         * devps/DESC.in: Leave font positions 5-9 blank.
3262         * devdvi/DESC.in: Likewise.
3264         * grog/grog.pl: Handle `.PS <file' correctly.
3266         * troff/input.cc (input_stack::push): Improve error message when
3267         input stack limit exceeded.
3269 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
3271         * refer/refer.cc (main): Fix typo in handling of `a' option.
3273         * refer/refer.cc (do_bib): In state START after a newline remain
3274         in state START.
3276         * groff/groff.sh: Deleted.
3277         * groff/Makefile.sub: Delete handling of groff.sh.
3279         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3280         to determine whether to use \X'ps:...'.
3281         * tmac/troffrc: Set 0p register to 0.
3282         * tmac/tmac.ps: Set 0p register to 1.
3284         * groff/groff.cc: Support -X option. Give warning for -TXps and
3285         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3286         * tmac/troffrc: Support -r.X=1.
3288         * pic/troff.cc (troff_output::dot): Don't test
3289         zero_length_line_flag.
3291 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
3293         * include/lib.h: Declare getopt() and friends unless
3294         STDLIB_H_DECLARES_GETOPT is defined.
3296         * doc/chars.tr: Delete.
3297         * man/groff_char.man: New file.
3299 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
3301         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3302         user has changed register format.
3304 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
3306         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
3307         `postpro' command in DESC file.  Get spooler command from `print'
3308         command in DESC file.  Execute spooler command with /bin/sh.
3310         * groff/groff.cc: Split Unix-specific parts into...
3311         * groff/pipeline.c: New file.
3313         * LICENSE: Delete.
3314         * COPYING: New file.
3315         * all files: Update copyright notices.
3317         * Rearrange files.  Redo Makefiles.  Use autoconf.
3319 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
3321         * troff/input.c (charinfo_to_node_list): Interpret character
3322         definition with escape_char of `\'.
3324 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
3326         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3327         Define INT_DIGITS as big enough for 64-bit integer.
3328         * lib/strtol.c: Don't include lib.h.
3329         * lib/lib.h: Delete ifdef __cplusplus stuff.
3331 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
3333         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
3334         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
3335         get DESC from current directory.
3337 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
3339         * tbl/main.c (main): Always reset the line number when reading
3340         from stdin.
3342         * tbl/table.c (table::print_single_hline, table::print_double_hline,
3343         table::define_bottom_macro, table::do_row, table::do_top): Round
3344         vertical spacing up to vertical resolution.
3346 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
3348         * ps/ps.h (enum resource_type): Avoid comma at end of
3349         enumerator-list.
3350         * dvi/dvi.c (class dvi_printer): Likewise.
3351         * dvi/tfmtodit.c (gf::load): Likewise.
3352         * refer/label.y (struct expression): Likewise.
3353         * refer/refer.c (class label_processing_state): Likewise.
3354         * refer/indxbib.c (do_file): Likewise.
3355         * troff/troff.c (enum warning_type): Likewise.
3356         * tbl/main.c (process_data): Likewise.
3357         * troff/charinfo.h (class charinfo):
3359 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3361         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3363 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3365         * groff.c: Move to new groff subdirectory.
3366         * groff/Makefile: New file.
3367         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3369         * man/mdate.sh: Use ls -L if supported.
3371         * Consolidate all header files produced by gendef into lib/defs.h.
3372         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3373         Don't include path.h.
3374         * lib/Makefile (path.h): Don't generate.
3375         * troff/input.c: Include defs.h. Don't include config.h.
3376         * troff/Makefile (config.h): Don't generate.
3377         * refer/index.h: Don't include suffix.h.
3378         * refer/index.c: Include defs.h.
3379         * refer/indxbib.c: Include defs.h.
3380         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3381         defs.h.
3382         * refer/Makefile (suffix.h, path.h): Don't generate.
3383         * groff.c: Don't include config.h. Include defs.h.
3384         * Makefile (config.h): Don't generate.
3385         (lib/defs.h): Generate.
3386         (topclean): Remove lib/defs.h.
3388 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3390         * lib/malloc.c, lib/getpagesize.h: Deleted.
3391         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3392         related stuff.
3393         * lib/Makefile: Delete malloc-related stuff.
3394         * lib/new.c: Workaround COOKIE_BUG if necessary.
3396         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3397         needed header files directly.
3398         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3399         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3401 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3403         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3404         argument.
3405         * lib/font (font::load_desc, font::load): Don't split argument of
3406         unknown command.
3407         (font::handle_unknown_font_command): Change type.
3408         * ps/ps.c (ps_font::handle_unknown_font_command,
3409         handle_unknown_desc_command): Change type.
3410         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3412 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3414         * lib/font.h (font::handle_unknown_font_command): Add file and
3415         line arguments.
3416         * lib/font.c (font::handle_unknown_font_command):
3417         * ps/ps.c (ps_font::handle_unknown_font_command):
3418         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3419         lineno arguments.  Use _with_file_and_line functions for error
3420         reporting.
3422         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3423         data member.
3424         * lib/font.c (font::set_unknown_desc_command_handler): New
3425         function.
3426         (font::load_desc): For unknown commands, call
3427         unknown_desc_command_handler if not null.
3428         * lib/font.h (class font): Declare them.
3429         (FONT_COMMAND_HANDLER): New typedef.
3430         * ps/ps.c (handle_unknown_desc_command): New function.
3431         (main): Set bflag if we had a -b option. Call
3432         font::set_unknown_desc_command_handler.
3433         (broken.h): Don't include.
3434         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3435         submake 
3436         * ps/devps/Makefile: Add `broken' command to DESC file using
3437         BROKEN_SPOOLER_FLAGS.
3439         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3441         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3443         * macros/tmac.e (@R, @S): New macros.
3444         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3445         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3446         Declare $H, $[0-9], .. macros with @S.
3447         Declare |0, |1, |2, |3 strings with @S.
3449         * macros/tmac.e (@S): Rename to @U.
3451         * macros/tmac.e (@z): Define @b and bp as empty instead of
3452         deleting them,
3454         * macros/tmac.e (@m): Deleted.
3455         (@h): Don't call @m.
3456         (@z): Don't set @m trap.
3458         * macros/tmac.e ($h, $f): Define |z as empty string.
3460         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3461         (@q): Likewise.
3463         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3464         removing them.
3465         ()f): Likewise for * register.
3467         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3468         argument is missing, don't change $R.  Call sr with three
3469         arguments when initializing.
3471 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3473         * macros/tmac.e (sr): New macro.
3474         Initialize $r and $R using sr.
3476         * macros/tmac.e (,): Delete \*(#[.
3478         * troff/env.c (set_tabs): Read the tab type even if the position
3479         is bad.  Allow the position of the first tab stop to be negative.
3481 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3483         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3484         _POSIX_VERSION.
3485         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3486         rather than -DPATHCONF_MISSING.
3487         * Makefile: Get rid of PATHCONF_MISSING.
3489         * refer/map.c: New file.
3490         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3491         to map_len.
3492         * refer/Makefile: Handle map.c.
3493         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3495 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3497         * Makefile: RANLIB should be `true' if there is no ranlib.
3498         * lib/Makefile (libgroff.a): Simplify.
3499         * driver/Makefile (libdriver.a): Simplify.
3501         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3502         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3503         defined.
3505 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3507         * troff/env.c (compare_ranges): Declare as extern "C".
3509         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3511         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3513 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3515         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3516         but conditionalize use of \X based on \*(.T.
3517         (grops_output::*): Deleted.
3518         * pic/output.h: Delete declaration of make_grops_output.
3519         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3520         by default. -n sets it to 0.
3521         (usage): Corresponding changes.
3522         * groff.c (main): Don't pass -x or -p to pic.
3523         * groff.sh: Likewise.
3525         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3526         to be non-zero.
3528         * ps/devps/afmtodit: Change calculation of asc_boundary and
3529         desc_boundary.  Make these bounds inclusive.
3530         * ps/devps: Regenerate font files.
3532 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3534         * macros/tmac.latin1: New file.
3535         * macros/tmac.tty-char: Use tmac.latin1.
3536         (tmac.tty-tr): Deleted.
3537         * macros/Makefile: Install tmac.latin1.
3538         * macros/tmac.dvi: Use tmac.latin1.
3539         * macros/troffrc: Translate \[char160] onto no-break space here.
3540         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3542 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3544         * macros/tmac.Xps: Use `do' request.
3546         * macros/tmac.ps: Use `do' request.
3548         * macros/tmac.e (@C): Use `do' request.
3550         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3551         * macros/Makefile: Install tmac.X*.
3553         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3554         * tty/Makefile: Don't install tmac.tty*.
3555         * macros/Makefile: Install tmac.tty*.
3557         * dvi/tmac.dvi: Move to macros.
3558         * dvi/Makefile: Don't install tmac.dvi.
3559         * macros/Makefile: Install tmac.dvi.
3561         * ps/tmac.ps*: Move to macros.
3562         * ps/Makefile: Don't install tmac.ps*.
3563         * macros/Makefile: Install tmac.ps*.
3565         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3566         option.
3567         * macros/eqnrc: Set draw_lines parameter based on device.
3568         * groff.c: Don't pass -D flag to eqn.
3569         * groff.sh: Likewise.
3570         * eqn/main.c: Warn about use of -D.
3572         * troff/input.c (process_startup_file): New function.
3573         (main): Call process_startup_file().
3574         * macros/troffrc: New file.
3575         * macros/Makefile: Install troffrc.
3576         * groff.c (main): Don't pass extra -m option to troff. For a 
3577         pseudo device pass the name of the pseudo device to troff using
3578         -d.
3579         * groff.sh: Likewise.
3580         * groff.c (possible_command::prepend_arg): Deleted.
3582         * troff/input.c (do_request): New function.
3583         (init_input_requests): Bind "do" to do_request.
3585         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3586         load eqnrc from macro directory.
3587         * macros/eqnrc: New file.
3588         * macros/Makefile: Install eqnrc.
3589         * ps/devps/eqnchar: Deleted.
3590         * ps/devps/Makefile: Don't install eqnchar.
3591         * dvi/devdvi/eqnchar: Deleted.
3592         * dvi/devdvi/Makefile: Don't install eqnchar.
3593         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3594         variable optM.
3596         * lib/device.[ch]: New files.
3597         * lib/font.h (font::set_device_name, font::get_device_name):
3598         Deleted.
3599         * lib/fontfile.c: Use device.h.
3600         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3601         * troff/input.c: Delete definition of `device'.
3602         (main): Don't initialize device.
3603         * troff/troff.h: Include device.h rather than declaring device.
3604         * troff/Makefile: No need to handle DEVICE.
3605         * driver/input.c: Include device.h. Don't use
3606         font::{set,get}_device_name.
3607         * groff.c, Makefile: Rename device.h to config.h.
3608         * groff.c: Use library device variable.
3609         * eqn/main.c: Use library device variable.
3610         * eqn/Makefile: No need to handle DEVICE.
3612         * lib/searchpath.[ch]: New files.
3613         * lib/Makefile: Handle searchpath.[ch].
3614         * troff/input.c (open_file, init_dirs): Deleted.
3615         (macro_dirs): Deleted.
3616         (open_mac_file, macro_source): Use class search_path.
3617         (add_string, struct string_list): Move definition.
3618         (main): Change -M option to use macro_path. Delete call to
3619         init_dirs().
3620         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3621         Rewrite to use class search_path.
3622         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3623         * lib/Makefile: fontfile.c depends on searchpath.h.
3624         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3625         MACROPATH.
3626         * lib/macropath.[ch]: New files.
3627         * troff/Makefile: No need to handle MACROPATH.
3629         * troff/input.c: Delete DUMP code.
3630         * lib/fontfile.c, lib/font.h: Delete
3631         font::forget_command_line_font_dirs.
3633         * troff/input.c (push_token): New function.
3634         (handle_first_page_transition): Use push_token().
3635         (process_input_stack): Change handling of a space at the beginning
3636         of the line.
3638 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3640         * troff/input.c (font_dirs): Delete unused variable.
3642         * eqn/lex.c (do_set): Correct error messages.
3644 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3646         * troff/input.c (do_define_string): Allow the string name to be
3647         followed immediately by a tab.
3648         (define_character): Likewise.
3650 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3652         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3653         be negative.
3655         * troff/input.c (input_iterator::is_file): New virtual function.
3656         (file_iterator::is_file): New function.
3657         (input_stack::end_file): New function.
3658         (input_stack::next_file): Handle the situation where there is no
3659         file on the input stack correctly.  Avoid making two passes over
3660         the input stack.
3661         (next_file): Make the filename optional; in this case call
3662         input_stack::end_file().
3664 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3666         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3667         produce a real _ charater when the current font is CW and _
3668         otherwise.
3670         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3671         expression to work around gcc 2.2 bug.
3673 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3675         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3677         * troff/env.c (environment::add_padding): New function.
3678         (environment::add_char): Use add_padding().
3679         (environment::space): Likewise.
3680         (environment::wrap_up_field): Add some padding if there is none
3681         and there's no current tab.
3682         * troff/env.h: Declare environment::add_padding.
3684 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3686         * pic/pic.y: undef fmod and rand before declaring them.
3688 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3690         * troff/input.c (main): If the DESC file specifies a font name of
3691         0, then leave the corresponding font position empty.
3693         * nroff.sh: New file.
3694         * Makefile (install.nobin): Install nroff.sh.
3696         * tty/devlatin1/R.proto: Add ao as synonym for de.
3697         * tty/tmac.tty-char: Define ao as o.
3699         * tty/dev{ascii,latin1}/R.proto: Add aq.
3700         * tty/tmac.tty-char: Delete definition of aq.
3702 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3704         * troff/input.c (init_charset_table): Don't translate 0240.
3705         * ps/tmac.ps: Translate char160 to space.
3706         * dvi/tmac.dvi: Likewise.
3707         * tty/tmac.tty: Likewise.
3709 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3711         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3713         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3714         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3715         \(oe, \(r?, \(r!.
3717         * tty/tmac.tty-char: Add \(ah.
3719         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3720         No need to define \(FM and \(!/. Conditionalize all character
3721         definitions.
3723         * ps/devps/lgreekmap: Add +h, +f, +p.
3725         * ps/tmac.psnew: New file.
3726         * ps/Makefile: Install tmac.psnew.
3728         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3729         character definitions in compatible mode.
3731         * troff/input.c (remove_character): New function.
3732         (init_input_requests): Bind remove_character to "rchar".
3734         * ps/tmac.psold: New file.
3735         * ps/Makefile: Install tmac.psold.
3736         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3737         characters into tmac.psold.  Make these definitions unconditional.
3739         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3741         * ps/tmac.ps: Don't define \('c and \('C.
3743         * ps/devps/textmap: Move Greek characters to...
3744         * ps/devps/symbolchars:
3746 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3748         * ps/devps/text.enc: Add quotesingle.
3749         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3750         * tty/tmac.tty-char: Likewise.
3751         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3752         * dvi/devdvi/texi.map: Add Fn.
3753         * dvi/devdvi/msam.map: Add lz.
3754         * dvi/tmac.dvi: Handle Bq, bq, aq.
3756         * pic/lex.c (get_token): Recognize 'th.
3757         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3759 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3761         * ps/devps/textmap: Move di, mu, +- to...
3762         * ps/devps/symbolchars:
3764         * macros/tmac.s (@XS): Don't call par@reset or fi.
3765         (XA): Call LP. Turn off adjustment. Reduce line length.
3767         * macros/tmac.s: Initially alias XS to LP.
3768         (XS): Rename to @XS.
3769         (cov*ab-init): Alias XS to @XS.
3771 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3773         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3774         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3775         (token::is_size, token::changes_env): Deleted.
3776         * troff/number.c (parse_term): No need to process \s explicitly.
3777         Call tok.next() only after scale indicator has been processed.
3778         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3779         \f etc explicitly.
3780         (token::next): Handle \s, \f, \S, \H immediately rather than
3781         returning them as tokens.
3782         (token::operator==, token::description, token::add_to_node_list,
3783         token::process): Remove handling of deleted tokens.
3785         * troff/env.c (environment::add_char): When adding padding
3786         indicator character, call start_line() if necessary.
3788 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3790         * ps/devps/afmtodit: Don't output 0 kerns.
3792         * ps/devps/afmtodit: Remove directory from name of encoding in
3793         font description file.
3795         * ps/devps/afmtodit: Improve error messages.
3797         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3799         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3800         * ps/devps/FontMakefile: Deleted.
3801         * ps/devps/afmname: New file.
3803         * ps/devps/symbol.sed: New file.
3804         * ps/devps/symbol.diff: Deleted.
3805         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3806         Generate zapfdr.afm from zapfd.afm.
3808         * tty/tmac.tty (tty-char): Prefix definition with ".
3810         * macros/tmac.an (TP): Don't start a diversion if one has already
3811         been started.
3813         * tty/tmac.tty-char: Add Latin-1 characters.
3815         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3817 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3819         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3820         Move declaration of struct horizontal_span.
3822         * tbl/table.c (table::table): Initialize span_list.
3823         (table::~table): Delete span_list.
3825         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3827         * ps/devps/Makefile: Avoid dependency on GNU make.
3829         * ps/tmac.ps: Check that character does not already exist before
3830         defining it.
3832         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3833         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3834         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3835         files.
3837         * tty/tmac.tty-char: New file.
3838         * tty/Makefile: Install tmac.tty-char.
3839         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3840         tmac.tty-char.
3842         * tty/tmac.tty: Fix definition of \(34.
3844         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3845         bracket-drawing characters onto |. Add *o.
3847         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3848         only if current_field.
3850         * troff/dictionary.c (dictionary::lookup): Free old_table after
3851         rehashing. 
3853 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3855         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3856         whose glyphs are identical to glyphs of some Roman character.
3858         * tty/devlatin1/R.proto (bu): Deleted.
3859         * tty/devascii/R.proto (bu): Deleted.
3860         * tty/tmac.tty: Add definition of \(bu.
3862         * eqn/main.c (do_file): Pass FILE as argument.
3863         (main): Automatically load eqnchar.  New options -F and -n.
3864         Pass do_file an opened FILE.
3865         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3866         No need to include font.h.
3867         * groff.sh: Likewise.  Don't need to use - for standard input.
3868         Prefix files with -- if first file starts with -.
3870         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3872         * troff/env.c (environment::possibly_break_line): Don't set line
3873         to 0 across call to output_line().  Don't call output_line() until
3874         after discarding nodes after break.
3876 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3878         * request.h (macro::empty): Declare it.
3879         * input.c (macro::empty): New method.
3880         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3881         macro is empty.
3883 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3885         * troff/env.c (environment::start_field): Decrement space_total
3886         when a space is frozen.
3888 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3890         * macros/tmac.an (R): Delete macro.
3892         * troff/input.c (get_copy, token::next): Support \# (like \" but
3893         newline is ignored).
3895         * troff/input.c (token::next): Fix error message in 'Y' case.
3897 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3899         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3900         a delimiter name.
3902 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3904         * c++test.c: Include <osfcn.h>.
3906         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3907         <errno.h> doesn't.
3909 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3911         * tbl/table.c (table::divide_span): Don't count column separation
3912         if expand was specified.
3914         * tbl/main.c (process_format): Don't ignore width specs in
3915         continued format.  Give warning for changing equal widths or
3916         column separation in continued format.
3917         (process_data): Set column separation, minimum width, equal
3918         columns at end of table.
3920 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3922         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3923         node::add_discretionary_hyphen): Use soft_hyphen_char.
3924         (set_soft_hyphen_char): New function.
3925         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3927         * Makefile (c++tested): Give more helpful message if test fails.
3929 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3931         * troff/input.c (init_charset_table): Translate 0240 to
3932         an unbreakable space.
3934         * troff/token.h (token::hyphen_indicator): New function.
3935         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3936         translation.
3937         * troff/input.c (translate): Allow translation to \%.
3938         * troff/node.c (node::add_char): Handle
3939         TRANSLATE_HYPHEN_INDICATOR.     
3940         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3942         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3943         for \(hy.
3945         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3947 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3949         * groff.c (run_commands): If the last command gets a SIGPIPE send
3950         a SIGPIPE to all children than haven't yet terminated.  When
3951         command terminates, set pid field to -1.
3953 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3955         * groff.c (main): Pass an appropriate -filename option to gxditview.
3957 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3959         * Makefile.bd (install): Remove existing program before copying.
3961         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3962         programs which have Unix counterparts to be installed with
3963         user-specified prefix.
3965         * troff/input.c (exit_troff): Don't check if exit_started.
3966         (exit_request): Don't call exit_troff if exit_started.
3968         * Makefile.bd (install.mm): Rename to install.dwbmm.
3970 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3972         * driver/input.c (do_file): Add missing break for '#' case.
3974 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3976         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3977         then add the boundaries back.
3979         * troff/input.c (exit_troff): Return immediately if already
3980         exiting.
3982         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3983         end macro.
3984         (pg*end-page): If the text has ended and there are no more
3985         footnotes or keeps, exit.
3987         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3989         * troff/input.c (init_charset_table): Make \(rq transparent by
3990         default.
3992         * macros/tmac.an: Define lq and rq strings.
3994         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3996 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3998         * troff/env.c (environment::final_break): New function.
3999         (environment::newline): Set prev_line_interrupted to 2 if
4000         exit_started.
4001         * troff/env.h: Declare environment::final_break.
4002         * troff/input.c (exit_troff): Call environment::final_break()
4003         instead of environment::do_break().
4005         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4006         doesn't already exist.
4007         * macros/man.local: New file.
4008         * macros/tmac.an: Load man.local.
4009         * macros/man.ultrix: New file.
4011 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
4013         * troff/input.c (exit_groff): Rename to...
4014         (exit_troff): New function.
4016         * troff/div.c (exit_started, done_end_macro,
4017         seen_last_page_ejector): New global variables.
4018         (began_page_in_end_macro): New static variable.
4019         (exit_flag): Deleted.
4020         (top_level_diversion::top_level_diversion): Initialize
4021         last_page_count.
4022         (top_level_diversion): More elaborate test for whether
4023         cleanup_and_exit() should be called.
4024         Set began_page_in_end_macro if the end macro isn't yet finished.
4025         * troff/div.h (top_level_diversion::last_page_count): New data
4026         member.
4027         (top_level_diversion::set_last_page): New function.
4028         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4029         * troff/env.c (do_break): Zero prev_line_interrupted.
4030         * troff/input.c (exit_flag): Delete declaration.
4031         (LAST_PAGE_EJECTOR): New magic cookie.
4032         (token::next): Handle LAST_PAGE_EJECTOR.
4033         (exit_groff): Set exit_started and done_end_macro instead of
4034         exit_flag.  Call top_level_diversion::set_last_page.  Push a
4035         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
4036         another ejection after setting seen_last_page_ejector.
4038 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
4040         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4042         * macros/tmac.e (TH): Make sure there's room for the initial
4043         header.
4045         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4046         Set FVS in points rather than units.
4048 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
4050         * troff/div.c (top_level_diversion::add_trap): Don't consider the
4051         position of empty slots.
4053 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
4055         * ps/devps/S: Fix height and depth of parenrightex.
4056         * ps/devps/symbol.diff: Regenerate.
4058 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
4060         * tmac.e (u): Do underlining as in -mgs.
4062 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
4064         * tty/tty.c (tty_printer::end_page): If overstriking is
4065         suppressed, still turn overstruck horizontal and vertical lines
4066         into +.
4068         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4069         2.1.
4071         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4073 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
4075         * Version 1.05 released.
4077 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
4079         * tty/tty.c: Instead of keeping an array of glyphs and then
4080         sorting it, keep a ordered linked list of glyphs for each line.
4082         * driver/driver.h: Include stddef.h.
4084         * tty/tty.c (compare_glyph):
4085         * refer/refer.c (rcompare):
4086         * troff/env.c (compare_ranges): Arguments of qsort comparison
4087         function should be const void *.
4089         * troff/number.c (parse_term):
4090         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4091         switch statement.
4093         * refer/label.y (consider_authors): Don't access variables
4094         constructed under a condition outside that condition: put braces
4095         round for statement containing declaration; redeclare use of same
4096         variable later.
4098         * pic/pic.y (text_expr): Delete production that allows
4099         parenthesised text_expr.
4100         (expr): Allow a conditional_expr to appear in parentheses.
4101         (conditional_expr): Rename to any_expr.
4103         * mm: Install new version 1.01 from jh.
4105         * lib/font.c (font::get_width): Cache scaled widths.
4106         (font::font): Initialize widths_cache.
4107         (font::~font): Destroy widths_cache.
4108         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4110 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
4112         * c++test.c, c++test.ref: New files.
4113         * Makefile: Check that the C++ compiler works.
4115         * ps/tmac.pspic (PSPIC): Do a break.
4117         * ps/tmac.ps: Move definition of PSPIC into...
4118         * ps/tmac.pspic: New file.
4119         (PSPIC): Draw box around picture, but make it invisible to grops.
4120         * ps/tmac.ps: Load tmac.pspic.
4121         * ps/Makefile: Install tmac.pspic.
4123 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
4125         * lib/font.c (scale_round): If n is negative,
4126         subtract .5 before truncating floating point result.
4128         * lib/fontfile.c: Include <errno.h>.
4130 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
4132         * driver/input.c (get_char): Inline. Don't update current_lineno.
4133         Change callers to up date current_lineno if necessary.
4134         Use get_char() instead of getc(current_file).
4136 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
4138         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4140 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
4142         * tty/tty.c (tmac.tty): Define \(rg as (R).
4144 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
4146         * lib/lib.h: New define a_delete.
4147         * Use a_delete instead of delete when deleting an array of objects
4148         without destructors.
4150         * lib/lib.h: Rename adelete to ad_delete.
4151         * Change uses of adelete.
4153 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
4155         * eqn/eqn.y: Include lib.h.
4157         * troff/node.c (grow_font_table): Delete old_font_table.
4159         * mm: Install new version from jh.
4161 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
4163         * tbl/table.h (format_type): Make global instead of local to class
4164         entry_format.  Prefix enumerators with FORMAT_.
4165         * tbl/table.c, tbl/main.c: Corresponding changes.
4166         * refer/token.h (token_type): Make global.  Prefix enumerators
4167         with TOKEN_.
4168         * refer/token.[ch]: Corresponding changes.
4169         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4171         * troff/div.c (node::set_vertical_size): Don't name argument.
4173 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
4175         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4176         * lib/lib.h: Define adelete accordingly.
4177         * pic/object.c (graphic_object::graphic_object):
4178         * tbl/main.c (format::~format):
4179         * tbl/table.c (table::~table):
4180         * refer/ref.c (reference::~reference, reference::merge,
4181         reference::insert_field, reference::delete_field): Use adelete.
4183         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4184         * refer/token.h:
4185         * tbl/table.h: Corresponding changes.
4187         * common.c (common_output::dashed_arc, common_output::dotted_arc):
4188         Ensure total_angle is positive.
4190 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
4192         * refer/ref.c (reference::merge, reference::insert_field,
4193         reference::delete_field): Avoid delete[0].
4195         * refer/token.c (init_special_chars): Move calls to cmupper
4196         outside calls to init_two_char_letter to work around bug in gcc
4197         2.0.
4199 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
4201         * lib/new.c (operator new): Use __builtin_new for g++.
4203         * pic/object.c (graphic_object::~graphic_object):  Don't use
4204         delete [] on 0.
4206         * pic/object.c (output::compute_scale): Initialize max_width and
4207         max_height.
4209 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
4211         * troff/input.c (write_request): Call fflush.
4213         * troff/node.h (class composite_node): Move declaration to node.c
4214         * troff/input.c (charinfo_to_node): Rename to ...
4215         (charinfo_to_node_list): Return node list rather than composite
4216         node.
4217         * troff/node.c (make_composite_node): New function.
4218         (make_node, add_char): Call make_composite_node instead of
4219         charinfo_to_node.
4220         (class composite_node): Add a tfont * member.  Delete font_size
4221         member.
4222         (composite_node::composite_node, composite_node::copy,
4223         composite_node::size): Corresponding changes.
4224         (composite_node::tprint): Provide constant spacing, emboldening
4225         and track kerning as specified in tfont.
4226         (composite_node::width): Change width calculation accordingly.
4227         * troff/env.h (environment::composite): New member.
4228         (environment::is_composite, environment::set_composite): New
4229         functions.
4230         * troff/env.c (environment::environment): Initialize composite.
4231         * troff/input.c (charinfo_to_node): Call
4232         environment::set_composite.
4233         * troff/node.c (make_composite_node, make_glyph_node): Use the
4234         plain version of the tfont if the environment is composite.
4236         * troff/node.c (font_info::get_space_width): Additional argument
4237         giving space_size.  Handle constant space correctly. Scale by
4238         space_size unless constant spaced.
4239         (env_sentence_space_width): New function.
4240         * troff/node.h: Declare it.
4241         * troff/env.h (environment::get_space_size,
4242         environment::get_sentence_space_size,
4243         environment::get_narrow_space_width,
4244         environment::get_half_narrow_space_width): Make inline.
4245         (environment::get_space_width): Make inline.  Just call
4246         env_space_width.
4247         * troff/env.c: Delete definitions for funtions made inline.
4248         (environment::space_newline, environment::space): Use
4249         env_sentence_space_width(). Don't scale by space_size.
4250         * troff/node.h: Move declarations of env*space_width() functions
4251         into env.h.
4253 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
4255         * macros/tmac.s (PS): Don't try to set negative indent.
4257 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
4259         * pic/pic.y: Fix min function.
4261 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
4263         * man/mdate.sh: Clear LANGUAGE.
4265 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
4267         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4268         * pic/lex.c: New COMMAND keyword.
4269         * pic/pic.y (print_args, print_arg): New rules.
4270         (placeless_element): Use print_args for PRINT.
4271         New COMMAND element.
4273 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
4275         * troff/input.c (terminal): Handle missing argument correctly.
4277         * pic/pic.y (text_expr): New rule.
4279         * pic/pic.y: Implement := operator.
4281 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
4283         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4284         mdoc.
4286 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
4288         * ps/devps/dingbatsrmap: Include this in the distribution.
4290         * macros/tmac.doc: Replace with new version from 2nd Networking
4291         Release. Fix loading of doc-* files.
4292         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4293         * macros/tmac.doc.old: New file.  Apply fixes that had been
4294         applied to old tmac.doc.
4295         * macros/tmac.andoc: Check that we're running under groff.
4296         * macros/Makefile: Rework.
4298 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
4300         * tbl/table.h (format_type): 
4301         * refer/token.h (token_type): If NESTED_TYPES is defined, use
4302         typedef to make these types visible at file scope.
4303         * Makefile: Add NESTED_TYPES configuration option.
4305         * troff/div.c (mark): At the top level use the value of
4306         nl_reg_contents rather than the current vertical position.
4308 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
4310         * tty/tty.c: Implement \D for horizontal or vertical lines.
4311         (tty_printer::set_char): Use vec_used+2 as serial number.
4312         Don't allow size of vector to exceed USHRT_MAX-2.
4313         Split off part into...
4314         (tty_printer::add_char): New function.
4315         (tty_printer::draw): New function.
4316         (compare_glyph): Handle equal serial numbers.
4317         (tty_printer::end_page): Handle overstruck characters from \D.
4318         (main, usage): Implement -d option.
4320 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
4322         * tbl/main.c (process_format):
4323         * eqn/text.c (split_text):
4324         * troff/input.c (token::next): Use inner block for declarations
4325         with initializers in switch statement.
4327 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
4329         * pic/common.c (common_output::dash_line): Cope with zero-length
4330         lines.
4332 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
4334         * Version 1.04 released.
4336 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
4338         * macros/tmac.an (TH): Define a macro an-init to define variables
4339         based on command line arguments.
4340         (an-header): Call it.
4342 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
4344         * Makefile (install.mm): Rename to install.dwbmm.
4346         * Makefile: Integrate mm.
4347         * mm: New directory.
4349 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4351         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4352         <sys/types.h>.
4354         * pic/troff.c (troff_output::simple_spline,
4355         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4356         shadowing parameter.
4358         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4360         * lib/ptable.h: Add explicit casts when converting from unsigned
4361         long to unsigned.
4363         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4364         * dvi/devdvi/Makefile: Install SA, SB.
4366         * refer/indxbib.c: Add declaration of mktemp.
4368         * refer/lookbib.c: Add declaration of isatty.
4370 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4372         * pic/lex.c (interpolate_macro_with_args):  While collecting
4373         arguments, keep track of whether we're in a string.
4375 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4377         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4378         down with \v, so as to avoid problems with top of page trap
4379         setting no space mode.
4381 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4383         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4385 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4387         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4388         Improve error message.
4390 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4392         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4393         printf("%03o");
4395 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4397         * groff.c (possible_command::execp): Always use _exit() after a
4398         failed exec.
4400         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4401         NO_SYS_WAIT_H   configuration options.
4402         * groff.c: Use these options.  Use POSIX-style macros to extract
4403         fields from the status returned by wait().
4405 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4407         * tbl/table.c (table::compute_separation_factor): Allow the
4408         separation factor to drop to 0.
4410 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4412         * refer/search.c: Include <errno.h>.
4414 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4416         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4418         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4419         C++. 
4421         * pic/lex.c (input_stack::bol): Move definition out of class body.
4423         * pic/main.c: On MSDOS munge argv[0].
4425         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4427         * lib/ptable.c (hash_string): Use unsigned long rather than
4428         unsigned.
4429         (next_ptable_size): Use unsigned rather than int.  Give an error
4430         message if we've hit the largest table size.
4431         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4432         table size.
4434         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4435         flags as const unisgned long rather than as enums.
4437         * pic/output.c: Deleted.
4439         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4441         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4442         Add additional argument.
4443         (line_entry::note_double_vrule_on_{left,right}): Set value of
4444         douvle_vrule_on_{right,left} flag according to argument.
4445         (simple_line_entry::simple_print,
4446         simple_line_entry::double_line_print): If adjacent to double vrule
4447         on a corner extend rather than shorten the rule by half the double
4448         vrule sep.
4450         * troff/number.c (parse_term): In checking for overflow, handle the
4451         case where the current horizontal position is negative.
4453 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4455         * pic/object.c (draw_arrow): Check for object having zero length.
4457 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4459         * eqn/main.c (do_file): Split off inline equation handling into...
4460         (inline_equation): New function.  Search for starting delimiter
4461         using...
4462         (delim_search): New function. Don't recognize a delimiter that
4463         occurs in the name of an escape sequence, number register, string
4464         etc.
4466 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4468         * eqn/delim.c (delim_box::compute_metrics): Don't call
4469         define_extensible_string if left is 0.
4470         (delim_box::output):  Don't print the left delimiter if left is 0.
4471         (delim_box::debug_print): Check for left == 0 before calling printf.
4473 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4475         * troff/Makefile (majorminor.c): Include only digits in
4476         minor_version.
4478 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4480         * refer/dirnamemax.c: new file.
4481         * refer/genlimits.c: Deleted.
4482         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4483         Don't check path length.
4484         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4485         * Makefile: Add PATHCONF_MISSING option.
4487         * refer/indxbib.c (get_cwd): New function.
4488         (main): Use get_cwd().
4489         * lib/getcwd.c: New file.
4490         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4491         GETCWD in SUBFLAGS.
4492         * lib/Makefile: Compile getcwd.o.
4494         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4495         userdict.
4497         * refer/indxbib.c (main): Check success of mktemp.
4499         * lib/tmpfile.c: New file.
4500         * lib/Makefile: Add tmpfile.c.
4501         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4502         * ps/ps.h: Delete declaration of mktemp().
4503         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4504         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4505         * driver/driver.h: No need now to include errno.h.
4507         * everywhere: Set errno to 0 before calling fopen().
4509         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4510         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4511         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4513 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4515         * troff/env.h (translate_space_to_dummy): Declare it.
4516         * troff/env.c (environment::space_newline, environment::space):
4517         If translate_space_to_dummy is set then make the width of spaces 0.
4518         * troff/input.c (translate): If the second character of a
4519         translation is a space, translate to unbreakable space.  If the
4520         first character is a space, set or clear translate_space_to_dummy
4521         according to whether the second character is \&.  Weird!
4523 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4525         * groff.c (run_commands): Don't use non-zero exit code because a
4526         command gets SIGPIPE.
4528         * groff.c, groff.sh: Use -mXps with -TXps.
4530         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4531         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4532         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4533         (ps_printer::special): New specials invis and endinvis.
4534         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4535         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4536         (ps_printer::end_page): Check that invis_count == 0.
4537         (ps_printer::invis_count): New member.
4538         (ps_printer::ps_printer): Initialize invis_count to 0.
4540         * troff/env.c (environment::hyphenate_line): Hyphenation
4541         indicator at beginning of word inhibits splitting after -, \(em
4542         etc.
4544         * pic/pic.y (element): Allow another element to follow } without
4545         any intervening separator.
4547 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4549         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4551 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4553         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4554         declaration of wait() in header files.
4555         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4557         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4559         * lib/lib.h: Declare return type of strerror as char *.
4561         * man/Makefile: Add g flag to sed substitutions.
4562         * Makefile (shgroff, bindist): Likewise.
4564 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4566         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4567         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4568         userdict.
4570 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4572         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4573         userdict.
4575 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4577         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4578         group.
4580 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4582         * troff/input.c (define_number_reg):  If currently undefined,
4583         don't define it if the argument is an invalid expression.
4585         * Makefile: Ignore return value of `if' commands without `else'
4586         parts.
4588         * Makefile: Split up CPPDEFINES into a series of separate
4589         configuration options.
4591         * troff/input.c (init_registers): Use time_t instead of long
4592         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4593         than passing pointer.
4594         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4596         * lib/Makefile (fontpath.h): Use gendef.
4598 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4600         * troff/input.c (input_iterator::shift): Delete argument name.
4601         * troff/node.c (suppress_output_file::really_begin_page,
4602         suppress_output_file::really_transparent_char, node::ascii_print,
4603         node::tprint): Delete names of unused arguments.
4605 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4607         * refer/label.y (string):  Pass $4 to command_error.
4609 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4611         * Version 1.03 released.
4613 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4615         * Makefile: Pass definition of SHELL in SUBFLAGS.
4617         * gendef: New file.
4618         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4619         ps/Makefile: Use gendef to construct header files that are
4620         constructed from the Makefile.
4622         * macros/Makefile: make all should build stripped version of tmac.e.
4624         * refer/Makefile (clean): Remove y.output.
4626 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4628         * ps/pfbtops.c (main): Add -v option which prints out a version
4629         number.
4630         * ps/Makefile (pfbtops): Link with libgroff.a.
4632 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4634         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4635         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4637         * refer/lkbib.c (main): Always terminate reference with blank
4638         line.
4639         * refer/lookbib.c (main): Likewise.
4641         * refer/linear.c (file_buffer::load): Check that the file is not a
4642         binary file.
4644         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4645         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4646         Delete second inclusion of <sys/param.h>.
4648 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4650         * troff/token.h (token::special): Deleted.
4652         * tbl/main.c (process_format): Rework so that opt->tab_char is
4653         recognized only when appropriate.
4655         * ps/Makefile (clean): Remove pfbtops.
4657 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4659         * lib/font.c (text_file::next): Don't return if we have got a
4660         blank line.
4662 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4664         * refer/refer.c (store_reference): Get hash code from old_table[i]
4665         when rehashing the table.
4667 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4669         * eqn/box.c (box::top_level): Save size and prev size using \R and
4670         restore it afterwards. Set the size to the size at the beginning
4671         of the line.
4672         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4673         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4675         * refer/Makefile (limits.h): Use ./genlimits.
4677 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4679         * refer/index.c: Delete declarations of stat() and fstat().
4681 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4683         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4685 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4687         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4689 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4691         * troff/input.c (token::get_char): Handle \e.
4693         * refer/linear.c: Delete declarations of fstat() and stat().
4695 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4697         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4698         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4700 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4702         * troff/input.c (do_define_macro): Improve error handling for end
4703         of file while defining macro.
4705 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4707         * eqn/box.h: Fix declaration of set_gsize.
4708         * eqn/box.c (set_gsize): Make argument const char *.
4709         (gsize): Declare as char *.
4710         * eqn/main.c (main): Don't convert gsize to int.
4711         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4713         * Version 1.02 released.
4715 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4717         * macros/tmac.andoc: New file.
4718         * macros/Makefile: Install tmac.andoc.
4720         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4721         operator new and delete on OP_DELETE_BROKEN not being defined.
4722         * Makefile: Mention OP_DELETE_BROKEN.
4724 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4726         * Makefile (bindist): Pass SUBFLAGS.
4728 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4730         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4732         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4733         parameter.
4735         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4737         * ps/ps.h, ps/psrm.c: Make comment_table and
4738         header_comment_table local to resource_manager::process_file.
4740         * groff.sh: With -TXps pass -printCommand option to gxditview.
4742         * groff.c (possible_command::print): Implement using
4743         append_arg_to_string.
4745         * xditview: Merge in new implementation with own ChangeLog.
4747 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4749         * groff.c (main): Implement PRINT_OPTION.
4750         (append_arg_to_string): New command.
4751         (device_table): Set PRINT_OPTION flag for Xps.
4753 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4755         * troff/groff.h: Rename to troff.h.
4757         * pic/lex.c (lookup_keyword, docmp): New functions.
4758         (get_token): Use new lookup_keyword.
4759         Don't include key.h.
4760         * pic/key.[ch], pic/pic.gperf: Deleted.
4761         * pic/Makefile: Remove gperf stuff.
4763         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4764         into output.h.
4765         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4767         * troff/Makefile, troff/node.c: Move definition of
4768         STORE_WIDTH into node.c.
4770         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4772 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4774         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4775         dvi/devdvi/texb.map: Add lq and rq.
4776         dvi/devdvi: Regenerate fonts.
4777         * ps/devps/textmap: Add lq and rq.
4778         * ps/devps: Regenerate fonts.
4779         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4780         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4782         * pic/object.c (position_rectangle): When checking radius
4783         cope with possiblity that width or height is negative.
4784         (box_object::box_object): Have separate xrad and yrad with
4785         signs matching signs of dim components.
4786         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4787         (box_object::print): With rounded boxes use absolute values
4788         for dim and rad arguments.
4790         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4791         in fontpath.h.
4793         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4795         * various files: Add explicit destructors to keep Saber CC +d
4796         happy.
4798 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4800         * eqn/box.c (box::top_level): Restore fonts correctly after
4801         font changes in line containing inline equation.  Also
4802         restore previous font as well as current font.
4803         * eqn/pbox.h: Define necessary string and register names.
4805         * troff/input.c (token::next): Case 'R' calls do_register.
4806         (do_register): New function.
4808 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4810         * groff.c, groff.sh: Support Xps device.  Allow each device
4811         to have a pseudo_name and a real_name.
4813         * groff.c (run_commands): Don't print `Broken pipe' messages.
4815         * ps/pfbtops.c: New file.
4816         * ps/Makefile: Add pfbtops.
4818         * troff/number.c (parse_term): Improved error message.
4820 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4822         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4824         * Makefile: Integrate refer.
4825         * refer: New directory.
4826         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4827         man/lkbib.man: New files.
4828         * man/Makefile: Support refer man pages.
4830         * lib/lib.h: Declare is_prime.
4831         * lib/prime.c: New file.
4833         * troff/input.c (macro_source): New function.
4834         (init_input_requests): Bind "mso" to macro_source.
4836         * troff/env.c (environment::possibly_break_line): Maintain
4837         pointer to pointer to node to be split in ndp so as to avoid
4838         using address of freed node.
4840         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4841         pointer to first node to be hyphenated in startp so as to
4842         avoid using address of freed node.
4844         * troff/env.c (class trie, class hyphen_trie): Make the
4845         elements of the trie be of type char not unsigned char.
4846         Declare arguments to be const char* instead of unsigned char *.
4847         
4848         * troff/env.c (hyphenate): Initialize hbuf[0].
4850         * troff/input.c (set_string): Declare p to be char * and cast
4851         *p to unsigned char when necessary.
4853         * troff/input.c (do_define_macro): Declare s to be const
4854         char*. Cast element to unisgned char when necessary, Declare
4855         d to be an int.  Handle EOF better.
4857         * troff/Makefile, troff/input.c: Different scheme for passing
4858         definitions of MACROPATH, HYPHENFILE and DEVICE.
4860 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4862         * tty/devascii/R.proto: Delete entry for em.
4863         * tty/devlatin1/R.proto: Likewise.
4865 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4867         * troff/input.c (translate): Stop when we get a space. Treat eof
4868         like newline.
4870         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4872 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4874         * tbl/main.c (process_format): A font name following a `f'
4875         modifier that starts with a digit can be only one character long.
4876         Also deal with EOF on the second character of the font name.
4878 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4880         * troff/input.c (token::next): Turn \~ into an
4881         unbreakable_space_node.
4882         * troff/node.c (unbreakable_space_node): New class.
4883         * troff/node.h: Declare it.
4885 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4887         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4888         it's >= 0, before outputting it as a single byte.
4890 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4892         * lib/font.c: Make font_char_metric::code an int.
4893         (font::get_code): Change return type to int.
4894         (font::load): Allow code to be arbitrary integer.
4895         * lib/font.h (font::get_code): Change return type to int.
4896         (font::number_to_index): Change argument type to int.
4897         * troff/input.c (token::next):  In case 'N', allow any value.
4898         Store value in token::val.
4899         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4900         (token::get_char, token::add_to_node_list, token::process): Get
4901         number from val.
4902         (charinfo::set_number): Change argument to int.
4903         (charinfo::get_number):  Require that NUMBERED flag be set.
4904         (get_charinfo_by_number): Store numbered characters not between 0
4905         and 255 in a dictionary.
4906         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4907         to int.
4908         (charinfo::number): Change type to int.
4909         (charinfo::set_number): Change type of set_number to int.
4910         * troff/node.c (troff_output_file::put_char_width,
4911         troff_output_file::put_char): Test whether character is numbered
4912         using charinfo::numbered().
4913         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4914         values of num.
4915         * lib/nametoindex.c: New implementation to cope with arbitrary
4916         number characters.
4918         * troff/input.c (token::operator==): Test val for
4919         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4920         TOKEN_SIZE.
4922         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4923         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4925 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4927         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4928         variable.
4930         * all Makefiles: rm targets of cp and >.
4932         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4933         it.
4935         * eqn/lex.c (def_table): Add dollar.
4937 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4939         * troff/input.c (do_width): Push back newline before closing delim
4940         like do_bracket.
4942 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4944         * groff.c (possible_command::prepend_arg): New function.
4945         (main): Prepend device -m option.
4946         * groff.sh: Put device -m options before command-line options.
4948 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4950         * macros/tmac.an (IP): Quote argument to TP.
4952         * ps/ps.c (main): New option -b, which sets...
4953         (broken_flags): New variable.
4954         (ps_printer::~ps_printer): Incorporate the setup section in the
4955         prolog if (broken_flags & NO_SETUP_SECTION).
4956         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4957         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4958         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4959         ps_printer::print_needed_font_comment,
4960         ps_printer::print_supplied_font_comment,
4961         ps_printer::print_include_font_comments,
4962         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4963         ps_printer::read_download_file, read_document_fonts, add_font,
4964         skip_line, parse_fonts_arg, document_font::document_font,
4965         document_font::~document_font, document_font::download,
4966         ps_output::include_file):  Deleted.
4967         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4968         rather than %!PS-Adobe-2.0.  Make calls to
4969         resource_manager::need_font for each font that we used. Replace
4970         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4971         print_supplied_font_comment, print_needed_font_comment by call to
4972         resource_manager::print_header_comments. Output %%Orientation
4973         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4974         Don't output the prolog directly.  Instead call
4975         resource_manager::output_prolog.  Only define #copies when ncopies
4976         > 1.  Delete calls to print_include_font_comments  and
4977         download_fonts.  Add call to resource_manager::document_setup.
4978         (ps_printer::do_file): Call resource_manager::import_file instead
4979         of including it ourselves.
4980         (ps_printer::do_import): Likewise.  Also don't call
4981         merge_import_fonts. Push userdict on the dictionary stack before
4982         and pop it afterwards.
4983         Move declaration of ps_output into ps.h.
4984         * ps/psrm.c: New file implementing resource_manager class.
4985         * ps/ps.h: New file declaring ps_output and resource_manager
4986         classes.
4987         * ps/devps/zapfdr.ps:
4988         * ps/devps/symbolsl.ps:
4989         * ps/devps/prologue:  Use 3.0 conventions.
4990         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4991         Add default definition of BROKEN_SPOOLER_FLAGS.
4992         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4993         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4995 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4997         * etc/grog.pl: New file.
4998         * Makefile (GROG): New variable.
4999         Add GROG to SUBFLAGS.
5000         * etc/Makefile (GROG): New variable.
5001         (install.nobin): Install $(GROG) rather than grog.sh.
5003 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
5005         * eqn/special.c (special_box::compute_metrics): Make the input and
5006         output strings the same.  Get the new height and depth from the
5007         predefined height and depth registers.  Also make subscript kern
5008         and skew available.
5009         (special_box::compute_subscript_kern, special_box::compute_skew):
5010         New functions.
5012         * eqn/box.c (pointer_box::compute_skew,
5013         simple_box::compute_metrics, box::top_level)
5014         * eqn/text.c (prime_box::compute_metrics,
5015         prime_box::comput_subscript_kern)
5016         * eqn/limit.c (limit_box::compute_metrics):
5017         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5018         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5019         negative numbers in `nr' requests with a leading 0.
5021 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
5023         * eqn/special.c: New file.
5024         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
5025         Add new rule for simple.
5026         * eqn/lex.c (token_table): Add SPECIAL.
5027         * eqn/box.h: Declare make_special_box.
5028         * eqn/Makefile: Add special.[co].
5030 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
5032         * ps/devps/prologue: Possibly set packing to true while defining.
5033         Create grops dictionary here.  Initialize local variables before
5034         defining procedures.
5035         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5036         the dictionary stack. Set strokeadjust and overprint to false if
5037         the relevant operators are defined.
5038         (PEND): New procedure.
5039         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5040         prologue.  Do everything else in the setup section.
5041         (ps_printer::do_import): Just call PBEGIN and PEND around the
5042         picture. Also push userdict before, and pop it afterwards.
5044 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
5046         * troff/node.c (bracket_node::tprint): Brackets were being printed
5047         1m too low.
5049         * macros/tmac.an (SH, SS): Set fill mode.
5051 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
5053         * troff/div.c (top_level_diversion::begin_page): Set
5054         high_water_mark to 0.
5056 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
5058         * man/mdate.sh: New file.
5059         * man/mdate.c: Deleted.
5060         * man/Makefile: Use mdate.sh instead of mdate.
5061         (mdate): Deleted.
5063         * eqn/lex.c (do_gsize): Supply missing argument to error message.
5065 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
5067         * man/mdate.c: New file.
5068         * man/*.man: Replace modification date by @MDATE@.
5069         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5070         (mdate): New target.
5072         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5073         Remove illegal input characters.
5075 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
5077         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5079 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
5081         * troff/div.c (begin_page): Change behaviour when
5082         !first_page_begun and !break_flag.
5084         * troff/input.c (do_name_test): Return 0 if argument is empty.
5086         * troff/input.c (read_long_escape_name): Require closing ] to be
5087         at same input level as opening [.
5089         * troff/input.c (read_increment_and_escape_name): New function.
5090         (get_copy, process_input_stack): Use this for \n.
5092 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
5094         * troff/div.c (top_level_diversion::begin_page): Ignore the
5095         current value of page_number if !first_page_begun.
5097         * groff.c (main): Fix declaration of buf.
5099         * troff/input.c (do_name_test): New function.
5100         (token::next): Implement \A.
5101         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5102         (token::description, token::add_to_node_list, token::process):
5103         Handle TOKEN_ESCAPE.
5104         * troff/token.h: New token TOKEN_ESCAPE.
5106 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
5108         * pic/main.c (do_picture): Allow space before and after filename
5109         following `<'.  Check that the filename is not empty.
5111 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
5113         * Version 1.01 released. 
5115         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5117         * dvi/tmac.dvi: ftr HR to H.
5119         * macros/tmac.e: Round up computation of $r.
5121         * xditview/tmac.X:  Don't give up completely in compatibility mode.
5122         Use \n(.s instead of \n[.s].
5124         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5125         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5126         Add u to factors inside \s[...]. Rename frac to dvi-frac.
5127         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5128         short names in the char definitions.
5130         * ps/tmac.ps: Don't give up completely in compatibility mode.
5131         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5132         quote in front of \n(.s. Add u to factors inside \s[...].
5134 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
5136         * tty/tmac.tty: Call the nroff request.
5138         * macros/tmac.e ((x, )x):  Better definitions that work properly
5139         in a diversion.
5140         (@0, @1): Helper macros for (x.
5142         * macros/tmac.e ($s, hl): Use \l rather than \D.
5144         * tty/tmac.tty: Make it work better in compatibility mode.
5145         (pchar): Rename to tty-char.
5147         * macros/tmac.e (@E): New macro.
5148         (r, i, b, rb, bi): Use @E.
5150         * macros/tmac.e (@F): Don't use (;...) syntax.
5152         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
5153         it was modified for groff.
5155         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5157         * macros/tmac.e (<., .>): Removed.
5158         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5160         * macros/tmac.e: Remove check that groff is being used.
5162         * macros/tmac.e (@C): Change families only if using groff; turn
5163         compatibility mode off while changing familes. Save compatibility
5164         mode before changing families and restore it afterwards.
5166         * macros/tmac.e (@h): Remove test for offset + line length.
5168         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
5169         (lo, th, ac): Define to call @S instead of using als.
5171         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5172         the ratio of the vertical spacing to the point size in units
5173         expressed as a percentage.  Use these instead of $10r and $10R,
5174         Delete $10r and $10R.
5176         * lib/font.c (font::load): In default computation of space_width,
5177         divide by sizescale.  Use scale_round.
5179         * macros/tmac.an (TP): Don't call `nf'.
5180         (an-do-tag): Don't call `fi'.
5182 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
5184         * troff/input.c (process_input_stack): Handle the case where
5185         spaces at the beginning of an input line are followed by a
5186         newline.
5188 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
5190         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5191         * groff.sh: Use pic -x with the dvi device.
5193         * dvi/devdvi/FontMakefile (H): Don't use -s.
5195         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5196         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5197         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5198         in FONTS.
5200 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
5202         * ps/psfig.diff: New file.
5203         * ps/tmac.psfig: New file.
5205 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
5207         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5208         (]-): Don't call ref*do-tl.
5210         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5212         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5213         (fn@do-FS): Rename to fn*do-FS.
5215         * troff/input.c (transparent_translate): New function.
5216         (process_input_stack): Apply transparent_translate before calling
5217         diversion::transparent_output(unsigned char).
5219 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
5221         * troff/input.c (do_define_macro): Define the macro before calling
5222         skip_line.
5224         * xditview/Makefile: Add DEVICES variable.  Change install target
5225         to use this.
5227 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
5229         * groff.c (run_commands): Handle the possibility that there are
5230         child processes other than those forked by us.
5232 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
5234         * lib/string.c (string::append): New function.
5235         * lib/stringclass.h: Declare it.
5237 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
5239         * eqn/main.c (main): New option -N which sets
5240         no_newline_in_delim_flag. 
5241         (do_file): If no_newline_in_delim_flag is set don't allow newlines
5242         in delimiters.
5243         * groff.c (main): Pass -N on to eqn.
5244         (help, synopsis): Mention -N.
5245         * groff.sh: Implement -N.
5247 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
5249         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5250         (]-): Call ref*do-tl if ref*need-tl is non-zero.
5251         (XP): Allow as initializer.
5253 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
5255         * troff/env.c (environment::wrap_up_field): If field_spaces are
5256         non-zero and we have a current_tab, subtract padding from
5257         tab_distance.  If this makes tab_distance <= 0, use the next tab
5258         stop instead.  If there isn't any next tab or it's a left tab,
5259         wrap up the current tab.
5260         (environment::start_field): Initialize tab_precedes_field.
5261         (environment::wrap_up_tab): If there's a current field, update
5262         pre_field_width, field_distance and tab_precedes_field.
5263         * troff/env.h (environment::tab_precedes_field): New member.
5265 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
5267         * ps/ps.c (ps_printer::do_file): New function.
5268         (ps_printer::special): Bind to `file' special.
5269         (ps_printer::do_exec): Set ndefined_styles to 0.
5271 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
5273         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5274         Avoid stripping first character from the start of unrecognized
5275         escapes.  Use lex_error instead of error to report errors.
5276         * eqn/lex.c (get_token): Rework handling of escapes.
5277         (lex_error): Move declaration into...
5278         * eqn/eqn.h.
5280         * xditview/xditview.c (main): Make -page option work.
5282         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5284 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
5286         * macros/tmac.s (B2): Correct size of box.
5288 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
5290         * macros/tmac.s (B2): Postpone drawing the box until in the
5291         top-level diversion.
5293         * tty/tmac.tty: Add font translations for C, CR, CW.
5295         * groff.c (synopsis, help): Document -i.
5296         * groff.sh: Implement -i.
5298         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5299         Simplify the construction of SN.
5301         * troff/number.c (parse_term): Give `|' a higher precedence.
5302         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5303         accordingly.
5305         * macros/tmac.s (B2): Use par@finish instead of par@reset.
5307 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
5309         * lib/string.c (string::move): New function.
5310         * lib/stringclass.h: Declare it.
5312 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
5314         * troff/env.c (distribute_space): Add optional argument
5315         `force_forward'.
5316         (environment::wrap_up_field): Call distribute_space with
5317         `force_forward' argument of 1.
5319 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
5321         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5322         Inline it.  Move reallocation into...
5323         (string::grow1): New function.
5324         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5325         dependencies to include library header files.
5326         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5328 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
5330         * macros/tmac.s (@NH): Use the same number registers than -ms does
5331         for the heading level counters.  Use the same string that -ms does
5332         for the number for this heading.
5334 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
5336         * lib/new.c (operator new): Cast result of malloc to char *.
5338         * troff/input.c (spring_trap, lookup_request): Add assert that nm
5339         is not null.
5341 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
5343         * groff.c (main): Support -i.
5345 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
5347         * pic/pic.h: Include <osfcn.h>.
5349         * ps/ps.c: Add declaration of mktemp.
5351         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5352         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5353         argument as union wait *.
5354         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5355         argument to union wait *.
5357 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5359         * tty/tmac.tty: Add definition of \(co.
5361         * pic/object.c (make_arc): Only increase radius when radius
5362         strictly less than d.
5363         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5364         more than once.
5366         * troff/env.c (environment::environment(symbol),
5367         environment::environment(const environment *)):  Initialize
5368         input_trap_count.
5370 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5372         * tbl/main.c (main): Add exit(0).
5374         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5376         * pic/main.c (main):
5377         * eqn/main.c (main):
5378         * tbl/main.c (main):
5379         * etc/soelim.c (main):
5380         * driver/printer.c (printer::~printer):
5381         * troff/node.c (real_output_file::~real_output_file,
5382         real_output_file::flush):  Check for errors on stdout.
5384         * most files: Add 1991 to copyright notice.
5386         * macros/tmac.s: Don't test \n(.x and \n(.y.
5388         * troff/input.c (token::next): Rename `escape_char' label to
5389         `handle_escape_char' and `normal_char' label to
5390         `handle_normal_char'.
5392 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5394         * groff.c (main, synopsis, help): Support -a option.
5395         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5396         to trflags while parsing options.
5398 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5400         * troff/number.c (parse_term): With `m', `M' and `n' scale
5401         indicators, convert scale factor to hunits before scaling.
5403 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5405         * lib/font.c (scale_round): Better test for overflow when n is
5406         negative.
5408 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5410         * tbl/main.c (process_format): Add second argument of type
5411         options*. Change callers.  Allow opt->tab_char as well as '\t'
5412         between format items.
5414 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5416         * macros/tmac.an (PD): With no arguments, make sure register PD is
5417         at least \n[.V].
5418         (TH): Call PD with no argument, instead of setting register PD
5419         directly.
5421 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5423         * Version 1.00 released.
5425 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5427         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5429         * dvi/devdvi/DESC: Mount CW instead of CR.
5431         * dvi/tmac.dvi: Add definition of \(tm.
5433         * dvi/devdvi/texsy.map: Add lh, and rh.
5434         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5435         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5437         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5438         * dvi/devdvi/Makefile: Install H.
5439         * dvi/devdvi/H: New file.
5441 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5443         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5444         be 0.
5446 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5448         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5450         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5452         * macros/tmac.s (@EN): Handle the case where the equation is empty
5453         but the label is not.
5455 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5457         * troff/groff.h: New warning category WARN_SPACE.
5458         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5459         WARN_SPACE to warning_table.
5460         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5461         is longer than two characters and is not defined, but the first
5462         two characters do make a defined name.
5464         * PROBLEMS: New file.
5466         * CHANGES: New file.
5467         * README-0.6, README-1.00: Deleted.
5469         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5470         * xditview/devX75/Makefile: Make devX75-12.
5471         * xditview/devX100/Makefile: Make devX100-12.
5473         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5474         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5476 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5478         * README-0.7: Rename to README-1.00.
5480         * macros/tmac.pic: New file.
5481         * macros/Makefile (install.nobin): Install tmac.pic.
5483 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5485         * troff/env.c (hyphen_word): Correct the test for whether the
5486         token is a hyphen.  Reset npos to 0.
5488         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5490 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5492         * macros/tmac.s (ds*common-end): Call par*reset.
5493         (PE): Likewise.
5494         (par@reset-indent): Deleted.
5496         * macros/tmac.s (@IP): Divert the label.
5498 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5500         * xditview/draw.c (setGC): Use a line width of .1m rather than
5501         .04m by default; round rather than truncate value.
5503         * tbl/table.c (class empty_entry): New class.
5504         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5505         (table::add_entry): Represent empty entries by objects of type
5506         empty_entry.
5507         (table_entry::line_type): Return -1.
5508         (table::determine_row_type): Ignore entries with line_type 0.
5509         Treat type -1 as non-lines.
5511 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5513         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5514         macros/tmac.s: Rename \(-d to \(Sd.
5516 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5518         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5519         * xditview/libXdvi/DviChar.c: Likewise.
5520         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5522 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5524         * troff/div.c (top_level_diversion::begin_page): Call
5525         init_output() if the_output is 0.
5527 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5529         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5530         ESCAPE_c.
5531         (get_copy): Turn \E into ESCAPE_E.
5532         (token::process, asciify): Handle ESCAPE_E.
5534         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5535         (RD): New macro.
5536         (DS): Implement `.DS R'.
5538 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5540         * macros/tmac.s (FS): New macro.
5542         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5544         * macros/tmac.s (cov*tl-init): Remove after first execution
5545         instead of aliasing to @nop.  Call top of page macro explicitly
5546         instead of setting trap; call @init first.  Set pg@top as top of
5547         page macro.
5548         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5549         cov*auto-init as top of page trap. 
5550         (TL, LP): Do a break instead of calling cov*tl-init.
5551         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5552         @FE; in this case also give a warning and always start another
5553         page. No need to set pg@top here.
5554         (cov*tl-init): Rename to cov*first-page-init.
5556         * macros/tmac.s (RP): Do `.pn 0'.
5557         (cov*tl-init): With RP format don't do `.pn 0'.
5559         * macros/tmac.s (pg@cs-top): Set no space mode.
5561         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5562         (cov*ab-init): Alias TL, AU and AI to these.
5564 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5566         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5567         (@EN): Do nothing unless \n[dl] is > 0.
5569 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5571         * pic/object.c (ellipse_object::radius): New function.
5573         * VERSION: Change version to 0.7.
5575         * tbl/table.c (block_entry::do_divert): Declare return type as
5576         void.
5577         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5579 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5581         * troff/column.c: New file.
5582         * troff/Makefile: Corresponding changes.
5584         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5585         Friend of vunits.
5587         * troff/div.c (top_level_diversion::space): If the space causes
5588         the first-page transition and springs a trap, truncate the space
5589         to 0.
5591 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5593         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5594         the document.
5596         * pic/troff.c (troff_output::line_thickness,
5597         troff_output::set_fill): Do a horizontal motion to compensate for
5598         the width of the \D escape sequence.
5600 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5602         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5603         (not X75).
5605         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5606         to printf.
5608         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5609         Supply empty definition.
5610         (text_entry::simple_print, simple_text_entry::simple_print):
5611         Delete declarations.
5612         (table::add_entry): Represent empty entries by objects of type
5613         `simple_entry'.
5615 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5617         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5619         * tbl/table.c (left_text_entry::add_tab): New function.
5621         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5622         initialize like LP.
5624 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5626         * troff/env.c (environment::start_field): Give an error message if
5627         there is no next tab.
5629 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5631         * troff/env.c (hyphenate): Skip initial elements with zero
5632         hyphenation code.
5634         * macros/tmac.s (par@init): Keep VS in points rather than units.
5636 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5638         * pic/main.c (main): Implement `-c' option.
5639         * pic/output.h: Declare make_tpic_output().
5640         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5641         protected.
5642         (tpic_output): New class.
5643         (tpic_output::tpic_output, tpic_output::set_pen_size,
5644         tpic_output::command, make_tpic_output): New functions.
5646 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5648         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5649         if they're not already defined.
5650         * tbl/table.c (init_output): Don't test \n(.g.
5652         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5653         `d', `r' and `c' conditions even in compatibility mode.
5655 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5657         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5658         box.
5660 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5662         * troff/env.h (environment::prev_line_interrupted): New member.
5663         (environment::get_prev_line_interrupted): New function.
5664         * troff/env.c (environment::newline): Set prev_line_interrupted.
5665         (environment::environment(const environment *),
5666         environment::environment(symbol)): Initialize
5667         prev_line_interrupted.
5668         * troff/input.c (process_input_stack): Don't give special
5669         treatment to space and newline at the beginning of the line if the
5670         previous line was interrupted.
5672 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5674         * eqn/eqn.y: Disallow PRIME by itself.
5675         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5676         PRIME.
5677         (def_table): Remove definition of '.  Define prime to be `.
5679         * eqn/eqn.y: Split off part of rule `script' into a new rule
5680         `nonsup'.
5682 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5684         * macros/tmac.s ({, }): New string aliases.
5686 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5688         * README-0.7: New file.
5690 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5692         * macros/tmac.s: New file.
5693         * man/groff_ms.man: New file.
5694         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5695         * Makefile.bd: Similarily.
5696         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5697         definition of TMAC_S.
5698         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5699         * macros/TODO: New file.
5701 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5703         * troff/env.c (right_justify): New function.
5704         (init_env_requests): Bind this to request "rj".
5705         (center_lines): Set right_justify_lines to 0. If we get a bad
5706         integer, center 1 line.
5707         (environment::environment(symbol), environment::environment(const
5708         environment *)): Initialize right_justify_lines.
5709         (environment::get_right_justify_lines): New function.
5710         (init_env_requests): Bind this to number_register ".rj".
5712         * troff/env.c (environment::choose_breakpoint): Implement
5713         hyphenation_margin and hyphenation_space.
5714         (environment::get_hyphenation_space,
5715         environment::get_hyphenation_margin): New functions.
5716         (init_env_requests): Bind these to .hys and .hym.
5717         (hyphenation_space_request, hyphenation_margin_request): New
5718         functions
5719         (init_env_requests): Bind these to hys and hym.
5720         (environment::environment(symbol), environment::environment(const
5721         environment *)): Initialize hyphenation_margin and
5722         hyphenation_space.
5723         * troff/env.h: Corresponding changes to class environment.
5725 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5727         * troff/div.c (blank_line): Always do a break.
5729         * eqn/box.c (do_text): Turn off escapes while appending text to
5730         string.
5732 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5734         * troff/input.c (while_break_request, while_continue_request): New
5735         functions.
5736         (init_input_requests): Bind these to "break" and "continue".
5737         (while_depth, while_break_flag): New variables.
5738         (while_request): Update while_depth.  Break out of loop if
5739         while_break_flag is set.
5741 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5743         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5744         rather than 0.
5746 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5748         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5750         * stringify: New file.
5751         * Makefile (groff.o): Use stringify.
5753         * xditview/tmac.X: Remove definition of \(rn.
5754         * xditview/libXdvi/DviChar.c: Remove radicalex from
5755         Adobe_symbol_map.
5757 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5759         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5760         (alphabetic_block_entry::alphabetic_block_entry,
5761         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5762         New functions.
5763         (block_entry::divert): Split off body into ...
5764         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5765         from the line length; also update the span width to dl+2n, and the
5766         alphabetic span width to dl.
5768         * driver/input.c (do_file):  While reading argument to D command,
5769         when expanding buffer, multiply szp by sizeof(int) rather than 2
5770         in the argument to memcpy.
5772         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5773         width of alphabetic columns.
5775 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5777         * troff/node.c (lookup_family): Supply second argument to lookup.
5779         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5780         search, return immediately if v is 0.
5782         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5783         (troff_output::start_picture): Set this reg.
5784         (troff_output::end_picture): Remove this reg
5785         * eqn/box.c (box::extra_space): Don't produce `\x's if
5786         EQN_NO_EXTRA_SPACE_REG is defined.
5788         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5789         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5790         character.
5792 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5794         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5795         requests.
5797         * troff/div.c (top_level_diversion::top_level_diversion):
5798         Initialize page_number to 0.
5800 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5802         * groff/troff (environment::environment(const environment *)):
5803         Initialize name to e->name, rather than "anonymous".
5805 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5807         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5808         requested_page.  Split middle part into ...
5809         (FindPage): New function.
5810         (SetValues): If we don't yet know the last page, and the requested
5811         page is greater than the current page, call FindPage.
5812         Update the font_map_string before doing this.
5814         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5815         Translate \(lh and \(rh into left and right double arrows.
5817         * troff/node.c (class hyphen_inhibitor_node): New class.
5818         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5819         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5820         hyphen_inhibitor_node::type,
5821         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5822         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5823         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5824         word.
5826 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5828         * troff/node.h (dummy_node::get_hyphenation_type,
5829         transparent_dummy_node::get_hyphenation_type):  Declare them.
5830         * troff/node.c: (dummy_node::get_hyphenation_type,
5831         transparent_dummy_node::get_hyphenation_type): New functions.
5833 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5835         * xditview/libXdvi/draw.c: If M_PI not defined after including
5836         math.h, then define it.
5838         * xditview/Makefile: Add definition of AR. Pass it to the submake
5839         in libXdvi.
5840         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5842 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5844         * troff/dictionary.h (object_dictionary::alias): Declare return
5845         value as int.
5846         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5847         if the old name was defined.
5848         * troff/input.c (alias_macro): Give a warning if the old name was
5849         not defined.
5850         * troff/reg.c (alias_reg): Likewise.
5852 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5854         * troff/input.c (token::next): Delete implementation of \R.
5856         * macros/Makefile: Strip comments from tmac.e while installing it.
5858         * troff/input.c: New variable `nroff_mode'.
5859         (troff_request, nroff_request): New functions.
5860         (init_input_requests): Bind `troff' and `nroff' to troff_request
5861         and nroff_request.
5862         (do_if_request): Compute results of t and n conditions from
5863         nroff_mode.
5865         * text/text.c (split_text): Fix typo in >=.
5867         * eqn/lex.c: Add definition of `==' to def_table.
5869 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5871         * pic/tex.c (tex_output::start_picture): Change the definitions of
5872         \graph and \graphtemp so that they work properly with Plain TeX.
5874         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5875         argument to `ar' is not less than the first.
5877         * pic/pic.y: Allow a comma between elements of the variable list
5878         in the argument to `reset'.
5880         * pic/object.c (arc_object::arc_object): Fix computation of
5881         radius.
5883         * eqn/main.c (main): Add exit(0).
5885 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5887         * troff/div.c (begin_page): Test no_space_mode after doing the
5888         break, but still push the page ejector cookie before doing the
5889         break.  Also set the next page number after doing the break.
5890         
5891         * xditview/xditview.c (NewFile): Don't set the title and icon name
5892         if this is the first file and its name is `-'.
5893         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5894         the X75 and X100 devices.
5895         (main): If a device has the XT_OPTION flag set and there's exactly
5896         one file argument, pass the driver -xrm and -title options to set
5897         the icon name and window title to the name of the file.
5899         * troff/env.c (environment_switch): If there was an argument but
5900         it wasn't a valid number or name, then pop an environment but
5901         don't give an error message on underflow.
5903         * troff/number.c (start_number): Correct spelling in error message.
5905         * troff/input.c (token::delimiter): Don't print an error message
5906         if err is false.
5908         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5909         ParseDrawFunction if dw->display_enable is true.
5911 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5913         * pic/pic.y: Parse text positioning like normal attributes, so as
5914         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5915         positioning attribute.
5917 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5919         * tbl/main.c (process_data): When in state START while reading a
5920         text block, don't change to state MIDDLE if c is a newline.
5922 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5924         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5925         so as to avoid shadowing parameter.
5927 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5929         * tbl/table.c (trim_space): Deleted.
5930         (table::add_entry): Don't call trim_space.
5932 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5934         * VERSION: Change version to 0.6.
5936         * troff/number.c (parse_expr): Make == work.
5938 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5940         * man/grog.man: New file.
5941         * man/Makefile: Add grog.n to MAN1PAGES.
5942         * etc/grog.sh: New file.
5943         * etc/Makefile: Install grog.sh as grog.
5945 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5947         * troff/input.c (token::next): Implement \E.
5949 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5951         * xditview/tmac.X: Change font translations to match tmac.ps.
5953         * troff/input.c (non_empty_name_warning): Don't give a warning if
5954         `\{' terminates the name.
5956 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5958         * ps/devps/symbol.diff: New file.
5959         * ps/devps/FontMakefile: Mention symbol.diff.
5961 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5963         * troff/node.c (font_position): Use get_long_name to read the
5964         external_name.
5966         * troff/env.c (environment_switch): If we get a number that's < 0
5967         or >= NENVIRONMENTS, treat it like a name.
5968         Change NENVIRONMENTS to 10.
5970         * troff/groff.h: Remove definition of FONTS_MAX.
5971         * troff/node.h (class font_family): Make map a pointer instead of
5972         an array. Add a map_size member. Make it a class. Make nm const
5973         and public. Make invalidate_fontno a friend.
5974         * troff/node.c: Define font_table_size. Make font_info a pointer
5975         rather than an array.
5976         (class troff_output_file): Allocate font_position dynamically. Add
5977         nfont_positions member.
5978         (troff_output_file::set_font): Grow font_position if necessary.
5979         (troff_output_file::~troff_output_file): Delete font_position.
5980         (troff_output_file::troff_output_file): Allocate font_position.
5981         (grow_font_table): New function.
5982         (troff_output_file::really_begin_page,
5983         troff_output_file:really_copy_page): Use nfont_positions rather
5984         than FONTS_MAX.
5985         (mount_font_no_translate, mount_style): Call grow_font_table if
5986         necessary.
5987         (font_family::font_family): Allocate map.
5988         (font_family::make_definite): Grow map if necessary. Use
5989         font_table_size instead of FONTS_MAX.
5990         (font_family::~font_family): New function.
5991         (invalidate_fontno): Use font_family::map_size.
5992         (get_fontno, env_space_width, env_half_narrow_space_width,
5993         env_narrow_space_width, symbol_fotno, is_good_fontno,
5994         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5995         FONTS_MAX.
5996         (next_available_font_position): Never return 0.
5998 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
6000         * ps/tmac.ps: Add font translations for compatibility with dpost.
6002 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
6004         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6005         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6006         Move definitions baseline_sep, shift_down, column_sep,
6007         matrix_side_sep into...
6008         * eqn/box.c: Add them to param_table.
6009         * eqn/pbox.h: Add declarations to pbox.h.
6011         * troff/input.c (set_string): Cast value to unsigned char *.
6013         * troff/token.h (process_input_stack): Declare it static before
6014         declaring it a friend.
6016 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
6018         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6019         and bottom.
6020         * dvi/devdvi/EX: Regenerate.
6022         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6023         transparent.
6025 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
6027         * eqn/lex.c: In defaults_table, make definition of `dot' call
6028         `dot_def'.  Don't explicitly make it roman.  Similarily for other
6029         accents.
6031         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6032         argument.
6033         (for_input::get, for_input::peek): Use this.
6034         (do_for): Add by_is_multiplicative argument.
6035         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6036         Change semantic value of optional_by to be a double plus a flag
6037         saying whethet the by clause is multiplicative.
6039         * eqn/lex.c (get_delimited_text): Remember location of start of
6040         definition.  Improve error handling when EOF is encountered.
6042         * lib/font.h: Rename handle_x_command to
6043         handle_unknown_font_command.
6044         * lib/font.c (font::load): Call handle_unknown_font_command for
6045         any unknown command in the font description file.  Don't call
6046         handle_x_command. Include the name of the command in the argv.
6047         Improve message for unknown command after kernpairs or charset
6048         command.
6049         * ps/ps.c (ps_font::handle_x_command): Rename to
6050         handle_unknown_font_command.  Remove message about `x download'
6051         command.  Give error message for wrong number of arguments.
6052         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6053         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6054         handle_unknown_font_command. Give an error message for wrong
6055         number of arguments.  Rename design_size to designsize.
6056         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6057         checksum', `designsize' instead of `design_size'.
6059 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
6061         * eqn/*.[chy]: Change underaccent to uaccent.
6063         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
6064         give it the same precedence as ACCENT.
6065         * eqn/other.c (make_underaccent_box): New function.
6066         * eqn/box.h: Declare it.
6067         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6068         def_table.
6070 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
6072         * pic/pic.y (reset_all): New function. Called in rule for RESET.
6073         (parse_init): Call reset_all.
6074         (define_variable): When defining scale reset only those
6075         pre-defined variables that are scaled.
6076         (defaults_table): Add `scale' as non-scaled value.
6078         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6079         together with the text; allow any number of positioning words;
6080         allow center as a positioning word.
6082         * pic/object.c (output::compute_scale): Get picture maximum height
6083         and width from variables called maxpswid and maxpsht.
6084         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6086 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
6088         * pic/object.c (object_spec::make_text): Multiply textht by number
6089         of text items.
6091         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6092         occur.
6093         (do_sprintf): New function.
6094         (pic.gperf): Add sprintf token.
6095         (text, sprintf): New rules.
6097         * pic/pic.y: `rand()' with no arguments returns a random number
6098         in the range [0,1).
6100         * pic/pic.y: Allow a bare expression to be an attribute: change
6101         precedences to support this.  Change optional_ordinal rule to
6102         optional_ordinal_last to avoid reduce/reduce conflict.
6103         * pic/object.c (object_spec::object_spec): Initialize direction.
6105         * pic/pic.y: Implement ^ operator meaning exponentiation.
6107         * troff/node.h: Add default argument to mount_font.
6108         * troff/node.c (font_position): Read an optional third argument
6109         giving the external_name.
6110         (mount_font): Add optional argument giving the external_name.
6111         (mount_font_not_translate): Have additional argument giving
6112         external name.  Use this name to load the font.  Pass both names
6113         to font_info::font_info.
6114         (font_info::font_info): Have additional argument giving
6115         external_name.
6116         (class tfont): New member external_name.
6117         (font_info::get_tfont): Use external name to construct tfont_spec.
6119 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
6121         * eqn/lex.c (init_table): Add argument giving device.  Define
6122         name of device to be "1".
6123         (do_ifdef): Counts as true if the argument has been defined with
6124         `define'.
6125         * eqn/main.c (main): Call init_table with device argument. Make
6126         device local to main.
6127         * eqn/eqn.h: Change declaration of init_table. Remove declaration
6128         of device.
6130         * pic/lex.c (get_delimited): Allow text to be delimited by
6131         matching {}s.  Don't recognize ending delimiter within a string.
6133         * troff/input.c (get_delim_name): New function.
6134         (token::next): Implement \C.
6136         * lib/font.c (font::load): Grok ---.  Add an alias for each
6137         character based on its code.
6138         (font::get_code_width): Deleted.
6139         * lib/font.h (class font): Declare font::number_to_index().
6140         Remove declaration of font::get_code_width.
6141         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6142         to indices of named characters.
6143         (font::number_to_index): New function.
6144         * troff/input.c (font::number_to_index): New function.
6145         (get_charinfo_by_number, charinfo::get_number,
6146         charinfo::set_number): New functions.
6147         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6148         (token::process, token::description, token::get_char,
6149         token::add_to_node_list, token::operator==): Handle
6150         TOKEN_NUMBERED_CHAR.
6151         * troff/charinfo.h: Declare get_charinfo_by_number,
6152         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
6153         charinfo class.
6154         (charinfo::numbered): New function.
6155         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6156         * troff/env.h (class environment): Remove declaration of ...
6157         * troff/env.c (environment::make_numbered_char_node): Deleted.
6158         * troff/node.c (make_numbered_node): Deleted.
6159         (class numbered_glyph_node): Remove.
6160         (troff_output_file::put_char_width, troff_output_file::put_char):
6161         Handle numbered chars.
6162         (troff_output_file::numbered_char): Removed.
6163         (tfont::get_code_width): Removed.
6164         (make_glyph_node): Don't search special fonts for numbered
6165         characters.
6166         * troff/node.h: Remove declaration of make_numbered_node.
6167         * driver/input.c (do_file): Handle N command.
6168         * driver/printer.h: Add declaration of ...
6169         * driver/printer.c (printer::set_numbered_char): New function.
6170         * dvi/tfmtodit.c (main): Generate unnamed entries.
6171         * ps/devps/afmtodit: Likewise.
6172         * xditview/xtotroff.c (MapFont): Likewise.
6173         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6175         * tbl/main.c (process_format): If multiple widths are specified
6176         for a column but all the widths are the same, don't give an error
6177         message.
6179         * tbl/table.c (table::do_row): If the current row is all lines and
6180         the stuff doesn't contains a line, mark the top of the row after
6181         printing stuff before the row.  If the current row is not all
6182         lines and the stuff doesn't contain a line, don't unnecessarily
6183         mark the top of the row before printing the stuff.
6184         
6185 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
6187         * troff/groff.h: Remove MAX_PATH.
6188         * troff/input.c (open_file): Dynamically allocate space for the
6189         path.
6190         (open_mac_file, process_macro_file): Corresponding changes.
6192 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
6194         * troff/node.h (class output_file): Make copy_file pure.  Add
6195         vspace method ifdef COLUMN. Add is_printing method.
6196         * troff/node.c: Add class printing_reg. Add class
6197         real_output_file. Derive other output_file classes from
6198         real_output_file; in these classes rename begin_page to
6199         really_begin_page, print_line to really_print_line, copy_file to
6200         really_copy_file, transparent_char to really_transparent_char.
6201         Move output_file::flush to real_output_file. Add printing member
6202         to class output_file.
6203         * troff/div.h: Remove printing member from top_level_diversion.
6204         Add vspace member function to class diversion ifdef COLUMN. Add
6205         some declarations ifdef COLUMN.
6206         * troff/div.c (top_level_diversion::copy_file,
6207         top_level_diversion::transparent_output,
6208         top_level_diversion::output): Don't test printing member before
6209         output.
6210         * troff/input.c: Handle initial variable_space_request ifdef
6211         COLUMN.
6212         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6213         but comment it out.
6215 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
6217         * troff/div.c (diversion::need): Make any space forced.  If we
6218         sprung a trap, set truncated_space to minus the distance to the
6219         trap and set needed_space to the amount that was needed.
6220         (top_level_diversion::space): A forced space turns no_space_mode
6221         off.
6222         (class constant_vunits_reg): New class.
6223         (init_div_requests): Implement number registers .trunc and .ne
6224         using constant_vunits_reg.
6225         (class truncated_space_reg): Deleted.   
6227         * troff/div.h: Don't have a no_space_mode member in diversion.
6228         Instead have it in top_level_diversion.
6229         * troff/div.c (diversion::diversion): Don't initialize
6230         no_space_mode.
6231         (top_level_diversion::top_level_diversion): Initialize
6232         no_space_mode.
6233         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6234         (macro_diversion::output): Don't clear no_space_mode.
6236         * troff/input.c (diverted_space_node::reread): Don't call
6237         environment::do_break.  In fill mode, act like a blank line.
6238         (diverted_copy_file_node::reread): Don't call
6239         environment::do_break.
6241         * troff/div.c (blank_line): New function.
6242         * troff/div.h: Declare it.
6243         * troff/input.c (process_input_stack): Call it.
6245         * troff/div.c (truncated_space_reg::get_string): New function.
6246         (init_div_requests): Bind to .trunc.
6247         (space_request, top_level_diversion::space,
6248         top_level_diversion::output, macro_diversion::space,
6249         macro_diversion::output): Update truncated_space.
6250         (macro_diversion::output): Redo calculations when trap sprung.
6251         (macro_diversion::output, macro_diversion::space): No need for
6252         trap_flag.
6254         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6255         after truncating post line spacing.
6257 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
6259         * ps/devps/prologue (MF, SF): Make them work even if setfont is
6260         defined as a procedure rather than as an operator.
6262 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
6264         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6266 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
6268         * troff/div.c (top_level_diversion::output): Merge
6269         output_file::print_line and output_file::end_of_line member
6270         functions.
6271         * troff/div.h (class output_file):
6272         * troff/node.c (troff_output_file::print_line,
6273         troff_output_file::end_of_line, output_file::end_of_line,
6274         ascii_output_file::print_line, suppress_output_file::print_line):
6275         Corresponding changes.  
6277 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
6279         * troff/input.c (token::next): Don't give a warning for `\.'.
6281         * troff/env.c (environment::get_center_lines): New function.
6282         (init_env_requests): Bind number register .ce to it.
6283         * troff/env.h: Declare it.
6284         * tbl/table.c (table::init_output): Define reset macro to restore
6285         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
6286         Then do .ce 0.
6287         (table::print): If center option not given, then imply center
6288         option if SAVED_CENTER_REG > 0.
6290 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
6292         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6293         Troff.ps from DOWNLOAD.
6294         
6295         * troff/Makefile: Change comment in DEFINES to avoid confusing
6296         System V make.
6298         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6299         code.  Don't try to catch errors with stopped.
6300         (check_line_lengths): New function.
6301         * ps/devps/prologue (EXEC): Deleted.
6302         (EBEGIN, EEND): New procedures.
6304 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
6306         * troff/input.c: Include request.h before node.h.
6307         * troff/node.c: Likewise.
6308         * troff/env.c: Likewise.
6309         * troff/div.c: Likewise.
6310         * troff/node.h (class special_node): Store argument as a macro
6311         rather than a char *.
6312         * troff/node.c (special_node::special_node, special_node::copy):
6313         Grok this.
6314         (special_node::~special_node): Deleted.
6315         (special_node::tprint): Deleted.
6316         (special_node::tprint_start, special_node::tprint_end,
6317         special_node::tprint_char): New functions.
6318         (troff_output_file::special): Deleted.
6319         (troff_output_file::start_special, troff_output_file::end_special,
6320         troff_output_file::special_char): New functions.
6321         * troff/input.c (special_node::tprint): New function.
6322         (do_special): Use macro not char *.
6323         (do_transparent_macro): Deleted.
6324         (token::next): Don't call do_transparent_macro.
6326         * troff/input.c (token::next): Add 'Y' case.
6327         (do_transparent_macro): New function.
6328         * troff/node.c (troff_output_file::special): Handle newlines with
6329         argument using new continuation convention.
6330         * driver/input.c (get_string): Cope with continuation convention.
6331         (do_file): Don't call skip_line after calling get_string(1).
6332         * ps/ps.c (ps_printer::special, ps_printer::do_import,
6333         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6334         arg.
6335         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6336         with +.
6338 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
6340         * troff/input.c (asciify): By default, illegal input characters
6341         should return empty string.
6343         * troff/input.c (copy_file): Handle first page transition like title.
6344         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6346         * troff/input.c (token::next): Improve error message for EOF after
6347         escape character.
6348         (input_char_description): New function.
6349         (get_char_for_escape_name): Use input_char_description.
6350         (token::next): Warn about unrecognized escape sequences.
6351         (warning_table): Add WARN_ESCAPE.
6352         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6353         accordingly.
6355         * troff/token.h: Remove declaration of process_input_stack.
6357         * troff/input.c: Remove declaration of init_hyphen_requests.
6358         * troff/request.h: Correct spelling in declaration of same.
6360         * troff/input.c (token::next): Check whether escape_char is 0.
6362 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6364         * groff.c (main, usage, help): Implement -P and -L options.
6365         * groff.sh: Likewise.
6367         * troff/input.c (token::next): Use some gotos to avoid code
6368         duplication.
6370         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6371         Avoid calling symbol::symbol if name empty.
6373 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6375         * troff/input.c (init_input_requests): Make \n(.x return the major
6376         version number and \n(.y return the minor version number.
6377         * troff/Makefile: Construct file majorminor.c defining
6378         major_version and minor_version automatically from ../VERSION.
6380         * troff/node.c (class glyph_node): Make operator new and operator
6381         delete public.
6382         (class ligature_node): Similarily.
6384         * troff/input.c (operator==(const macro &, const macro &)): New
6385         function.
6386         (non_interpreted_node::same): Use this.
6387         (string_iterator::string_iterator): Make macro& argument const.
6389         * troff/input.c (input_iterator::get): New function. Don't make
6390         asciify_macro or class non_interpreted_node friends of class
6391         input_iterator.
6392         (non_interpreted_node::interpret): Use input_iterator::get.
6393         (asciify_macro): Likewise.
6395         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6396         ~non_interpreted_node): Deleted.
6397         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6398         Deleted.
6400         * troff/symbol.h: Make all symbol member functions const.
6402         * lib/strtol.c: New file.
6403         * lib/Makefile: Add strtol.c.
6404         * Makefile: Define STRTOL as strtol.o to include strtol in
6405         libgroff.a.
6407 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6409         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6411 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6413         * troff/input.c (do_special): Use input_level.
6415         * troff/token.h (TOKEN_BACKSPACE): New token.
6416         (token::backspace): New function.
6417         * troff/input.c (token::description, token::next, token::process):
6418         Grok TOKEN_BACKSPACE.
6419         (do_special): Turn TOKEN_BACKSPACE back into \b.
6421         * troff/token.h (token::leader): New function.
6422         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6424         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6426         * troff/input.c (do_special): Use token::description in error
6427         message.
6429 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6431         * troff/input.c (decode_args): Combine quoted and
6432         quote_input_level variables. Make it a for (;;) loop.
6434         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6436         * troff/input.c (read_long_escape_name): The test for whether to
6437         expand buffer was off by 1.
6438         (read_string): Similarily.
6440 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6442         * troff/input.c: Use `const int' rather than `static const int'.
6444         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6445         (macro_diversion::copy_file): New function.
6446         * troff/node.h: New class diverted_copy_file_node.
6447         * troff/node.c: Implement it.
6448         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6449         first page transition by pushing a diverted_copy_file_node.
6450         * troff/input.c (token::next, process_input_stack): Don't handle
6451         COPY_FILE_REQUEST.
6453 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6455         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6456         whether space widths need adjusting.
6458         * troff/charinfo.h: Generalize translated_to_space to
6459         special_translation so as to allow translation to \&.
6460         * troff/input.c (translate): Allow translation to \&.
6461         (charinfo::*): Corresponding changes.
6462         * troff/node.c (make_node, node::add_char): Corresponding changes.
6463         * troff/node.h (dummy_node::dummy_node): Allow optional first
6464         argument.
6466         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6467         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6468         TOKEN_REQUEST.
6469         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6470         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6471         (token::process): Grok that.
6472         * troff/input.c (copy_file): Handle first page transition like
6473         title by pushing a COPY_FILE_REQUEST cookie.
6474         (token::next, process_input_stack): Grok that.
6475         * troff/node.h (output_file::copy_file): Add x and y arguments.
6476         Make it non-pure.
6477         * troff/div.c (top_level_diversion::copy_file): Supply them.
6478         * troff/node.c (troff_output_file::copy_file): Add x and y
6479         arguments; moveto specified position.  Invalidate font_position
6480         array after copying file.
6481         (output_file::copy_file): New function.
6482         (suppressed_output_file::copy_file, ascii_output::copy_file):
6483         Removed.
6484         * troff/input.c (transparent_file): New function.
6485         (init_input_requests): Bind to "trf".
6486         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6487         (process_input_stack): Likewise.
6489         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6491         * troff/node.c (init_node_requests): New number registers .kern
6492         pointing to global_kern_mode, and .lg pointing to
6493         global_ligature_mode.
6495         * troff/node.c (ligature): Don't change it if we get a bad
6496         integer.
6498         * troff/input.c (do_define_string): Don't strip tabs.
6500         * troff/input.c (asciify_macro): Make the string_iterator auto.
6502         * troff/node.c (init_font_requests): Rename to...
6503         (init_node_requests):
6504         * troff/node.h: Change declaration.
6505         * troff/input.c (main): Change call.
6507         * troff/input.c (node::reread, diverted_space_node::reread): New
6508         methods.
6509         (process_input_stack): Call reread rather than
6510         get_diverted_space_node.
6511         * troff/node.c (node::get_diverted_space_node,
6512         diverted_space_node::get_diverted_space_node): Removed.
6513         * troff/node.h: Declare reread methods instead of
6514         get_diverted_space_node methods. Make `n' member private.
6515         * troff/input.c: (token::diverted_space): Removed.
6516         * troff/token.h: Removed declaration.
6517         
6519 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6521         * eqn/script.c (script_box::compute_metrics): Don't let
6522         SUP_RAISE_FORMAT become negative.
6524         * tbl/table.c (table::do_row): Entries that don't end in the
6525         this row shouldn't make the row non-blank.
6526         
6527         * tbl/table.c (table::make_columns_equal): Only set the width of
6528         columns which are marked as equal.
6529         
6530         * tbl/main.c (process_data): Before issuing excess data error,
6531         if last character was a newline unget it; then get it again after
6532         the error.  Also include the contents of the entry in the message.
6534         * groff.c: New file.
6535         * Makefile: Build groff from groff.c.  Make it possible to use
6536         either groff.sh or groff.c as groff.
6537         * Makefile.bd: Similarily.
6539 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6541         * groff.sh: Don't delay expansion of $@ in assignment to files.
6542         Remove occurrences of \".
6544 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6546         * all Makefiles: Simplify and rearrange.
6548         * Makefile: Handle fmod like malloc.
6549         * lib/Makefile: Similarily.
6550         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6552         * Makefile: Rename OPTIMISE to OPTIMIZE.
6554         * groff.sh: Remove assignment to PATH.
6555         * Makefile: Remove SHPATH variable.
6556         * Makefile.bd: Similarily.
6558         * groff.sh: Add -V option to print the pipeline instead of
6559         executing it.
6561 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6563         * lib/font.c: Split off file searching into ...
6564         * lib/fontfile.c: New file.
6566         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6568 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6570         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6571         Also change misleading comment.
6572         (table::do_vspan): Change similarily misleading comment.
6573         * tbl/main.c (process_data): A format row with an explicit `s'
6574         uses up a data line, even if all the other columns are `_' or `='.
6576         * troff/input.c (token::description): Fix description of
6577         TOKEN_DUMMY and TOKEN_EMPTY.
6579 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6581         * groff.sh: Fix description of -Z in help message.
6583 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6585         * pic/object.c (object_spec::make_object): Allow negative and zero
6586         line thicknesses.
6587         * pic/pic.y: Give linethick default value of -1.0.
6588         * pic/troff.c (troff_output::troff_output): Initialize
6589         last_line_thickness to BAD_THICKNESS.
6590         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6591         (troff_output::line_thickness): Canonicalize negative thicknesses
6592         to RELATIVE_THICKNESS.
6593         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6594         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6595         to -1.0.
6596         (tex_output::start_picture): Set pen_size to -2.0.
6598         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6599         0, then use 0 linewidth.
6600         (ps_printer::ps_printer): Initialize line_thickness to -1.
6602         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6604         * ps/devps/symbolchars: Remove `or'.
6605         * ps/tmac.ps: Implement \(or with .char.
6607         * ps/devps/symbolchars: Move most characters into textmap.
6608         * ps/devps/textmap: Add names for troff bracket characters. Remove
6609         ul, ru, br, bv.
6611         * ps/devps/TSymbol.ps: Removed.
6612         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6613         * ps/tmac.ps: Do with .char what TSymbol did.
6614         * ps/devps/download: Remove TSymbol.
6616         * ps/devps/T: Removed.
6617         * ps/devps/Troff.ps: Removed.
6618         * ps/devps/Troff.afm: Removed.
6619         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6620         * ps/devps/download: Remove Troff.
6621         * ps/devps/FontMakefile: Remove T target.
6622         * ps/devps/DESC-A4: Remove T from font list.
6623         * ps/devps/DESC-letter: Likewise.
6625         * troff/input.c (macro_to_node): Rename to ...
6626         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6627         character's definition while processing it.
6628         * troff/node.c (node::add_char, make_node): Change calls to
6629         macro_to_node accordingly.
6631         * troff/input.c (token::next): Translate \_ to \(ul.
6633         * tty/devascii/R.proto: Add `|'.
6634         * tty/devlatin1/R.proto: Likewise.
6636 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6638         * man: Put the version number in all the man pages.
6640 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6642         * Makefile.bd: New file.
6643         * README.bd: New file.
6645         * VERSION: New file.
6646         * lib/version.c: Removed.
6647         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6648         in clean target.
6650         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6651         environment variable.
6653         * all Makefiles: Split install target into install.bin for
6654         binaries, and install.nobin for everything else.
6655         * Makefile: Add bindist target.
6657         * man/afmtodit.man: New file.
6658         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6659         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6660         in BINDIR.
6661         * ps/Makefile: Pass BINDIR to make install in devps.
6663         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6664         the space character.
6666         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6668 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6670         * ps/ps.c: Redo font downloading.
6671         * ps/devps/download: New file.
6672         * ps/devps/Makefile: Add download to DEVICEFILES.
6673         * ps/devps/afmtodit: Remove -d option.
6674         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6675         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6676         * ps/devps/zapfdr.ps: Likewise.
6677         * ps/devps/TSymbol.ps: Likewise.
6679 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6681         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6683 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6685         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6686         then strip the first line if it starts with %.
6687         * Makefile: Add a comment about this.
6689         * man/tfmtodit.man: New file.
6690         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6691         * dvi/Makefile: Install tfmtodit in BINDIR.
6693         * dvi/tfmtodit.c (usage): Mention -v option.
6695 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6697         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6698         * troff/node.c (troff_output_file::transparent_char): Don't call
6699         flush_tbuf.
6701         * eqn: Add check_tabs method to most box classes.
6702         * eqn/box.c (box::top_level): Call check_tabs.
6704         * eqn/script.c (script_box::output): Use \Z.
6705         * eqn/limit.c (limit_box::output): Use \Z.
6707         * eqn/box.c (box::top_level): Use itoa.
6709 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6711         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6712         * dvi/devdvi/Makefile: Don't make links to CW.
6714         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6715         HX, HD.
6716         * xditview/tmac.X: Likewise.
6718         * troff/node.c: Add font translation feature.
6719         (get_font_translation): New function.
6720         (symbol_fontno): Translate the font name.
6721         (mount_font_no_translate): Rename to mount_font to this.
6722         (mount_font): New function.
6723         (font_family::make_definite): Call mount_font_no_translate instead
6724         of mount_font.
6725         (mount_style): Translate the font name.
6726         (font_translate): New function.
6727         (init_font_requests): Bind "ftr" to font_translate.
6729         * ps/devps/prologue (SN): New procedure that rounds a position to
6730         the nearest (pixel + (.25,.25)).
6731         (DL): Use SN to round endpoints.
6733         * lib/version.c: Changed version to 0.5.
6735 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6737         * Makefile: Move definition of PAGE to the very beginning, so that
6738         people are less likely to miss it.
6740 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6742         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6744         * troff/env.c (environment::choose_breakpoint): Make `can't find
6745         breakpoint' error a warning of type WARN_BREAK.  Change message to
6746         `can't break line'.
6747         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6748         code 040000.
6749         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6750         WARN_BREAK in DEFAULT_WARNING_MASK.
6752         * tty/tmac.tty: Add definition of \(+-.
6754         * groff.sh: Remove `--' option to set command.
6756         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6758         * ps/devps/eqnchar: Better definition of cdot using md.
6759         * dvi/devdvi/eqnchar:  Likewise.
6760         * xditview/devX100/eqnchar:  Likewise.
6761         * xditview/devX75/eqnchar: Likewise.
6762         * eqn/lex.c: Add definition of cdot.
6764 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6766         * troff/input.c (get_optional_char): New function.
6767         * troff/input.c (set_page_character): Use get_optional_char(),
6768         rather than has_arg() and tok.get_char(1).
6769         * troff/env.c (tab_character, leader_character, hyphen_char,
6770         field_characters): Likewise.
6771         (margin_character): Likewise.  Also always delete the
6772         margin_character_node.
6774         * troff/input.c (token::get_char): Use token::description.
6776         * troff/input.c (has_arg): Don't skip over tab and \}.
6777         * troff/number.c (start_number): Give a warning if the number
6778         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6780 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6782         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6783         functions.
6784         (get_name, get_long_name): Use these.  Rename `warn' argument to
6785         `required'.
6787         * troff/node.c (get_fontno): Test that the symbol is not null.
6789         * troff/input.c (token::description): New function.
6790         * troff/number.c (parse_term): Use token::description in `numeric
6791         expression expected' message.
6792         * troff/groff.h: Add WARN_MISSING.
6793         * troff/number.c (start_number): New function.
6794         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6795         get_incr_number): Use start_number().
6796         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6797         default.
6798         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6799         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6800         token::descripion.
6801         * troff/input.c (token::get_char): Use WARN_MISSING.
6802         * troff/input.c (token::delimiter): Use token::description.
6803         * troff/env.c (environment_switch): Back out Aug 3 change.
6804         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6805         warning.
6806         * troff/token.h (token::tab): New function.
6807         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6808         * troff/reg.c (alter_format): Likewise.
6809         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6811 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6813         * troff (most files): Redo warnings. Divide warnings into various
6814         categories; warning() has an additional first argument indicating
6815         the category it falls into.
6816         * troff/input.c (main): -w now takes an argument. New option -W.
6817         (enable_warning, disable_warning): New functions.
6819         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6820         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6822 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6824         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6825         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6826         * xditview/devX75/eqnchar: Likewise.
6827         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6829         * eqn/other.c: When bar or over applies to a single character
6830         don't produce an overline_box or an underline_box. Instead produce
6831         an accent_box or an underaccent_box, with the accent a line
6832         whose width is accent_width.  New classes underaccent_box,
6833         overline_char_box and underline_char_box.
6834         * eqn/box.h: Move overline_box, underline_box, accent_box class
6835         declarations into eqn/other.c. Add declarations of
6836         make_underline_box, make_overline_box, make_accent_box.
6837         * eqn/eqn.y: Call make_overline_box, make_underline_box
6838         make_accent_box instead of constructors.
6839         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6841         * eqn/other.c: Add accent_box::~accent_box.
6842         * eqn/box.h: Declare it.
6844         * groff.sh: With -Tps, use eqn -D.
6846         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6847         rather than \l.
6848         (underline_box::output): Similarily.
6849         (accent_box::output): Use \Z.
6851         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6852         bit smaller.)
6854 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6856         * troff/div.c (top_level_diversion::transparent_output(unsigned
6857         char)): Use asciify.
6858         * troff/input.c (asciify): Don't make it static.
6859         * troff/token.h (asciify): Declare it.
6860         
6861         * troff/input.c (get_name, get_long_name, token::get_char,
6862         token::delimiter): Add an extra default argument which says
6863         whether a warning should be printed.
6864         * troff: Pass a non-zero argument to one of these rather than
6865         printing a warning directly.
6867 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6869         * troff: Consistently use symbol::is_null.
6871         * troff/dictionary.h: Move some inline functions into
6872         dictionary.c.
6874         * troff/request.h: Move inline functions into input.c.
6875         (request_or_macro::invoke): Make it pure.
6877         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6878         * troff/input.c (init_input_requests): Use class constant_int_reg.
6879         (class compatible_reg): Deleted.
6880         * troff/div.c (init_div_requests): Use class constant_int_reg.
6881         (class last_post_line_extra_space_reg): Deleted.
6883         * troff/env.c (tab_character): Don't change the tab character if
6884         we get an invalid argument.
6885         (hyphen_char): Similarily.
6887         * troff/reg.c (alter_format): Check that nm is not null.
6889         * Makefile, groff.sh: Make it possible to customize the commands
6890         used for printing PostScript and dvi files. Also make it possible
6891         to customize the path used by groff.sh.
6893         * eqn/eqn.y: Make `left' right associative.
6895 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6897         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6898         don't have it.
6900         * pic/pic.h: Removed definition of INT_MAX.
6902         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6903         `return'.
6905         * troff/input.c (token::next):  Handle \R like \n.
6907 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6909         * ps/tmac.pc (PSPIC): Simplify.
6911         * troff/env.c (tab_stops::to_string):
6912         * pic/pic.y (object_type_name):
6913         * pic/troff.c (simple_output::line):
6914         * pic/tex.c (tex_output::spline):
6915         * pic/object.c (object_spec::make_object):
6916         * tbl/main.c (process_data):  Add cases to switch statements to
6917         avoid cfront warnings. (Some of these are spurious, since the
6918         switch already has a default case.)
6920         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6921         `ps-'.  Don't test systat; instead check number of arguments to
6922         ps-bb.
6924 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6926         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6928         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6929         Unlink the file as soon as we have opened it, so that we don't
6930         have to bother with signal handlers.
6931         (handler): Deleted.
6932         (fatal_error_exit): Deleted.
6933         (main): Don't call signal.
6935         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6936         can be ignored.
6937         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6939         * pic/pic.y:  If there is a label, or an nth construction before
6940         the first `.' in the argument to `with', ignore it and generate a
6941         warning.
6942         * pic/lex.c (lex_warning): New function.
6944         * tbl/table.c (table::init_output): In section keep and release
6945         macro, use 0 indent when diverting and the correct indent when
6946         rereading.
6948         * troff/input.c (interpolate_number_format): Do not interpolate
6949         anything if the number register is not defined.
6951         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6953 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6955         * ps/devps/prologue (PICTURE): Set components of graphics state to
6956         their default values.
6958         * ps/devps/text.enc: Add trademark
6959         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6960         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6961         * ps/devps/symbolchars: Add names for summation and product.
6963         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6964         suchthat. Add pp. Add upper-case letters.
6966         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6967         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6968         Upsilon.
6970         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6971         rA (right angle bracket) to ra.  Introduce names for double-headed
6972         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6973         * ps/devps/textmap: Likewise for ps device.
6974         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6975         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6976         * tty/devascii/R.proto: Likewise.
6977         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6978         \(uA, \(dA.
6979         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6981         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6983         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6984         def_table.
6986 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6988         * troff/div.c (when_request): Use symbol::is_null rather than
6989         has_arg to determine whether we have an argument.
6990         (change_trap): Remove the trap if we get an invalid number. Give
6991         an error if we don't get at least the macro name.
6992         (diversion_trap): Remove trap if we get an invalid name or number.
6994         * troff/env.c (environment_switch): Pop if we get an invalid
6995         symbol or numeric expression.
6997         * troff/input.c (do_define_macro):  If EOF is encoutered while
6998         defining the macro, do tok.next() before returning.
7000         * troff/token.h (has_arg): Move definition from here, to ...
7001         * troff/input.c (has_arg): ... here
7003         * troff/env.c (space_size): Do nothing if we get an invalid argument.
7004         * troff/input.c (shift): Likewise.
7006         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
7007         for `.c'.
7009         * pic/troff.c (troff_output::start_picture):  Comment out calls to
7010         `..'.
7012         * eqn/main.c (do_file): Subtract 1 from current_lineno if
7013         interpret_lf_args succeeds.
7015         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7016         \\.  This avoids problems with \$N.
7018         * groff.sh: Pass -C to preprocessors.
7020         * lib/lf.c (interpret_lf_args):  Be more flexible.
7022         * tbl/main.c (main): Add -C option.
7023         (table_input::get): Do not recognize TE if followed by character
7024         other than a space or newline unless -C option given.
7025         (process_input_file): Likewise for lf, TS.
7026         (process_data): Likewise for lf in text blocks.
7028         * eqn/main.c (main): Add -C option.
7029         (do_file): Don't recognize EQ, EN or lf if followed by character
7030         other than space or newline unless -C option given.
7031         * eqn/lex.c (file_input::read_line): Similarily.
7032         * eqn/eqn.h: Declare compatible_flag.
7034         * etc/soelim.c (main): Add -C option.
7035         (interpret_lf_args): Use version in libgroff.
7036         (do_file):
7038         * pic/main.c (main): Add -C option, which sets compatible_flag.
7039         (top_input::get), (top_input::peek):  If -C option not given,
7040         do not recognize .PS/.PE/.PF/.lf if followed by a character
7041         other than space or newline.
7042         * pic/lex.c (file_input::read_line): Similarily.
7043         * pic/pic.h: Add declaration of compatible_flag.
7045 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
7047         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7049         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
7050         derived from node.  New class space_char_hmotion_node.
7051         * troff/input.c (asciify_macro): New function.
7052         * troff/input.c (init_input_requests): New request `asciify' bound
7053         to asciify_macro.
7054         * macros/mm.diff: New file.
7055         * Makefile:  In install.mm target use `patch' to apply
7056         macros/mm.diff.
7058         * troff/input.c (macro::print_size): Just print the size in bytes.
7060         * troff/div.c (return_request): Correct the argument
7061         interpretation.
7063 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
7065         * troff/node.h (class composite_node): Add sz member.
7066         * troff/node.c (composite_node::size): Return sz.
7067         * troff/input.c (macro_to_node):  Use the initial size in the
7068         environment as the size of the composite_node.
7070         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
7071         default.
7073 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
7075         * troff/div.c (change_trap): If we get a bad number expression,
7076         do nothing.
7078 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
7080         * lib/matherr.c (matherr): Define this only if math.h defines
7081         TLOSS.
7083 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
7085         * troff/div.c (macro_diversion::distance_to_next_trap): If there
7086         no diversion trap return vunits(INT_MAX - vresolution).
7088 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
7090         * troff/input.c (do_zero_width): New implementation that doesn't
7091         use a temporary environment. Use instead:
7092         (token::add_to_node_list): New function.
7093         * troff/env.c (environment::get_prev_char_height),
7094         (environment::get_prev_char_height),
7095         (environment::get_prev_char_skew): New functions.
7096         (environment::get_prev_char): New function.
7097         (environment::get_prev_char_width): Change to use get_prev_char.
7098         (init_env_request): Implement new registers .cht, .cdp, .csk.
7099         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7100         \Z being processed in a separate environment.
7102 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
7104         * tbl/table.c: Removed TABLE_BOTTOM_REG.
7106         * tbl/table.c (table::init_output): In the section release macro,
7107         give a warning message if the section won't fit on one page.
7109         * tbl/table.c (table::do_top): Emit table keep only if table is
7110         boxed.
7111         (table::do_bottom): Likewise for table release.
7112         (table::table), (table::add_vertical_rule):  Remove reference to
7113         keep member.
7114         * tbl/table.h: Remove keep member.
7116         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7117         SECTION_RELEASE_MACRO, if there's not enough space before the next
7118         trap to output the diversion, call T# ourselves, set
7119         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7120         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
7121         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
7122         vertical position and return to it before turning traps on again.
7123         
7124 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
7126         * troff/node.c, troff/node.h: In classes derived from node,
7127         replace prev_char_width method by last_char_node method.
7128         * troff/env.c (environment::get_prev_char_width): Use
7129         node::last_char_node rather than node::get_prev_char_width.
7131         * Makefile: Added comment about -fno-inline on 68030-based
7132         Apollos.
7134         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7135         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7136         expressions using sizeof to int.
7137         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7139         * macros/tmac.e (TS):  Don't move @f back past the current
7140         position.
7142 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
7144         * ps/ps.c (main): Buffer stderr.
7145         * dvi/dvi.c (main): Likewise.
7146         * tty/tty.c (main): Likewise.
7148         * ps/ps.c (ps_printer::do_import): Improve error handling.
7150         * troff/input.c (abort_request): Use asciify.
7152         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7153         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7154         type of first argument int rather than char.  This works around a
7155         bug on the 68030 based Apollo using g++ 1.37.1.
7157         * tbl/table.h (class table): Add `keep' member.
7158         * tbl/table.c (table::table): Initialize `keep'.
7159         (table::add_vertical_rule): Set `keep' to 1.
7160         (table::do_top): Only emit table keep macro is `keep' is non-zero.
7161         (table::do_bottom): Likewise for table release macro.
7162         (table::do_row): Emit section keep macro even if the row is 0.
7164 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
7166         * macros/tmac.e (@C): Preserve the font family across the change
7167         in environments.
7169 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
7171         * lib/font.c: Initialize font::hor and font::vert to 1.
7172         (font::load_desc): Check the values of font::hor and font::vert.
7174         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7175         be included in a C compilation.
7176         (iftoa): Use INT_DIGITS. Include lib.h.
7177         (itoa): Likewise.
7178         (as_string): Likewise.
7179         * tbl/table.c: Removed definition of INT_DIGITS.
7180         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7181         * troff/input.c (input_input_requests): Likewise.
7182         * ps/ps.c (make_encoding_name): Likewise.
7183         (ps_printer::set_style): Likewise.
7184         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7186         * tty/devascii/R.proto: Map fm onto '.
7187         * tty/devlatin1/R.proto: Likewise.
7189 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
7191         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7192         argument to \w is at a different input level.
7194         * tbl/table.c (table::init_output): Define a new macro
7195         REPEATED_VPT_MACRO, like vpt but if in a diversion also
7196         transparently outputs itself.
7197         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7198         vpt.
7199         (table::do_row): Likewise.
7201         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7202         TRANSPARENT_STRING_NAME.
7204         * tbl/table.c (table::init_output): In the table release macro
7205         print an error message and don't produce any output if after
7206         issuing the need request the table still will not fit.  Also
7207         remove the diversion after bringing it back.
7209         * tbl/table.c (table::init_output): Define a new macro
7210         REPEATED_MARK_MACRO, like mk but if in a diversion also
7211         transparently outputs itself.
7212         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7213         is necessary because .TH might not call .T#.
7214         (table::do_top): Likewise TOP_REG.
7215         (table::define_bottom_macro): If TOP_REG is no longer valid, use
7216         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7217         table header might contain just the two top rules.
7219 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
7221         * troff/div.c: Implement new request `ptr' to print all traps.
7223         * troff/env.c (init_env_requests): Implement `.tabs' reg with
7224         init_string_env_reg.
7225         * troff/env.c (class tab_reg): Deleted.
7227 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
7229         * troff/div.c: New number register .pn returns the number of the
7230         next page as set by the pn request.
7232         * macros/tmac.an: Redid headers and footers.  Number each manual
7233         entry starting from 1 unless \nC is > 0, like Sun.  Added an
7234         optional 5th argument to .TH which specifies the manual name and
7235         appears in the center of the header.  Understand the X, P and D
7236         registers like Sun.
7238 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
7240         * troff/env.c (init_env_requests): New number register `.lt' to
7241         return the title length.
7243         * troff/node.h (class transparent_dummy_node): New class.
7244         * troff/node.c (class transparent_dummy_node): Provide member
7245         functions. 
7246         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7247         than a dummy_node.
7249         * troff/input.c (token::next): New escape sequence \).
7250         * troff/input.c (get_copy): Recognize \) in copy mode.
7252         * troff/input.c (input_stack::clear): New function.
7253         * troff/input.c (exit_request): Use input_stack::clear.
7255         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7256         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7258         * troff/env.c: Move set_page_character to input.c.  Move
7259         page_character to input.c also.
7260         * troff/env.c (title): Split off the reading of the parts of the
7261         title into read_title_parts.
7262         * troff/input.c (read_title_parts): New function.  Check the
7263         input_level when testing whether a token matches the delimiter.
7265         * troff/input.c (exit_request): New function.
7266         * troff/input.c (init_input_requests): Bind ex request to
7267         exit_request rather than exit_groff.
7269         * troff/input.c (exit_groff): Call tok.next() before
7270         process_input_stack().
7272 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
7274         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7275         * troff/env.h: ditto.
7276         * troff/input.c: ditto.
7278         * troff/env.c (environment::is_empty): Test pending_lines.
7280         * troff/env.c (environment::have_pending_lines): Removed.
7282         * troff/input.c: Add request to flush pending lines from the
7283         environment.
7285         * troff/env.c, troff/env.h: Add automatic widow control feature.
7287         * troff/input.c (exit_groff):  Do process_input_stack() after
7288         do_break() but before setting exit_flag to 2.
7290         * troff/input.c: Remove FLUSH_PENDING_LINES and
7291         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7292         environment after END_TRAP token seen, but only if there aren't
7293         any more traps still unfinished.
7294         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7296 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
7298         * troff/env.c: Rename the `retain_size' member of class
7299         pending_output_line to `no_fill'.
7301         * troff/env.c (title): When the line is output, make the
7302         retain_size argument !fill.
7304         * troff/node.h: Add `hyphenated' member to struct breakpoint.
7305         * troff/node.c (space_node::get_breakpoints),
7306         (dbreak_node::get_breakpoints):  Fill this in.
7307         * troff/env.c:  Allow specification of maximum number of
7308         consecutive hyphenated lines.
7310         * troff/env.c (environment::is_empty): Add test for !current_tab.
7312 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
7314         * troff/env.c (environment::hyphenate_line): Don't completely give
7315         up if the word is not to be hyphenated; continue so that breaks
7316         can be made at break_char_node's.
7318         * lib/lib.h: Only define INT_MAX if it's not already defined;
7319         undef INT_MIN if it's already defined.
7321         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7323         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7324         This works around a bug in AT&T C++ 2.0 used with an ANSI C
7325         compiler.
7326         
7327         * macros/tmac.an (an-header): Set no-space mode.
7329         * macros/tmac.an (TH): Start a new page if necessary.
7331         * Started using ChangeLog at version 0.4.
7333 Local Variables:
7334 version-control: never
7335 End: