* DviChar.c: Replacing `md' glyph name with `pc' in latin-1 map to
[s-roff.git] / ChangeLog
blob2cf88f218197180ed97607b1e3c0aa65e0aff41c
1 2000-04-22  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
4         `.T' string register and the incompatible definition of the `.T'
5         number register (compared to Unix troff).
7         * man/groff_char.man: Add some missing characters.
8         * font/devutf8/NOTES: Update.
10 2000-04-21  Werner LEMBERG  <wl@gnu.org>
12         * src/include/htmlindicate.h, src/include/lib.h,
13         src/include/posix.h: Fix copyright.
15         * src/include/Makefile.sub: Update.
17 2000-04-20  Werner LEMBERG  <wl@gnu.org>
19         * src/roff/troff/input.cc (input_char_description): Removing
20         superfluous space char.
22         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
24         * doc/groff.texinfo: Document EBCDIC.
26 2000-04-19  Werner LEMBERG  <wl@gnu.org>
28         Introducing `shc' as the glyph name for the soft hyphen character.
30         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
31         font/devlatin1/R.proto: Use it.
33         * NEWS: Updated.
35 2000-04-18  Werner LEMBERG  <wl@gnu.org>
37         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
38         dependency on ASCII order.
40 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
42         * src/libs/libgroff/illegal.c: Added EBCDIC table.
43         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
45         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
46         to increase portability.
48 2000-04-15  Werner LEMBERG  <wl@gnu.org>
50         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
51         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
52         the generic `\n' if under OS/390 Unix.
54         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
56         * configure: Regenerated.
58 2000-04-14  Werner LEMBERG  <wl@gnu.org>
60         * doc/groff.texinfo: More conversions to @Deffn.
62 2000-04-12  Werner LEMBERG  <wl@gnu.org>
64         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
65         with `:'.
67         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
69 2000-04-10  Werner LEMBERG  <wl@gnu.org>
71         * doc/groff.texinfo: More conversions to @Deffn.
73 2000-04-08  Werner LEMBERG  <wl@gnu.org>
75         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
76         Updated to latest version (glibc 2.1.3).
78 2000-04-07  Werner LEMBERG  <wl@gnu.org>
80         * doc/Makefile (clean): Include more index files.
81         Add rule texinfo->dvi.
83 2000-04-05  Werner LEMBERG  <wl@gnu.org>
85         * doc/groff.texinfo: Added new index `op' for operators.  More
86         info on end of sentence characters.  More use of @Deffn.
88 2000-03-30  Werner LEMBERG  <wl@gnu.org>
90         * */*.man: Adding a note that a whitespace can be inserted between
91         a command line option and its parameter -- we are using GNU getopt.
93         * src/roff/groff/groff.man: Add example of `-m mandoc'.
95 2000-03-28  Werner LEMBERG  <wl@gnu.org>
97         Correct anachronism of calling the man macro file with `-man'
98         instead of `-m man' etc.
100         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
101         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
102         load tmac.<package>.
104         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
106         * NEWS: Updated.
108         * doc/groff.texinfo: Updated.
110         * tmac/groff_man.man: Copyright added.
112 2000-03-27  Werner LEMBERG  <wl@gnu.org>
114         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
115         typeset the request resp. escape name with a tt font -- due to a
116         bug in texinfo.tex it is necessary to use the `-e' switch with
117         texi2dvi.
119         Improving info about usage of groff units.
121         Other minor fixes.
123 2000-03-20  Werner LEMBERG  <wl@gnu.org>
125         * doc/groff.texinfo: Added section about man macro package
126         (I've basically taken groff_man.man).  Introducing new indices `ma'
127         for macros/strings and `gl' for glyph names.  Other minor fixes.
129         * tmac/groff_man.man: Fixed some typos.
131 2000-03-19  Werner LEMBERG  <wl@gnu.org>
133         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
134         Other minor fixes.
136         * doc/texinfo.tex: New file.
138 2000-03-18  Werner LEMBERG  <wl@gnu.org>
140         * doc/groff.texinfo: Improved section on number registers.  Other
141         minor updates.
143 2000-03-16  Werner LEMBERG  <wl@gnu.org>
145         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
146         synopsis.
148         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
149         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
150         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
151         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
153         * src/preproc/grn/grn.man: Better synopsis; added copyright.
155         * src/roff/grog/grog.man: Updated copyright date.
157 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
159         * configure.in: Added test for strdup.
161         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
162         is available.
164         Replaced dynamic allocation of arrays `[...]' with `new' operator.
166         Other minor fixes.
168 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
170         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
172 2000-03-11  Werner LEMBERG  <wl@gnu.org>
174         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
175         compilers silent.
176         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
177         * src/include/lib.h: Remove some spaces.
179 2000-03-10  Werner LEMBERG  <wl@gnu.org>
181         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
182         initializers from arguments (some compilers don't like this).
184 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
186         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
187         used by pic and eqn to tell grohtml where the graphic regions start
188         and end.
189         * src/libs/libgroff/Makefile.sub: Use it.
190         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
191         graphic_start() and graphic_end() from htmlindicate.cc.
193 2000-03-09  Werner LEMBERG  <wl@gnu.org>
195         * tmac/tmac.safer: Will now work correctly in compatibility mode.
196         * tmac/groff_man.man: More fixes.
198 2000-03-08  Werner LEMBERG  <wl@gnu.org>
200         * doc/Makefile: Added texput.log to the `clean' target.
201         * doc/groff.texinfo: Added info about delimiters for escapes.
203 2000-03-08  Bernd Warken  <bwarken@mayn.de>
205         * src/preproc/pic/pic.man: Add info on conversion of pic images to
206         other graphic formats.
208 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
210         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
211         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
212         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
213         files.
215 2000-03-07  Werner LEMBERG  <wl@gnu.org>
217         * doc/groff.texinfo: Spelling fixes.
219 2000-03-06  Werner LEMBERG  <wl@gnu.org>
221         * tmac/groff_man.man: Completely revised to cover everything in
222         tmac.an.
224         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
225         Other minor fixings.
226         * src/roff/troff/env.cc (environment_copy): Improve error message and
227         fix itoa->i_to_a.
228         * src/roff/troff/TODO: Updated.
230         * doc/Makefile: Bug fixes -- this is still provisional, though...
232         * tmac/eqnrc: Small fixes.
234 2000-03-05  Abramo Bagnara <abramo@alsa-project.org>
236         Adding a request `evc' to copy environments.
238         * src/roff/troff/env.cc (environment::copy, environment_copy):
239         Implement it.
240         * src/roff/troff/env.h: Add prototype.
242 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
244         Adding strsep() -- Solaris 8 doesn't have it.
246         * configure.in: Test it.
247         * src/devices/grolbp/lbp.cc: Add code.
249 2000-03-05  Werner LEMBERG  <wl@gnu.org>
251         * src/roff/troff/div.cc (macro_diversion::output,
252         top_level_diversion::output): Fixing an incompatibility with
253         original troff: \x'0' updates the .a register also.  Thanks to
254         <Andries.Brouwer@cwi.nl> for pointing this out.
255         * doc/groff.texinfo: Document it.
257         * Makefile.in: Create Makefile.dep if necessary before calling the
258         submake process to avoid warning about nonexistent file.
260         * NEWS, PROJECTS: Updated.
262 2000-03-04  Werner LEMBERG  <wl@gnu.org>
264         * tmac/troffrc: Add tmac.lbp.
266 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
268         * tmac/tmac.lbp: New file.
269         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
270         command.
272 2000-03-03  Werner LEMBERG  <wl@gnu.org>
274         * Makefile.in: Fixing $(subdir).
276         * README, NEWS: Small fixes.
278         * test-groff: Adding path to grolbp.
280         * configure.in: The (new) file src/xditview/Imakefile.in will be
281         also configured -- it is now possible to build gxditview in a
282         directory different from $srcdir.
284 2000-03-02  Blake McBride  <blake@florida-software.com>
286         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
288         * MORE.STUFF: Added website of bell labs and info about plot2dev.
290 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
292         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
293         files.
295 2000-02-29  Werner LEMBERG  <wl@gnu.org>
297         Adding GNU getopt to the groff distribution.
299         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
300         New files.
301         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
302         * aclocal.a4: Remove GROFF_GETOPT function.
303         * configure.in, Makefile.in, PROBLEMS: Update.
304         * src/include/lib.h: Replace getopt tests with getopt.h.
305         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
307         * doc/groff.texinfo: Further checking/updating.  Adding more index
308         entries.
310         * man/groff_out.man: Fix nroff mode activation (for emacs).
311         * man/groff_font.man: Add missing ligature.
313 2000-02-28  Werner LEMBERG  <wl@gnu.org>
315         * doc/groff.texinfo: Further checking/updating.  Adding more index
316         entries.
318         * src/devices/grolbp/grolbp.man: Added a comment line at the
319         beginning of the file (similar to shell scripts) which indicates
320         that `tbl' should be used as a preprocessor.
322 2000-02-27  Blake McBride  <blake@florida-software.com>
324         Adapting groff to MS Visual C++ 6.0 compiler (tested with
325         Windows NT 4.0).  Uses _MSC_VER define where necessary.
327         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
328         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
329         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
330         src/include/lib.h, src/libs/libgroff/errarg.cc,
331         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
332         src/preproc/refer/label.y, src/preproc/refer/label.cc,
333         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
334         src/roff/troff/div.cc, src/roff/troff/env.cc,
335         src/roff/troff/input.cc, src/roff/troff/node.cc,
336         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
337         if_to_a() to avoid name clashes.
338         * src/include/posix.h: Don't use unistd.h.
339         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
340         clause for integrating non-Unix xtmpfile() code.
341         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
342         structure; use "rt" for popen() in pipe_source(); add getpid()
343         dummy function.
344         * src/roff/troff/node.cc: Use special versions of popen() in
345         real_output_file() and pclose() in ~real_output_file().
347 2000-02-27  Werner LEMBERG  <wl@gnu.org>
349         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
350         LBP-8 series laser printers).  This code has been contributed by
351         Francisco Andres Verdu <pandres@dragonet.es>.
353         * src/devices/grolbp/*: The grolbp output device.
354         * font/devlpb/*: The font description files.
355         * Makefile.in: Add grolpb and devlbp subdirectories.
357         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
358         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
359         typographic fixes.
361         * doc/groff.texinfo: Further checking/updating.  Adding more index
362         entries.
364         * NEWS: Updated.
366         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
368         * man/groff_font.man: Adding info about obsolete DESC keywords.
369         * src/devices/grolj4/grolj4.man: Documenting additional DESC
370         keywords.
372 2000-02-26  Werner LEMBERG  <wl@gnu.org>
374         * src/preproc/grn/grn.man: Added info about the gremlin file format
375         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
377 2000-02-25  Werner LEMBERG  <wl@gnu.org>
379         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
380         friends to be non-integer.
382         * src/preproc/grn/grn.man: Document it.
384         * doc/groff.texinfo: Further checking/updating.  Adding more index
385         entries.
387 2000-02-24  Werner LEMBERG  <wl@gnu.org>
389         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
390         line thicknesses to be integer multiples of this value.
392         * src/preproc/grn/grn.man: Commenting out the -s option -- the
393         corresponding code doesn't work (yet).
395         * doc/groff.texinfo: Further checking/updating.  Adding more index
396         entries.
398 2000-02-23  Werner LEMBERG  <wl@gnu.org>
400         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
401         specify line thickness instead of base units.  The new default
402         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
403         thick lines respectively.
405         Removed unused variable `prevval'.
407         * src/preproc/grn/grn.man: Updated.
409 2000-02-22  Werner LEMBERG  <wl@gnu.org>
411         * src/preproc/grn/main.cc: Slight formatting.
413         * src/roff/groff/groff.man: Formatting fix.
414         * src/preproc/grn/grn.man: Ditto.
416         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
418         * doc/groff.texinfo: Further checking/updating.
420 2000-02-21  Werner LEMBERG  <wl@gnu.org>
422         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
424         * test-groff: Added grn subdir to path.
426         * doc/groff.texinfo: Some restructing and other small improvements.
428         * src/roff/groff/groff.cc (help): Fixed info string.
430 2000-02-20  Werner LEMBERG  <wl@gnu.org>
432         * doc/meref.me: Fix description of .GS request.
434         * src/roff/troff/troff.man: Fixing typo.
436         Adding the `grn' preprocessor for gremlin graphic files.
438         * src/preproc/grn/*: This is the Berkeley distribution written by
439         David Slattengren and Barry Roitblat, adapted to groff by Daniel
440         Senderowicz and Werner Lemberg.
442         * doc/grnexampl.{me,g}: A sample for grn.
444         * Makefile.in: Added subdirectory entry for grn.
446         * src/roff/groff/groff.cc: Added support for grn.  It can be now
447         called with the switch `-g'.
449         * src/roff/groff/groff.man: Updated.
451         * src/roff/grog/grog.{man,pl,sh}: Updated.
453         * NEWS: Updated.
455 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
457         * src/include/lib.h: Added xtmptemplate and made xtmpfile
458         parametrically polymorphic.
460         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
461         and the alterations to xtmpfile.
462         xtmpfile can be requested to return the filename created
463         and asked not to unlink the temp file.  The default behaviour
464         if parameters are absent is exactly the same as before.
466 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
468         A new request `length' is available which returns the length of a
469         string in a number register:
471         * src/roff/troff/input.cc (length_macro): Implement it.
472         * src/roff/troff/input.cc (init_input_requests): Register it.
474 2000-02-11  Werner LEMBERG  <wl@gnu.org>
476         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
477         of the `substring' request.
479         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
480         request.
482         * src/roff/troff/TODO, NEWS: Updated.
484 2000-02-09  Werner LEMBERG  <wl@gnu.org>
486         * src/roff/groff/groff.man: Added an example.
488 2000-02-06  Werner LEMBERG  <wl@gnu.org>
490         I've considerably modified the directory structure of the
491         distribution to get a more vertical layout.  For example, the number
492         of top level directories has been reduced from 42 to 6.
494         As a consequence, many changes, especially to the makefiles, were
495         necessary:
497         * The makefile variables `top_builddir' and `top_srcdir' have been
498         introduced.  Virtually all relative paths have been replaced with
499         absolute ones using these two variables.
501         * Dependencies (in the files `Makefile.dep') are no longer part of
502         the distribution.  Instead, they are created during a `make install'
503         in the build directory.
505         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
506         make `top_srcdir' and `top_builddir' absolute.
508         Some other changes:
510         * Man pages no depend on the files `VERSION' and `REVISION'.
512         * The added shell script `mkinstalldirs' will replace `mkdir' in
513         almost all cases.
515         * VERSION: Version number increased to 1.16.
517 2000-02-04  Werner LEMBERG  <wl@gnu.org>
519         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
521         * Makefile.in: Removed $(tmac_m) since it is no longer needed
522         (after an update of the mm stuff).
524         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
526 2000-02-03  Werner LEMBERG  <wl@gnu.org>
528         The .psbb request will now also accept Mac PS images (i.e. using LF
529         as the EOL character).
531         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
532         (with slight modifications).
533         * troff/input.cc (do_ps_file): Use it.
535         * test-groff: Add grohtml and grolj4 output devices to PATH.
537 2000-01-30  Werner LEMBERG  <wl@gnu.org>
539         * NEWS, MORE.STUFF: Updated.
541 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
543         Add the `srand' command to pic.
545         * pic/lex.cc, pic/pic.y: Implement it.
546         * pic/pic.man: Document it.
547         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
549 2000-01-30  Werner LEMBERG  <wl@gnu.org>
551         Add a new request `.psbb'.  This does exactly what the external
552         program psbb did.  It scans a PostScript image file for a
553         %%BoundingBox comment and extracts the bounding box values (in
554         PostScript units) which are then stored in the four new (read-only)
555         number registers `llx', `lly', `urx', and `ury'.
557         This will allow the usage of the .PSPIC macro without worrying
558         about unsafe behaviour of groff, i.e., it will work without the
559         `-U' switch of groff.
561         * troff/input.cc: Implement it.
562         * tmac/tmac.pspic: Use it.
563         * troff/troff.man, grops/grops.man, NEWS: Document it.
564         * psbb/*, Makefile.in: Remove it since it is no longer needed.
566         This is bloody C code simply adapted from psbb.c!  Any improvements
567         welcome.
569 2000-01-29  Werner LEMBERG  <wl@gnu.org>
571         * man/groff_font.man: Minor clarifications.
573         * NEWS: Updated.
575 2000-01-28  Werner LEMBERG  <wl@gnu.org>
577         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
579 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
581         * man/groff_font.man: Brought up to date regarding tcommand
582         extensions.
583         * libgroff/font.cc: Handle everything after `--' as a comment
584         in the font files.
585         * devps/*: Added comment delimiter inside devps font files.
587 2000-01-28  Werner LEMBERG  <wl@gnu.org>
589         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
590         \fC...\fP (which now works as expected).
592         * troff/troff.man: Fix typo.
594 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
596         Completed the pass_filenames implementation in troff.
598         * libdriver/input.cc: Will read the new `F' tcommand.
599         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
600         * troff/input.cc: Use it.
602 2000-01-26  Werner LEMBERG  <wl@gnu.org>
604         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
605         font will now be updated even if an invalid font is selected.
607 2000-01-24  Werner LEMBERG  <wl@gnu.org>
609         * doc/homepage.ms: Updated for new tmac.arkup.
611         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
613         * tmac/tmac.arkup: Cleanup.
615         Added `\&' to .HTML macro to `leave vertical mode', so to say.
617         Removed obsolete .LINK macro completely.
619         The macros .URL, .FTP, and .MAILTO now accept a third argument which
620         will be immediately appended to the second argument (to be used with
621         punctuation, for example).
623         Disabled .CDFTP macro temporarily for security reasons.
625         * tmac/groff_markup.man: Complete revision for latest changes in
626         tmac.arkup -- note that it does not yet format correctly with
627         grohtml :-(
629 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
631         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
632         * devutf8/R.proto: Add mappings for wp, lh, rh.
633         * devutf8/NOTES: Updated.
635 2000-01-23  Werner LEMBERG  <wl@gnu.org>
637         * doc/groff.texinfo: Updated version/copyright info.
639 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
641         Added support for two new directives in device descriptions:
642         `pass_filenames' (to pass the input file name to the output device)
643         and `use_charnames_in_special' (to support e.g. accented characters
644         in the `X' request).
646         * include/font.h, troff/charinfo.h: Declare it.
648         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
650         * devhtml/DESC: Use it.
652         * troff/input.cc: New function encoded_char.
654         * troff/token.h: Add test for `specialness'.
656 2000-01-21  Werner LEMBERG  <wl@gnu.org>
658         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
659         mistake from the list of files to be installed.
661 2000-01-18  Werner LEMBERG  <wl@gnu.org>
663         * README: Added info how to apply patches.
665 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
667         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
669 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
671         * troff/input.cc: Add support for troffrc-end.
673         * tbl/main.cc: Altered to issue table-start and table-end special
674         characters if using the html device.
676         * devhtml/*: Modified font files to incorporate html encoding of
677         characters.
679         * tmac/groff_markup.man: New file documenting tmac.arkup.
681         * tmac/troffrc-end: New file.  This is invoked after all user
682         specified macros.  Currently used by the html device to include
683         tmac.html.  Thus no need for users to specify -mhtml anymore.
685         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
686         (MAN7): Add groff_markup.man.
688         * tmac/tmac.an, tmac/tmac.html: Small html updates.
690         * tmac/troffrc: tmac.arkup will now be called for the html device.
692         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
693         extra device specific information about fonts.
695         * doc/homepage.ms: New file.  It is an example how an HTML home page
696         could look like with grohtml.
698         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
700 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
702         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
703         of Im, Re.
705         * devutf8/NOTES: Updated.
707 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
709         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
710         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
711         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
712         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
713         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
714         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
715         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
716         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
717         warnings.
719         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
721 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
723         grolj4: Paper size will be searched case-insensitively.
725         * include/lib.h: Add check for strcasecmp().
726         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
727         * configure.in: Check for strcasecmp().
729 2000-01-11  Werner LEMBERG  <wl@gnu.org>
731         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
732         `REVISION'.
734 2000-01-10  Werner LEMBERG  <wl@gnu.org>
736         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
737         revision scheme.
739         Add a new read-only register, `.Y', which contains the groff
740         revision.
742         * troff/input.cc (init_input_requests): Define it.
743         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
744         * doc/groff.texinfo, troff/troff.man: Document it.
746         * libgroff/Makefile.sub (version.cc): Add definition of
747         `Version_string[]', consisting of `<major>.<minor>.<revision>'
748         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
749         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
750         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
751         troff/input.cc, pfbtops/pfbtops.c: Use it.
753 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
755         Add a revision scheme to the groff package.
757         * REVISION: New file.
758         * libgroff/Makefile.sub (version.cc): Use it to define
759         `revision_string[]'.
760         * grops/psrm.cc: Use revision_string (converted to an unsigned
761         integer) in constructor of resource_manager.
763 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
765         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
766         files.
767         * Makefile.in (DEVDIRS): Add devutf8.
768         * grotty/tty.cc: Include device.h.
769         (glyph): Change type of `code' to `unsigned int'.
770         (tty_printer): New field is_utf8.  Constructor takes device argument.
771         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
772         (tty_printer::add_char): Change type of first arg to `unsigned int'.
773         (tty_printer::put_char): New function.
774         (tty_printer::end_page): Use put_char() instead of ::putchar().
775         (make_printer): Pass device to tty_printer constructor.
776         * nroff.sh: Determine default device by calling 'locale'.  As a
777         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
778         Recognize UTF-8 locales.
779         * tmac/eqnrc: Recognize utf8 like latin1.
780         * tmac/troffrc: Device utf8 needs tmac.tty.
782 2000-01-07  Werner LEMBERG  <wl@gnu.org>
784         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
786 2000-01-07  Paul Eggert  <eggert@twinsun.com>
788         Add a new predefined writeable number register, `year',
789         which contains the current year.
791         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
792         * tmac/tmac.s: Use it.
793         * troff/input.cc (init_registers): Initialize it.
795 2000-01-06  Werner LEMBERG  <wl@gnu.org>
797         * PROBLEMS: Fixed typo.
799 2000-01-04  Paul Eggert  <eggert@twinsun.com>
801         * PROBLEMS: Add Y2k advice for the yr number register.
803 2000-01-03  Paul Eggert  <eggert@twinsun.com>
805         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
807 2000-01-02  Werner LEMBERG  <wl@gnu.org>
809         * tmac/tmac.arkup: Slight modification of macros to provide better
810         appearance for non-HTML formats.
812 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
814         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
815         does not automatically translate to malloc(n) on all OSes
816         (e.g., SunOS) so do it explicitly.  Also, check the returned
817         value.
819 2000-01-01  Werner LEMBERG  <wl@gnu.org>
821         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
823         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
824         expects this variable
826 2000-01-01  Gaius Mulley <gaius@glam.ac.uk>
828         * doc/Makefile: Added instructions to create HTML and text
829         versions of some files.
831 1999-12-31  Werner LEMBERG  <wl@gnu.org>
833         * Updated INSTALL.gen.
835         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
836         better resp. correctly with non-HTML devices.
838 Version 1.15 released
839 =====================
841 1999-12-28  Werner LEMBERG  <wl@gnu.org>
843         * NEWS, VERSION: Changed to 1.15
845 1999-12-27  Paul Eggert  <eggert@twinsun.com>
847         * nroff/nroff.man: -S is safer, not safe.
849         * groff/groff.cc (main): Use `safer', not `safe', in variable
850         names.  This does not change the behavior.
852         * troff/input.cc (main): Likewise.
854         * nroff/nroff.sh: Likewise.
856         * troff/input.cc (prepend_string): New function.
857         (main): Prepend -msafer, so that we check macro libraries for
858         safety.
860         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
862 Version 1.14 released
863 =====================
865 1999-12-26  Werner LEMBERG  <wl@gnu.org>
867         * NEWS, VERSION: Changed to 1.14.
869 1999-12-24  Werner LEMBERG  <wl@gnu.org>
871         * refer/refer.cc: Fixing the last fix.
873 Version 1.13 released
874 =====================
876 1999-12-23  Werner LEMBERG  <wl@gnu.org>
878         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
879         number disappear.
881         * NEWS: Updated.
883         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
885         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
886         document conventions, the version number must be a real.
888 Version 1.12.1 released
889 =======================
891 1999-12-22  Werner LEMBERG  <wl@gnu.org>
893         * VERSION: Changed to 1.12.1.
895 1999-12-22  Alan Rooks  <arooks@istar.ca>
897         * refer/refer.cc (do_file): Slight modification to satisfy the
898         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
899         UnixWare 7.1.
901 1999-12-20  Werner LEMBERG  <wl@gnu.org>
903         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
904         notices.
906         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
907         list of unsafe requests.
909         * pic/pic.man: Fixed a typo.
911         * man/groff_out.man: Fixed a typo.
913 1999-12-18  Werner LEMBERG  <wl@gnu.org>
915         * Makefile.in: Doc fixes.
917 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
919         * groff/groff.cc: Missing `U' option added to getopt().
921         * troff/troff.man: Missing `U' option added to synopsis.
923 Version 1.12 released
924 =====================
926 1999-12-14  Werner LEMBERG  <wl@gnu.org>
928         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
929         to the synopsis.
931         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
932         with the more appropriate terms `safer' and `unsafe'.
934         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
935         sys_nerr and sys_errlist[].
937         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
939         * pic/pic.y, pic/pic.cc: Added check for fmod().
941 1999-12-13  Werner LEMBERG  <wl@gnu.org>
943         * VERSION: Changed to 1.12.
945         Here some patches from various sources; most of them taken from
946         the Debian distribution.
948         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
949         tmac/Makefile.sub: New files copied directly from the NetBSD
950         distribution.  Probably, some additional adaptation later on is
951         necessary...
953         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
954         of unsafe requests.
956         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
957         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
958         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
959         (`-S') is now the default.
961         * README, NEWS: Updated.
963 1999-12-09  Werner LEMBERG  <wl@gnu.org>
965         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
967         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
969 1999-12-06  Werner LEMBERG  <wl@gnu.org>
971         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
972         grief than relief today.  Additionally, it is against the GNU
973         coding standards.
975         * configure: Recreated.
977 1999-12-05  Werner LEMBERG  <wl@gnu.org>
979         * configure.in: Added GROFF_LIBM.
981         * configure: Recreated.
983         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
984         necessary.
986         * Makefile.in: Added definition of $(LIBM).
988         * Makefile.comm (LIBM): Removed.
990         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
992 1999-12-03  Gaius Mulley <gaius@glam.ac.uk>
994         * doc/Makefile: Added rule for generation pic.html.
996         (clean): Files produced by grohtml will be removed also.
998         * doc/pic.ms: Small fix.
1000         * tmac/tmac.html: Fixed suppression of headers.
1002 1999-11-16  Gaius Mulley <gaius@glam.ac.uk>
1004         * tmac/tmac.html: Fixing horizontal arrows.
1006         Turning off hyphenation.
1008         * tmac/tmac.an: Improved support for grohtml; better indentation,
1009         no footers/headers.
1011 1999-10-31  Gaius Mulley <gaius@glam.ac.uk>
1013         * tmac/tmac.arkup: Added CDFTP macro
1015         * tmac/tmac.html: All headers are turned off for ms, me, and mm
1016         macros.
1018         * tmac/troffrc: Some additions for HTML stuff.
1020 1999-10-06  Gaius Mulley <gaius@glam.ac.uk>
1022         * tmac/tmac.html: Small changes.
1024 1999-09-26  Werner LEMBERG  <wl@gnu.org>
1026         * doc/groff.texinfo: Minor fixes.
1028 1999-09-26  Gaius Mulley <gaius@glam.ac.uk>
1030         * devhtml/TR: Changed spacewidth to 3.
1032         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1034         * tmac/tmac.html: Moved markup macros to tmap.arkup.
1036         * tmac/tmac.arkup: New file.
1038         * grohtml/ChangeLog: New file.
1040 1999-09-16  Werner LEMBERG  <wl@gnu.org>
1042         * doc/groff.texinfo (Common Features): Added Copying chapter.
1043         Changed format to @smallbook.
1045 1999-09-15  Werner LEMBERG  <wl@gnu.org>
1047         * NEWS: Added info about groff.texinfo.
1049         * doc/groff.texinfo: Will now compile (using texi2dvi) without
1050         warning messages.
1052 1999-09-14  Werner LEMBERG  <wl@gnu.org>
1054         * groff/groff.man: More updates.
1056 1999-09-13  Werner LEMBERG  <wl@gnu.org>
1058         * doc/groff.texinfo: New file.  This manual is still very
1059         rudimentary.  It has been originally contributed by Trent
1060         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1061         additions by me.
1063         * INSTALL: Added information about the `doc' subdir
1065         * troff/troff.man: Minor fixes.
1067         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1068         reordered options.
1070         * troff/input.cc (usage): Added missing `-ffam' to usage message.
1072         * Makefile.in (dist): groff-$(version).tar.gz must be removed
1073         also, otherwise it is included itself in another call of `make
1074         dist'.
1076         * groff/groff.cc (synopsis): Removed superfluous space.
1078         * PROJECTS, PROBLEMS, NEWS: Updated.
1080         * xditview/Makefile: Removed.
1082         * VERSION: Updated to 1.12beta.
1084         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
1086         * README: Updated: Included documentation about CVS repository,
1087         mailing lists, and daily snapshots.
1089         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1091 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1093         * tmac/tmac.an: If the tag didn't fit into the space that the
1094         macro `TP' specifies, the rest of the tag went into the space for
1095         the next line.
1097 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
1099         * grolj4/lj4.cc: Added duplex printing (option `-d').
1101         * grolj4/grolj4.man: Document duplex printing.
1103 1999-09-12  Werner LEMBERG  <wl@gnu.org>
1105         * doc/Makefile (pic.ps): Fixed rule which caused problems with
1106         non-GNUish sed programs.
1108         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1109         definition.
1111         * configure.in (LIBS): Added `-lc'
1113         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1115         * pic/tex.cc (solid_arc): Casting M_PI to double.
1117         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1119         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1120         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1121         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1123         * groff/groff_man.man: New file.  This manual page was originally
1124         written for the Debian GNU/Linux system by Susan G. Kleinmann
1125         <sgk@debian.org>.
1127         * eqn/list.cc (list_box::compute_metrics,
1128         list_box::compute_sublist_width): Removed variable declaration to
1129         avoid shadowing warnings.
1131         * grops/psrm.cc (resource_manager::process_file): Ditto.
1133         * tfmtodit/tfmtodit.cc (main): Ditto.
1135         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1136         to avoid shadowing warnings.
1138         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1139         shadowing loop variable.
1141         * groff/groff.man, troff/troff.man: Added doc about grohtml.
1143 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
1145         New grohtml frontend to convert groff input to html.
1147         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1149         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1151         * tmac/eqnrc: Added html device.
1153         * tmac/tmac.html: New file.
1155         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1156         (troff_output::start_picture, troff_output::finish_picture),
1157         tbl/main.cc (process_input_file):
1158         Surrounded output with `graphics_start' and `graphics_end' so that
1159         the html driver can identify non-text portions.
1161         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1162         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1163         grotty/tty.ps (tty_printer::set_char): Additional parameter
1164         `name'.
1166         * include/printer.h: Class printer: New function
1167         set_char_and_width; new variables (is_char_named, is_named_set,
1168         named_command, named_char_s, named_char_n) to hold information
1169         about named characters -- needed by the html driver.
1171         * libdriver/printer.cc (printer::set_ascii_char,
1172         printer::set_special_char): Use set_char_and_width.
1174         * devhtml/*: New device files for html driver.
1176         * grohtml/*: New driver grohtml.
1178 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
1180         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1181         default strings.
1183 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
1185         * libgroff/string.cc (search): Small fix to test against NULL
1186         pointer.
1188 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
1190         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1191         \b'abc') were stacked in reverse order when processed in a
1192         diversion.
1194         * troff/node.h: Added `*last' to struct `node' to make the above
1195         fix work.
1197         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1198         The default scale for the 'f' and 't' graphics functions were 'm'
1199         rather than 'u' (i.e., no scaling).
1201 1999-09-11  Peter Miller  <peterm@jna.com.au>
1203         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1204         do_file), soelim/soelim.man: Added `-I file' option to soelim,
1205         defining include paths.
1207         * soelim/soelim.cc (include_path_append): New function.
1209 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
1211         * tbl/main.cc (process_options): Unix (at least Documenter's
1212         Workbench) tbl allows arbitrary non-alpha characters between
1213         options.
1215 1999-09-11  Paul Eggert  <eggert@twinsun.com>
1217         Y2k fixes.  Don't assume that the current year precedes 2000.
1219         * doc/meref.me: Add \n(y2, \n(y4.
1221         * tmac/doc-common (Yr): New number register.
1222         (Dd): Don't assume current year precedes 2000.
1224         * tmac/tmac.e (td): Likewise.
1225         (y2, y4): New number registers.
1227         * pic/pic.man: Update reference for pic paper to May, 1991
1228         version.
1230 1999-09-11  Werner LEMBERG  <wl@gnu.org>
1232         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1233         Removed quotation marks which prevented correct expansion of
1234         $(tmac_wrap).
1236         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1238 1999-09-10  Werner LEMBERG  <wl@gnu.org>
1240         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1241         `config.cache'.
1243         * Removed configure.old.
1245 1999-08-31  Werner LEMBERG  <wl@gnu.org>
1247         * VERSION: Updated to 1.11.1
1249 1999-05-27  Werner LEMBERG  <wl@gnu.org>
1251         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1253         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1254         added quotations around $(tmac_wrap) to avoid syntax error if
1255         variable is empty.
1257         * configure: Newly generated using autoconf 2.13.
1259         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1261 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
1263         * README, PROJECTS, NEWS, INSTALL, VERSION, 
1264         doc/Makefile. doc/pic.ms, groff/groff.man:
1265         Prepare for 1.11 release.  No code changes.
1266         Documentation for pic added (doc/pic.ms).
1268 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
1270         * Version 1.10 released.
1272 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
1274         * afmtodit/afmtodit.pl: Avoid comment on first line.
1276 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
1278         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1279         * configure.in: Call it.
1281         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1282         (distfiles): Doesn't depend on config.log or config.cache.
1284 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
1286         * grog/grog.sh: Use print "" rather than print in END rule.
1288 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
1290         * tbl/main.cc (process_data): Don't give error for excess data
1291         entries that are comments.
1293 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
1295         * tbl/main.cc (process_data): Fix case where new for-scope rules
1296         silently change meaning of code.
1298 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
1300         * troff/env.cc (hyphenate): Loop over all consecutive sequences
1301         of non-zero hyphenation codes.
1303 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
1305         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1307 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
1309         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1311 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
1313         * tmac/tmac.andoc: Make it work in compatibility mode.
1315         * refer/token.h (token_info::is_range_sep): New function.
1316         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1317         * refer/ref.cc (reference::output): More sophisticated check for
1318         multiple pages.
1320         * devps/prologue.ps (MANUAL): New procedure.
1321         * grops/ps.cc (main): New -m option.
1322         (usage): Include -m.
1323         (ps_printer::~ps_printer): Implement -m.
1325         * aclocal.m4 (GROFF_G): New macro.
1326         * configure.in: Call it.
1327         * Makefile.in (g): Provided by configure.
1329         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1331         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
1332         translations.
1334         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1335         (tmac_m, tmac_s): Deleted.
1336         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1337         tmac_s_prefix): New variables.
1338         (MDEFINES): Change accordingly.
1339         * Makefile.comm (.man.n): Use new TMAC_* variables.
1340         * configure.in (GROFF_TMAC): Call.
1341         * aclocal.m4 (GROFF_TMAC): Define.
1342         * tmac/Makefile.sub (stamp_wrap): New target.
1343         (install_data, uninstall_sub): Handle macro wrapping.
1345 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
1347         * tbl/main.cc (main): Ignore -T option.
1349 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
1351         * devlj4/generate/special.map: Add definition of \(nb.
1353         * tmac/tmac.dvi: Add definition of \(nb.
1355         * troff/dictionary.c (dictionary::dictionary): association::v gets
1356         initialized by association::association.
1358         * tmac/Makefile.sub: Avoid using temporary files when installing.
1360         * troff/env.cc (environment::set_font): Make bad font number a
1361         warning.
1363         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1365         * Makefile.in (datadir): Use share rather than lib.
1367         * groff/groff.cc (basename): Rename to xbasename.
1369 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
1371         * Makefile (CCLIBS): Don't use.
1372         * Makefile.ccpg: Likewise.
1374         * acgroff.m4: Rename to...
1375         * aclocal.m4: Modify extensively for autoconf 2.
1376         * configure.in: Likewise.
1377         * Makefile.in: Likewise.
1379         * groff/pipeline.c (const): Declare as empty if __STDC__ not
1380         defined.
1381         (xstrsignal): Check for definition of NSIG. Conditionalize
1382         on SYS_SIGLIST_DECLARED.  Make return type const.
1384 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
1386         * troff/input.cc (interpolate_macro): Rephrase missing space
1387         warning.
1389 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1391         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1392         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1393         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1394         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1395         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1396         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1397         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1398         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1399         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1400         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1401         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1402         Fix 'for' scoping.
1404 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
1406         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1407         string_iterator.
1408         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1409         file.
1410         (macro_iterator::macro_iterator): Add additional argument.
1412 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
1414         * troff/div.cc (vertical_size::vertical_size): In place of integer
1415         specifying line spacing use cunits specifying post vertical
1416         space.
1417         (macro_diversion::output, top_level_diversion::output): Likewise.
1418         * troff/div.h: Change declarations accordingly.
1419         * troff/env.cc (pending_output_line): Replace ls field by post_vs
1420         field.
1421         (pending_output_line::pending_output_line,
1422         pending_output_line::output, environment::output,
1423         environment::output_line, environment::output_title,
1424         environment::hyphenate_line):  In place of
1425         integer specifying line spacing use cunits specifying post vertical
1426         space.
1427         (environment::environment): Add post_vertical_spacing and
1428         prev_post_vertical_spacing arguments.
1429         (environment::get_post_vertical_spacing): New function.
1430         (environment::total_post_vertical_spacing): New function.
1431         (environment::post_vertical_spacing): New function.
1432         (init_env_requests): Initialize pvs request and .pvs register.
1433         * troff/env.h: Change declarations.
1435 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
1437         * tmac/tmac.pspic: Immediately remove the temporary file.
1439 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
1441         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1442         height is specified.
1444 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
1446         * tbl/table.c (struct vertical rule, class table_entry): Use int
1447         not short for start_row and end_row.
1449 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
1451         * troff/input.cc (trapping_blank_line, blank_line_macro): New
1452         functions.
1453         (diverted_space_node::reread, process_input_stack): Call
1454         trapping_blank_line() rather than blank_line().
1455         (init_input_requests): Bind "blm" to blank_line_macro().
1457         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1459 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
1461         * troff/env.cc (environment::possibly_break_line): Require that
1462         width total excluding width of final space node be greater than
1463         the target text length.
1465 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
1467         * troff/node.cc (kern_pair_node::vertical_extent): New function.
1469 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
1471         * troff/node.cc (charinfo_node): New class.
1472         (glyph_node, composite_node): Derive from charinfo_node.  Change
1473         member functions accordingly.
1475 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
1477         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1479 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
1481         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1483         * devps/generate/textmap (notsubset): Add.
1485         * tmac/tmac.a4: New file.
1487 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
1489         * pic/main.cc (had_parse_error): New variable.
1490         (do_picture, do_whole_file): Set had_parse_error if yyparse()
1491         returns non-zero.
1492         (main): Return 1 if had_parse_error is true.
1494 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
1496         * grolj4/lj4.cc (main): Avoid use of strtoul.
1498 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
1500         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1501         iso_8859_1 or $LESSCHARSET is latin1.
1503 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
1505         * hpftodit: New directory.
1506         * Makefile.in (CCPROGDIRS): Add hpftodit.
1507         * devlj4/generate: New directory.
1509 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
1511         * configure.in: Don't use AC_VFORK.
1512         * groff/pipeline.c (run_pipeline): Use fork() always.
1514 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
1516         * grops/ps.cc (main): Use %1 not %s in error message for -w.
1518         * Makefile.in (CCPROGDIRS): Add grolj4.
1519         (DEVDIRS): Add devlj4.
1520         * grolj4, devlj4: New directories.
1521         * tmac/troffrc: Handle lj4.
1522         * tmac/tmac.lj4: New file.
1524 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
1526         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1528 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
1530         * troff/input.cc (do_if_request): At end of second string, switch
1531         environments before getting next token.
1533 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
1535         * devps/psstrip.sed: Split rule that strips whitespace on either
1536         side of delimiters.
1538 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
1540         * troff/node.h (font_family::make_definition): Add return value to
1541         declaration.  * troff/symbol.h (symbol::operator==,
1542         symbol::operator!=): Likewise.
1544 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
1546         * groff/groff.cc (main, help, synopsis): Handle -S.
1547         (possible_command::insert_arg): New function.
1549         * tmac/tmac.safer: New file.
1550         * tmac/msafer.man: New file.
1551         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1553 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
1555         * pic/pic.h, pic/main.cc (safer_flag): New variable.
1556         * pic/pic.y (placeless_element): Avoid unsafe operations if
1557         `safer_flag' is set.
1558         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1560 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
1562         * eqn/lex.cc (get_token): Put call to add_context() in block to
1563         work around Sun C++ 4.0 bug.
1565         * include/stringclass.h (operator +): Use ?: instead of `if' to
1566         work around Sun C++ 4.0 bug.
1568 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
1570         * tbl/main.cc (process_format): Accept - as a synonym for the _
1571         key letter.
1573         * libbib/index.cc (minus_one): Don't declare as const.
1575 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
1577         * troff/input.cc (get_char_for_escape_name): Push back a newline.
1579 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
1581         * troff/input.cc (write_macro_request): New function.
1582         (init_input_requests): Bind write_macro_request to writem.
1584 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
1586         * tmac/tmac.s (@EN): Turn filling back on even if there was no
1587         equation.
1589         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1591         * tmac/tmac.s (@TS): Renamed from TS.
1592         (TS): Call LP then TS again.
1593         (cov*ab-init): Alias @TS to TS.
1595         * tmac/tmac.s: Allow QP or RS to initialize.
1597         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
1598         Move initializations of PS and LL here.
1599         (par@init): Don't initialize HY.  Avoid changing environment 0.
1600         (par*env-init): Don't all par@reset.
1602 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
1604         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1606 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
1608         * Makefile.in (MDEFINES): Add LDFLAGS.
1609         (LDFLAGS): Add definition line.
1611 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
1613         * troff/input.cc (get_optional_char): Split off error check into...
1614         (check_missing_character): New function.
1615         * troff/token.h: Declare it.
1616         * troff/env.cc (margin_character): Don't call get_optional_char.
1617         Only call tok.next() after making the node.
1619         * include/lib.h (getopt): Make 2nd argument char *const *.
1621 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
1623         * nroff/conftest.sh: Deleted.
1625 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
1627         * pic/make-dos-dist: Deleted.
1629 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
1631         * devps/psstrip.sed: Strip comments before stripping trailing
1632         white space.
1634 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
1636         * Version 1.09 released.
1638 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
1640         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1642 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
1644         * libgroff/font.cc (font::load_desc): Fix typo in error message.
1646 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
1648         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1649         about returning without a value.
1651         * troff/charinfo.h (charinfo::get_special_translation): Cast
1652         TRANSLATE_NONE to int.
1654         * refer/token.cc (lookup_token, store_token): Remove bogus loop
1655         test.  Fix test so that it works with n unsigned.
1657         * pic/pic.y (defaults_table): Fully bracket initializer.
1658         * pic/lex.cc (lookup_keyword): Likewise.
1659         * eqn/lex.cc (token_table, def_table): Likewise.
1660         * eqn/box.cc (param_table): Likewise.
1661         * troff/input.cc (warning_table): Likewise.
1662         * libgroff/font.cc (table): Likewise.
1663         * grops/ps.cc (ps_printer::special): Likewise.
1664         * grops/psrm.cc (resource_manager::process_file): Likewise.
1665         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1666         * refer/command.cc (command_table): Likewise.
1667         * addftinfo/addftinfo.cc (param_table): Likewise.
1669         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1670         about temp's being unused.
1671         (unused): New function.
1673         * groff/pipeline.cc: Declare c_fatal.
1675         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1676         uchar.
1678         * libbib/index.cc (index_search_item::load): Prevent compiler
1679         warnings about fd_closer's being unused.
1680         (unused): New function.
1682 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
1684         * troff/input.cc (copy_mode_error): Make `prefix' static.
1685         Fix typo.
1687         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1688         defined.
1689         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1690         HAVE_CC_OSFCN_H and modify accordingly.
1692         * troff/input.cc (init_charset_table): radicalex overlaps
1693         horizontally.
1695         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1696         udodo!hans@relay.NL.net).
1697         * groff/configure.in: Call it.
1699         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1700         * groff/configure.in: Call it.
1701         * include/lib.h: Conditionalize declaration of pclose.
1703         * troff/div.cc (last_page_number): New global variable.
1704         (top_level_diversion::begin_page): Exit if we just printed the
1705         last page.
1706         * troff/div.h (last_page_number): Declare it.
1707         * troff/input.cc (parse_output_page_list): Set last_page_number.
1709         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1710         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1711         tmac/tmac.X: Likewise.
1712         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1713         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1715 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
1717         * tmac/doc-ditroff (hK): Remove groff specific code which
1718         prevented page-breaks between separate manual entries.  If this is
1719         the first page, don't set the page number to 1.
1721         * acgroff.m4 (GROFF_POSIX): New macro.
1722         * configure.in: Use it.
1724         * troff/node.cc (class real_output_file,
1725         real_output_file::real_output_file,
1726         real_output_file::~real_output_file): Conditionalize use of
1727         popen/pclose on POPEN_MISSING.
1728         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1729         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1730         (pipe_source): Similarily.
1732         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1734         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1735         presence of declarations by trying to compile example with
1736         conflicting declarations.  (gcc only gives a warning for missing
1737         declarations.)
1739 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
1741         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1742         (from Ulrich Lauther).
1744 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
1746         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1748 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
1750         * indxbib/indxbib.cc (write_hash_table): Add code for case where
1751         pointers and ints have different sizes.
1753 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
1755         * tmac/tmac.s (par*env-init): Call par@reset.
1757 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
1759         * tmac/tmac.s (@IP): Switch to a new environment when diverting
1760         tag.
1761         (par*push-tag-env, par*pop-tag-env): New macros.
1763 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
1765         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1766         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
1768         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1769         comment.  Include <time.h>.
1771 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
1773         * grops/ps.cc (is_small_h, is_small_v): Deleted.
1774         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1775         lines.
1777 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
1779         * troff/input.cc (read_request): Only print a prompt if reading
1780         from the terminal.  Also clearerr on EOF if reading from the
1781         terminal.  Declare isatty.
1783 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
1785         * refer/label.y: Rename map_t to map_func and extractor_t to
1786         extractor_func.
1788 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
1790         * include/assert.h: Don't use volatile.
1791         * libgroff/assert.cc: Likewise.
1793 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
1795         * troff/input.cc (abort_request): Look at character in tok before
1796         calling get_copy().
1798 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
1800         * troff/troff.h (NO_RETURN): Deleted.
1801         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
1802         * troff/input.cc (exit_troff): Likewise
1804         * Makefile.in: Remove `Making ...' messages since GNU make now
1805         gives these. 
1807         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1809 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
1811         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1812         to constant 1 inch.
1814 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
1816         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1818 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
1820         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1821         MARK_REG if there was no left delimiter.
1823 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
1825         * pic/troff.cc (troff_output::text): Set line thickness to
1826         relative before outputting text.
1828         * tmac/tmac.e (@k): Don't zero ?T.
1829         ((z): Likewise.
1831 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
1833         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1835 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
1837         * troff/input.cc (decode_args): Warn about unquoted tabs (from
1838         Paul Eggert).
1840 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
1842         * troff/input.cc (ignoring): New variable.
1843         (ignore): Set ignoring during call to do_define_macro.
1844         (do_define_macro): Clear ignoring before interpolating terminating
1845         macro.
1846         (copy_mode_error): New function.
1847         (get_char_for_escape_name, read_long_escape_name,
1848         interpolate_arg): Use copy_mode_error.
1849         (warning_table): Add WARN_IG.
1850         * troff/troff.h (WARN_IG): Declare.
1851         (WARN_TOTAL): Change accordingly.
1853         * groff/pipeline.c (strsignal): Rename to xstrsignal.
1854         * groff/groff.cc (strsignal): Delete declaration.
1856 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
1858         * troff/div.cc (page_offset): Use 'm' as default scaling.
1860 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
1862         * nroff/nroff.sh: Ignore -u.
1864 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
1866         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1868 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
1870         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1871         drawing box.
1872         (B2): With -Tascii, leave additional vertical space before
1873         and after. Ensure that the left and right indent is restored to
1874         what it was even if the point size changes.  Don't call
1875         par@finish. Change the indent, line length and title length
1876         directly.  With -Tascii, make the width of the box 1n less.
1877         (B1): Remember 1n at the current point size.  Don't call
1878         par@reset.  Change the indent, line length and title length
1879         directly.  Ensure that the temporary indent is preserved.
1880         (par*box-mark-top): Turn off no spacing mode.
1882 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
1884         * Makefile.in (dist): Use .gz suffix.
1886 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
1888         * troff/input.cc (main): Add return 0.
1889         * pic/main.cc (main): Use return instead of exit.
1890         * tbl/main.cc (main): Likewise.
1891         * eqn/main.cc (main): Likewise.
1892         * grops/ps.cc (main): Likewise.
1893         * grotty/tty.cc (main): Likewise.
1894         * groff/groff.cc (main): Likewise.
1895         * grodvi/dvi.cc (main): Likewise.
1896         * refer/refer.cc (main): Likewise.
1897         * indxbib/indxbib.cc (main): Likewise.
1898         * lkbib/lkbib.cc (main): Likewise.
1899         * soelim/soelim.cc (main): Likewise.
1900         * addftinfo/addftinfo.cc (main): Likewise.
1901         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1902         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1904         * troff/token.h (process_input_stack): Don't declare as static.
1905         * troff/input.cc: Likewise.
1907         * troff/node.c (invalidate_fontno): Make it a static member of
1908         class font_family.  Change callers.
1909         * troff/node.c: Change declaration.
1911         * tbl/main.cc (struct input_entry_format): Add explicit public
1912         specifier.
1913         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1914         struct double_hline_stuff): Likewise.
1915         * tbl/table.h (struct entry_format): Likewise.
1916         * pic/object.h (struct saved_state): Likewise.
1918         * include/stringclass.h: Add forward declarations of friend
1919         functions that are later declared as inline.  Don't include inline
1920         specifier in friend declaration.
1922         * libgroff/lib.h: Declare popen and pclose.
1923         * acgroff.m4 (GROFF_POPEN): New macro.
1924         * configure.in: Call it.
1926         * include/lib.h (PI): New constant. Undef first if necessary.
1927         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1928         * grops/ps.cc (degrees, radians): Likewise.
1929         * libgroff/font.cc (font::get_skew): Likewise.
1931         * grops/ps.cc (is_ascii): New function.
1932         (ps_output::put_string): Use is_ascii.  Use csprint rather than
1933         isprint.
1934         (ps_printer::define_encoding): Use csspace.
1935         * libgroff/strtol.c (ISASCII): New macro.
1936         (strtol): Cast arguments to is*() and tolower() to unsigned char.
1937         Use ISASCII rather than isascii.
1938         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1939         * libgroff/cset.cc: Likewise.
1940         * libdriver/input.cc: Include cset.h.
1941         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1942         than isdigit().
1944         * refer/refer.cc (main): Use %ld rather than %d for longs.
1946         * libbib/index.cc (index_search_item_iterator::get_tag): Use
1947         S_ISREG macro.
1949         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1951 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
1953         * troff/input.cc (hyphenation_code): Skip white space between
1954         char/code pairs.
1956 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
1958         * tbl/table.h (table::entry_list_tailp): New member.
1959         (table::table): Initialize it.
1960         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1961         behaviour.
1963 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
1965         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1966         with negative horizontal positions. Remove casts of glyph::hpos to
1967         int.
1968         (USHRT_MAX): Delete definition.
1969         (SHRT_MAX, SHRT_MIN): New definitions.
1970         (glyph::hpos): Change type to short.
1971         (tty_printer::end_page): Output multiple backspaces if necessary.
1972          Remove casts of glyph::hpos to int.
1973         
1974 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
1976         * tmac/tmac.s (@RT): New definition.
1978 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
1980         * refer/refer.cc (do_file): Make sure current_filename is set when
1981         filename is "-".
1983         * pic/common.cc (common_output::dot_line): Handle zero length
1984         lines.
1986 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
1988         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1989         (par@init): Initialize \n[HY].
1991 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
1993         * troff/dictionary.cc (dictionary::remove): Continue when
1994         r < j < i.
1996 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
1998         * Makefile.com (.y.cc): Avoid ending up with two versions of
1999         $(YTABH).
2001 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
2003         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2004         (\(,C): Likewise.  Also fix typo.
2006 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
2008         * lib.h: Delete extraneous semi-colon.
2010         * Add pso request: `so' from a pipe.
2011         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2012         (file_iterator::close): New function.
2013         (file_iterator::~file_iterator, file_iterator::next_file): Use
2014         file_iterator::close.
2015         (file_iterator::backtrace): Say `process' rather than `file' when
2016         the stream is popened.
2017         (pipe_source): New function.
2018         (init_input_requests): Bind ".pso" to pipe_source.
2020 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
2022         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2024         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
2025         digits in lower case.
2027 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
2029         * Version 1.08 released.
2031         * Makefile.in (dist): Insert || true after ln -s commands that
2032         might fail.
2034         * mm: Update to mm 1.16.
2036         * acgroff.m4 (GROFF_CSH_HACK): New macro.
2037         * configure.in: Call GROFF_CSH_HACK.  Substitute for
2038         SH_SCRIPT_SED_CMD.
2039         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
2040         MDEFINES.
2041         * nroff/Makefile.sub (nroff): New target.
2042         (install_data): Install nroff.
2043         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2044         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2046 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
2048         * eqn/Makefile.sub (neqn): Add chmod +x.
2050         * grog/Makefile.sub (grog): Remove spurious semi-colon.
2052 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
2054         * troff/input.cc (string_iterator::string_iterator()): Initialize
2055         lineno and count.
2057 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
2059         * troff/div.cc (macro_diversion::space,
2060         top_level_diversion::space): Don't set high_water_mark.
2061         (macro_diversion::output, top_level_diversion::output): Don't
2062         include post line space in high water mark.
2064 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
2066         * eqn/eqn.y: Don't define YYDEBUG.
2067         * pic/pic.y: Likewise.
2069 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
2071         * tmac/tmac.e ([3): Add space after comma following editors.
2072         Change double spaces to single spaces.
2073         ([4): Change double spaces to single spaces.
2075         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2076         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2077         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2078         after %!PS-Adobe- (for Newsprint).
2080         * troff/div.cc (top_level_diversion::begin_page): When
2081         before_first_page is 1, set page_number to 1.
2083 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
2085         * eqn/box.cc (box::top_level): Protect equation with \&.
2087 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
2089         * groff/groff.cc (possible_command::set_name): Delete old name.
2091         * groff/groff.cc (possible_command::~possible_command): Use
2092         a_delete.
2094         * troff/node.cc (troff_output_file::begun_page): New member.
2095         (troff_output_file::troff_output_file): Initialize it.
2096         (troff_output_file::really_begin_page): Only output V command if a
2097         page has been begun.
2099         * pic/pic.y (placeless_element): Delete argument to PRINT after
2100         use.
2102 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
2104         * Make wrapman work.
2105         * troff/div.h (class top_level_diversion): Replace
2106         first_page_begun by before_first_page (with opposite sense).
2107         * Change first_page_begun to before_first_page inverting sense.
2108         * troff/div.cc (class nl_reg): New class.
2109         (init_div_requests): Use class nl_reg for \n(nl.
2110         (top_level_diversion::begin_page): Don't call
2111         output_file::begin_page if before_first_page is 2;
2112         reset before_first_page afterwards.  If have_next_page_number is
2113         false, then always increment page_number.
2114         * tmac/tmac.an: Set traps within TH rather than at the top-level.
2115         Restore compatibility mode after loading, and then disable
2116         compatibility mode in TH.
2118 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
2120         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2121         past last line.
2122         * troff/node.h (output_file::trailer): Declare.
2123         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2124         * troff/node.cc (output_file::trailer): New function.
2125         (troff_output_file::~troff_output_file): Move most code into...
2126         (troff_output_file::trailer): New function.
2127         (class troff_output_file): Delete page_length member. Declare
2128         trailer().
2129         (troff_output_file::really_begin_page): Use current page length
2130         for final V command.
2132         * tbl/main.cc (struct options): New decimal_point_char member.
2133         (options::options): Initialize this.
2134         (process_options): Implement decimalpoint option.
2135         (process_data): Pass decimal_point_char option to table::table.
2136         * tbl/table.h (class table): New decimal_point_char member.
2137         (table::table): Add additional argument.
2138         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2139         second argument specifying decimal point character.  Use this
2140         instead of '.'.
2141         (table::table): Initialize decimal_point_char.
2142         (table::add_entry): Change call to find_dot.
2144         * troff/input.cc (get_copy, token::next): Implement \V.
2145         (interpolate_environment_variable): New function.
2147 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
2149         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2150         * pic/pic.y: Likewise.
2152         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2153         Add casts to int.
2154         * refer/ref.cc (reference::insert_field, reference::delete_field):
2155         Likewise.
2156         * troff/number.cc (parse_term): Likewise.
2158         * acgroff.m4 (GROFF_PROG_YACC): New macro.
2159         * configure.in: Use GROFF_PROG_YACC.
2161         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2162         and g++.
2163         * Makefile.in (OPTIMIZE): New define.
2164         (DEBUG): Empty by default.
2165         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2167         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2168         (GROFF_ARRAY_DELETE): Likewise.
2169         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2171         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2173         * devps/psstrip.sed: Use different delimiter on last line (so that
2174         it works with BSD 4.4 sed.)
2176 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
2178         * devps/psstrip.sed: Delete comments.
2180         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2181         optind, opterr, optarg.
2182         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2183         opterr, optarg.
2185 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
2187         * Makefile.in (check): Dummy target.
2189 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
2191         * Version 1.07 released.
2193         * Integrate mm 1.11.
2195         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2196         where start_col was meant.
2198 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
2200         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2202 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
2204         * troff/input.cc (token::next): Make \z\o'...' and similar things
2205         work.
2207         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2208         constants.
2209         (environment): Add margin_character_flags member.
2210         * env.cc (environment::environment(symbol),
2211         environment::environment(const environment *): Initialize
2212         margin_character_flags.
2213         (margin_character): Rewrite.
2214         (environment::output_line): Add a margin character if
2215         margin_character_flags is non-zero.  Turn off the
2216         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
2217         zero, use margin_character_node without copying and then set
2218         margin_character_node to 0.
2220         * devps/DESC.in: Change minimum size to 1000.
2222 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
2224         * troff/symbol.h (symbol::hash): Change return type to unsigned
2225         long.
2226         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2227         Add casts to int.
2229         * test-groff: Use -r rather than -x.
2231         * grops/psfig.diff: Include in distribution again.
2233 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
2235         * Makefile.in (dist): Use gzip.
2237 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
2239         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2240         unistd.h as well as in stdlib.h.
2241         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2242         defined; otherwise include <sys/types.h> and <unistd.h> if
2243         UNISTD_H_DECLARES_GETOPT is defined.
2245         * configure.in: use builtin(include, ... rather than include(...
2246         * configure: Regenerate with autoconf 1.3.
2248         * libdriver/print.cc (printer::adjust_arc_center): Use new
2249         algorithm suggested by Andy Fyfe.
2251         * libdriver/printer.cc (printer::adjust_arc_center): New function.
2252         * include/printer.h: Declare this.
2253         * grops/ps.cc (ps_printer::draw): Use it.
2254         * grodvi/dvi.cc (dvi_printer::draw): Use it.
2256 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
2258         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2260 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
2262         * eqn/main.cc (main): Handle "eqn -".
2264 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
2266         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2268         * mm: Integrate version 1.08.
2270         * pic/troff.cc (troff_output::finish_picture): Set
2271         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2272         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2273         if it's not defined. Check whether the register is non-zero rather
2274         than whether it's not defined.
2275         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2277         * indxbib/indxbib.cc: Move all signal handling into...
2278         * indxbib/signal.c: New file.
2279         * configure.in: Call AC_RETSIGTYPE.
2281         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2282         * configure.in: Call GROFF_STRUCT_EXCEPTION.
2283         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2285         * troff/input.cc (token::token, token::operator=): Work round SGI
2286         C++ bug.
2287         * pic/object.cc (position::position): Likewise.
2289 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
2291         * pic/pic.h: Move declaration of hypot().
2293 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
2295         * pic/pic.h: Declare hypot().
2297         * pic/pic.h: Define M_PI if necessary.
2299 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
2301         * tmac/tmac.e (re): Add alternative version that doesn't use groff
2302         `.ta T' feature.
2304         * devps/prologue.ps (RE): Handle the possibility that the old font
2305         doesn't have a FontName entry.
2307 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
2309         * tmac/tmac.e (fam): Redefine to set family in environment 2.
2310         (@C): Use @fam not fam.
2312 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
2314         * lookbib/lookbib.cc (main): Change type of start to const char *.
2315         * lkbib/lkbib.cc (main): Likewise.
2317         * eqn/lex.cc (definition::definition): Don't use member
2318         initializer syntax for members of anonymous unions.
2320         * troff/input.cc (input_stack::backtrace): Change type of to const
2321         char *.
2323 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
2325         * include/stringclass.h (class string): Declare inline friend
2326         functions as inline in class declaration.
2327         * troff/hvunits.h (class hunits, class vunits): Likewise.
2328         * include/refid.h (class reference_id): Likewise
2329         * troff/troff.h (points_to_units(units), scale(units, double)):
2330         Delete declarations.
2331         * libdriver/input.cc (get_char): Delete declaration.
2332         * include/lib.h: Change 2nd argument of getopt from const char **
2333         to char **.
2334         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2335         char **' before assigning to a `const char **'.
2336         * tbl/table.cc: Delete extra declarations of prints().
2338 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
2340         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2341         char **' before assigning to a `const char **'.
2343         * libgroff/errarg.cc (errarg::errarg): Don't use member
2344         initializer syntax for members of anonymous unions.
2346 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
2348         * mm: Integrate version 1.07.
2350 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
2352         * troff/input.c (translate2): Rename to
2353         (translate_no_transparent).
2354         (init_input_requests): Rename tr2 to trnt.
2356 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
2358         * troff/charinfo.h (class charinfo): Add transparent_translate field.
2359         (charinfo::set_translation, charinfo::set_special_translation):
2360         Add second argument that specifies value for
2361         transparent_translate.
2362         (charinfo::get_translation, charinfo::get_special_translation):
2363         Add optional second argument that specifies whether translation is
2364         being used for transparent throughput.
2365         * troff/input.cc (charinfo::set_translation,
2366         charinfo::set_special_translation): Handle second argument.
2367         (charinfo::charinfo): Initialize transparent_translate.
2368         (translate): Split main part off into
2369         (do_translate): New function.  Pass argument saying whether
2370         translation applies to transparent throughput.
2371         (translate2): New request.
2372         (init_input_requests): Bind translate2 to `tr2'.
2374 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
2376         * tbl/table.h (class table): Add `nokeep' flag.
2377         * tbl/main.cc (process_options): Handle `nokeep' option.
2378         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2379         table::do_bottom): Don't output keep/release macro definitions or
2380         calls when `nokeep' option has been specified.
2382 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
2384         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2386 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
2388         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2389         block_entry::divert, alphabetic_block_entry::divert): Add extra
2390         argument giving column separation.
2391         (table::compute_widths): Pass column separation to
2392         table_entry::divert().
2393         (block_entry::do_divert): If an entry spans multiple columns and a
2394         minimumum width has been specified for each column, then set the
2395         line length to the sum of the widths (plus possibly the column
2396         separations).
2398         * troff/input.cc (set_escape_char): Don't set the escape_char
2399         until after calling has_arg().
2401 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
2403         * tbl/table.cc (table::do_top): Add missing \s0 for double box
2404         case.
2406         * tbl/table.cc (table::print_double_hline): Avoid extra new line
2407         in case where r > nrows - 1.
2409         * tbl/table.cc (BODY_HEIGHT): Deleted.
2410         (LINE_SEP): New definition.
2411         (table::print_single_hline, table::print_double_hline,
2412         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2413         table::do_row, table::do_top): Use LINE_SEP space before a line
2414         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2416         * tbl/table.cc (text_entry::print_contents): New function.
2417         (text_string_name, right_text_string_name): Deleted.
2418         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2419         (simple_text_entry::do_width, numeric_text_entry::do_width,
2420         alphabetic_text_entry::do_width): Don't store the contents of the
2421         entry in a string.
2422         (left_text_entry::simple_print, right_text_entry::simple_print,
2423         center_text_entry::simple_print,
2424         alphabetic_text_entry::simple_print,
2425         numeric_text_entry::simple_print): Print the entry directly
2426         instead of using the stored string.
2428 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
2430         * devps/Makefile: Strip PostScript files.
2431         * devps/prologue: Rename to...
2432         * devps/prologue.ps.
2433         * devps/psstrip.sed: New file.
2434         * devps/download: Use .pfa rather than .ps for installed versions
2435         of fonts.
2437 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
2439         * troff/env.cc (input_trap): Give a warning if the argument is out
2440         of range.
2442         * troff/env.cc (adjust): Treat negative argument as missing. Round
2443         argument > 5 down to 5.
2445         * troff/env.cc (center, right_justify): Make negative argument zero.
2447         * troff/div.cc (page_offset, vertical_position_traps): Treat
2448         invalid argument as missing.
2449         * troff/env.cc (line_spacing, line_length, title_length, indent,
2450         underline, hyphen_line_max_request, control_char,
2451         no_break_control_char, widow_control_request, adjust, input_trap,
2452         point_size): Likewise.
2453         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2454         constant_space): Likewise.
2455         * troff/input.cc (compatible, shift, warn_request,
2456         set_escape_char): Likewise.
2458         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2459         * tbl/table.cc (table::table): Likewise.
2461         * Makefile.dev (install_dev): depends on $(DEVFILES).
2463 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
2465         * devX75, devX75-12, devX100, devX100-12: New directories.
2466         * Makefile.in: Add these to DEVDIRS.
2468         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2469         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2470         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2471         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2472         targets.
2473         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2474         (uninstall): New target.
2475         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2476         uninstall_prog, uninstall_dev): New targets.
2478         * troff/div.cc (return_request): Treat an invalid argument as
2479         missing.
2481 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
2483         * tmac/tmac.e ((f): Set up the environment even when there's a
2484         current diversion.  Transperently throughput a call to @N.
2485         (@N): New macro.
2487 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
2489         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2490         up to vertical resolution.
2492         * tbl/table.cc (table::do_row): Change row number after printing
2493         stuff list.
2495         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2497 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
2499         * Rename CHANGES to NEWS.
2501 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
2503         * libgroff/new.cc (operator new): Avoid calling malloc(0).
2505 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
2507         * man.ultrix: Removed.
2509 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
2511         * Makefile.comm (extraclean): Delete files whose names begin with
2512         `='.
2514         * pic/troff.cc (troff_output::text): Fix typo in implementation of
2515         aligned text.
2517 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
2519         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2520         * troff/div.cc (page_length, need_space, space_request): Treat
2521         invalid optional argument as missing.
2522         * troff/env.cc (number_lines): If the first argument is present
2523         but not a number, turn on line numbering, don't change the next
2524         line number and parse the remaining arguments.
2526         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2528 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
2530         * eqn/box.h: Change declaration accordingly.
2531         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
2532         the specified size was bad but don't give an error.  Check for
2533         overflow.
2534         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2535         * eqn/lex (do_size): Likewise.
2537 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
2539         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2540         compatible headers.
2542 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
2544         * tbl/table.cc (table::init_output): Improve error message when
2545         table won't fit on one page.
2547 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
2549         * pic/troff.cc (troff_output::start_picture): Generate line
2550         containing a horizontal motion equal to the width of the picture.
2552         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2553         using GROFF_COMMAND_PREFIX environment variable.
2555 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
2557         * mdate.sh: Use $NF rather than $(NF).
2559 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
2561         * pic/main.cc (main):  Use %1 not %c in argument to warning.
2563         * eqn/main.cc (main): Output code to check that geqn was given the
2564         correct -T option.
2566 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
2568         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2569         `ln -s ../Makefile .; make; rm -f Makefile'.
2571         * troff/hyphen: Rename to...
2572         * troff/hyphen.us:
2573         * troff/input.cc (main): Delete -H option. Don't call
2574         read_hyphen_file().
2575         * troff/env.cc: Include searchpath.h and macropath.h.
2576         (exception_dictionary): Deleted.
2577         (ht): Deleted.
2578         (read_hyphen_file): Deleted.
2579         (hyphenation_language): New struct.
2580         (class trie, class hyphen_trie): Move declarations up.
2581         (trie_node::~trie_node): Deleted.
2582         (trie::delete_trie_node): New function.
2583         (trie::do_delete): New pure virtual function.
2584         (hyphen_trie::do_delete): New function.
2585         (trie::~trie): New function.
2586         (hyphen_trie::~hyphen_trie): New function.
2587         (trie::clear): No need to chcek that tp is not 0.
2588         (current_language, language_dictionary): New variables.
2589         (hyphen_word): Give an error if no current language.  Use
2590         exceptions dictionary in current language.
2591         (hyphen_trie::read_patterns_file): Find file using macro_path.
2592         Allow comments (starting with %) in patterns file.  Don't make it
2593         a fatal error if the file can't be found.
2594         (hyphenate): Return if no current language.  Get the exceptions
2595         dictionary and the hyphenation patterns from the current language.
2596         (set_hyphenation_language): New variable.
2597         (hyphenation_patterns_file): New function.
2598         (hyphenation_language_reg): New class.
2599         (hyphenation_language_reg::get_string): New function.
2600         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2601         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
2602         register.
2603         * groff/groff.cc (main, help, synopsis): Delete -H option.
2604         * include/Makefile.sub: Don't define HYPHENFILE.
2605         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2606         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2607         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2608         hyphenation patterns.
2610 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
2612         * eqn/neqn.sh: New file.
2613         * eqn/Makefile.sub: Handle neqn.sh.
2615         * eqn/eqn.h: Declare `nroff' variable.
2616         * eqn/box.cc (param_table): Add `nroff' param.
2617         (nroff): Define it.
2618         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2619         variable.
2620         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2622         * troff/troff.h (WARN_FONT): New warning.
2623         (WARN_TOTAL): Change accordingly.
2624         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2625         (warning_table): Add WARN_FONT.
2626         * troff/node.cc (mount_font_no_translate): Pass argument to
2627         font::load_font.  If this is non-zero, give a warning.
2628         Don't give an error message when accessing a font that has already
2629         been found to be invalid.
2630         * include/font.h (font::load, font::load_font): Add additional
2631         optional argument which suppresses error message if the font is
2632         not found.
2633         * libgroff/font.cc (font::load_font): Handle additional argument.
2634         (font::load): Add additional argument. If this is non-null, set it
2635         to 1 and don't give error message.
2637         * include/printer.h (printer::end_page): Add argument giving
2638         length of page.
2639         * libdriver/input.cc (do_file): Pass this.
2640         * grops/ps.cc (ps_printer::end_page): Add argument.
2641         * grodvi/dvi.cc (dvi_printer::end_page,
2642         draw_dvi_printer::end_page): Add argument.
2643         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2644         columns_per_page members. New member nlines.
2645         (DEFAULT_LINES_PER_PAGE): Deleted.
2646         (tty_printer::tty_printer): Don't compute lines_per_page from
2647         font::paperlength. Don't compute columns_per_page from
2648         font::paperwidth.
2649         (tty_printer::add_char): Don't check horizontal position against
2650         columns_per_page. Grow glyphs vector if neccessary.
2651         (tty_printer::end_page): Add argument giving page_length in units.
2652         Discard lines past end of page.
2654 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
2656         * tmac/tmac.tty-char: Fix definition of \(/l.
2658         * tmac/tmac.X: Define \(en.
2660 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
2662         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2663         lpq, then use lp rather than lpr.
2665         * tmac/tmac.s (par@reset): Don't call `ad'.
2666         (par*env-init): Call `ad'.
2668 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
2670         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2671         date.
2673         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2674         * indxbib/indxbib.cc: Likewise.
2676 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
2678         * libgroff/putenv.c: New file.
2679         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2680         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2681         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2682         stdlib.h with AC_HAVE_HEADERS.
2684 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
2686         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2687         does not exist.
2689 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
2691         * eqn/box.cc (gsize): Make it an int.
2692         (set_gsize): Parse argument handling increment or decrement.
2693         (box::top_level): Convert gsize to a string.
2695         * troff/input.cc (exit_troff): Make buf unsigned char [].
2696         Call to make_temp_iterator casts buf to char*.
2698         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2700         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2701         * Makefile.cpg (depend.temp): Likewise.
2703         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2705         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2707 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
2709         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2711 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
2713         * Version 1.06 released.
2715         * Integrate mm 1.04.
2717 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
2719         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2721 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
2723         * afmtodit/afmtodit.pl: Add -n option that disables generation of
2724         ligatures command.
2725         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2726         afmtodit. Regenerate.
2728         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2729         @f back past the current position.
2731         * tmac/tmac.e: Change calls to @R so that comments are not part of
2732         arguments.
2734 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
2736         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2738         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2739         check that we can link a call to a function declared in <stdio.h>.
2740         (GROFF_UNISTD_H): New macro.
2741         * configure.in: Call it.
2742         * Makefile.in: Document it.
2743         * include/posix.h: New file.
2744         * troff/troff.h: Don't include <osfcn.h>
2745         * troff/input.cc: Include posix.h.
2746         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2747         osfcn.h.
2748         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2749         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2750         <fcntl.h>.
2751         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2752         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2753         * libbib/search.cc (O_RDONLY): Delete definition.
2754         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2755         Don't include <osfcn.h>.
2757         * acgroff.m4 (GROFF_TIME_T): New macro.
2758         * configure.in: Call it.
2759         * Makefile.in: Document it.
2761         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2762         * configure.in: Call it.
2763         * Makefile.in: Document -DTRADITIONAL_CPP.
2764         * include/ptable.h: Don't include generic.h.
2765         (name2): Define it.
2767         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2768         Afterwards remove [T1 and [T2.
2769         (ref*spec!0, ref*spec!2): Use T1 rather than T.
2770         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2771         (ref*add-T2): Renamed from ref*add-T.
2772         (ref*add-T1): New macro.
2774 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
2776         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2778         * libbib/index.cc: Include <fcntl.h>.
2779         (O_RDONLY): Define if necessary.
2780         (make_index_search_item, index_search_item_iterator::get_tag,
2781         index_search_item::check_files): Use O_RDONLY.
2782         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2783         (O_RDONLY): Define if necessary.
2784         (search_list::add_file): Use O_RDONLY.
2785         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2786         <sys/stat.h>.
2787         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2788         (main): Use these.
2790         * libbib/index.cc (S_ISREG): Define it if necessary.
2791         (index_search_item::load): Use S_ISREG.
2793         * include/driver.h: Include <errno.h>.
2795 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
2797         * eqn/box.cc (body_height): Increase default value to 85.
2798         (body_depth): Increase default value to 35.
2800 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
2802         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2803         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2804         protected from expansion with \E.
2806         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2808         * Makefile (Makefile): New target.
2810         * Makefile.sub (configure, distfiles): New targets.
2812         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2813         construct.
2815 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
2817         * eqn/box.cc (param_table): Add body_height and body_depth.
2819         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2821 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
2823         * psbb/Makefile.sub: Don't link with libgroff.a.
2825         * acgroff.m4 (GROFF_PUTENV): New macro.
2826         * configure.in: Call GROFF_PUTENV.
2827         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2828         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2829         is defined.
2831         * troff/env.cc (distribute_space): Rename force_forward argument
2832         to force_reverse.  Reverse the list if force_reverse is true.
2834 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
2836         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2838         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2839         height or depth to be negative.  Guard against SUP_RAISE quantity
2840         being negative.
2842 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
2844         * devps/generate/textmap: Add `an' (arrowhorizex).
2845         * tmac/tmac.ps: \(an overlaps horizontally.
2846         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2848         * devps/symbolchars: Add arrowverttp, arrowvertbt.
2849         * devps/textmap: Add arrowvertex.
2850         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2851         updownarrow delimiters.
2852         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2854         * tbl/table.cc (simple_entry::position_vertically,
2855         block_entry::position_vertically):  For a centered entry, perform
2856         the motion in two stages.
2858         * refer/refer.cc (split_punct): Don't call lookup_token if there
2859         is no token.
2861 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
2863         * troff/input.cc (token::next): Delete token_node after copying
2864         token.
2866         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2867         cur_point_size.
2869         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2871         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2873 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
2875         * grops/ps.cc (usage): -b option takes an argument.
2877         * devps/prologue (PLG): New procedure.
2878         * grops/ps.cc (main, usage): New -g option.
2879         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
2880         length using PLG.
2882 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
2884         * include/cset.h: Include <limits.h> if we have it.
2886         * libgroff/illegal.cc: New file.
2887         * include/lib.h (illegal_input_char): Use table.
2888         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2889         * pic/lex.cc (ARG1): Renumber to 14.
2890         * eqn/lex.cc (ARG1: Likewise.
2892         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2893         (eg 1.05.90) correctly.
2895 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
2897         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2898         Rename $r and $R registers to $v and $V.
2899         ($r, $R): Initialize to 0.
2900         (@v, @V): New macros.
2901         (sz): Call @v.
2902         (@M): Call @V.
2904         * troff/input.cc (main, usage): Add -R option that says not to
2905         load troffrc.
2906         * eqn/main.cc (main, usage): Rename -n to -R.
2908 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
2910         * devps/DESC.in: Leave font positions 5-9 blank.
2911         * devdvi/DESC.in: Likewise.
2913         * grog/grog.pl: Handle `.PS <file' correctly.
2915         * troff/input.cc (input_stack::push): Improve error message when
2916         input stack limit exceeded.
2918 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
2920         * refer/refer.cc (main): Fix typo in handling of `a' option.
2922         * refer/refer.cc (do_bib): In state START after a newline remain
2923         in state START.
2925         * groff/groff.sh: Deleted.
2926         * groff/Makefile.sub: Delete handling of groff.sh.
2928         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2929         to determine whether to use \X'ps:...'.
2930         * tmac/troffrc: Set 0p register to 0.
2931         * tmac/tmac.ps: Set 0p register to 1.
2933         * groff/groff.cc: Support -X option. Give warning for -TXps and
2934         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2935         * tmac/troffrc: Support -r.X=1.
2937         * pic/troff.cc (troff_output::dot): Don't test
2938         zero_length_line_flag.
2940 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
2942         * include/lib.h: Declare getopt() and friends unless
2943         STDLIB_H_DECLARES_GETOPT is defined.
2945         * doc/chars.tr: Delete.
2946         * man/groff_char.man: New file.
2948 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
2950         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2951         user has changed register format.
2953 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
2955         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
2956         `postpro' command in DESC file.  Get spooler command from `print'
2957         command in DESC file.  Execute spooler command with /bin/sh.
2959         * groff/groff.cc: Split Unix-specific parts into...
2960         * groff/pipeline.c: New file.
2962         * LICENSE: Delete.
2963         * COPYING: New file.
2964         * all files: Update copyright notices.
2966         * Rearrange files.  Redo Makefiles.  Use autoconf.
2968 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
2970         * troff/input.c (charinfo_to_node_list): Interpret character
2971         definition with escape_char of `\'.
2973 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
2975         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2976         Define INT_DIGITS as big enough for 64-bit integer.
2977         * lib/strtol.c: Don't include lib.h.
2978         * lib/lib.h: Delete ifdef __cplusplus stuff.
2980 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
2982         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
2983         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
2984         get DESC from current directory.
2986 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
2988         * tbl/main.c (main): Always reset the line number when reading
2989         from stdin.
2991         * tbl/table.c (table::print_single_hline, table::print_double_hline,
2992         table::define_bottom_macro, table::do_row, table::do_top): Round
2993         vertical spacing up to vertical resolution.
2995 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
2997         * ps/ps.h (enum resource_type): Avoid comma at end of
2998         enumerator-list.
2999         * dvi/dvi.c (class dvi_printer): Likewise.
3000         * dvi/tfmtodit.c (gf::load): Likewise.
3001         * refer/label.y (struct expression): Likewise.
3002         * refer/refer.c (class label_processing_state): Likewise.
3003         * refer/indxbib.c (do_file): Likewise.
3004         * troff/troff.c (enum warning_type): Likewise.
3005         * tbl/main.c (process_data): Likewise.
3006         * troff/charinfo.h (class charinfo):
3008 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
3010         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
3012 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
3014         * groff.c: Move to new groff subdirectory.
3015         * groff/Makefile: New file.
3016         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3018         * man/mdate.sh: Use ls -L if supported.
3020         * Consolidate all header files produced by gendef into lib/defs.h.
3021         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3022         Don't include path.h.
3023         * lib/Makefile (path.h): Don't generate.
3024         * troff/input.c: Include defs.h. Don't include config.h.
3025         * troff/Makefile (config.h): Don't generate.
3026         * refer/index.h: Don't include suffix.h.
3027         * refer/index.c: Include defs.h.
3028         * refer/indxbib.c: Include defs.h.
3029         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3030         defs.h.
3031         * refer/Makefile (suffix.h, path.h): Don't generate.
3032         * groff.c: Don't include config.h. Include defs.h.
3033         * Makefile (config.h): Don't generate.
3034         (lib/defs.h): Generate.
3035         (topclean): Remove lib/defs.h.
3037 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
3039         * lib/malloc.c, lib/getpagesize.h: Deleted.
3040         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
3041         related stuff.
3042         * lib/Makefile: Delete malloc-related stuff.
3043         * lib/new.c: Workaround COOKIE_BUG if necessary.
3045         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
3046         needed header files directly.
3047         * refer/refer.h: Omit definition of DEFAULT_INDEX.
3048         * Makefile: Include definition of DEFAULT_INDEX in path.h.
3050 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
3052         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3053         argument.
3054         * lib/font (font::load_desc, font::load): Don't split argument of
3055         unknown command.
3056         (font::handle_unknown_font_command): Change type.
3057         * ps/ps.c (ps_font::handle_unknown_font_command,
3058         handle_unknown_desc_command): Change type.
3059         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3061 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
3063         * lib/font.h (font::handle_unknown_font_command): Add file and
3064         line arguments.
3065         * lib/font.c (font::handle_unknown_font_command):
3066         * ps/ps.c (ps_font::handle_unknown_font_command):
3067         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3068         lineno arguments.  Use _with_file_and_line functions for error
3069         reporting.
3071         * lib/fontfile.c (font::unknown_desc_command_handler): New static
3072         data member.
3073         * lib/font.c (font::set_unknown_desc_command_handler): New
3074         function.
3075         (font::load_desc): For unknown commands, call
3076         unknown_desc_command_handler if not null.
3077         * lib/font.h (class font): Declare them.
3078         (FONT_COMMAND_HANDLER): New typedef.
3079         * ps/ps.c (handle_unknown_desc_command): New function.
3080         (main): Set bflag if we had a -b option. Call
3081         font::set_unknown_desc_command_handler.
3082         (broken.h): Don't include.
3083         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
3084         submake 
3085         * ps/devps/Makefile: Add `broken' command to DESC file using
3086         BROKEN_SPOOLER_FLAGS.
3088         * macros/tmac.e ([, ]): Add as synonyms for { and }.
3090         * macros/tmac.e ($p): Only exdent if \$3 > 0.
3092         * macros/tmac.e (@R, @S): New macros.
3093         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3094         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3095         Declare $H, $[0-9], .. macros with @S.
3096         Declare |0, |1, |2, |3 strings with @S.
3098         * macros/tmac.e (@S): Rename to @U.
3100         * macros/tmac.e (@z): Define @b and bp as empty instead of
3101         deleting them,
3103         * macros/tmac.e (@m): Deleted.
3104         (@h): Don't call @m.
3105         (@z): Don't set @m trap.
3107         * macros/tmac.e ($h, $f): Define |z as empty string.
3109         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3110         (@q): Likewise.
3112         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3113         removing them.
3114         ()f): Likewise for * register.
3116         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3117         argument is missing, don't change $R.  Call sr with three
3118         arguments when initializing.
3120 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
3122         * macros/tmac.e (sr): New macro.
3123         Initialize $r and $R using sr.
3125         * macros/tmac.e (,): Delete \*(#[.
3127         * troff/env.c (set_tabs): Read the tab type even if the position
3128         is bad.  Allow the position of the first tab stop to be negative.
3130 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
3132         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3133         _POSIX_VERSION.
3134         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3135         rather than -DPATHCONF_MISSING.
3136         * Makefile: Get rid of PATHCONF_MISSING.
3138         * refer/map.c: New file.
3139         * refer/index.c: Interface to mmap through map.c.  Rename map_size
3140         to map_len.
3141         * refer/Makefile: Handle map.c.
3142         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3144 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
3146         * Makefile: RANLIB should be `true' if there is no ranlib.
3147         * lib/Makefile (libgroff.a): Simplify.
3148         * driver/Makefile (libdriver.a): Simplify.
3150         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3151         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
3152         defined.
3154 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
3156         * troff/env.c (compare_ranges): Declare as extern "C".
3158         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3160         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3162 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
3164         * pic/troff.c (troff_output::text): Merge in grops_output::text,
3165         but conditionalize use of \X based on \*(.T.
3166         (grops_output::*): Deleted.
3167         * pic/output.h: Delete declaration of make_grops_output.
3168         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
3169         by default. -n sets it to 0.
3170         (usage): Corresponding changes.
3171         * groff.c (main): Don't pass -x or -p to pic.
3172         * groff.sh: Likewise.
3174         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3175         to be non-zero.
3177         * ps/devps/afmtodit: Change calculation of asc_boundary and
3178         desc_boundary.  Make these bounds inclusive.
3179         * ps/devps: Regenerate font files.
3181 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
3183         * macros/tmac.latin1: New file.
3184         * macros/tmac.tty-char: Use tmac.latin1.
3185         (tmac.tty-tr): Deleted.
3186         * macros/Makefile: Install tmac.latin1.
3187         * macros/tmac.dvi: Use tmac.latin1.
3188         * macros/troffrc: Translate \[char160] onto no-break space here.
3189         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3191 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
3193         * macros/tmac.Xps: Use `do' request.
3195         * macros/tmac.ps: Use `do' request.
3197         * macros/tmac.e (@C): Use `do' request.
3199         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3200         * macros/Makefile: Install tmac.X*.
3202         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3203         * tty/Makefile: Don't install tmac.tty*.
3204         * macros/Makefile: Install tmac.tty*.
3206         * dvi/tmac.dvi: Move to macros.
3207         * dvi/Makefile: Don't install tmac.dvi.
3208         * macros/Makefile: Install tmac.dvi.
3210         * ps/tmac.ps*: Move to macros.
3211         * ps/Makefile: Don't install tmac.ps*.
3212         * macros/Makefile: Install tmac.ps*.
3214         * eqn/box.c: Provide draw_lines parameter corresponding to -D
3215         option.
3216         * macros/eqnrc: Set draw_lines parameter based on device.
3217         * groff.c: Don't pass -D flag to eqn.
3218         * groff.sh: Likewise.
3219         * eqn/main.c: Warn about use of -D.
3221         * troff/input.c (process_startup_file): New function.
3222         (main): Call process_startup_file().
3223         * macros/troffrc: New file.
3224         * macros/Makefile: Install troffrc.
3225         * groff.c (main): Don't pass extra -m option to troff. For a 
3226         pseudo device pass the name of the pseudo device to troff using
3227         -d.
3228         * groff.sh: Likewise.
3229         * groff.c (possible_command::prepend_arg): Deleted.
3231         * troff/input.c (do_request): New function.
3232         (init_input_requests): Bind "do" to do_request.
3234         * eqn/main.c (main): Instead of loading eqnchar from device directory,
3235         load eqnrc from macro directory.
3236         * macros/eqnrc: New file.
3237         * macros/Makefile: Install eqnrc.
3238         * ps/devps/eqnchar: Deleted.
3239         * ps/devps/Makefile: Don't install eqnchar.
3240         * dvi/devdvi/eqnchar: Deleted.
3241         * dvi/devdvi/Makefile: Don't install eqnchar.
3242         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3243         variable optM.
3245         * lib/device.[ch]: New files.
3246         * lib/font.h (font::set_device_name, font::get_device_name):
3247         Deleted.
3248         * lib/fontfile.c: Use device.h.
3249         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3250         * troff/input.c: Delete definition of `device'.
3251         (main): Don't initialize device.
3252         * troff/troff.h: Include device.h rather than declaring device.
3253         * troff/Makefile: No need to handle DEVICE.
3254         * driver/input.c: Include device.h. Don't use
3255         font::{set,get}_device_name.
3256         * groff.c, Makefile: Rename device.h to config.h.
3257         * groff.c: Use library device variable.
3258         * eqn/main.c: Use library device variable.
3259         * eqn/Makefile: No need to handle DEVICE.
3261         * lib/searchpath.[ch]: New files.
3262         * lib/Makefile: Handle searchpath.[ch].
3263         * troff/input.c (open_file, init_dirs): Deleted.
3264         (macro_dirs): Deleted.
3265         (open_mac_file, macro_source): Use class search_path.
3266         (add_string, struct string_list): Move definition.
3267         (main): Change -M option to use macro_path. Delete call to
3268         init_dirs().
3269         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3270         Rewrite to use class search_path.
3271         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3272         * lib/Makefile: fontfile.c depends on searchpath.h.
3273         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3274         MACROPATH.
3275         * lib/macropath.[ch]: New files.
3276         * troff/Makefile: No need to handle MACROPATH.
3278         * troff/input.c: Delete DUMP code.
3279         * lib/fontfile.c, lib/font.h: Delete
3280         font::forget_command_line_font_dirs.
3282         * troff/input.c (push_token): New function.
3283         (handle_first_page_transition): Use push_token().
3284         (process_input_stack): Change handling of a space at the beginning
3285         of the line.
3287 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
3289         * troff/input.c (font_dirs): Delete unused variable.
3291         * eqn/lex.c (do_set): Correct error messages.
3293 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
3295         * troff/input.c (do_define_string): Allow the string name to be
3296         followed immediately by a tab.
3297         (define_character): Likewise.
3299 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
3301         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3302         be negative.
3304         * troff/input.c (input_iterator::is_file): New virtual function.
3305         (file_iterator::is_file): New function.
3306         (input_stack::end_file): New function.
3307         (input_stack::next_file): Handle the situation where there is no
3308         file on the input stack correctly.  Avoid making two passes over
3309         the input stack.
3310         (next_file): Make the filename optional; in this case call
3311         input_stack::end_file().
3313 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
3315         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3316         produce a real _ charater when the current font is CW and _
3317         otherwise.
3319         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3320         expression to work around gcc 2.2 bug.
3322 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
3324         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3326         * troff/env.c (environment::add_padding): New function.
3327         (environment::add_char): Use add_padding().
3328         (environment::space): Likewise.
3329         (environment::wrap_up_field): Add some padding if there is none
3330         and there's no current tab.
3331         * troff/env.h: Declare environment::add_padding.
3333 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
3335         * pic/pic.y: undef fmod and rand before declaring them.
3337 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
3339         * troff/input.c (main): If the DESC file specifies a font name of
3340         0, then leave the corresponding font position empty.
3342         * nroff.sh: New file.
3343         * Makefile (install.nobin): Install nroff.sh.
3345         * tty/devlatin1/R.proto: Add ao as synonym for de.
3346         * tty/tmac.tty-char: Define ao as o.
3348         * tty/dev{ascii,latin1}/R.proto: Add aq.
3349         * tty/tmac.tty-char: Delete definition of aq.
3351 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
3353         * troff/input.c (init_charset_table): Don't translate 0240.
3354         * ps/tmac.ps: Translate char160 to space.
3355         * dvi/tmac.dvi: Likewise.
3356         * tty/tmac.tty: Likewise.
3358 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
3360         * dvi/tmac.dvi: Add support for all Latin-1 characters.
3362         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3363         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3364         \(oe, \(r?, \(r!.
3366         * tty/tmac.tty-char: Add \(ah.
3368         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3369         No need to define \(FM and \(!/. Conditionalize all character
3370         definitions.
3372         * ps/devps/lgreekmap: Add +h, +f, +p.
3374         * ps/tmac.psnew: New file.
3375         * ps/Makefile: Install tmac.psnew.
3377         * troff/input.c (charinfo_to_node_list): Don't ever interpret
3378         character definitions in compatible mode.
3380         * troff/input.c (remove_character): New function.
3381         (init_input_requests): Bind remove_character to "rchar".
3383         * ps/tmac.psold: New file.
3384         * ps/Makefile: Install tmac.psold.
3385         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3386         characters into tmac.psold.  Make these definitions unconditional.
3388         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3390         * ps/tmac.ps: Don't define \('c and \('C.
3392         * ps/devps/textmap: Move Greek characters to...
3393         * ps/devps/symbolchars:
3395 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
3397         * ps/devps/text.enc: Add quotesingle.
3398         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3399         * tty/tmac.tty-char: Likewise.
3400         * dvi/devdvi/texmi.map: Add +h, +f, +p.
3401         * dvi/devdvi/texi.map: Add Fn.
3402         * dvi/devdvi/msam.map: Add lz.
3403         * dvi/tmac.dvi: Handle Bq, bq, aq.
3405         * pic/lex.c (get_token): Recognize 'th.
3406         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3408 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
3410         * ps/devps/textmap: Move di, mu, +- to...
3411         * ps/devps/symbolchars:
3413         * macros/tmac.s (@XS): Don't call par@reset or fi.
3414         (XA): Call LP. Turn off adjustment. Reduce line length.
3416         * macros/tmac.s: Initially alias XS to LP.
3417         (XS): Rename to @XS.
3418         (cov*ab-init): Alias XS to @XS.
3420 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
3422         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3423         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3424         (token::is_size, token::changes_env): Deleted.
3425         * troff/number.c (parse_term): No need to process \s explicitly.
3426         Call tok.next() only after scale indicator has been processed.
3427         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3428         \f etc explicitly.
3429         (token::next): Handle \s, \f, \S, \H immediately rather than
3430         returning them as tokens.
3431         (token::operator==, token::description, token::add_to_node_list,
3432         token::process): Remove handling of deleted tokens.
3434         * troff/env.c (environment::add_char): When adding padding
3435         indicator character, call start_line() if necessary.
3437 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
3439         * ps/devps/afmtodit: Don't output 0 kerns.
3441         * ps/devps/afmtodit: Remove directory from name of encoding in
3442         font description file.
3444         * ps/devps/afmtodit: Improve error messages.
3446         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3448         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3449         * ps/devps/FontMakefile: Deleted.
3450         * ps/devps/afmname: New file.
3452         * ps/devps/symbol.sed: New file.
3453         * ps/devps/symbol.diff: Deleted.
3454         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3455         Generate zapfdr.afm from zapfd.afm.
3457         * tty/tmac.tty (tty-char): Prefix definition with ".
3459         * macros/tmac.an (TP): Don't start a diversion if one has already
3460         been started.
3462         * tty/tmac.tty-char: Add Latin-1 characters.
3464         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3466 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
3468         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3469         Move declaration of struct horizontal_span.
3471         * tbl/table.c (table::table): Initialize span_list.
3472         (table::~table): Delete span_list.
3474         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3476         * ps/devps/Makefile: Avoid dependency on GNU make.
3478         * ps/tmac.ps: Check that character does not already exist before
3479         defining it.
3481         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3482         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3483         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3484         files.
3486         * tty/tmac.tty-char: New file.
3487         * tty/Makefile: Install tmac.tty-char.
3488         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3489         tmac.tty-char.
3491         * tty/tmac.tty: Fix definition of \(34.
3493         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3494         bracket-drawing characters onto |. Add *o.
3496         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3497         only if current_field.
3499         * troff/dictionary.c (dictionary::lookup): Free old_table after
3500         rehashing. 
3502 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
3504         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3505         whose glyphs are identical to glyphs of some Roman character.
3507         * tty/devlatin1/R.proto (bu): Deleted.
3508         * tty/devascii/R.proto (bu): Deleted.
3509         * tty/tmac.tty: Add definition of \(bu.
3511         * eqn/main.c (do_file): Pass FILE as argument.
3512         (main): Automatically load eqnchar.  New options -F and -n.
3513         Pass do_file an opened FILE.
3514         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3515         No need to include font.h.
3516         * groff.sh: Likewise.  Don't need to use - for standard input.
3517         Prefix files with -- if first file starts with -.
3519         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3521         * troff/env.c (environment::possibly_break_line): Don't set line
3522         to 0 across call to output_line().  Don't call output_line() until
3523         after discarding nodes after break.
3525 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
3527         * request.h (macro::empty): Declare it.
3528         * input.c (macro::empty): New method.
3529         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
3530         macro is empty.
3532 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
3534         * troff/env.c (environment::start_field): Decrement space_total
3535         when a space is frozen.
3537 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
3539         * macros/tmac.an (R): Delete macro.
3541         * troff/input.c (get_copy, token::next): Support \# (like \" but
3542         newline is ignored).
3544         * troff/input.c (token::next): Fix error message in 'Y' case.
3546 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
3548         * eqn/delim.c (define_extensible_string): Recognize any prefix of
3549         a delimiter name.
3551 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
3553         * c++test.c: Include <osfcn.h>.
3555         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3556         <errno.h> doesn't.
3558 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
3560         * tbl/table.c (table::divide_span): Don't count column separation
3561         if expand was specified.
3563         * tbl/main.c (process_format): Don't ignore width specs in
3564         continued format.  Give warning for changing equal widths or
3565         column separation in continued format.
3566         (process_data): Set column separation, minimum width, equal
3567         columns at end of table.
3569 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
3571         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3572         node::add_discretionary_hyphen): Use soft_hyphen_char.
3573         (set_soft_hyphen_char): New function.
3574         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
3576         * Makefile (c++tested): Give more helpful message if test fails.
3578 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
3580         * troff/input.c (init_charset_table): Translate 0240 to
3581         an unbreakable space.
3583         * troff/token.h (token::hyphen_indicator): New function.
3584         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3585         translation.
3586         * troff/input.c (translate): Allow translation to \%.
3587         * troff/node.c (node::add_char): Handle
3588         TRANSLATE_HYPHEN_INDICATOR.     
3589         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3591         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3592         for \(hy.
3594         * tty/devlatin1/R.proto: \(hy and - should print as 055.
3596 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
3598         * groff.c (run_commands): If the last command gets a SIGPIPE send
3599         a SIGPIPE to all children than haven't yet terminated.  When
3600         command terminates, set pid field to -1.
3602 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
3604         * groff.c (main): Pass an appropriate -filename option to gxditview.
3606 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
3608         * Makefile.bd (install): Remove existing program before copying.
3610         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3611         programs which have Unix counterparts to be installed with
3612         user-specified prefix.
3614         * troff/input.c (exit_troff): Don't check if exit_started.
3615         (exit_request): Don't call exit_troff if exit_started.
3617         * Makefile.bd (install.mm): Rename to install.dwbmm.
3619 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
3621         * driver/input.c (do_file): Add missing break for '#' case.
3623 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
3625         * troff/input.c (input_stack::clear):  Clear past any boundaries and
3626         then add the boundaries back.
3628         * troff/input.c (exit_troff): Return immediately if already
3629         exiting.
3631         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
3632         end macro.
3633         (pg*end-page): If the text has ended and there are no more
3634         footnotes or keeps, exit.
3636         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3638         * troff/input.c (init_charset_table): Make \(rq transparent by
3639         default.
3641         * macros/tmac.an: Define lq and rq strings.
3643         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3645 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
3647         * troff/env.c (environment::final_break): New function.
3648         (environment::newline): Set prev_line_interrupted to 2 if
3649         exit_started.
3650         * troff/env.h: Declare environment::final_break.
3651         * troff/input.c (exit_troff): Call environment::final_break()
3652         instead of environment::do_break().
3654         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3655         doesn't already exist.
3656         * macros/man.local: New file.
3657         * macros/tmac.an: Load man.local.
3658         * macros/man.ultrix: New file.
3660 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
3662         * troff/input.c (exit_groff): Rename to...
3663         (exit_troff): New function.
3665         * troff/div.c (exit_started, done_end_macro,
3666         seen_last_page_ejector): New global variables.
3667         (began_page_in_end_macro): New static variable.
3668         (exit_flag): Deleted.
3669         (top_level_diversion::top_level_diversion): Initialize
3670         last_page_count.
3671         (top_level_diversion): More elaborate test for whether
3672         cleanup_and_exit() should be called.
3673         Set began_page_in_end_macro if the end macro isn't yet finished.
3674         * troff/div.h (top_level_diversion::last_page_count): New data
3675         member.
3676         (top_level_diversion::set_last_page): New function.
3677         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3678         * troff/env.c (do_break): Zero prev_line_interrupted.
3679         * troff/input.c (exit_flag): Delete declaration.
3680         (LAST_PAGE_EJECTOR): New magic cookie.
3681         (token::next): Handle LAST_PAGE_EJECTOR.
3682         (exit_groff): Set exit_started and done_end_macro instead of
3683         exit_flag.  Call top_level_diversion::set_last_page.  Push a
3684         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
3685         another ejection after setting seen_last_page_ejector.
3687 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
3689         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3691         * macros/tmac.e (TH): Make sure there's room for the initial
3692         header.
3694         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3695         Set FVS in points rather than units.
3697 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
3699         * troff/div.c (top_level_diversion::add_trap): Don't consider the
3700         position of empty slots.
3702 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
3704         * ps/devps/S: Fix height and depth of parenrightex.
3705         * ps/devps/symbol.diff: Regenerate.
3707 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
3709         * tmac.e (u): Do underlining as in -mgs.
3711 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
3713         * tty/tty.c (tty_printer::end_page): If overstriking is
3714         suppressed, still turn overstruck horizontal and vertical lines
3715         into +.
3717         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3718         2.1.
3720         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3722 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
3724         * Version 1.05 released.
3726 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
3728         * tty/tty.c: Instead of keeping an array of glyphs and then
3729         sorting it, keep a ordered linked list of glyphs for each line.
3731         * driver/driver.h: Include stddef.h.
3733         * tty/tty.c (compare_glyph):
3734         * refer/refer.c (rcompare):
3735         * troff/env.c (compare_ranges): Arguments of qsort comparison
3736         function should be const void *.
3738         * troff/number.c (parse_term):
3739         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3740         switch statement.
3742         * refer/label.y (consider_authors): Don't access variables
3743         constructed under a condition outside that condition: put braces
3744         round for statement containing declaration; redeclare use of same
3745         variable later.
3747         * pic/pic.y (text_expr): Delete production that allows
3748         parenthesised text_expr.
3749         (expr): Allow a conditional_expr to appear in parentheses.
3750         (conditional_expr): Rename to any_expr.
3752         * mm: Install new version 1.01 from jh.
3754         * lib/font.c (font::get_width): Cache scaled widths.
3755         (font::font): Initialize widths_cache.
3756         (font::~font): Destroy widths_cache.
3757         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3759 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
3761         * c++test.c, c++test.ref: New files.
3762         * Makefile: Check that the C++ compiler works.
3764         * ps/tmac.pspic (PSPIC): Do a break.
3766         * ps/tmac.ps: Move definition of PSPIC into...
3767         * ps/tmac.pspic: New file.
3768         (PSPIC): Draw box around picture, but make it invisible to grops.
3769         * ps/tmac.ps: Load tmac.pspic.
3770         * ps/Makefile: Install tmac.pspic.
3772 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
3774         * lib/font.c (scale_round): If n is negative,
3775         subtract .5 before truncating floating point result.
3777         * lib/fontfile.c: Include <errno.h>.
3779 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
3781         * driver/input.c (get_char): Inline. Don't update current_lineno.
3782         Change callers to up date current_lineno if necessary.
3783         Use get_char() instead of getc(current_file).
3785 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
3787         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3789 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
3791         * tty/tty.c (tmac.tty): Define \(rg as (R).
3793 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
3795         * lib/lib.h: New define a_delete.
3796         * Use a_delete instead of delete when deleting an array of objects
3797         without destructors.
3799         * lib/lib.h: Rename adelete to ad_delete.
3800         * Change uses of adelete.
3802 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
3804         * eqn/eqn.y: Include lib.h.
3806         * troff/node.c (grow_font_table): Delete old_font_table.
3808         * mm: Install new version from jh.
3810 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
3812         * tbl/table.h (format_type): Make global instead of local to class
3813         entry_format.  Prefix enumerators with FORMAT_.
3814         * tbl/table.c, tbl/main.c: Corresponding changes.
3815         * refer/token.h (token_type): Make global.  Prefix enumerators
3816         with TOKEN_.
3817         * refer/token.[ch]: Corresponding changes.
3818         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3820         * troff/div.c (node::set_vertical_size): Don't name argument.
3822 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
3824         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3825         * lib/lib.h: Define adelete accordingly.
3826         * pic/object.c (graphic_object::graphic_object):
3827         * tbl/main.c (format::~format):
3828         * tbl/table.c (table::~table):
3829         * refer/ref.c (reference::~reference, reference::merge,
3830         reference::insert_field, reference::delete_field): Use adelete.
3832         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3833         * refer/token.h:
3834         * tbl/table.h: Corresponding changes.
3836         * common.c (common_output::dashed_arc, common_output::dotted_arc):
3837         Ensure total_angle is positive.
3839 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
3841         * refer/ref.c (reference::merge, reference::insert_field,
3842         reference::delete_field): Avoid delete[0].
3844         * refer/token.c (init_special_chars): Move calls to cmupper
3845         outside calls to init_two_char_letter to work around bug in gcc
3846         2.0.
3848 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
3850         * lib/new.c (operator new): Use __builtin_new for g++.
3852         * pic/object.c (graphic_object::~graphic_object):  Don't use
3853         delete [] on 0.
3855         * pic/object.c (output::compute_scale): Initialize max_width and
3856         max_height.
3858 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
3860         * troff/input.c (write_request): Call fflush.
3862         * troff/node.h (class composite_node): Move declaration to node.c
3863         * troff/input.c (charinfo_to_node): Rename to ...
3864         (charinfo_to_node_list): Return node list rather than composite
3865         node.
3866         * troff/node.c (make_composite_node): New function.
3867         (make_node, add_char): Call make_composite_node instead of
3868         charinfo_to_node.
3869         (class composite_node): Add a tfont * member.  Delete font_size
3870         member.
3871         (composite_node::composite_node, composite_node::copy,
3872         composite_node::size): Corresponding changes.
3873         (composite_node::tprint): Provide constant spacing, emboldening
3874         and track kerning as specified in tfont.
3875         (composite_node::width): Change width calculation accordingly.
3876         * troff/env.h (environment::composite): New member.
3877         (environment::is_composite, environment::set_composite): New
3878         functions.
3879         * troff/env.c (environment::environment): Initialize composite.
3880         * troff/input.c (charinfo_to_node): Call
3881         environment::set_composite.
3882         * troff/node.c (make_composite_node, make_glyph_node): Use the
3883         plain version of the tfont if the environment is composite.
3885         * troff/node.c (font_info::get_space_width): Additional argument
3886         giving space_size.  Handle constant space correctly. Scale by
3887         space_size unless constant spaced.
3888         (env_sentence_space_width): New function.
3889         * troff/node.h: Declare it.
3890         * troff/env.h (environment::get_space_size,
3891         environment::get_sentence_space_size,
3892         environment::get_narrow_space_width,
3893         environment::get_half_narrow_space_width): Make inline.
3894         (environment::get_space_width): Make inline.  Just call
3895         env_space_width.
3896         * troff/env.c: Delete definitions for funtions made inline.
3897         (environment::space_newline, environment::space): Use
3898         env_sentence_space_width(). Don't scale by space_size.
3899         * troff/node.h: Move declarations of env*space_width() functions
3900         into env.h.
3902 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
3904         * macros/tmac.s (PS): Don't try to set negative indent.
3906 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
3908         * pic/pic.y: Fix min function.
3910 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
3912         * man/mdate.sh: Clear LANGUAGE.
3914 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
3916         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3917         * pic/lex.c: New COMMAND keyword.
3918         * pic/pic.y (print_args, print_arg): New rules.
3919         (placeless_element): Use print_args for PRINT.
3920         New COMMAND element.
3922 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
3924         * troff/input.c (terminal): Handle missing argument correctly.
3926         * pic/pic.y (text_expr): New rule.
3928         * pic/pic.y: Implement := operator.
3930 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
3932         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3933         mdoc.
3935 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
3937         * ps/devps/dingbatsrmap: Include this in the distribution.
3939         * macros/tmac.doc: Replace with new version from 2nd Networking
3940         Release. Fix loading of doc-* files.
3941         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3942         * macros/tmac.doc.old: New file.  Apply fixes that had been
3943         applied to old tmac.doc.
3944         * macros/tmac.andoc: Check that we're running under groff.
3945         * macros/Makefile: Rework.
3947 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
3949         * tbl/table.h (format_type): 
3950         * refer/token.h (token_type): If NESTED_TYPES is defined, use
3951         typedef to make these types visible at file scope.
3952         * Makefile: Add NESTED_TYPES configuration option.
3954         * troff/div.c (mark): At the top level use the value of
3955         nl_reg_contents rather than the current vertical position.
3957 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
3959         * tty/tty.c: Implement \D for horizontal or vertical lines.
3960         (tty_printer::set_char): Use vec_used+2 as serial number.
3961         Don't allow size of vector to exceed USHRT_MAX-2.
3962         Split off part into...
3963         (tty_printer::add_char): New function.
3964         (tty_printer::draw): New function.
3965         (compare_glyph): Handle equal serial numbers.
3966         (tty_printer::end_page): Handle overstruck characters from \D.
3967         (main, usage): Implement -d option.
3969 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
3971         * tbl/main.c (process_format):
3972         * eqn/text.c (split_text):
3973         * troff/input.c (token::next): Use inner block for declarations
3974         with initializers in switch statement.
3976 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
3978         * pic/common.c (common_output::dash_line): Cope with zero-length
3979         lines.
3981 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
3983         * Version 1.04 released.
3985 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
3987         * macros/tmac.an (TH): Define a macro an-init to define variables
3988         based on command line arguments.
3989         (an-header): Call it.
3991 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
3993         * Makefile (install.mm): Rename to install.dwbmm.
3995         * Makefile: Integrate mm.
3996         * mm: New directory.
3998 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
4000         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4001         <sys/types.h>.
4003         * pic/troff.c (troff_output::simple_spline,
4004         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4005         shadowing parameter.
4007         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4009         * lib/ptable.h: Add explicit casts when converting from unsigned
4010         long to unsigned.
4012         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4013         * dvi/devdvi/Makefile: Install SA, SB.
4015         * refer/indxbib.c: Add declaration of mktemp.
4017         * refer/lookbib.c: Add declaration of isatty.
4019 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
4021         * pic/lex.c (interpolate_macro_with_args):  While collecting
4022         arguments, keep track of whether we're in a string.
4024 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
4026         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4027         down with \v, so as to avoid problems with top of page trap
4028         setting no space mode.
4030 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
4032         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4034 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
4036         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4037         Improve error message.
4039 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
4041         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4042         printf("%03o");
4044 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
4046         * groff.c (possible_command::execp): Always use _exit() after a
4047         failed exec.
4049         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4050         NO_SYS_WAIT_H   configuration options.
4051         * groff.c: Use these options.  Use POSIX-style macros to extract
4052         fields from the status returned by wait().
4054 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
4056         * tbl/table.c (table::compute_separation_factor): Allow the
4057         separation factor to drop to 0.
4059 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
4061         * refer/search.c: Include <errno.h>.
4063 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
4065         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4067         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4068         C++. 
4070         * pic/lex.c (input_stack::bol): Move definition out of class body.
4072         * pic/main.c: On MSDOS munge argv[0].
4074         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4076         * lib/ptable.c (hash_string): Use unsigned long rather than
4077         unsigned.
4078         (next_ptable_size): Use unsigned rather than int.  Give an error
4079         message if we've hit the largest table size.
4080         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
4081         table size.
4083         * pic/object.h (object_spec): Make flags unsigned long.  Declare
4084         flags as const unisgned long rather than as enums.
4086         * pic/output.c: Deleted.
4088         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4090         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4091         Add additional argument.
4092         (line_entry::note_double_vrule_on_{left,right}): Set value of
4093         douvle_vrule_on_{right,left} flag according to argument.
4094         (simple_line_entry::simple_print,
4095         simple_line_entry::double_line_print): If adjacent to double vrule
4096         on a corner extend rather than shorten the rule by half the double
4097         vrule sep.
4099         * troff/number.c (parse_term): In checking for overflow, handle the
4100         case where the current horizontal position is negative.
4102 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
4104         * pic/object.c (draw_arrow): Check for object having zero length.
4106 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
4108         * eqn/main.c (do_file): Split off inline equation handling into...
4109         (inline_equation): New function.  Search for starting delimiter
4110         using...
4111         (delim_search): New function. Don't recognize a delimiter that
4112         occurs in the name of an escape sequence, number register, string
4113         etc.
4115 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
4117         * eqn/delim.c (delim_box::compute_metrics): Don't call
4118         define_extensible_string if left is 0.
4119         (delim_box::output):  Don't print the left delimiter if left is 0.
4120         (delim_box::debug_print): Check for left == 0 before calling printf.
4122 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
4124         * troff/Makefile (majorminor.c): Include only digits in
4125         minor_version.
4127 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
4129         * refer/dirnamemax.c: new file.
4130         * refer/genlimits.c: Deleted.
4131         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4132         Don't check path length.
4133         * refer/Makefile: Add dir_name_max.o; delete genlimits.
4134         * Makefile: Add PATHCONF_MISSING option.
4136         * refer/indxbib.c (get_cwd): New function.
4137         (main): Use get_cwd().
4138         * lib/getcwd.c: New file.
4139         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4140         GETCWD in SUBFLAGS.
4141         * lib/Makefile: Compile getcwd.o.
4143         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4144         userdict.
4146         * refer/indxbib.c (main): Check success of mktemp.
4148         * lib/tmpfile.c: New file.
4149         * lib/Makefile: Add tmpfile.c.
4150         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4151         * ps/ps.h: Delete declaration of mktemp().
4152         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4153         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4154         * driver/driver.h: No need now to include errno.h.
4156         * everywhere: Set errno to 0 before calling fopen().
4158         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4159         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4160         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4162 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
4164         * troff/env.h (translate_space_to_dummy): Declare it.
4165         * troff/env.c (environment::space_newline, environment::space):
4166         If translate_space_to_dummy is set then make the width of spaces 0.
4167         * troff/input.c (translate): If the second character of a
4168         translation is a space, translate to unbreakable space.  If the
4169         first character is a space, set or clear translate_space_to_dummy
4170         according to whether the second character is \&.  Weird!
4172 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
4174         * groff.c (run_commands): Don't use non-zero exit code because a
4175         command gets SIGPIPE.
4177         * groff.c, groff.sh: Use -mXps with -TXps.
4179         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4180         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4181         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4182         (ps_printer::special): New specials invis and endinvis.
4183         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4184         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
4185         (ps_printer::end_page): Check that invis_count == 0.
4186         (ps_printer::invis_count): New member.
4187         (ps_printer::ps_printer): Initialize invis_count to 0.
4189         * troff/env.c (environment::hyphenate_line): Hyphenation
4190         indicator at beginning of word inhibits splitting after -, \(em
4191         etc.
4193         * pic/pic.y (element): Allow another element to follow } without
4194         any intervening separator.
4196 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
4198         * pic/lex.c (get_delimited): Allow tabs before delimiter.
4200 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
4202         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
4203         declaration of wait() in header files.
4204         * Makefile: Get rid of -DHAVE_UNION_WAIT.
4206         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4208         * lib/lib.h: Declare return type of strerror as char *.
4210         * man/Makefile: Add g flag to sed substitutions.
4211         * Makefile (shgroff, bindist): Likewise.
4213 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
4215         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4216         * ps/devps/prologue (PBEGIN): Define showpage after pushing
4217         userdict.
4219 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
4221         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4222         userdict.
4224 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
4226         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4227         group.
4229 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
4231         * troff/input.c (define_number_reg):  If currently undefined,
4232         don't define it if the argument is an invalid expression.
4234         * Makefile: Ignore return value of `if' commands without `else'
4235         parts.
4237         * Makefile: Split up CPPDEFINES into a series of separate
4238         configuration options.
4240         * troff/input.c (init_registers): Use time_t instead of long
4241         unless LONG_FOR_TIME_T is defined.  Use returned result rather
4242         than passing pointer.
4243         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4245         * lib/Makefile (fontpath.h): Use gendef.
4247 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
4249         * troff/input.c (input_iterator::shift): Delete argument name.
4250         * troff/node.c (suppress_output_file::really_begin_page,
4251         suppress_output_file::really_transparent_char, node::ascii_print,
4252         node::tprint): Delete names of unused arguments.
4254 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
4256         * refer/label.y (string):  Pass $4 to command_error.
4258 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
4260         * Version 1.03 released.
4262 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
4264         * Makefile: Pass definition of SHELL in SUBFLAGS.
4266         * gendef: New file.
4267         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4268         ps/Makefile: Use gendef to construct header files that are
4269         constructed from the Makefile.
4271         * macros/Makefile: make all should build stripped version of tmac.e.
4273         * refer/Makefile (clean): Remove y.output.
4275 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
4277         * ps/pfbtops.c (main): Add -v option which prints out a version
4278         number.
4279         * ps/Makefile (pfbtops): Link with libgroff.a.
4281 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
4283         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4284         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4286         * refer/lkbib.c (main): Always terminate reference with blank
4287         line.
4288         * refer/lookbib.c (main): Likewise.
4290         * refer/linear.c (file_buffer::load): Check that the file is not a
4291         binary file.
4293         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4294         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4295         Delete second inclusion of <sys/param.h>.
4297 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
4299         * troff/token.h (token::special): Deleted.
4301         * tbl/main.c (process_format): Rework so that opt->tab_char is
4302         recognized only when appropriate.
4304         * ps/Makefile (clean): Remove pfbtops.
4306 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
4308         * lib/font.c (text_file::next): Don't return if we have got a
4309         blank line.
4311 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
4313         * refer/refer.c (store_reference): Get hash code from old_table[i]
4314         when rehashing the table.
4316 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
4318         * eqn/box.c (box::top_level): Save size and prev size using \R and
4319         restore it afterwards. Set the size to the size at the beginning
4320         of the line.
4321         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4322         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4324         * refer/Makefile (limits.h): Use ./genlimits.
4326 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
4328         * refer/index.c: Delete declarations of stat() and fstat().
4330 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
4332         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4334 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
4336         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4338 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
4340         * troff/input.c (token::get_char): Handle \e.
4342         * refer/linear.c: Delete declarations of fstat() and stat().
4344 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
4346         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4347         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4349 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
4351         * troff/input.c (do_define_macro): Improve error handling for end
4352         of file while defining macro.
4354 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
4356         * eqn/box.h: Fix declaration of set_gsize.
4357         * eqn/box.c (set_gsize): Make argument const char *.
4358         (gsize): Declare as char *.
4359         * eqn/main.c (main): Don't convert gsize to int.
4360         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4362         * Version 1.02 released.
4364 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
4366         * macros/tmac.andoc: New file.
4367         * macros/Makefile: Install tmac.andoc.
4369         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4370         operator new and delete on OP_DELETE_BROKEN not being defined.
4371         * Makefile: Mention OP_DELETE_BROKEN.
4373 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
4375         * Makefile (bindist): Pass SUBFLAGS.
4377 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
4379         * Makefile, groff.c: Pass definitions to groff.c via device.h.
4381         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4382         parameter.
4384         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4386         * ps/ps.h, ps/psrm.c: Make comment_table and
4387         header_comment_table local to resource_manager::process_file.
4389         * groff.sh: With -TXps pass -printCommand option to gxditview.
4391         * groff.c (possible_command::print): Implement using
4392         append_arg_to_string.
4394         * xditview: Merge in new implementation with own ChangeLog.
4396 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
4398         * groff.c (main): Implement PRINT_OPTION.
4399         (append_arg_to_string): New command.
4400         (device_table): Set PRINT_OPTION flag for Xps.
4402 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
4404         * troff/groff.h: Rename to troff.h.
4406         * pic/lex.c (lookup_keyword, docmp): New functions.
4407         (get_token): Use new lookup_keyword.
4408         Don't include key.h.
4409         * pic/key.[ch], pic/pic.gperf: Deleted.
4410         * pic/Makefile: Remove gperf stuff.
4412         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4413         into output.h.
4414         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4416         * troff/Makefile, troff/node.c: Move definition of
4417         STORE_WIDTH into node.c.
4419         * etc/grog.pl, etc/grog.sh: Support -mdoc.
4421 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
4423         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4424         dvi/devdvi/texb.map: Add lq and rq.
4425         dvi/devdvi: Regenerate fonts.
4426         * ps/devps/textmap: Add lq and rq.
4427         * ps/devps: Regenerate fonts.
4428         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4429         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4431         * pic/object.c (position_rectangle): When checking radius
4432         cope with possiblity that width or height is negative.
4433         (box_object::box_object): Have separate xrad and yrad with
4434         signs matching signs of dim components.
4435         (box_object::{north,south}_{east,west}): Use xrad and yrad.
4436         (box_object::print): With rounded boxes use absolute values
4437         for dim and rad arguments.
4439         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4440         in fontpath.h.
4442         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4444         * various files: Add explicit destructors to keep Saber CC +d
4445         happy.
4447 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
4449         * eqn/box.c (box::top_level): Restore fonts correctly after
4450         font changes in line containing inline equation.  Also
4451         restore previous font as well as current font.
4452         * eqn/pbox.h: Define necessary string and register names.
4454         * troff/input.c (token::next): Case 'R' calls do_register.
4455         (do_register): New function.
4457 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
4459         * groff.c, groff.sh: Support Xps device.  Allow each device
4460         to have a pseudo_name and a real_name.
4462         * groff.c (run_commands): Don't print `Broken pipe' messages.
4464         * ps/pfbtops.c: New file.
4465         * ps/Makefile: Add pfbtops.
4467         * troff/number.c (parse_term): Improved error message.
4469 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
4471         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4473         * Makefile: Integrate refer.
4474         * refer: New directory.
4475         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4476         man/lkbib.man: New files.
4477         * man/Makefile: Support refer man pages.
4479         * lib/lib.h: Declare is_prime.
4480         * lib/prime.c: New file.
4482         * troff/input.c (macro_source): New function.
4483         (init_input_requests): Bind "mso" to macro_source.
4485         * troff/env.c (environment::possibly_break_line): Maintain
4486         pointer to pointer to node to be split in ndp so as to avoid
4487         using address of freed node.
4489         * troff/env.c (environment::hyphenate_line): Maintain pointer to
4490         pointer to first node to be hyphenated in startp so as to
4491         avoid using address of freed node.
4493         * troff/env.c (class trie, class hyphen_trie): Make the
4494         elements of the trie be of type char not unsigned char.
4495         Declare arguments to be const char* instead of unsigned char *.
4496         
4497         * troff/env.c (hyphenate): Initialize hbuf[0].
4499         * troff/input.c (set_string): Declare p to be char * and cast
4500         *p to unsigned char when necessary.
4502         * troff/input.c (do_define_macro): Declare s to be const
4503         char*. Cast element to unisgned char when necessary, Declare
4504         d to be an int.  Handle EOF better.
4506         * troff/Makefile, troff/input.c: Different scheme for passing
4507         definitions of MACROPATH, HYPHENFILE and DEVICE.
4509 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
4511         * tty/devascii/R.proto: Delete entry for em.
4512         * tty/devlatin1/R.proto: Likewise.
4514 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
4516         * troff/input.c (translate): Stop when we get a space. Treat eof
4517         like newline.
4519         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4521 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
4523         * tbl/main.c (process_format): A font name following a `f'
4524         modifier that starts with a digit can be only one character long.
4525         Also deal with EOF on the second character of the font name.
4527 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
4529         * troff/input.c (token::next): Turn \~ into an
4530         unbreakable_space_node.
4531         * troff/node.c (unbreakable_space_node): New class.
4532         * troff/node.h: Declare it.
4534 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
4536         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
4537         it's >= 0, before outputting it as a single byte.
4539 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
4541         * lib/font.c: Make font_char_metric::code an int.
4542         (font::get_code): Change return type to int.
4543         (font::load): Allow code to be arbitrary integer.
4544         * lib/font.h (font::get_code): Change return type to int.
4545         (font::number_to_index): Change argument type to int.
4546         * troff/input.c (token::next):  In case 'N', allow any value.
4547         Store value in token::val.
4548         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4549         (token::get_char, token::add_to_node_list, token::process): Get
4550         number from val.
4551         (charinfo::set_number): Change argument to int.
4552         (charinfo::get_number):  Require that NUMBERED flag be set.
4553         (get_charinfo_by_number): Store numbered characters not between 0
4554         and 255 in a dictionary.
4555         * troff/charinfo.h (get_charinfo_by_number): Change argument type
4556         to int.
4557         (charinfo::number): Change type to int.
4558         (charinfo::set_number): Change type of set_number to int.
4559         * troff/node.c (troff_output_file::put_char_width,
4560         troff_output_file::put_char): Test whether character is numbered
4561         using charinfo::numbered().
4562         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4563         values of num.
4564         * lib/nametoindex.c: New implementation to cope with arbitrary
4565         number characters.
4567         * troff/input.c (token::operator==): Test val for
4568         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4569         TOKEN_SIZE.
4571         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4572         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
4574 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
4576         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
4577         variable.
4579         * all Makefiles: rm targets of cp and >.
4581         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4582         it.
4584         * eqn/lex.c (def_table): Add dollar.
4586 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
4588         * troff/input.c (do_width): Push back newline before closing delim
4589         like do_bracket.
4591 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
4593         * groff.c (possible_command::prepend_arg): New function.
4594         (main): Prepend device -m option.
4595         * groff.sh: Put device -m options before command-line options.
4597 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
4599         * macros/tmac.an (IP): Quote argument to TP.
4601         * ps/ps.c (main): New option -b, which sets...
4602         (broken_flags): New variable.
4603         (ps_printer::~ps_printer): Incorporate the setup section in the
4604         prolog if (broken_flags & NO_SETUP_SECTION).
4605         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4606         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4607         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4608         ps_printer::print_needed_font_comment,
4609         ps_printer::print_supplied_font_comment,
4610         ps_printer::print_include_font_comments,
4611         ps_printer::lookup_doc_font, ps_printer::download_fonts,
4612         ps_printer::read_download_file, read_document_fonts, add_font,
4613         skip_line, parse_fonts_arg, document_font::document_font,
4614         document_font::~document_font, document_font::download,
4615         ps_output::include_file):  Deleted.
4616         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4617         rather than %!PS-Adobe-2.0.  Make calls to
4618         resource_manager::need_font for each font that we used. Replace
4619         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4620         print_supplied_font_comment, print_needed_font_comment by call to
4621         resource_manager::print_header_comments. Output %%Orientation
4622         comment. Output %%Requirements: numcopies comment if ncopies > 1.
4623         Don't output the prolog directly.  Instead call
4624         resource_manager::output_prolog.  Only define #copies when ncopies
4625         > 1.  Delete calls to print_include_font_comments  and
4626         download_fonts.  Add call to resource_manager::document_setup.
4627         (ps_printer::do_file): Call resource_manager::import_file instead
4628         of including it ourselves.
4629         (ps_printer::do_import): Likewise.  Also don't call
4630         merge_import_fonts. Push userdict on the dictionary stack before
4631         and pop it afterwards.
4632         Move declaration of ps_output into ps.h.
4633         * ps/psrm.c: New file implementing resource_manager class.
4634         * ps/ps.h: New file declaring ps_output and resource_manager
4635         classes.
4636         * ps/devps/zapfdr.ps:
4637         * ps/devps/symbolsl.ps:
4638         * ps/devps/prologue:  Use 3.0 conventions.
4639         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4640         Add default definition of BROKEN_SPOOLER_FLAGS.
4641         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
4642         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4644 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
4646         * etc/grog.pl: New file.
4647         * Makefile (GROG): New variable.
4648         Add GROG to SUBFLAGS.
4649         * etc/Makefile (GROG): New variable.
4650         (install.nobin): Install $(GROG) rather than grog.sh.
4652 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
4654         * eqn/special.c (special_box::compute_metrics): Make the input and
4655         output strings the same.  Get the new height and depth from the
4656         predefined height and depth registers.  Also make subscript kern
4657         and skew available.
4658         (special_box::compute_subscript_kern, special_box::compute_skew):
4659         New functions.
4661         * eqn/box.c (pointer_box::compute_skew,
4662         simple_box::compute_metrics, box::top_level)
4663         * eqn/text.c (prime_box::compute_metrics,
4664         prime_box::comput_subscript_kern)
4665         * eqn/limit.c (limit_box::compute_metrics):
4666         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4667         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4668         negative numbers in `nr' requests with a leading 0.
4670 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
4672         * eqn/special.c: New file.
4673         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
4674         Add new rule for simple.
4675         * eqn/lex.c (token_table): Add SPECIAL.
4676         * eqn/box.h: Declare make_special_box.
4677         * eqn/Makefile: Add special.[co].
4679 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
4681         * ps/devps/prologue: Possibly set packing to true while defining.
4682         Create grops dictionary here.  Initialize local variables before
4683         defining procedures.
4684         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4685         the dictionary stack. Set strokeadjust and overprint to false if
4686         the relevant operators are defined.
4687         (PEND): New procedure.
4688         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4689         prologue.  Do everything else in the setup section.
4690         (ps_printer::do_import): Just call PBEGIN and PEND around the
4691         picture. Also push userdict before, and pop it afterwards.
4693 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
4695         * troff/node.c (bracket_node::tprint): Brackets were being printed
4696         1m too low.
4698         * macros/tmac.an (SH, SS): Set fill mode.
4700 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
4702         * troff/div.c (top_level_diversion::begin_page): Set
4703         high_water_mark to 0.
4705 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
4707         * man/mdate.sh: New file.
4708         * man/mdate.c: Deleted.
4709         * man/Makefile: Use mdate.sh instead of mdate.
4710         (mdate): Deleted.
4712         * eqn/lex.c (do_gsize): Supply missing argument to error message.
4714 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
4716         * man/mdate.c: New file.
4717         * man/*.man: Replace modification date by @MDATE@.
4718         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4719         (mdate): New target.
4721         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4722         Remove illegal input characters.
4724 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
4726         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4728 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
4730         * troff/div.c (begin_page): Change behaviour when
4731         !first_page_begun and !break_flag.
4733         * troff/input.c (do_name_test): Return 0 if argument is empty.
4735         * troff/input.c (read_long_escape_name): Require closing ] to be
4736         at same input level as opening [.
4738         * troff/input.c (read_increment_and_escape_name): New function.
4739         (get_copy, process_input_stack): Use this for \n.
4741 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
4743         * troff/div.c (top_level_diversion::begin_page): Ignore the
4744         current value of page_number if !first_page_begun.
4746         * groff.c (main): Fix declaration of buf.
4748         * troff/input.c (do_name_test): New function.
4749         (token::next): Implement \A.
4750         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4751         (token::description, token::add_to_node_list, token::process):
4752         Handle TOKEN_ESCAPE.
4753         * troff/token.h: New token TOKEN_ESCAPE.
4755 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
4757         * pic/main.c (do_picture): Allow space before and after filename
4758         following `<'.  Check that the filename is not empty.
4760 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
4762         * Version 1.01 released. 
4764         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4766         * dvi/tmac.dvi: ftr HR to H.
4768         * macros/tmac.e: Round up computation of $r.
4770         * xditview/tmac.X:  Don't give up completely in compatibility mode.
4771         Use \n(.s instead of \n[.s].
4773         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4774         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4775         Add u to factors inside \s[...]. Rename frac to dvi-frac.
4776         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4777         short names in the char definitions.
4779         * ps/tmac.ps: Don't give up completely in compatibility mode.
4780         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4781         quote in front of \n(.s. Add u to factors inside \s[...].
4783 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
4785         * tty/tmac.tty: Call the nroff request.
4787         * macros/tmac.e ((x, )x):  Better definitions that work properly
4788         in a diversion.
4789         (@0, @1): Helper macros for (x.
4791         * macros/tmac.e ($s, hl): Use \l rather than \D.
4793         * tty/tmac.tty: Make it work better in compatibility mode.
4794         (pchar): Rename to tty-char.
4796         * macros/tmac.e (@E): New macro.
4797         (r, i, b, rb, bi): Use @E.
4799         * macros/tmac.e (@F): Don't use (;...) syntax.
4801         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
4802         it was modified for groff.
4804         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4806         * macros/tmac.e (<., .>): Removed.
4807         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4809         * macros/tmac.e: Remove check that groff is being used.
4811         * macros/tmac.e (@C): Change families only if using groff; turn
4812         compatibility mode off while changing familes. Save compatibility
4813         mode before changing families and restore it afterwards.
4815         * macros/tmac.e (@h): Remove test for offset + line length.
4817         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
4818         (lo, th, ac): Define to call @S instead of using als.
4820         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4821         the ratio of the vertical spacing to the point size in units
4822         expressed as a percentage.  Use these instead of $10r and $10R,
4823         Delete $10r and $10R.
4825         * lib/font.c (font::load): In default computation of space_width,
4826         divide by sizescale.  Use scale_round.
4828         * macros/tmac.an (TP): Don't call `nf'.
4829         (an-do-tag): Don't call `fi'.
4831 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
4833         * troff/input.c (process_input_stack): Handle the case where
4834         spaces at the beginning of an input line are followed by a
4835         newline.
4837 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
4839         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4840         * groff.sh: Use pic -x with the dvi device.
4842         * dvi/devdvi/FontMakefile (H): Don't use -s.
4844         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4845         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4846         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4847         in FONTS.
4849 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
4851         * ps/psfig.diff: New file.
4852         * ps/tmac.psfig: New file.
4854 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
4856         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4857         (]-): Don't call ref*do-tl.
4859         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4861         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4862         (fn@do-FS): Rename to fn*do-FS.
4864         * troff/input.c (transparent_translate): New function.
4865         (process_input_stack): Apply transparent_translate before calling
4866         diversion::transparent_output(unsigned char).
4868 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
4870         * troff/input.c (do_define_macro): Define the macro before calling
4871         skip_line.
4873         * xditview/Makefile: Add DEVICES variable.  Change install target
4874         to use this.
4876 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
4878         * groff.c (run_commands): Handle the possibility that there are
4879         child processes other than those forked by us.
4881 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
4883         * lib/string.c (string::append): New function.
4884         * lib/stringclass.h: Declare it.
4886 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
4888         * eqn/main.c (main): New option -N which sets
4889         no_newline_in_delim_flag. 
4890         (do_file): If no_newline_in_delim_flag is set don't allow newlines
4891         in delimiters.
4892         * groff.c (main): Pass -N on to eqn.
4893         (help, synopsis): Mention -N.
4894         * groff.sh: Implement -N.
4896 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
4898         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4899         (]-): Call ref*do-tl if ref*need-tl is non-zero.
4900         (XP): Allow as initializer.
4902 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
4904         * troff/env.c (environment::wrap_up_field): If field_spaces are
4905         non-zero and we have a current_tab, subtract padding from
4906         tab_distance.  If this makes tab_distance <= 0, use the next tab
4907         stop instead.  If there isn't any next tab or it's a left tab,
4908         wrap up the current tab.
4909         (environment::start_field): Initialize tab_precedes_field.
4910         (environment::wrap_up_tab): If there's a current field, update
4911         pre_field_width, field_distance and tab_precedes_field.
4912         * troff/env.h (environment::tab_precedes_field): New member.
4914 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
4916         * ps/ps.c (ps_printer::do_file): New function.
4917         (ps_printer::special): Bind to `file' special.
4918         (ps_printer::do_exec): Set ndefined_styles to 0.
4920 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
4922         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4923         Avoid stripping first character from the start of unrecognized
4924         escapes.  Use lex_error instead of error to report errors.
4925         * eqn/lex.c (get_token): Rework handling of escapes.
4926         (lex_error): Move declaration into...
4927         * eqn/eqn.h.
4929         * xditview/xditview.c (main): Make -page option work.
4931         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4933 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
4935         * macros/tmac.s (B2): Correct size of box.
4937 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
4939         * macros/tmac.s (B2): Postpone drawing the box until in the
4940         top-level diversion.
4942         * tty/tmac.tty: Add font translations for C, CR, CW.
4944         * groff.c (synopsis, help): Document -i.
4945         * groff.sh: Implement -i.
4947         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4948         Simplify the construction of SN.
4950         * troff/number.c (parse_term): Give `|' a higher precedence.
4951         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4952         accordingly.
4954         * macros/tmac.s (B2): Use par@finish instead of par@reset.
4956 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
4958         * lib/string.c (string::move): New function.
4959         * lib/stringclass.h: Declare it.
4961 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
4963         * troff/env.c (distribute_space): Add optional argument
4964         `force_forward'.
4965         (environment::wrap_up_field): Call distribute_space with
4966         `force_forward' argument of 1.
4968 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
4970         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4971         Inline it.  Move reallocation into...
4972         (string::grow1): New function.
4973         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4974         dependencies to include library header files.
4975         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4977 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
4979         * macros/tmac.s (@NH): Use the same number registers than -ms does
4980         for the heading level counters.  Use the same string that -ms does
4981         for the number for this heading.
4983 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
4985         * lib/new.c (operator new): Cast result of malloc to char *.
4987         * troff/input.c (spring_trap, lookup_request): Add assert that nm
4988         is not null.
4990 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
4992         * groff.c (main): Support -i.
4994 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
4996         * pic/pic.h: Include <osfcn.h>.
4998         * ps/ps.c: Add declaration of mktemp.
5000         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5001         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5002         argument as union wait *.
5003         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5004         argument to union wait *.
5006 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
5008         * tty/tmac.tty: Add definition of \(co.
5010         * pic/object.c (make_arc): Only increase radius when radius
5011         strictly less than d.
5012         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5013         more than once.
5015         * troff/env.c (environment::environment(symbol),
5016         environment::environment(const environment *)):  Initialize
5017         input_trap_count.
5019 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
5021         * tbl/main.c (main): Add exit(0).
5023         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5025         * pic/main.c (main):
5026         * eqn/main.c (main):
5027         * tbl/main.c (main):
5028         * etc/soelim.c (main):
5029         * driver/printer.c (printer::~printer):
5030         * troff/node.c (real_output_file::~real_output_file,
5031         real_output_file::flush):  Check for errors on stdout.
5033         * most files: Add 1991 to copyright notice.
5035         * macros/tmac.s: Don't test \n(.x and \n(.y.
5037         * troff/input.c (token::next): Rename `escape_char' label to
5038         `handle_escape_char' and `normal_char' label to
5039         `handle_normal_char'.
5041 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
5043         * groff.c (main, synopsis, help): Support -a option.
5044         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
5045         to trflags while parsing options.
5047 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
5049         * troff/number.c (parse_term): With `m', `M' and `n' scale
5050         indicators, convert scale factor to hunits before scaling.
5052 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
5054         * lib/font.c (scale_round): Better test for overflow when n is
5055         negative.
5057 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
5059         * tbl/main.c (process_format): Add second argument of type
5060         options*. Change callers.  Allow opt->tab_char as well as '\t'
5061         between format items.
5063 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
5065         * macros/tmac.an (PD): With no arguments, make sure register PD is
5066         at least \n[.V].
5067         (TH): Call PD with no argument, instead of setting register PD
5068         directly.
5070 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
5072         * Version 1.00 released.
5074 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
5076         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5078         * dvi/devdvi/DESC: Mount CW instead of CR.
5080         * dvi/tmac.dvi: Add definition of \(tm.
5082         * dvi/devdvi/texsy.map: Add lh, and rh.
5083         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5084         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5086         * dvi/devdvi/FontMakefile: Generate H from cmss10.
5087         * dvi/devdvi/Makefile: Install H.
5088         * dvi/devdvi/H: New file.
5090 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
5092         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5093         be 0.
5095 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
5097         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5099         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5101         * macros/tmac.s (@EN): Handle the case where the equation is empty
5102         but the label is not.
5104 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
5106         * troff/groff.h: New warning category WARN_SPACE.
5107         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5108         WARN_SPACE to warning_table.
5109         (interpolate_macro): Give a warning of type WARN_SPACE if the name
5110         is longer than two characters and is not defined, but the first
5111         two characters do make a defined name.
5113         * PROBLEMS: New file.
5115         * CHANGES: New file.
5116         * README-0.6, README-1.00: Deleted.
5118         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5119         * xditview/devX75/Makefile: Make devX75-12.
5120         * xditview/devX100/Makefile: Make devX100-12.
5122         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5123         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5125 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
5127         * README-0.7: Rename to README-1.00.
5129         * macros/tmac.pic: New file.
5130         * macros/Makefile (install.nobin): Install tmac.pic.
5132 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
5134         * troff/env.c (hyphen_word): Correct the test for whether the
5135         token is a hyphen.  Reset npos to 0.
5137         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5139 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
5141         * macros/tmac.s (ds*common-end): Call par*reset.
5142         (PE): Likewise.
5143         (par@reset-indent): Deleted.
5145         * macros/tmac.s (@IP): Divert the label.
5147 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
5149         * xditview/draw.c (setGC): Use a line width of .1m rather than
5150         .04m by default; round rather than truncate value.
5152         * tbl/table.c (class empty_entry): New class.
5153         (empty_entry::empty_entry, empty_entry::line_type): New functions.
5154         (table::add_entry): Represent empty entries by objects of type
5155         empty_entry.
5156         (table_entry::line_type): Return -1.
5157         (table::determine_row_type): Ignore entries with line_type 0.
5158         Treat type -1 as non-lines.
5160 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
5162         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5163         macros/tmac.s: Rename \(-d to \(Sd.
5165 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
5167         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5168         * xditview/libXdvi/DviChar.c: Likewise.
5169         * dvi/devdvi/texsy.map: Add `<<', `>>'.
5171 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
5173         * troff/div.c (top_level_diversion::begin_page): Call
5174         init_output() if the_output is 0.
5176 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
5178         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5179         ESCAPE_c.
5180         (get_copy): Turn \E into ESCAPE_E.
5181         (token::process, asciify): Handle ESCAPE_E.
5183         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5184         (RD): New macro.
5185         (DS): Implement `.DS R'.
5187 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
5189         * macros/tmac.s (FS): New macro.
5191         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5193         * macros/tmac.s (cov*tl-init): Remove after first execution
5194         instead of aliasing to @nop.  Call top of page macro explicitly
5195         instead of setting trap; call @init first.  Set pg@top as top of
5196         page macro.
5197         (cov*auto-init): Deleted.  Set cov*tl-init instead of
5198         cov*auto-init as top of page trap. 
5199         (TL, LP): Do a break instead of calling cov*tl-init.
5200         (cov*print): With RP format but no TL, alias FS and FE to @FS and
5201         @FE; in this case also give a warning and always start another
5202         page. No need to set pg@top here.
5203         (cov*tl-init): Rename to cov*first-page-init.
5205         * macros/tmac.s (RP): Do `.pn 0'.
5206         (cov*tl-init): With RP format don't do `.pn 0'.
5208         * macros/tmac.s (pg@cs-top): Set no space mode.
5210         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5211         (cov*ab-init): Alias TL, AU and AI to these.
5213 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
5215         * macros/tmac.s (@EQ): Move the space before the equation into @EN
5216         (@EN): Do nothing unless \n[dl] is > 0.
5218 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
5220         * pic/object.c (ellipse_object::radius): New function.
5222         * VERSION: Change version to 0.7.
5224         * tbl/table.c (block_entry::do_divert): Declare return type as
5225         void.
5226         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5228 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
5230         * troff/column.c: New file.
5231         * troff/Makefile: Corresponding changes.
5233         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
5234         Friend of vunits.
5236         * troff/div.c (top_level_diversion::space): If the space causes
5237         the first-page transition and springs a trap, truncate the space
5238         to 0.
5240 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
5242         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5243         the document.
5245         * pic/troff.c (troff_output::line_thickness,
5246         troff_output::set_fill): Do a horizontal motion to compensate for
5247         the width of the \D escape sequence.
5249 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
5251         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5252         (not X75).
5254         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
5255         to printf.
5257         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5258         Supply empty definition.
5259         (text_entry::simple_print, simple_text_entry::simple_print):
5260         Delete declarations.
5261         (table::add_entry): Represent empty entries by objects of type
5262         `simple_entry'.
5264 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
5266         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5268         * tbl/table.c (left_text_entry::add_tab): New function.
5270         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
5271         initialize like LP.
5273 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
5275         * troff/env.c (environment::start_field): Give an error message if
5276         there is no next tab.
5278 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
5280         * troff/env.c (hyphenate): Skip initial elements with zero
5281         hyphenation code.
5283         * macros/tmac.s (par@init): Keep VS in points rather than units.
5285 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
5287         * pic/main.c (main): Implement `-c' option.
5288         * pic/output.h: Declare make_tpic_output().
5289         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5290         protected.
5291         (tpic_output): New class.
5292         (tpic_output::tpic_output, tpic_output::set_pen_size,
5293         tpic_output::command, make_tpic_output): New functions.
5295 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
5297         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
5298         if they're not already defined.
5299         * tbl/table.c (init_output): Don't test \n(.g.
5301         * troff/input.c (do_if_request): Delete `g' condition. Recognize
5302         `d', `r' and `c' conditions even in compatibility mode.
5304 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
5306         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5307         box.
5309 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
5311         * troff/env.h (environment::prev_line_interrupted): New member.
5312         (environment::get_prev_line_interrupted): New function.
5313         * troff/env.c (environment::newline): Set prev_line_interrupted.
5314         (environment::environment(const environment *),
5315         environment::environment(symbol)): Initialize
5316         prev_line_interrupted.
5317         * troff/input.c (process_input_stack): Don't give special
5318         treatment to space and newline at the beginning of the line if the
5319         previous line was interrupted.
5321 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
5323         * eqn/eqn.y: Disallow PRIME by itself.
5324         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5325         PRIME.
5326         (def_table): Remove definition of '.  Define prime to be `.
5328         * eqn/eqn.y: Split off part of rule `script' into a new rule
5329         `nonsup'.
5331 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
5333         * macros/tmac.s ({, }): New string aliases.
5335 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
5337         * README-0.7: New file.
5339 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
5341         * macros/tmac.s: New file.
5342         * man/groff_ms.man: New file.
5343         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5344         * Makefile.bd: Similarily.
5345         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5346         definition of TMAC_S.
5347         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5348         * macros/TODO: New file.
5350 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
5352         * troff/env.c (right_justify): New function.
5353         (init_env_requests): Bind this to request "rj".
5354         (center_lines): Set right_justify_lines to 0. If we get a bad
5355         integer, center 1 line.
5356         (environment::environment(symbol), environment::environment(const
5357         environment *)): Initialize right_justify_lines.
5358         (environment::get_right_justify_lines): New function.
5359         (init_env_requests): Bind this to number_register ".rj".
5361         * troff/env.c (environment::choose_breakpoint): Implement
5362         hyphenation_margin and hyphenation_space.
5363         (environment::get_hyphenation_space,
5364         environment::get_hyphenation_margin): New functions.
5365         (init_env_requests): Bind these to .hys and .hym.
5366         (hyphenation_space_request, hyphenation_margin_request): New
5367         functions
5368         (init_env_requests): Bind these to hys and hym.
5369         (environment::environment(symbol), environment::environment(const
5370         environment *)): Initialize hyphenation_margin and
5371         hyphenation_space.
5372         * troff/env.h: Corresponding changes to class environment.
5374 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
5376         * troff/div.c (blank_line): Always do a break.
5378         * eqn/box.c (do_text): Turn off escapes while appending text to
5379         string.
5381 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
5383         * troff/input.c (while_break_request, while_continue_request): New
5384         functions.
5385         (init_input_requests): Bind these to "break" and "continue".
5386         (while_depth, while_break_flag): New variables.
5387         (while_request): Update while_depth.  Break out of loop if
5388         while_break_flag is set.
5390 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
5392         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5393         rather than 0.
5395 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
5397         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
5399         * stringify: New file.
5400         * Makefile (groff.o): Use stringify.
5402         * xditview/tmac.X: Remove definition of \(rn.
5403         * xditview/libXdvi/DviChar.c: Remove radicalex from
5404         Adobe_symbol_map.
5406 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
5408         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5409         (alphabetic_block_entry::alphabetic_block_entry,
5410         alphabetic_block_entry::divert, alphabetic_block_entry::print):
5411         New functions.
5412         (block_entry::divert): Split off body into ...
5413         (block_entry::do_divert): If the block is alphabetic, subtract 2n
5414         from the line length; also update the span width to dl+2n, and the
5415         alphabetic span width to dl.
5417         * driver/input.c (do_file):  While reading argument to D command,
5418         when expanding buffer, multiply szp by sizeof(int) rather than 2
5419         in the argument to memcpy.
5421         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5422         width of alphabetic columns.
5424 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
5426         * troff/node.c (lookup_family): Supply second argument to lookup.
5428         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5429         search, return immediately if v is 0.
5431         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5432         (troff_output::start_picture): Set this reg.
5433         (troff_output::end_picture): Remove this reg
5434         * eqn/box.c (box::extra_space): Don't produce `\x's if
5435         EQN_NO_EXTRA_SPACE_REG is defined.
5437         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5438         * eqn/text.c (split_text): Map ' to \(fm when it's the first
5439         character.
5441 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
5443         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5444         requests.
5446         * troff/div.c (top_level_diversion::top_level_diversion):
5447         Initialize page_number to 0.
5449 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
5451         * groff/troff (environment::environment(const environment *)):
5452         Initialize name to e->name, rather than "anonymous".
5454 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
5456         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5457         requested_page.  Split middle part into ...
5458         (FindPage): New function.
5459         (SetValues): If we don't yet know the last page, and the requested
5460         page is greater than the current page, call FindPage.
5461         Update the font_map_string before doing this.
5463         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5464         Translate \(lh and \(rh into left and right double arrows.
5466         * troff/node.c (class hyphen_inhibitor_node): New class.
5467         (hyphen_inhibitor_node::hyphen_inhibitor_node,
5468         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5469         hyphen_inhibitor_node::type,
5470         hyphen_inhibitor_node::get_hyphenation_type): New functions.
5471         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5472         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5473         word.
5475 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
5477         * troff/node.h (dummy_node::get_hyphenation_type,
5478         transparent_dummy_node::get_hyphenation_type):  Declare them.
5479         * troff/node.c: (dummy_node::get_hyphenation_type,
5480         transparent_dummy_node::get_hyphenation_type): New functions.
5482 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
5484         * xditview/libXdvi/draw.c: If M_PI not defined after including
5485         math.h, then define it.
5487         * xditview/Makefile: Add definition of AR. Pass it to the submake
5488         in libXdvi.
5489         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5491 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
5493         * troff/dictionary.h (object_dictionary::alias): Declare return
5494         value as int.
5495         * troff/dictionary.c (object_dictionary::alias): Return non-zero
5496         if the old name was defined.
5497         * troff/input.c (alias_macro): Give a warning if the old name was
5498         not defined.
5499         * troff/reg.c (alias_reg): Likewise.
5501 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
5503         * troff/input.c (token::next): Delete implementation of \R.
5505         * macros/Makefile: Strip comments from tmac.e while installing it.
5507         * troff/input.c: New variable `nroff_mode'.
5508         (troff_request, nroff_request): New functions.
5509         (init_input_requests): Bind `troff' and `nroff' to troff_request
5510         and nroff_request.
5511         (do_if_request): Compute results of t and n conditions from
5512         nroff_mode.
5514         * text/text.c (split_text): Fix typo in >=.
5516         * eqn/lex.c: Add definition of `==' to def_table.
5518 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
5520         * pic/tex.c (tex_output::start_picture): Change the definitions of
5521         \graph and \graphtemp so that they work properly with Plain TeX.
5523         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5524         argument to `ar' is not less than the first.
5526         * pic/pic.y: Allow a comma between elements of the variable list
5527         in the argument to `reset'.
5529         * pic/object.c (arc_object::arc_object): Fix computation of
5530         radius.
5532         * eqn/main.c (main): Add exit(0).
5534 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
5536         * troff/div.c (begin_page): Test no_space_mode after doing the
5537         break, but still push the page ejector cookie before doing the
5538         break.  Also set the next page number after doing the break.
5539         
5540         * xditview/xditview.c (NewFile): Don't set the title and icon name
5541         if this is the first file and its name is `-'.
5542         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
5543         the X75 and X100 devices.
5544         (main): If a device has the XT_OPTION flag set and there's exactly
5545         one file argument, pass the driver -xrm and -title options to set
5546         the icon name and window title to the name of the file.
5548         * troff/env.c (environment_switch): If there was an argument but
5549         it wasn't a valid number or name, then pop an environment but
5550         don't give an error message on underflow.
5552         * troff/number.c (start_number): Correct spelling in error message.
5554         * troff/input.c (token::delimiter): Don't print an error message
5555         if err is false.
5557         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5558         ParseDrawFunction if dw->display_enable is true.
5560 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
5562         * pic/pic.y: Parse text positioning like normal attributes, so as
5563         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
5564         positioning attribute.
5566 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
5568         * tbl/main.c (process_data): When in state START while reading a
5569         text block, don't change to state MIDDLE if c is a newline.
5571 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
5573         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5574         so as to avoid shadowing parameter.
5576 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
5578         * tbl/table.c (trim_space): Deleted.
5579         (table::add_entry): Don't call trim_space.
5581 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
5583         * VERSION: Change version to 0.6.
5585         * troff/number.c (parse_expr): Make == work.
5587 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
5589         * man/grog.man: New file.
5590         * man/Makefile: Add grog.n to MAN1PAGES.
5591         * etc/grog.sh: New file.
5592         * etc/Makefile: Install grog.sh as grog.
5594 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
5596         * troff/input.c (token::next): Implement \E.
5598 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
5600         * xditview/tmac.X: Change font translations to match tmac.ps.
5602         * troff/input.c (non_empty_name_warning): Don't give a warning if
5603         `\{' terminates the name.
5605 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
5607         * ps/devps/symbol.diff: New file.
5608         * ps/devps/FontMakefile: Mention symbol.diff.
5610 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
5612         * troff/node.c (font_position): Use get_long_name to read the
5613         external_name.
5615         * troff/env.c (environment_switch): If we get a number that's < 0
5616         or >= NENVIRONMENTS, treat it like a name.
5617         Change NENVIRONMENTS to 10.
5619         * troff/groff.h: Remove definition of FONTS_MAX.
5620         * troff/node.h (class font_family): Make map a pointer instead of
5621         an array. Add a map_size member. Make it a class. Make nm const
5622         and public. Make invalidate_fontno a friend.
5623         * troff/node.c: Define font_table_size. Make font_info a pointer
5624         rather than an array.
5625         (class troff_output_file): Allocate font_position dynamically. Add
5626         nfont_positions member.
5627         (troff_output_file::set_font): Grow font_position if necessary.
5628         (troff_output_file::~troff_output_file): Delete font_position.
5629         (troff_output_file::troff_output_file): Allocate font_position.
5630         (grow_font_table): New function.
5631         (troff_output_file::really_begin_page,
5632         troff_output_file:really_copy_page): Use nfont_positions rather
5633         than FONTS_MAX.
5634         (mount_font_no_translate, mount_style): Call grow_font_table if
5635         necessary.
5636         (font_family::font_family): Allocate map.
5637         (font_family::make_definite): Grow map if necessary. Use
5638         font_table_size instead of FONTS_MAX.
5639         (font_family::~font_family): New function.
5640         (invalidate_fontno): Use font_family::map_size.
5641         (get_fontno, env_space_width, env_half_narrow_space_width,
5642         env_narrow_space_width, symbol_fotno, is_good_fontno,
5643         get_bold_fontno, make_glyph_node): Use font_table_size rather than
5644         FONTS_MAX.
5645         (next_available_font_position): Never return 0.
5647 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
5649         * ps/tmac.ps: Add font translations for compatibility with dpost.
5651 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
5653         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5654         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5655         Move definitions baseline_sep, shift_down, column_sep,
5656         matrix_side_sep into...
5657         * eqn/box.c: Add them to param_table.
5658         * eqn/pbox.h: Add declarations to pbox.h.
5660         * troff/input.c (set_string): Cast value to unsigned char *.
5662         * troff/token.h (process_input_stack): Declare it static before
5663         declaring it a friend.
5665 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
5667         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5668         and bottom.
5669         * dvi/devdvi/EX: Regenerate.
5671         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5672         transparent.
5674 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
5676         * eqn/lex.c: In defaults_table, make definition of `dot' call
5677         `dot_def'.  Don't explicitly make it roman.  Similarily for other
5678         accents.
5680         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5681         argument.
5682         (for_input::get, for_input::peek): Use this.
5683         (do_for): Add by_is_multiplicative argument.
5684         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5685         Change semantic value of optional_by to be a double plus a flag
5686         saying whethet the by clause is multiplicative.
5688         * eqn/lex.c (get_delimited_text): Remember location of start of
5689         definition.  Improve error handling when EOF is encountered.
5691         * lib/font.h: Rename handle_x_command to
5692         handle_unknown_font_command.
5693         * lib/font.c (font::load): Call handle_unknown_font_command for
5694         any unknown command in the font description file.  Don't call
5695         handle_x_command. Include the name of the command in the argv.
5696         Improve message for unknown command after kernpairs or charset
5697         command.
5698         * ps/ps.c (ps_font::handle_x_command): Rename to
5699         handle_unknown_font_command.  Remove message about `x download'
5700         command.  Give error message for wrong number of arguments.
5701         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5702         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5703         handle_unknown_font_command. Give an error message for wrong
5704         number of arguments.  Rename design_size to designsize.
5705         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5706         checksum', `designsize' instead of `design_size'.
5708 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
5710         * eqn/*.[chy]: Change underaccent to uaccent.
5712         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
5713         give it the same precedence as ACCENT.
5714         * eqn/other.c (make_underaccent_box): New function.
5715         * eqn/box.h: Declare it.
5716         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5717         def_table.
5719 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
5721         * pic/pic.y (reset_all): New function. Called in rule for RESET.
5722         (parse_init): Call reset_all.
5723         (define_variable): When defining scale reset only those
5724         pre-defined variables that are scaled.
5725         (defaults_table): Add `scale' as non-scaled value.
5727         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5728         together with the text; allow any number of positioning words;
5729         allow center as a positioning word.
5731         * pic/object.c (output::compute_scale): Get picture maximum height
5732         and width from variables called maxpswid and maxpsht.
5733         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5735 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
5737         * pic/object.c (object_spec::make_text): Multiply textht by number
5738         of text items.
5740         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5741         occur.
5742         (do_sprintf): New function.
5743         (pic.gperf): Add sprintf token.
5744         (text, sprintf): New rules.
5746         * pic/pic.y: `rand()' with no arguments returns a random number
5747         in the range [0,1).
5749         * pic/pic.y: Allow a bare expression to be an attribute: change
5750         precedences to support this.  Change optional_ordinal rule to
5751         optional_ordinal_last to avoid reduce/reduce conflict.
5752         * pic/object.c (object_spec::object_spec): Initialize direction.
5754         * pic/pic.y: Implement ^ operator meaning exponentiation.
5756         * troff/node.h: Add default argument to mount_font.
5757         * troff/node.c (font_position): Read an optional third argument
5758         giving the external_name.
5759         (mount_font): Add optional argument giving the external_name.
5760         (mount_font_not_translate): Have additional argument giving
5761         external name.  Use this name to load the font.  Pass both names
5762         to font_info::font_info.
5763         (font_info::font_info): Have additional argument giving
5764         external_name.
5765         (class tfont): New member external_name.
5766         (font_info::get_tfont): Use external name to construct tfont_spec.
5768 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
5770         * eqn/lex.c (init_table): Add argument giving device.  Define
5771         name of device to be "1".
5772         (do_ifdef): Counts as true if the argument has been defined with
5773         `define'.
5774         * eqn/main.c (main): Call init_table with device argument. Make
5775         device local to main.
5776         * eqn/eqn.h: Change declaration of init_table. Remove declaration
5777         of device.
5779         * pic/lex.c (get_delimited): Allow text to be delimited by
5780         matching {}s.  Don't recognize ending delimiter within a string.
5782         * troff/input.c (get_delim_name): New function.
5783         (token::next): Implement \C.
5785         * lib/font.c (font::load): Grok ---.  Add an alias for each
5786         character based on its code.
5787         (font::get_code_width): Deleted.
5788         * lib/font.h (class font): Declare font::number_to_index().
5789         Remove declaration of font::get_code_width.
5790         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5791         to indices of named characters.
5792         (font::number_to_index): New function.
5793         * troff/input.c (font::number_to_index): New function.
5794         (get_charinfo_by_number, charinfo::get_number,
5795         charinfo::set_number): New functions.
5796         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5797         (token::process, token::description, token::get_char,
5798         token::add_to_node_list, token::operator==): Handle
5799         TOKEN_NUMBERED_CHAR.
5800         * troff/charinfo.h: Declare get_charinfo_by_number,
5801         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
5802         charinfo class.
5803         (charinfo::numbered): New function.
5804         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5805         * troff/env.h (class environment): Remove declaration of ...
5806         * troff/env.c (environment::make_numbered_char_node): Deleted.
5807         * troff/node.c (make_numbered_node): Deleted.
5808         (class numbered_glyph_node): Remove.
5809         (troff_output_file::put_char_width, troff_output_file::put_char):
5810         Handle numbered chars.
5811         (troff_output_file::numbered_char): Removed.
5812         (tfont::get_code_width): Removed.
5813         (make_glyph_node): Don't search special fonts for numbered
5814         characters.
5815         * troff/node.h: Remove declaration of make_numbered_node.
5816         * driver/input.c (do_file): Handle N command.
5817         * driver/printer.h: Add declaration of ...
5818         * driver/printer.c (printer::set_numbered_char): New function.
5819         * dvi/tfmtodit.c (main): Generate unnamed entries.
5820         * ps/devps/afmtodit: Likewise.
5821         * xditview/xtotroff.c (MapFont): Likewise.
5822         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5824         * tbl/main.c (process_format): If multiple widths are specified
5825         for a column but all the widths are the same, don't give an error
5826         message.
5828         * tbl/table.c (table::do_row): If the current row is all lines and
5829         the stuff doesn't contains a line, mark the top of the row after
5830         printing stuff before the row.  If the current row is not all
5831         lines and the stuff doesn't contain a line, don't unnecessarily
5832         mark the top of the row before printing the stuff.
5833         
5834 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
5836         * troff/groff.h: Remove MAX_PATH.
5837         * troff/input.c (open_file): Dynamically allocate space for the
5838         path.
5839         (open_mac_file, process_macro_file): Corresponding changes.
5841 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
5843         * troff/node.h (class output_file): Make copy_file pure.  Add
5844         vspace method ifdef COLUMN. Add is_printing method.
5845         * troff/node.c: Add class printing_reg. Add class
5846         real_output_file. Derive other output_file classes from
5847         real_output_file; in these classes rename begin_page to
5848         really_begin_page, print_line to really_print_line, copy_file to
5849         really_copy_file, transparent_char to really_transparent_char.
5850         Move output_file::flush to real_output_file. Add printing member
5851         to class output_file.
5852         * troff/div.h: Remove printing member from top_level_diversion.
5853         Add vspace member function to class diversion ifdef COLUMN. Add
5854         some declarations ifdef COLUMN.
5855         * troff/div.c (top_level_diversion::copy_file,
5856         top_level_diversion::transparent_output,
5857         top_level_diversion::output): Don't test printing member before
5858         output.
5859         * troff/input.c: Handle initial variable_space_request ifdef
5860         COLUMN.
5861         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5862         but comment it out.
5864 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
5866         * troff/div.c (diversion::need): Make any space forced.  If we
5867         sprung a trap, set truncated_space to minus the distance to the
5868         trap and set needed_space to the amount that was needed.
5869         (top_level_diversion::space): A forced space turns no_space_mode
5870         off.
5871         (class constant_vunits_reg): New class.
5872         (init_div_requests): Implement number registers .trunc and .ne
5873         using constant_vunits_reg.
5874         (class truncated_space_reg): Deleted.   
5876         * troff/div.h: Don't have a no_space_mode member in diversion.
5877         Instead have it in top_level_diversion.
5878         * troff/div.c (diversion::diversion): Don't initialize
5879         no_space_mode.
5880         (top_level_diversion::top_level_diversion): Initialize
5881         no_space_mode.
5882         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5883         (macro_diversion::output): Don't clear no_space_mode.
5885         * troff/input.c (diverted_space_node::reread): Don't call
5886         environment::do_break.  In fill mode, act like a blank line.
5887         (diverted_copy_file_node::reread): Don't call
5888         environment::do_break.
5890         * troff/div.c (blank_line): New function.
5891         * troff/div.h: Declare it.
5892         * troff/input.c (process_input_stack): Call it.
5894         * troff/div.c (truncated_space_reg::get_string): New function.
5895         (init_div_requests): Bind to .trunc.
5896         (space_request, top_level_diversion::space,
5897         top_level_diversion::output, macro_diversion::space,
5898         macro_diversion::output): Update truncated_space.
5899         (macro_diversion::output): Redo calculations when trap sprung.
5900         (macro_diversion::output, macro_diversion::space): No need for
5901         trap_flag.
5903         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5904         after truncating post line spacing.
5906 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
5908         * ps/devps/prologue (MF, SF): Make them work even if setfont is
5909         defined as a procedure rather than as an operator.
5911 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
5913         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5915 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
5917         * troff/div.c (top_level_diversion::output): Merge
5918         output_file::print_line and output_file::end_of_line member
5919         functions.
5920         * troff/div.h (class output_file):
5921         * troff/node.c (troff_output_file::print_line,
5922         troff_output_file::end_of_line, output_file::end_of_line,
5923         ascii_output_file::print_line, suppress_output_file::print_line):
5924         Corresponding changes.  
5926 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
5928         * troff/input.c (token::next): Don't give a warning for `\.'.
5930         * troff/env.c (environment::get_center_lines): New function.
5931         (init_env_requests): Bind number register .ce to it.
5932         * troff/env.h: Declare it.
5933         * tbl/table.c (table::init_output): Define reset macro to restore
5934         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
5935         Then do .ce 0.
5936         (table::print): If center option not given, then imply center
5937         option if SAVED_CENTER_REG > 0.
5939 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
5941         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5942         Troff.ps from DOWNLOAD.
5943         
5944         * troff/Makefile: Change comment in DEFINES to avoid confusing
5945         System V make.
5947         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5948         code.  Don't try to catch errors with stopped.
5949         (check_line_lengths): New function.
5950         * ps/devps/prologue (EXEC): Deleted.
5951         (EBEGIN, EEND): New procedures.
5953 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
5955         * troff/input.c: Include request.h before node.h.
5956         * troff/node.c: Likewise.
5957         * troff/env.c: Likewise.
5958         * troff/div.c: Likewise.
5959         * troff/node.h (class special_node): Store argument as a macro
5960         rather than a char *.
5961         * troff/node.c (special_node::special_node, special_node::copy):
5962         Grok this.
5963         (special_node::~special_node): Deleted.
5964         (special_node::tprint): Deleted.
5965         (special_node::tprint_start, special_node::tprint_end,
5966         special_node::tprint_char): New functions.
5967         (troff_output_file::special): Deleted.
5968         (troff_output_file::start_special, troff_output_file::end_special,
5969         troff_output_file::special_char): New functions.
5970         * troff/input.c (special_node::tprint): New function.
5971         (do_special): Use macro not char *.
5972         (do_transparent_macro): Deleted.
5973         (token::next): Don't call do_transparent_macro.
5975         * troff/input.c (token::next): Add 'Y' case.
5976         (do_transparent_macro): New function.
5977         * troff/node.c (troff_output_file::special): Handle newlines with
5978         argument using new continuation convention.
5979         * driver/input.c (get_string): Cope with continuation convention.
5980         (do_file): Don't call skip_line after calling get_string(1).
5981         * ps/ps.c (ps_printer::special, ps_printer::do_import,
5982         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5983         arg.
5984         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5985         with +.
5987 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
5989         * troff/input.c (asciify): By default, illegal input characters
5990         should return empty string.
5992         * troff/input.c (copy_file): Handle first page transition like title.
5993         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5995         * troff/input.c (token::next): Improve error message for EOF after
5996         escape character.
5997         (input_char_description): New function.
5998         (get_char_for_escape_name): Use input_char_description.
5999         (token::next): Warn about unrecognized escape sequences.
6000         (warning_table): Add WARN_ESCAPE.
6001         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6002         accordingly.
6004         * troff/token.h: Remove declaration of process_input_stack.
6006         * troff/input.c: Remove declaration of init_hyphen_requests.
6007         * troff/request.h: Correct spelling in declaration of same.
6009         * troff/input.c (token::next): Check whether escape_char is 0.
6011 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
6013         * groff.c (main, usage, help): Implement -P and -L options.
6014         * groff.sh: Likewise.
6016         * troff/input.c (token::next): Use some gotos to avoid code
6017         duplication.
6019         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6020         Avoid calling symbol::symbol if name empty.
6022 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
6024         * troff/input.c (init_input_requests): Make \n(.x return the major
6025         version number and \n(.y return the minor version number.
6026         * troff/Makefile: Construct file majorminor.c defining
6027         major_version and minor_version automatically from ../VERSION.
6029         * troff/node.c (class glyph_node): Make operator new and operator
6030         delete public.
6031         (class ligature_node): Similarily.
6033         * troff/input.c (operator==(const macro &, const macro &)): New
6034         function.
6035         (non_interpreted_node::same): Use this.
6036         (string_iterator::string_iterator): Make macro& argument const.
6038         * troff/input.c (input_iterator::get): New function. Don't make
6039         asciify_macro or class non_interpreted_node friends of class
6040         input_iterator.
6041         (non_interpreted_node::interpret): Use input_iterator::get.
6042         (asciify_macro): Likewise.
6044         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6045         ~non_interpreted_node): Deleted.
6046         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6047         Deleted.
6049         * troff/symbol.h: Make all symbol member functions const.
6051         * lib/strtol.c: New file.
6052         * lib/Makefile: Add strtol.c.
6053         * Makefile: Define STRTOL as strtol.o to include strtol in
6054         libgroff.a.
6056 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
6058         * pic/troff.c (troff_output::simple_circle): Divide by scale.
6060 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
6062         * troff/input.c (do_special): Use input_level.
6064         * troff/token.h (TOKEN_BACKSPACE): New token.
6065         (token::backspace): New function.
6066         * troff/input.c (token::description, token::next, token::process):
6067         Grok TOKEN_BACKSPACE.
6068         (do_special): Turn TOKEN_BACKSPACE back into \b.
6070         * troff/token.h (token::leader): New function.
6071         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6073         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6075         * troff/input.c (do_special): Use token::description in error
6076         message.
6078 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
6080         * troff/input.c (decode_args): Combine quoted and
6081         quote_input_level variables. Make it a for (;;) loop.
6083         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6085         * troff/input.c (read_long_escape_name): The test for whether to
6086         expand buffer was off by 1.
6087         (read_string): Similarily.
6089 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
6091         * troff/input.c: Use `const int' rather than `static const int'.
6093         * troff/div.h (diversion::copy_file): Declare as pure virtual.
6094         (macro_diversion::copy_file): New function.
6095         * troff/node.h: New class diverted_copy_file_node.
6096         * troff/node.c: Implement it.
6097         * troff/input.c (copy_file): Use diversion::copy_file. Handle
6098         first page transition by pushing a diverted_copy_file_node.
6099         * troff/input.c (token::next, process_input_stack): Don't handle
6100         COPY_FILE_REQUEST.
6102 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
6104         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6105         whether space widths need adjusting.
6107         * troff/charinfo.h: Generalize translated_to_space to
6108         special_translation so as to allow translation to \&.
6109         * troff/input.c (translate): Allow translation to \&.
6110         (charinfo::*): Corresponding changes.
6111         * troff/node.c (make_node, node::add_char): Corresponding changes.
6112         * troff/node.h (dummy_node::dummy_node): Allow optional first
6113         argument.
6115         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6116         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6117         TOKEN_REQUEST.
6118         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6119         TOKEN_REQUEST with an argument of TITLE_REQUEST.
6120         (token::process): Grok that.
6121         * troff/input.c (copy_file): Handle first page transition like
6122         title by pushing a COPY_FILE_REQUEST cookie.
6123         (token::next, process_input_stack): Grok that.
6124         * troff/node.h (output_file::copy_file): Add x and y arguments.
6125         Make it non-pure.
6126         * troff/div.c (top_level_diversion::copy_file): Supply them.
6127         * troff/node.c (troff_output_file::copy_file): Add x and y
6128         arguments; moveto specified position.  Invalidate font_position
6129         array after copying file.
6130         (output_file::copy_file): New function.
6131         (suppressed_output_file::copy_file, ascii_output::copy_file):
6132         Removed.
6133         * troff/input.c (transparent_file): New function.
6134         (init_input_requests): Bind to "trf".
6135         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6136         (process_input_stack): Likewise.
6138         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6140         * troff/node.c (init_node_requests): New number registers .kern
6141         pointing to global_kern_mode, and .lg pointing to
6142         global_ligature_mode.
6144         * troff/node.c (ligature): Don't change it if we get a bad
6145         integer.
6147         * troff/input.c (do_define_string): Don't strip tabs.
6149         * troff/input.c (asciify_macro): Make the string_iterator auto.
6151         * troff/node.c (init_font_requests): Rename to...
6152         (init_node_requests):
6153         * troff/node.h: Change declaration.
6154         * troff/input.c (main): Change call.
6156         * troff/input.c (node::reread, diverted_space_node::reread): New
6157         methods.
6158         (process_input_stack): Call reread rather than
6159         get_diverted_space_node.
6160         * troff/node.c (node::get_diverted_space_node,
6161         diverted_space_node::get_diverted_space_node): Removed.
6162         * troff/node.h: Declare reread methods instead of
6163         get_diverted_space_node methods. Make `n' member private.
6164         * troff/input.c: (token::diverted_space): Removed.
6165         * troff/token.h: Removed declaration.
6166         
6168 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
6170         * eqn/script.c (script_box::compute_metrics): Don't let
6171         SUP_RAISE_FORMAT become negative.
6173         * tbl/table.c (table::do_row): Entries that don't end in the
6174         this row shouldn't make the row non-blank.
6175         
6176         * tbl/table.c (table::make_columns_equal): Only set the width of
6177         columns which are marked as equal.
6178         
6179         * tbl/main.c (process_data): Before issuing excess data error,
6180         if last character was a newline unget it; then get it again after
6181         the error.  Also include the contents of the entry in the message.
6183         * groff.c: New file.
6184         * Makefile: Build groff from groff.c.  Make it possible to use
6185         either groff.sh or groff.c as groff.
6186         * Makefile.bd: Similarily.
6188 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
6190         * groff.sh: Don't delay expansion of $@ in assignment to files.
6191         Remove occurrences of \".
6193 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
6195         * all Makefiles: Simplify and rearrange.
6197         * Makefile: Handle fmod like malloc.
6198         * lib/Makefile: Similarily.
6199         * lib/fmod.c: Remove #ifdef NEED_FMOD.
6201         * Makefile: Rename OPTIMISE to OPTIMIZE.
6203         * groff.sh: Remove assignment to PATH.
6204         * Makefile: Remove SHPATH variable.
6205         * Makefile.bd: Similarily.
6207         * groff.sh: Add -V option to print the pipeline instead of
6208         executing it.
6210 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
6212         * lib/font.c: Split off file searching into ...
6213         * lib/fontfile.c: New file.
6215         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6217 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
6219         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6220         Also change misleading comment.
6221         (table::do_vspan): Change similarily misleading comment.
6222         * tbl/main.c (process_data): A format row with an explicit `s'
6223         uses up a data line, even if all the other columns are `_' or `='.
6225         * troff/input.c (token::description): Fix description of
6226         TOKEN_DUMMY and TOKEN_EMPTY.
6228 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
6230         * groff.sh: Fix description of -Z in help message.
6232 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
6234         * pic/object.c (object_spec::make_object): Allow negative and zero
6235         line thicknesses.
6236         * pic/pic.y: Give linethick default value of -1.0.
6237         * pic/troff.c (troff_output::troff_output): Initialize
6238         last_line_thickness to BAD_THICKNESS.
6239         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6240         (troff_output::line_thickness): Canonicalize negative thicknesses
6241         to RELATIVE_THICKNESS.
6242         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6243         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6244         to -1.0.
6245         (tex_output::start_picture): Set pen_size to -2.0.
6247         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6248         0, then use 0 linewidth.
6249         (ps_printer::ps_printer): Initialize line_thickness to -1.
6251         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6253         * ps/devps/symbolchars: Remove `or'.
6254         * ps/tmac.ps: Implement \(or with .char.
6256         * ps/devps/symbolchars: Move most characters into textmap.
6257         * ps/devps/textmap: Add names for troff bracket characters. Remove
6258         ul, ru, br, bv.
6260         * ps/devps/TSymbol.ps: Removed.
6261         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6262         * ps/tmac.ps: Do with .char what TSymbol did.
6263         * ps/devps/download: Remove TSymbol.
6265         * ps/devps/T: Removed.
6266         * ps/devps/Troff.ps: Removed.
6267         * ps/devps/Troff.afm: Removed.
6268         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6269         * ps/devps/download: Remove Troff.
6270         * ps/devps/FontMakefile: Remove T target.
6271         * ps/devps/DESC-A4: Remove T from font list.
6272         * ps/devps/DESC-letter: Likewise.
6274         * troff/input.c (macro_to_node): Rename to ...
6275         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
6276         character's definition while processing it.
6277         * troff/node.c (node::add_char, make_node): Change calls to
6278         macro_to_node accordingly.
6280         * troff/input.c (token::next): Translate \_ to \(ul.
6282         * tty/devascii/R.proto: Add `|'.
6283         * tty/devlatin1/R.proto: Likewise.
6285 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
6287         * man: Put the version number in all the man pages.
6289 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
6291         * Makefile.bd: New file.
6292         * README.bd: New file.
6294         * VERSION: New file.
6295         * lib/version.c: Removed.
6296         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6297         in clean target.
6299         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6300         environment variable.
6302         * all Makefiles: Split install target into install.bin for
6303         binaries, and install.nobin for everything else.
6304         * Makefile: Add bindist target.
6306         * man/afmtodit.man: New file.
6307         * man/Makefile: Add afmtodit.n to MAN1PAGES.
6308         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6309         in BINDIR.
6310         * ps/Makefile: Pass BINDIR to make install in devps.
6312         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6313         the space character.
6315         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6317 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
6319         * ps/ps.c: Redo font downloading.
6320         * ps/devps/download: New file.
6321         * ps/devps/Makefile: Add download to DEVICEFILES.
6322         * ps/devps/afmtodit: Remove -d option.
6323         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6324         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6325         * ps/devps/zapfdr.ps: Likewise.
6326         * ps/devps/TSymbol.ps: Likewise.
6328 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
6330         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6332 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
6334         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6335         then strip the first line if it starts with %.
6336         * Makefile: Add a comment about this.
6338         * man/tfmtodit.man: New file.
6339         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6340         * dvi/Makefile: Install tfmtodit in BINDIR.
6342         * dvi/tfmtodit.c (usage): Mention -v option.
6344 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
6346         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6347         * troff/node.c (troff_output_file::transparent_char): Don't call
6348         flush_tbuf.
6350         * eqn: Add check_tabs method to most box classes.
6351         * eqn/box.c (box::top_level): Call check_tabs.
6353         * eqn/script.c (script_box::output): Use \Z.
6354         * eqn/limit.c (limit_box::output): Use \Z.
6356         * eqn/box.c (box::top_level): Use itoa.
6358 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
6360         * dvi/tmac.dvi: Add font translations for CR, C, TT.
6361         * dvi/devdvi/Makefile: Don't make links to CW.
6363         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6364         HX, HD.
6365         * xditview/tmac.X: Likewise.
6367         * troff/node.c: Add font translation feature.
6368         (get_font_translation): New function.
6369         (symbol_fontno): Translate the font name.
6370         (mount_font_no_translate): Rename to mount_font to this.
6371         (mount_font): New function.
6372         (font_family::make_definite): Call mount_font_no_translate instead
6373         of mount_font.
6374         (mount_style): Translate the font name.
6375         (font_translate): New function.
6376         (init_font_requests): Bind "ftr" to font_translate.
6378         * ps/devps/prologue (SN): New procedure that rounds a position to
6379         the nearest (pixel + (.25,.25)).
6380         (DL): Use SN to round endpoints.
6382         * lib/version.c: Changed version to 0.5.
6384 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
6386         * Makefile: Move definition of PAGE to the very beginning, so that
6387         people are less likely to miss it.
6389 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
6391         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6393         * troff/env.c (environment::choose_breakpoint): Make `can't find
6394         breakpoint' error a warning of type WARN_BREAK.  Change message to
6395         `can't break line'.
6396         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6397         code 040000.
6398         * troff/input.c: Add WARN_BREAK to warning_table.  Include
6399         WARN_BREAK in DEFAULT_WARNING_MASK.
6401         * tty/tmac.tty: Add definition of \(+-.
6403         * groff.sh: Remove `--' option to set command.
6405         * dvi/devdvi/texsy.map: Remove duplicate md entry.
6407         * ps/devps/eqnchar: Better definition of cdot using md.
6408         * dvi/devdvi/eqnchar:  Likewise.
6409         * xditview/devX100/eqnchar:  Likewise.
6410         * xditview/devX75/eqnchar: Likewise.
6411         * eqn/lex.c: Add definition of cdot.
6413 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
6415         * troff/input.c (get_optional_char): New function.
6416         * troff/input.c (set_page_character): Use get_optional_char(),
6417         rather than has_arg() and tok.get_char(1).
6418         * troff/env.c (tab_character, leader_character, hyphen_char,
6419         field_characters): Likewise.
6420         (margin_character): Likewise.  Also always delete the
6421         margin_character_node.
6423         * troff/input.c (token::get_char): Use token::description.
6425         * troff/input.c (has_arg): Don't skip over tab and \}.
6426         * troff/number.c (start_number): Give a warning if the number
6427         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6429 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
6431         * troff/input.c (empty_name_warning, non_empty_name_warning): New
6432         functions.
6433         (get_name, get_long_name): Use these.  Rename `warn' argument to
6434         `required'.
6436         * troff/node.c (get_fontno): Test that the symbol is not null.
6438         * troff/input.c (token::description): New function.
6439         * troff/number.c (parse_term): Use token::description in `numeric
6440         expression expected' message.
6441         * troff/groff.h: Add WARN_MISSING.
6442         * troff/number.c (start_number): New function.
6443         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6444         get_incr_number): Use start_number().
6445         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6446         default.
6447         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6448         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6449         token::descripion.
6450         * troff/input.c (token::get_char): Use WARN_MISSING.
6451         * troff/input.c (token::delimiter): Use token::description.
6452         * troff/env.c (environment_switch): Back out Aug 3 change.
6453         * troff/input.c (has_arg): Skip over \}s and tabs but give a
6454         warning.
6455         * troff/token.h (token::tab): New function.
6456         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6457         * troff/reg.c (alter_format): Likewise.
6458         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6460 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
6462         * troff (most files): Redo warnings. Divide warnings into various
6463         categories; warning() has an additional first argument indicating
6464         the category it falls into.
6465         * troff/input.c (main): -w now takes an argument. New option -W.
6466         (enable_warning, disable_warning): New functions.
6468         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6469         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6471 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
6473         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6474         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6475         * xditview/devX75/eqnchar: Likewise.
6476         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6478         * eqn/other.c: When bar or over applies to a single character
6479         don't produce an overline_box or an underline_box. Instead produce
6480         an accent_box or an underaccent_box, with the accent a line
6481         whose width is accent_width.  New classes underaccent_box,
6482         overline_char_box and underline_char_box.
6483         * eqn/box.h: Move overline_box, underline_box, accent_box class
6484         declarations into eqn/other.c. Add declarations of
6485         make_underline_box, make_overline_box, make_accent_box.
6486         * eqn/eqn.y: Call make_overline_box, make_underline_box
6487         make_accent_box instead of constructors.
6488         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6490         * eqn/other.c: Add accent_box::~accent_box.
6491         * eqn/box.h: Declare it.
6493         * groff.sh: With -Tps, use eqn -D.
6495         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6496         rather than \l.
6497         (underline_box::output): Similarily.
6498         (accent_box::output): Use \Z.
6500         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6501         bit smaller.)
6503 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
6505         * troff/div.c (top_level_diversion::transparent_output(unsigned
6506         char)): Use asciify.
6507         * troff/input.c (asciify): Don't make it static.
6508         * troff/token.h (asciify): Declare it.
6509         
6510         * troff/input.c (get_name, get_long_name, token::get_char,
6511         token::delimiter): Add an extra default argument which says
6512         whether a warning should be printed.
6513         * troff: Pass a non-zero argument to one of these rather than
6514         printing a warning directly.
6516 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
6518         * troff: Consistently use symbol::is_null.
6520         * troff/dictionary.h: Move some inline functions into
6521         dictionary.c.
6523         * troff/request.h: Move inline functions into input.c.
6524         (request_or_macro::invoke): Make it pure.
6526         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6527         * troff/input.c (init_input_requests): Use class constant_int_reg.
6528         (class compatible_reg): Deleted.
6529         * troff/div.c (init_div_requests): Use class constant_int_reg.
6530         (class last_post_line_extra_space_reg): Deleted.
6532         * troff/env.c (tab_character): Don't change the tab character if
6533         we get an invalid argument.
6534         (hyphen_char): Similarily.
6536         * troff/reg.c (alter_format): Check that nm is not null.
6538         * Makefile, groff.sh: Make it possible to customize the commands
6539         used for printing PostScript and dvi files. Also make it possible
6540         to customize the path used by groff.sh.
6542         * eqn/eqn.y: Make `left' right associative.
6544 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
6546         * pic/pic.h: Added definition of M_SQRT2 for those systems that
6547         don't have it.
6549         * pic/pic.h: Removed definition of INT_MAX.
6551         * troff/node.c (italic_corrected_node::vertical_extent): Omit
6552         `return'.
6554         * troff/input.c (token::next):  Handle \R like \n.
6556 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
6558         * ps/tmac.pc (PSPIC): Simplify.
6560         * troff/env.c (tab_stops::to_string):
6561         * pic/pic.y (object_type_name):
6562         * pic/troff.c (simple_output::line):
6563         * pic/tex.c (tex_output::spline):
6564         * pic/object.c (object_spec::make_object):
6565         * tbl/main.c (process_data):  Add cases to switch statements to
6566         avoid cfront warnings. (Some of these are spurious, since the
6567         switch already has a default case.)
6569         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
6570         `ps-'.  Don't test systat; instead check number of arguments to
6571         ps-bb.
6573 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
6575         * macros/tmac.e: Do not decrease the page offset by 0.5i.
6577         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6578         Unlink the file as soon as we have opened it, so that we don't
6579         have to bother with signal handlers.
6580         (handler): Deleted.
6581         (fatal_error_exit): Deleted.
6582         (main): Don't call signal.
6584         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6585         can be ignored.
6586         * dvi/devdvi/Makefile: Use the -k option with S and MI.
6588         * pic/pic.y:  If there is a label, or an nth construction before
6589         the first `.' in the argument to `with', ignore it and generate a
6590         warning.
6591         * pic/lex.c (lex_warning): New function.
6593         * tbl/table.c (table::init_output): In section keep and release
6594         macro, use 0 indent when diverting and the correct indent when
6595         rereading.
6597         * troff/input.c (interpolate_number_format): Do not interpolate
6598         anything if the number register is not defined.
6600         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6602 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
6604         * ps/devps/prologue (PICTURE): Set components of graphics state to
6605         their default values.
6607         * ps/devps/text.enc: Add trademark
6608         * ps/devps/textmap: Add names for club, spade, heart, diamond,
6609         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6610         * ps/devps/symbolchars: Add names for summation and product.
6612         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6613         suchthat. Add pp. Add upper-case letters.
6615         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6616         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6617         Upsilon.
6619         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6620         rA (right angle bracket) to ra.  Introduce names for double-headed
6621         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6622         * ps/devps/textmap: Likewise for ps device.
6623         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6624         * tty/devascii/R.proto: Rename lA to la and rA to ra.
6625         * tty/devascii/R.proto: Likewise.
6626         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6627         \(uA, \(dA.
6628         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6630         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6632         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6633         def_table.
6635 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
6637         * troff/div.c (when_request): Use symbol::is_null rather than
6638         has_arg to determine whether we have an argument.
6639         (change_trap): Remove the trap if we get an invalid number. Give
6640         an error if we don't get at least the macro name.
6641         (diversion_trap): Remove trap if we get an invalid name or number.
6643         * troff/env.c (environment_switch): Pop if we get an invalid
6644         symbol or numeric expression.
6646         * troff/input.c (do_define_macro):  If EOF is encoutered while
6647         defining the macro, do tok.next() before returning.
6649         * troff/token.h (has_arg): Move definition from here, to ...
6650         * troff/input.c (has_arg): ... here
6652         * troff/env.c (space_size): Do nothing if we get an invalid argument.
6653         * troff/input.c (shift): Likewise.
6655         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
6656         for `.c'.
6658         * pic/troff.c (troff_output::start_picture):  Comment out calls to
6659         `..'.
6661         * eqn/main.c (do_file): Subtract 1 from current_lineno if
6662         interpret_lf_args succeeds.
6664         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6665         \\.  This avoids problems with \$N.
6667         * groff.sh: Pass -C to preprocessors.
6669         * lib/lf.c (interpret_lf_args):  Be more flexible.
6671         * tbl/main.c (main): Add -C option.
6672         (table_input::get): Do not recognize TE if followed by character
6673         other than a space or newline unless -C option given.
6674         (process_input_file): Likewise for lf, TS.
6675         (process_data): Likewise for lf in text blocks.
6677         * eqn/main.c (main): Add -C option.
6678         (do_file): Don't recognize EQ, EN or lf if followed by character
6679         other than space or newline unless -C option given.
6680         * eqn/lex.c (file_input::read_line): Similarily.
6681         * eqn/eqn.h: Declare compatible_flag.
6683         * etc/soelim.c (main): Add -C option.
6684         (interpret_lf_args): Use version in libgroff.
6685         (do_file):
6687         * pic/main.c (main): Add -C option, which sets compatible_flag.
6688         (top_input::get), (top_input::peek):  If -C option not given,
6689         do not recognize .PS/.PE/.PF/.lf if followed by a character
6690         other than space or newline.
6691         * pic/lex.c (file_input::read_line): Similarily.
6692         * pic/pic.h: Add declaration of compatible_flag.
6694 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
6696         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6698         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
6699         derived from node.  New class space_char_hmotion_node.
6700         * troff/input.c (asciify_macro): New function.
6701         * troff/input.c (init_input_requests): New request `asciify' bound
6702         to asciify_macro.
6703         * macros/mm.diff: New file.
6704         * Makefile:  In install.mm target use `patch' to apply
6705         macros/mm.diff.
6707         * troff/input.c (macro::print_size): Just print the size in bytes.
6709         * troff/div.c (return_request): Correct the argument
6710         interpretation.
6712 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
6714         * troff/node.h (class composite_node): Add sz member.
6715         * troff/node.c (composite_node::size): Return sz.
6716         * troff/input.c (macro_to_node):  Use the initial size in the
6717         environment as the size of the composite_node.
6719         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
6720         default.
6722 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
6724         * troff/div.c (change_trap): If we get a bad number expression,
6725         do nothing.
6727 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
6729         * lib/matherr.c (matherr): Define this only if math.h defines
6730         TLOSS.
6732 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
6734         * troff/div.c (macro_diversion::distance_to_next_trap): If there
6735         no diversion trap return vunits(INT_MAX - vresolution).
6737 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
6739         * troff/input.c (do_zero_width): New implementation that doesn't
6740         use a temporary environment. Use instead:
6741         (token::add_to_node_list): New function.
6742         * troff/env.c (environment::get_prev_char_height),
6743         (environment::get_prev_char_height),
6744         (environment::get_prev_char_skew): New functions.
6745         (environment::get_prev_char): New function.
6746         (environment::get_prev_char_width): Change to use get_prev_char.
6747         (init_env_request): Implement new registers .cht, .cdp, .csk.
6748         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6749         \Z being processed in a separate environment.
6751 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
6753         * tbl/table.c: Removed TABLE_BOTTOM_REG.
6755         * tbl/table.c (table::init_output): In the section release macro,
6756         give a warning message if the section won't fit on one page.
6758         * tbl/table.c (table::do_top): Emit table keep only if table is
6759         boxed.
6760         (table::do_bottom): Likewise for table release.
6761         (table::table), (table::add_vertical_rule):  Remove reference to
6762         keep member.
6763         * tbl/table.h: Remove keep member.
6765         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6766         SECTION_RELEASE_MACRO, if there's not enough space before the next
6767         trap to output the diversion, call T# ourselves, set
6768         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6769         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
6770         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
6771         vertical position and return to it before turning traps on again.
6772         
6773 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
6775         * troff/node.c, troff/node.h: In classes derived from node,
6776         replace prev_char_width method by last_char_node method.
6777         * troff/env.c (environment::get_prev_char_width): Use
6778         node::last_char_node rather than node::get_prev_char_width.
6780         * Makefile: Added comment about -fno-inline on 68030-based
6781         Apollos.
6783         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6784         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6785         expressions using sizeof to int.
6786         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6788         * macros/tmac.e (TS):  Don't move @f back past the current
6789         position.
6791 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
6793         * ps/ps.c (main): Buffer stderr.
6794         * dvi/dvi.c (main): Likewise.
6795         * tty/tty.c (main): Likewise.
6797         * ps/ps.c (ps_printer::do_import): Improve error handling.
6799         * troff/input.c (abort_request): Use asciify.
6801         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6802         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6803         type of first argument int rather than char.  This works around a
6804         bug on the 68030 based Apollo using g++ 1.37.1.
6806         * tbl/table.h (class table): Add `keep' member.
6807         * tbl/table.c (table::table): Initialize `keep'.
6808         (table::add_vertical_rule): Set `keep' to 1.
6809         (table::do_top): Only emit table keep macro is `keep' is non-zero.
6810         (table::do_bottom): Likewise for table release macro.
6811         (table::do_row): Emit section keep macro even if the row is 0.
6813 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
6815         * macros/tmac.e (@C): Preserve the font family across the change
6816         in environments.
6818 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
6820         * lib/font.c: Initialize font::hor and font::vert to 1.
6821         (font::load_desc): Check the values of font::hor and font::vert.
6823         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6824         be included in a C compilation.
6825         (iftoa): Use INT_DIGITS. Include lib.h.
6826         (itoa): Likewise.
6827         (as_string): Likewise.
6828         * tbl/table.c: Removed definition of INT_DIGITS.
6829         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6830         * troff/input.c (input_input_requests): Likewise.
6831         * ps/ps.c (make_encoding_name): Likewise.
6832         (ps_printer::set_style): Likewise.
6833         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6835         * tty/devascii/R.proto: Map fm onto '.
6836         * tty/devlatin1/R.proto: Likewise.
6838 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
6840         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6841         argument to \w is at a different input level.
6843         * tbl/table.c (table::init_output): Define a new macro
6844         REPEATED_VPT_MACRO, like vpt but if in a diversion also
6845         transparently outputs itself.
6846         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6847         vpt.
6848         (table::do_row): Likewise.
6850         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6851         TRANSPARENT_STRING_NAME.
6853         * tbl/table.c (table::init_output): In the table release macro
6854         print an error message and don't produce any output if after
6855         issuing the need request the table still will not fit.  Also
6856         remove the diversion after bringing it back.
6858         * tbl/table.c (table::init_output): Define a new macro
6859         REPEATED_MARK_MACRO, like mk but if in a diversion also
6860         transparently outputs itself.
6861         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6862         is necessary because .TH might not call .T#.
6863         (table::do_top): Likewise TOP_REG.
6864         (table::define_bottom_macro): If TOP_REG is no longer valid, use
6865         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6866         table header might contain just the two top rules.
6868 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
6870         * troff/div.c: Implement new request `ptr' to print all traps.
6872         * troff/env.c (init_env_requests): Implement `.tabs' reg with
6873         init_string_env_reg.
6874         * troff/env.c (class tab_reg): Deleted.
6876 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
6878         * troff/div.c: New number register .pn returns the number of the
6879         next page as set by the pn request.
6881         * macros/tmac.an: Redid headers and footers.  Number each manual
6882         entry starting from 1 unless \nC is > 0, like Sun.  Added an
6883         optional 5th argument to .TH which specifies the manual name and
6884         appears in the center of the header.  Understand the X, P and D
6885         registers like Sun.
6887 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
6889         * troff/env.c (init_env_requests): New number register `.lt' to
6890         return the title length.
6892         * troff/node.h (class transparent_dummy_node): New class.
6893         * troff/node.c (class transparent_dummy_node): Provide member
6894         functions. 
6895         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6896         than a dummy_node.
6898         * troff/input.c (token::next): New escape sequence \).
6899         * troff/input.c (get_copy): Recognize \) in copy mode.
6901         * troff/input.c (input_stack::clear): New function.
6902         * troff/input.c (exit_request): Use input_stack::clear.
6904         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6905         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6907         * troff/env.c: Move set_page_character to input.c.  Move
6908         page_character to input.c also.
6909         * troff/env.c (title): Split off the reading of the parts of the
6910         title into read_title_parts.
6911         * troff/input.c (read_title_parts): New function.  Check the
6912         input_level when testing whether a token matches the delimiter.
6914         * troff/input.c (exit_request): New function.
6915         * troff/input.c (init_input_requests): Bind ex request to
6916         exit_request rather than exit_groff.
6918         * troff/input.c (exit_groff): Call tok.next() before
6919         process_input_stack().
6921 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
6923         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6924         * troff/env.h: ditto.
6925         * troff/input.c: ditto.
6927         * troff/env.c (environment::is_empty): Test pending_lines.
6929         * troff/env.c (environment::have_pending_lines): Removed.
6931         * troff/input.c: Add request to flush pending lines from the
6932         environment.
6934         * troff/env.c, troff/env.h: Add automatic widow control feature.
6936         * troff/input.c (exit_groff):  Do process_input_stack() after
6937         do_break() but before setting exit_flag to 2.
6939         * troff/input.c: Remove FLUSH_PENDING_LINES and
6940         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6941         environment after END_TRAP token seen, but only if there aren't
6942         any more traps still unfinished.
6943         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6945 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
6947         * troff/env.c: Rename the `retain_size' member of class
6948         pending_output_line to `no_fill'.
6950         * troff/env.c (title): When the line is output, make the
6951         retain_size argument !fill.
6953         * troff/node.h: Add `hyphenated' member to struct breakpoint.
6954         * troff/node.c (space_node::get_breakpoints),
6955         (dbreak_node::get_breakpoints):  Fill this in.
6956         * troff/env.c:  Allow specification of maximum number of
6957         consecutive hyphenated lines.
6959         * troff/env.c (environment::is_empty): Add test for !current_tab.
6961 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
6963         * troff/env.c (environment::hyphenate_line): Don't completely give
6964         up if the word is not to be hyphenated; continue so that breaks
6965         can be made at break_char_node's.
6967         * lib/lib.h: Only define INT_MAX if it's not already defined;
6968         undef INT_MIN if it's already defined.
6970         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6972         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6973         This works around a bug in AT&T C++ 2.0 used with an ANSI C
6974         compiler.
6975         
6976         * macros/tmac.an (an-header): Set no-space mode.
6978         * macros/tmac.an (TH): Start a new page if necessary.
6980         * Started using ChangeLog at version 0.4.
6982 Local Variables:
6983 version-control: never
6984 End: