home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / groff-1.09-src.lha / src / amiga / groff-1.09 / ChangeLog < prev    next >
Text File  |  1994-02-19  |  185KB  |  5,352 lines

  1. Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
  2.  
  3.     * Version 1.09 released.
  4.  
  5. Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
  6.  
  7.     * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
  8.  
  9. Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
  10.  
  11.     * libgroff/font.cc (font::load_desc): Fix typo in error message.
  12.  
  13. Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
  14.  
  15.     * libgroff/new.cc (operator new): Rewrite so as to avoid warning
  16.     about returning without a value.
  17.  
  18.     * troff/charinfo.h (charinfo::get_special_translation): Cast
  19.     TRANSLATE_NONE to int.
  20.  
  21.     * refer/token.cc (lookup_token, store_token): Remove bogus loop
  22.     test.  Fix test so that it works with n unsigned.
  23.  
  24.     * pic/pic.y (defaults_table): Fully bracket initializer.
  25.     * pic/lex.cc (lookup_keyword): Likewise.
  26.     * eqn/lex.cc (token_table, def_table): Likewise.
  27.     * eqn/box.cc (param_table): Likewise.
  28.     * troff/input.cc (warning_table): Likewise.
  29.     * libgroff/font.cc (table): Likewise.
  30.     * grops/ps.cc (ps_printer::special): Likewise.
  31.     * grops/psrm.cc (resource_manager::process_file): Likewise.
  32.     * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
  33.     * refer/command.cc (command_table): Likewise.
  34.     * addftinfo/addftinfo.cc (param_table): Likewise.
  35.  
  36.     * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
  37.     about temp's being unused.
  38.     (unused): New function.
  39.  
  40.     * groff/pipeline.cc: Declare c_fatal.
  41.  
  42.     * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
  43.     uchar.
  44.  
  45.     * libbib/index.cc (index_search_item::load): Prevent compiler
  46.     warnings about fd_closer's being unused.
  47.     (unused): New function.
  48.  
  49. Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
  50.  
  51.     * troff/input.cc (copy_mode_error): Make `prefix' static.
  52.     Fix typo.
  53.  
  54.     * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
  55.     defined.
  56.     * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
  57.     HAVE_CC_OSFCN_H and modify accordingly.
  58.  
  59.     * troff/input.cc (init_charset_table): radicalex overlaps
  60.     horizontally.
  61.  
  62.     * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
  63.     udodo!hans@relay.NL.net).
  64.     * groff/configure.in: Call it.
  65.  
  66.     * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
  67.     * groff/configure.in: Call it.
  68.     * include/lib.h: Conditionalize declaration of pclose.
  69.  
  70.     * troff/div.cc (last_page_number): New global variable.
  71.     (top_level_diversion::begin_page): Exit if we just printed the
  72.     last page.
  73.     * troff/div.h (last_page_number): Declare it.
  74.     * troff/input.cc (parse_output_page_list): Set last_page_number.
  75.  
  76.     * eqn/sqrt.cc: Rename \(rn to \[radicalex].
  77.     * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
  78.     tmac/tmac.X: Likewise.
  79.     * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
  80.     * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
  81.  
  82. Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
  83.  
  84.     * tmac/doc-ditroff (hK): Remove groff specific code which
  85.     prevented page-breaks between separate manual entries.  If this is
  86.     the first page, don't set the page number to 1.
  87.  
  88.     * acgroff.m4 (GROFF_POSIX): New macro.
  89.     * configure.in: Use it.
  90.  
  91.     * troff/node.cc (class real_output_file,
  92.     real_output_file::real_output_file,
  93.     real_output_file::~real_output_file): Conditionalize use of
  94.     popen/pclose on POPEN_MISSING.
  95.     * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
  96.     * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
  97.     (pipe_source): Similarily.
  98.  
  99.     * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
  100.  
  101.     * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
  102.     presence of declarations by trying to compile example with
  103.     conflicting declarations.  (gcc only gives a warning for missing
  104.     declarations.)
  105.  
  106. Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
  107.  
  108.     * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
  109.     (from Ulrich Lauther).
  110.  
  111. Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
  112.  
  113.     * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
  114.  
  115. Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
  116.  
  117.     * indxbib/indxbib.cc (write_hash_table): Add code for case where
  118.     pointers and ints have different sizes.
  119.  
  120. Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
  121.  
  122.     * tmac/tmac.s (par*env-init): Call par@reset.
  123.  
  124. Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
  125.  
  126.     * tmac/tmac.s (@IP): Switch to a new environment when diverting
  127.     tag.
  128.     (par*push-tag-env, par*pop-tag-env): New macros.
  129.  
  130. Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
  131.  
  132.     * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
  133.     initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
  134.  
  135.     * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
  136.     comment.  Include <time.h>.
  137.  
  138. Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
  139.  
  140.     * grops/ps.cc (is_small_h, is_small_v): Deleted.
  141.     (ps_printer::flush_sbuf): Use absolute motion only at beginning of
  142.     lines.
  143.  
  144. Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
  145.  
  146.     * troff/input.cc (read_request): Only print a prompt if reading
  147.     from the terminal.  Also clearerr on EOF if reading from the
  148.     terminal.  Declare isatty.
  149.  
  150. Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
  151.  
  152.     * refer/label.y: Rename map_t to map_func and extractor_t to
  153.     extractor_func.
  154.  
  155. Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
  156.  
  157.     * include/assert.h: Don't use volatile.
  158.     * libgroff/assert.cc: Likewise.
  159.  
  160. Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
  161.  
  162.     * troff/input.cc (abort_request): Look at character in tok before
  163.     calling get_copy().
  164.  
  165. Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
  166.  
  167.     * troff/troff.h (NO_RETURN): Deleted.
  168.     * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
  169.     * troff/input.cc (exit_troff): Likewise
  170.  
  171.     * Makefile.in: Remove `Making ...' messages since GNU make now
  172.     gives these. 
  173.  
  174.     * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
  175.  
  176. Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
  177.  
  178.     * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
  179.     to constant 1 inch.
  180.  
  181. Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
  182.  
  183.     * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
  184.  
  185. Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
  186.  
  187.     * eqn/delim.cc (delim_box::compute_metrics): Don't increase
  188.     MARK_REG if there was no left delimiter.
  189.  
  190. Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
  191.  
  192.     * pic/troff.cc (troff_output::text): Set line thickness to
  193.     relative before outputting text.
  194.  
  195.     * tmac/tmac.e (@k): Don't zero ?T.
  196.     ((z): Likewise.
  197.  
  198. Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
  199.  
  200.     * tmac/tmac.e ($p): Handle possibility that $3 is empty.
  201.  
  202. Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
  203.  
  204.     * troff/input.cc (decode_args): Warn about unquoted tabs (from
  205.     Paul Eggert).
  206.  
  207. Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
  208.  
  209.     * troff/input.cc (ignoring): New variable.
  210.     (ignore): Set ignoring during call to do_define_macro.
  211.     (do_define_macro): Clear ignoring before interpolating terminating
  212.     macro.
  213.     (copy_mode_error): New function.
  214.     (get_char_for_escape_name, read_long_escape_name,
  215.     interpolate_arg): Use copy_mode_error.
  216.     (warning_table): Add WARN_IG.
  217.     * troff/troff.h (WARN_IG): Declare.
  218.     (WARN_TOTAL): Change accordingly.
  219.  
  220.     * groff/pipeline.c (strsignal): Rename to xstrsignal.
  221.     * groff/groff.cc (strsignal): Delete declaration.
  222.  
  223. Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
  224.  
  225.     * troff/div.cc (page_offset): Use 'm' as default scaling.
  226.  
  227. Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
  228.  
  229.     * nroff/nroff.sh: Ignore -u.
  230.  
  231. Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
  232.  
  233.     * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
  234.  
  235. Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
  236.  
  237.     * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
  238.     drawing box.
  239.     (B2): With -Tascii, leave additional vertical space before
  240.     and after. Ensure that the left and right indent is restored to
  241.     what it was even if the point size changes.  Don't call
  242.     par@finish. Change the indent, line length and title length
  243.     directly.  With -Tascii, make the width of the box 1n less.
  244.     (B1): Remember 1n at the current point size.  Don't call
  245.     par@reset.  Change the indent, line length and title length
  246.     directly.  Ensure that the temporary indent is preserved.
  247.     (par*box-mark-top): Turn off no spacing mode.
  248.  
  249. Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
  250.  
  251.     * Makefile.in (dist): Use .gz suffix.
  252.  
  253. Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
  254.  
  255.     * troff/input.cc (main): Add return 0.
  256.     * pic/main.cc (main): Use return instead of exit.
  257.     * tbl/main.cc (main): Likewise.
  258.     * eqn/main.cc (main): Likewise.
  259.     * grops/ps.cc (main): Likewise.
  260.     * grotty/tty.cc (main): Likewise.
  261.     * groff/groff.cc (main): Likewise.
  262.     * grodvi/dvi.cc (main): Likewise.
  263.     * refer/refer.cc (main): Likewise.
  264.     * indxbib/indxbib.cc (main): Likewise.
  265.     * lkbib/lkbib.cc (main): Likewise.
  266.     * soelim/soelim.cc (main): Likewise.
  267.     * addftinfo/addftinfo.cc (main): Likewise.
  268.     * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
  269.     GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
  270.  
  271.     * troff/token.h (process_input_stack): Don't declare as static.
  272.     * troff/input.cc: Likewise.
  273.  
  274.     * troff/node.c (invalidate_fontno): Make it a static member of
  275.     class font_family.  Change callers.
  276.     * troff/node.c: Change declaration.
  277.  
  278.     * tbl/main.cc (struct input_entry_format): Add explicit public
  279.     specifier.
  280.     * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
  281.     struct double_hline_stuff): Likewise.
  282.     * tbl/table.h (struct entry_format): Likewise.
  283.     * pic/object.h (struct saved_state): Likewise.
  284.  
  285.     * include/stringclass.h: Add forward declarations of friend
  286.     functions that are later declared as inline.  Don't include inline
  287.     specifier in friend declaration.
  288.  
  289.         * libgroff/lib.h: Declare popen and pclose.
  290.     * acgroff.m4 (GROFF_POPEN): New macro.
  291.     * configure.in: Call it.
  292.  
  293.     * include/lib.h (PI): New constant. Undef first if necessary.
  294.     * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
  295.     * grops/ps.cc (degrees, radians): Likewise.
  296.     * libgroff/font.cc (font::get_skew): Likewise.
  297.  
  298.     * grops/ps.cc (is_ascii): New function.
  299.     (ps_output::put_string): Use is_ascii.  Use csprint rather than
  300.     isprint.
  301.     (ps_printer::define_encoding): Use csspace.
  302.     * libgroff/strtol.c (ISASCII): New macro.
  303.     (strtol): Cast arguments to is*() and tolower() to unsigned char.
  304.     Use ISASCII rather than isascii.
  305.     * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
  306.     * libgroff/cset.cc: Likewise.
  307.     * libdriver/input.cc: Include cset.h.
  308.     (do_file, get_integer, possibly_get_integer): Use csdigit() rather
  309.     than isdigit().
  310.  
  311.     * refer/refer.cc (main): Use %ld rather than %d for longs.
  312.  
  313.     * libbib/index.cc (index_search_item_iterator::get_tag): Use
  314.     S_ISREG macro.
  315.  
  316.     * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
  317.  
  318. Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
  319.  
  320.     * troff/input.cc (hyphenation_code): Skip white space between
  321.     char/code pairs.
  322.  
  323. Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
  324.  
  325.     * tbl/table.h (table::entry_list_tailp): New member.
  326.     (table::table): Initialize it.
  327.     (table::add_entry): Use entry_list_tailp to avoid O(n^2)
  328.     behaviour.
  329.  
  330. Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
  331.  
  332.     * grotty/tty.cc (tty_printer::add_char): Don't discard characters
  333.     with negative horizontal positions. Remove casts of glyph::hpos to
  334.     int.
  335.     (USHRT_MAX): Delete definition.
  336.     (SHRT_MAX, SHRT_MIN): New definitions.
  337.     (glyph::hpos): Change type to short.
  338.     (tty_printer::end_page): Output multiple backspaces if necessary.
  339.      Remove casts of glyph::hpos to int.
  340.     
  341. Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
  342.  
  343.     * tmac/tmac.s (@RT): New definition.
  344.  
  345. Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
  346.  
  347.     * refer/refer.cc (do_file): Make sure current_filename is set when
  348.     filename is "-".
  349.  
  350.     * pic/common.cc (common_output::dot_line): Handle zero length
  351.     lines.
  352.  
  353. Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
  354.  
  355.     * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
  356.     (par@init): Initialize \n[HY].
  357.  
  358. Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
  359.  
  360.     * troff/dictionary.cc (dictionary::remove): Continue when
  361.     r < j < i.
  362.  
  363. Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
  364.  
  365.     * Makefile.com (.y.cc): Avoid ending up with two versions of
  366.     $(YTABH).
  367.  
  368. Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
  369.  
  370.     * tmac/tmac.dvi (\(,c): Define only if it does not exist.
  371.     (\(,C): Likewise.  Also fix typo.
  372.  
  373. Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
  374.  
  375.     * lib.h: Delete extraneous semi-colon.
  376.  
  377.     * Add pso request: `so' from a pipe.
  378.     * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
  379.     (file_iterator::close): New function.
  380.     (file_iterator::~file_iterator, file_iterator::next_file): Use
  381.     file_iterator::close.
  382.     (file_iterator::backtrace): Say `process' rather than `file' when
  383.         the stream is popened.
  384.     (pipe_source): New function.
  385.     (init_input_requests): Bind ".pso" to pipe_source.
  386.  
  387. Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
  388.  
  389.     * afmtodit/afmtodit.pl: Avoid single quotes in comments.
  390.  
  391.     * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
  392.     digits in lower case.
  393.  
  394. Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
  395.  
  396.     * Version 1.08 released.
  397.  
  398.     * Makefile.in (dist): Insert || true after ln -s commands that
  399.     might fail.
  400.  
  401.     * mm: Update to mm 1.16.
  402.  
  403.     * acgroff.m4 (GROFF_CSH_HACK): New macro.
  404.     * configure.in: Call GROFF_CSH_HACK.  Substitute for
  405.     SH_SCRIPT_SED_CMD.
  406.     * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
  407.     MDEFINES.
  408.     * nroff/Makefile.sub (nroff): New target.
  409.     (install_data): Install nroff.
  410.     * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
  411.     * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
  412.  
  413. Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
  414.  
  415.     * eqn/Makefile.sub (neqn): Add chmod +x.
  416.  
  417.     * grog/Makefile.sub (grog): Remove spurious semi-colon.
  418.  
  419. Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
  420.  
  421.     * troff/input.cc (string_iterator::string_iterator()): Initialize
  422.     lineno and count.
  423.  
  424. Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
  425.  
  426.     * troff/div.cc (macro_diversion::space,
  427.     top_level_diversion::space): Don't set high_water_mark.
  428.     (macro_diversion::output, top_level_diversion::output): Don't
  429.     include post line space in high water mark.
  430.  
  431. Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
  432.  
  433.     * eqn/eqn.y: Don't define YYDEBUG.
  434.     * pic/pic.y: Likewise.
  435.  
  436. Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
  437.  
  438.     * tmac/tmac.e ([3): Add space after comma following editors.
  439.     Change double spaces to single spaces.
  440.     ([4): Change double spaces to single spaces.
  441.  
  442.     * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
  443.     * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
  444.     bit is set in broken_flags, use 2.0 rather than 3.0 as the version
  445.     after %!PS-Adobe- (for Newsprint).
  446.  
  447.     * troff/div.cc (top_level_diversion::begin_page): When
  448.     before_first_page is 1, set page_number to 1.
  449.  
  450. Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
  451.  
  452.     * eqn/box.cc (box::top_level): Protect equation with \&.
  453.  
  454. Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
  455.  
  456.     * groff/groff.cc (possible_command::set_name): Delete old name.
  457.  
  458.     * groff/groff.cc (possible_command::~possible_command): Use
  459.     a_delete.
  460.  
  461.     * troff/node.cc (troff_output_file::begun_page): New member.
  462.     (troff_output_file::troff_output_file): Initialize it.
  463.     (troff_output_file::really_begin_page): Only output V command if a
  464.     page has been begun.
  465.  
  466.     * pic/pic.y (placeless_element): Delete argument to PRINT after
  467.     use.
  468.  
  469. Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
  470.  
  471.     * Make wrapman work.
  472.     * troff/div.h (class top_level_diversion): Replace
  473.     first_page_begun by before_first_page (with opposite sense).
  474.     * Change first_page_begun to before_first_page inverting sense.
  475.     * troff/div.cc (class nl_reg): New class.
  476.     (init_div_requests): Use class nl_reg for \n(nl.
  477.     (top_level_diversion::begin_page): Don't call
  478.     output_file::begin_page if before_first_page is 2;
  479.     reset before_first_page afterwards.  If have_next_page_number is
  480.     false, then always increment page_number.
  481.     * tmac/tmac.an: Set traps within TH rather than at the top-level.
  482.     Restore compatibility mode after loading, and then disable
  483.     compatibility mode in TH.
  484.  
  485. Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
  486.  
  487.     * grotty/tty.cc (tty_printer::end_page): Don't discard characters
  488.     past last line.
  489.     * troff/node.h (output_file::trailer): Declare.
  490.     * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
  491.     * troff/node.cc (output_file::trailer): New function.
  492.     (troff_output_file::~troff_output_file): Move most code into...
  493.     (troff_output_file::trailer): New function.
  494.     (class troff_output_file): Delete page_length member. Declare
  495.     trailer().
  496.     (troff_output_file::really_begin_page): Use current page length
  497.     for final V command.
  498.  
  499.     * tbl/main.cc (struct options): New decimal_point_char member.
  500.     (options::options): Initialize this.
  501.     (process_options): Implement decimalpoint option.
  502.     (process_data): Pass decimal_point_char option to table::table.
  503.     * tbl/table.h (class table): New decimal_point_char member.
  504.     (table::table): Add additional argument.
  505.     * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
  506.     second argument specifying decimal point character.  Use this
  507.     instead of '.'.
  508.     (table::table): Initialize decimal_point_char.
  509.     (table::add_entry): Change call to find_dot.
  510.  
  511.     * troff/input.cc (get_copy, token::next): Implement \V.
  512.     (interpolate_environment_variable): New function.
  513.  
  514. Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
  515.  
  516.     * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
  517.     * pic/pic.y: Likewise.
  518.  
  519.     * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
  520.     Add casts to int.
  521.     * refer/ref.cc (reference::insert_field, reference::delete_field):
  522.     Likewise.
  523.     * troff/number.cc (parse_term): Likewise.
  524.  
  525.     * acgroff.m4 (GROFF_PROG_YACC): New macro.
  526.     * configure.in: Use GROFF_PROG_YACC.
  527.  
  528.     * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
  529.     and g++.
  530.     * Makefile.in (OPTIMIZE): New define.
  531.     (DEBUG): Empty by default.
  532.     (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
  533.  
  534.     * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
  535.     (GROFF_ARRAY_DELETE): Likewise.
  536.     (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
  537.  
  538.     * troff/env.cc (trie::~trie): Make virtual to shut up g++.
  539.  
  540.     * devps/psstrip.sed: Use different delimiter on last line (so that
  541.     it works with BSD 4.4 sed.)
  542.  
  543. Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
  544.  
  545.     * devps/psstrip.sed: Delete comments.
  546.  
  547.     * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
  548.     optind, opterr, optarg.
  549.     * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
  550.     opterr, optarg.
  551.  
  552. Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
  553.  
  554.     * Makefile.in (check): Dummy target.
  555.  
  556. Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
  557.  
  558.     * Version 1.07 released.
  559.  
  560.     * Integrate mm 1.11.
  561.  
  562.     * tbl/table.cc (alphabetic_block_entry::print): start_row was used
  563.     where start_col was meant.
  564.  
  565. Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
  566.  
  567.     * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
  568.  
  569. Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
  570.  
  571.     * troff/input.cc (token::next): Make \z\o'...' and similar things
  572.     work.
  573.  
  574.     * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
  575.     constants.
  576.     (environment): Add margin_character_flags member.
  577.     * env.cc (environment::environment(symbol),
  578.     environment::environment(const environment *): Initialize
  579.     margin_character_flags.
  580.     (margin_character): Rewrite.
  581.     (environment::output_line): Add a margin character if
  582.     margin_character_flags is non-zero.  Turn off the
  583.     MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
  584.     zero, use margin_character_node without copying and then set
  585.     margin_character_node to 0.
  586.  
  587.     * devps/DESC.in: Change minimum size to 1000.
  588.  
  589. Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
  590.  
  591.     * troff/symbol.h (symbol::hash): Change return type to unsigned
  592.     long.
  593.     * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
  594.     Add casts to int.
  595.  
  596.     * test-groff: Use -r rather than -x.
  597.  
  598.     * grops/psfig.diff: Include in distribution again.
  599.  
  600. Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
  601.  
  602.     * Makefile.in (dist): Use gzip.
  603.  
  604. Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
  605.  
  606.     * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
  607.     unistd.h as well as in stdlib.h.
  608.     * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
  609.     defined; otherwise include <sys/types.h> and <unistd.h> if
  610.     UNISTD_H_DECLARES_GETOPT is defined.
  611.  
  612.     * configure.in: use builtin(include, ... rather than include(...
  613.     * configure: Regenerate with autoconf 1.3.
  614.  
  615.     * libdriver/print.cc (printer::adjust_arc_center): Use new
  616.     algorithm suggested by Andy Fyfe.
  617.  
  618.     * libdriver/printer.cc (printer::adjust_arc_center): New function.
  619.     * include/printer.h: Declare this.
  620.     * grops/ps.cc (ps_printer::draw): Use it.
  621.     * grodvi/dvi.cc (dvi_printer::draw): Use it.
  622.  
  623. Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
  624.  
  625.     * Makefile.comm (.man.n): Replace macrodir by tmacdir.
  626.  
  627. Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
  628.  
  629.     * eqn/main.cc (main): Handle "eqn -".
  630.  
  631. Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
  632.  
  633.     * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
  634.  
  635.     * mm: Integrate version 1.08.
  636.  
  637.     * pic/troff.cc (troff_output::finish_picture): Set
  638.     EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
  639.     * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
  640.     if it's not defined. Check whether the register is non-zero rather
  641.     than whether it's not defined.
  642.     * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
  643.  
  644.     * indxbib/indxbib.cc: Move all signal handling into...
  645.     * indxbib/signal.c: New file.
  646.     * configure.in: Call AC_RETSIGTYPE.
  647.  
  648.     * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
  649.     * configure.in: Call GROFF_STRUCT_EXCEPTION.
  650.     * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
  651.  
  652.     * troff/input.cc (token::token, token::operator=): Work round SGI
  653.     C++ bug.
  654.     * pic/object.cc (position::position): Likewise.
  655.  
  656. Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
  657.  
  658.     * pic/pic.h: Move declaration of hypot().
  659.  
  660. Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
  661.  
  662.     * pic/pic.h: Declare hypot().
  663.  
  664.     * pic/pic.h: Define M_PI if necessary.
  665.  
  666. Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
  667.  
  668.     * tmac/tmac.e (re): Add alternative version that doesn't use groff
  669.     `.ta T' feature.
  670.  
  671.     * devps/prologue.ps (RE): Handle the possibility that the old font
  672.     doesn't have a FontName entry.
  673.  
  674. Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
  675.  
  676.     * tmac/tmac.e (fam): Redefine to set family in environment 2.
  677.     (@C): Use @fam not fam.
  678.  
  679. Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
  680.  
  681.     * lookbib/lookbib.cc (main): Change type of start to const char *.
  682.     * lkbib/lkbib.cc (main): Likewise.
  683.  
  684.     * eqn/lex.cc (definition::definition): Don't use member
  685.     initializer syntax for members of anonymous unions.
  686.  
  687.     * troff/input.cc (input_stack::backtrace): Change type of to const
  688.     char *.
  689.  
  690. Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
  691.  
  692.     * include/stringclass.h (class string): Declare inline friend
  693.     functions as inline in class declaration.
  694.     * troff/hvunits.h (class hunits, class vunits): Likewise.
  695.     * include/refid.h (class reference_id): Likewise
  696.     * troff/troff.h (points_to_units(units), scale(units, double)):
  697.     Delete declarations.
  698.     * libdriver/input.cc (get_char): Delete declaration.
  699.     * include/lib.h: Change 2nd argument of getopt from const char **
  700.     to char **.
  701.     * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
  702.     char **' before assigning to a `const char **'.
  703.     * tbl/table.cc: Delete extra declarations of prints().
  704.  
  705. Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
  706.  
  707.     * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
  708.     char **' before assigning to a `const char **'.
  709.  
  710.     * libgroff/errarg.cc (errarg::errarg): Don't use member
  711.     initializer syntax for members of anonymous unions.
  712.  
  713. Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
  714.  
  715.     * mm: Integrate version 1.07.
  716.  
  717. Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
  718.  
  719.     * troff/input.c (translate2): Rename to
  720.     (translate_no_transparent).
  721.     (init_input_requests): Rename tr2 to trnt.
  722.  
  723. Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
  724.  
  725.     * troff/charinfo.h (class charinfo): Add transparent_translate field.
  726.     (charinfo::set_translation, charinfo::set_special_translation):
  727.     Add second argument that specifies value for
  728.     transparent_translate.
  729.     (charinfo::get_translation, charinfo::get_special_translation):
  730.     Add optional second argument that specifies whether translation is
  731.     being used for transparent throughput.
  732.     * troff/input.cc (charinfo::set_translation,
  733.     charinfo::set_special_translation): Handle second argument.
  734.     (charinfo::charinfo): Initialize transparent_translate.
  735.     (translate): Split main part off into
  736.     (do_translate): New function.  Pass argument saying whether
  737.     translation applies to transparent throughput.
  738.     (translate2): New request.
  739.     (init_input_requests): Bind translate2 to `tr2'.
  740.  
  741. Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
  742.  
  743.     * tbl/table.h (class table): Add `nokeep' flag.
  744.     * tbl/main.cc (process_options): Handle `nokeep' option.
  745.     * tbl/table.cc (table::init_output, table::do_row, table::do_top,
  746.     table::do_bottom): Don't output keep/release macro definitions or
  747.     calls when `nokeep' option has been specified.
  748.  
  749. Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
  750.  
  751.     * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
  752.  
  753. Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
  754.  
  755.     * tbl/table.cc (table_entry::divert, block_entry::do_divert,
  756.     block_entry::divert, alphabetic_block_entry::divert): Add extra
  757.     argument giving column separation.
  758.     (table::compute_widths): Pass column separation to
  759.     table_entry::divert().
  760.     (block_entry::do_divert): If an entry spans multiple columns and a
  761.     minimumum width has been specified for each column, then set the
  762.     line length to the sum of the widths (plus possibly the column
  763.     separations).
  764.  
  765.     * troff/input.cc (set_escape_char): Don't set the escape_char
  766.     until after calling has_arg().
  767.  
  768. Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
  769.  
  770.     * tbl/table.cc (table::do_top): Add missing \s0 for double box
  771.     case.
  772.  
  773.     * tbl/table.cc (table::print_double_hline): Avoid extra new line
  774.     in case where r > nrows - 1.
  775.  
  776.     * tbl/table.cc (BODY_HEIGHT): Deleted.
  777.     (LINE_SEP): New definition.
  778.     (table::print_single_hline, table::print_double_hline,
  779.     table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
  780.     table::do_row, table::do_top): Use LINE_SEP space before a line
  781.     instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
  782.  
  783.     * tbl/table.cc (text_entry::print_contents): New function.
  784.     (text_string_name, right_text_string_name): Deleted.
  785.     (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
  786.     (simple_text_entry::do_width, numeric_text_entry::do_width,
  787.     alphabetic_text_entry::do_width): Don't store the contents of the
  788.     entry in a string.
  789.     (left_text_entry::simple_print, right_text_entry::simple_print,
  790.     center_text_entry::simple_print,
  791.     alphabetic_text_entry::simple_print,
  792.     numeric_text_entry::simple_print): Print the entry directly
  793.     instead of using the stored string.
  794.  
  795. Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
  796.  
  797.     * devps/Makefile: Strip PostScript files.
  798.     * devps/prologue: Rename to...
  799.     * devps/prologue.ps.
  800.     * devps/psstrip.sed: New file.
  801.     * devps/download: Use .pfa rather than .ps for installed versions
  802.     of fonts.
  803.  
  804. Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
  805.  
  806.     * troff/env.cc (input_trap): Give a warning if the argument is out
  807.     of range.
  808.  
  809.     * troff/env.cc (adjust): Treat negative argument as missing. Round
  810.     argument > 5 down to 5.
  811.  
  812.     * troff/env.cc (center, right_justify): Make negative argument zero.
  813.  
  814.     * troff/div.cc (page_offset, vertical_position_traps): Treat
  815.     invalid argument as missing.
  816.     * troff/env.cc (line_spacing, line_length, title_length, indent,
  817.     underline, hyphen_line_max_request, control_char,
  818.     no_break_control_char, widow_control_request, adjust, input_trap,
  819.     point_size): Likewise.
  820.     * troff/node.cc (ligature, kern_request, bold_font, track_kern,
  821.     constant_space): Likewise.
  822.     * troff/input.cc (compatible, shift, warn_request,
  823.     set_escape_char): Likewise.
  824.  
  825.     * tbl/main.cc (format::format): Avoid doing `new int[0]'.
  826.     * tbl/table.cc (table::table): Likewise.
  827.  
  828.     * Makefile.dev (install_dev): depends on $(DEVFILES).
  829.  
  830. Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
  831.  
  832.     * devX75, devX75-12, devX100, devX100-12: New directories.
  833.     * Makefile.in: Add these to DEVDIRS.
  834.  
  835.     * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
  836.     afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
  837.     grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
  838.     * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
  839.     targets.
  840.     * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
  841.     (uninstall): New target.
  842.     * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
  843.     uninstall_prog, uninstall_dev): New targets.
  844.  
  845.     * troff/div.cc (return_request): Treat an invalid argument as
  846.     missing.
  847.  
  848. Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
  849.  
  850.     * tmac/tmac.e ((f): Set up the environment even when there's a
  851.     current diversion.  Transperently throughput a call to @N.
  852.     (@N): New macro.
  853.  
  854. Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
  855.  
  856.     * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
  857.     up to vertical resolution.
  858.  
  859.     * tbl/table.cc (table::do_row): Change row number after printing
  860.     stuff list.
  861.  
  862.     * pic/lex.cc (get_token_after_dot): Make .left and .right work.
  863.  
  864. Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
  865.  
  866.     * Rename CHANGES to NEWS.
  867.  
  868. Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
  869.  
  870.     * libgroff/new.cc (operator new): Avoid calling malloc(0).
  871.  
  872. Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
  873.  
  874.     * man.ultrix: Removed.
  875.  
  876. Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
  877.  
  878.     * Makefile.comm (extraclean): Delete files whose names begin with
  879.     `='.
  880.  
  881.     * pic/troff.cc (troff_output::text): Fix typo in implementation of
  882.     aligned text.
  883.  
  884. Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
  885.  
  886.     * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
  887.     * troff/div.cc (page_length, need_space, space_request): Treat
  888.     invalid optional argument as missing.
  889.     * troff/env.cc (number_lines): If the first argument is present
  890.     but not a number, turn on line numbering, don't change the next
  891.     line number and parse the remaining arguments.
  892.  
  893.     * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
  894.  
  895. Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
  896.  
  897.     * eqn/box.h: Change declaration accordingly.
  898.     * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
  899.     the specified size was bad but don't give an error.  Check for
  900.     overflow.
  901.     * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
  902.     * eqn/lex (do_size): Likewise.
  903.  
  904. Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
  905.  
  906.     * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
  907.     compatible headers.
  908.  
  909. Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
  910.  
  911.     * tbl/table.cc (table::init_output): Improve error message when
  912.     table won't fit on one page.
  913.  
  914. Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
  915.  
  916.     * pic/troff.cc (troff_output::start_picture): Generate line
  917.     containing a horizontal motion equal to the width of the picture.
  918.  
  919.     * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
  920.     using GROFF_COMMAND_PREFIX environment variable.
  921.  
  922. Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
  923.  
  924.     * mdate.sh: Use $NF rather than $(NF).
  925.  
  926. Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
  927.  
  928.     * pic/main.cc (main):  Use %1 not %c in argument to warning.
  929.  
  930.     * eqn/main.cc (main): Output code to check that geqn was given the
  931.     correct -T option.
  932.  
  933. Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
  934.  
  935.     * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
  936.     `ln -s ../Makefile .; make; rm -f Makefile'.
  937.  
  938.     * troff/hyphen: Rename to...
  939.     * troff/hyphen.us:
  940.     * troff/input.cc (main): Delete -H option. Don't call
  941.     read_hyphen_file().
  942.     * troff/env.cc: Include searchpath.h and macropath.h.
  943.     (exception_dictionary): Deleted.
  944.     (ht): Deleted.
  945.     (read_hyphen_file): Deleted.
  946.     (hyphenation_language): New struct.
  947.     (class trie, class hyphen_trie): Move declarations up.
  948.     (trie_node::~trie_node): Deleted.
  949.     (trie::delete_trie_node): New function.
  950.     (trie::do_delete): New pure virtual function.
  951.     (hyphen_trie::do_delete): New function.
  952.     (trie::~trie): New function.
  953.     (hyphen_trie::~hyphen_trie): New function.
  954.     (trie::clear): No need to chcek that tp is not 0.
  955.     (current_language, language_dictionary): New variables.
  956.     (hyphen_word): Give an error if no current language.  Use
  957.     exceptions dictionary in current language.
  958.     (hyphen_trie::read_patterns_file): Find file using macro_path.
  959.     Allow comments (starting with %) in patterns file.  Don't make it
  960.     a fatal error if the file can't be found.
  961.     (hyphenate): Return if no current language.  Get the exceptions
  962.     dictionary and the hyphenation patterns from the current language.
  963.     (set_hyphenation_language): New variable.
  964.     (hyphenation_patterns_file): New function.
  965.     (hyphenation_language_reg): New class.
  966.     (hyphenation_language_reg::get_string): New function.
  967.     (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
  968.     "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
  969.     register.
  970.     * groff/groff.cc (main, help, synopsis): Delete -H option.
  971.     * include/Makefile.sub: Don't define HYPHENFILE.
  972.     * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
  973.     * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
  974.     * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
  975.     hyphenation patterns.
  976.  
  977. Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
  978.  
  979.     * eqn/neqn.sh: New file.
  980.     * eqn/Makefile.sub: Handle neqn.sh.
  981.  
  982.     * eqn/eqn.h: Declare `nroff' variable.
  983.     * eqn/box.cc (param_table): Add `nroff' param.
  984.     (nroff): Define it.
  985.     * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
  986.     variable.
  987.     * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
  988.  
  989.     * troff/troff.h (WARN_FONT): New warning.
  990.     (WARN_TOTAL): Change accordingly.
  991.     * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
  992.     (warning_table): Add WARN_FONT.
  993.     * troff/node.cc (mount_font_no_translate): Pass argument to
  994.     font::load_font.  If this is non-zero, give a warning.
  995.     Don't give an error message when accessing a font that has already
  996.     been found to be invalid.
  997.     * include/font.h (font::load, font::load_font): Add additional
  998.     optional argument which suppresses error message if the font is
  999.     not found.
  1000.     * libgroff/font.cc (font::load_font): Handle additional argument.
  1001.     (font::load): Add additional argument. If this is non-null, set it
  1002.     to 1 and don't give error message.
  1003.  
  1004.     * include/printer.h (printer::end_page): Add argument giving
  1005.     length of page.
  1006.     * libdriver/input.cc (do_file): Pass this.
  1007.     * grops/ps.cc (ps_printer::end_page): Add argument.
  1008.     * grodvi/dvi.cc (dvi_printer::end_page,
  1009.     draw_dvi_printer::end_page): Add argument.
  1010.     * grotty/tty.cc (class tty_printer): Remove lines_per_page and
  1011.     columns_per_page members. New member nlines.
  1012.     (DEFAULT_LINES_PER_PAGE): Deleted.
  1013.     (tty_printer::tty_printer): Don't compute lines_per_page from
  1014.     font::paperlength. Don't compute columns_per_page from
  1015.     font::paperwidth.
  1016.     (tty_printer::add_char): Don't check horizontal position against
  1017.     columns_per_page. Grow glyphs vector if neccessary.
  1018.     (tty_printer::end_page): Add argument giving page_length in units.
  1019.     Discard lines past end of page.
  1020.  
  1021. Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
  1022.  
  1023.     * tmac/tmac.tty-char: Fix definition of \(/l.
  1024.  
  1025.     * tmac/tmac.X: Define \(en.
  1026.  
  1027. Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
  1028.  
  1029.     * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
  1030.     lpq, then use lp rather than lpr.
  1031.  
  1032.     * tmac/tmac.s (par@reset): Don't call `ad'.
  1033.     (par*env-init): Call `ad'.
  1034.  
  1035. Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
  1036.  
  1037.     * mdate.sh: Use $(NF) instead of $6 to extract year from output of
  1038.     date.
  1039.  
  1040.     * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
  1041.     * indxbib/indxbib.cc: Likewise.
  1042.  
  1043. Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
  1044.  
  1045.     * libgroff/putenv.c: New file.
  1046.     * libgroff/Makefile.sub: Add putenv.c to CSRCS.
  1047.     * Makefile.in: Say that putenv.o can be one of LIBOBJS.
  1048.     * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
  1049.     stdlib.h with AC_HAVE_HEADERS.
  1050.  
  1051. Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
  1052.  
  1053.     * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
  1054.     does not exist.
  1055.  
  1056. Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
  1057.  
  1058.     * eqn/box.cc (gsize): Make it an int.
  1059.     (set_gsize): Parse argument handling increment or decrement.
  1060.     (box::top_level): Convert gsize to a string.
  1061.  
  1062.     * troff/input.cc (exit_troff): Make buf unsigned char [].
  1063.     Call to make_temp_iterator casts buf to char*.
  1064.  
  1065.     * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
  1066.  
  1067.     * Makefile.ccpg (depend.temp): Depends on $(YTABC).
  1068.     * Makefile.cpg (depend.temp): Likewise.
  1069.  
  1070.     * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
  1071.  
  1072.     * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
  1073.  
  1074. Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
  1075.  
  1076.     * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
  1077.  
  1078. Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
  1079.  
  1080.     * Version 1.06 released.
  1081.  
  1082.     * Integrate mm 1.04.
  1083.  
  1084. Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
  1085.  
  1086.     * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
  1087.  
  1088. Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
  1089.  
  1090.     * afmtodit/afmtodit.pl: Add -n option that disables generation of
  1091.     ligatures command.
  1092.     * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
  1093.     afmtodit. Regenerate.
  1094.  
  1095.     * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
  1096.     @f back past the current position.
  1097.  
  1098.     * tmac/tmac.e: Change calls to @R so that comments are not part of
  1099.     arguments.
  1100.  
  1101. Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
  1102.  
  1103.     * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
  1104.  
  1105.     * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
  1106.     check that we can link a call to a function declared in <stdio.h>.
  1107.     (GROFF_UNISTD_H): New macro.
  1108.     * configure.in: Call it.
  1109.     * Makefile.in: Document it.
  1110.     * include/posix.h: New file.
  1111.     * troff/troff.h: Don't include <osfcn.h>
  1112.     * troff/input.cc: Include posix.h.
  1113.     * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
  1114.     osfcn.h.
  1115.     * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
  1116.     Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
  1117.     <fcntl.h>.
  1118.     * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
  1119.     * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
  1120.     * libbib/search.cc (O_RDONLY): Delete definition.
  1121.     * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
  1122.     Don't include <osfcn.h>.
  1123.  
  1124.     * acgroff.m4 (GROFF_TIME_T): New macro.
  1125.     * configure.in: Call it.
  1126.     * Makefile.in: Document it.
  1127.  
  1128.     * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
  1129.     * configure.in: Call it.
  1130.     * Makefile.in: Document -DTRADITIONAL_CPP.
  1131.     * include/ptable.h: Don't include generic.h.
  1132.     (name2): Define it.
  1133.  
  1134.     * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
  1135.     Afterwards remove [T1 and [T2.
  1136.     (ref*spec!0, ref*spec!2): Use T1 rather than T.
  1137.     (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
  1138.     (ref*add-T2): Renamed from ref*add-T.
  1139.     (ref*add-T1): New macro.
  1140.  
  1141. Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
  1142.  
  1143.     * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
  1144.  
  1145.     * libbib/index.cc: Include <fcntl.h>.
  1146.     (O_RDONLY): Define if necessary.
  1147.     (make_index_search_item, index_search_item_iterator::get_tag,
  1148.     index_search_item::check_files): Use O_RDONLY.
  1149.     * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
  1150.     (O_RDONLY): Define if necessary.
  1151.     (search_list::add_file): Use O_RDONLY.
  1152.     * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
  1153.     <sys/stat.h>.
  1154.     (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
  1155.     (main): Use these.
  1156.  
  1157.     * libbib/index.cc (S_ISREG): Define it if necessary.
  1158.     (index_search_item::load): Use S_ISREG.
  1159.  
  1160.     * include/driver.h: Include <errno.h>.
  1161.  
  1162. Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
  1163.  
  1164.     * eqn/box.cc (body_height): Increase default value to 85.
  1165.     (body_depth): Increase default value to 35.
  1166.  
  1167. Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
  1168.  
  1169.     * eqn/pbox.h (SAVE_FONT_STRING): Define it.
  1170.     * eqn/box.cc (box::top_level): Hide use of \R in a string that is
  1171.     protected from expansion with \E.
  1172.  
  1173.     * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
  1174.  
  1175.     * Makefile (Makefile): New target.
  1176.  
  1177.     * Makefile.sub (configure, distfiles): New targets.
  1178.  
  1179.     * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
  1180.     construct.
  1181.  
  1182. Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
  1183.  
  1184.     * eqn/box.cc (param_table): Add body_height and body_depth.
  1185.  
  1186.     * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
  1187.  
  1188. Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
  1189.  
  1190.     * psbb/Makefile.sub: Don't link with libgroff.a.
  1191.  
  1192.     * acgroff.m4 (GROFF_PUTENV): New macro.
  1193.     * configure.in: Call GROFF_PUTENV.
  1194.     * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
  1195.     * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
  1196.     is defined.
  1197.  
  1198.     * troff/env.cc (distribute_space): Rename force_forward argument
  1199.     to force_reverse.  Reverse the list if force_reverse is true.
  1200.  
  1201. Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
  1202.  
  1203.     * tmac/tmac.an: Don't define a string `T'. Just define Tm.
  1204.  
  1205.     * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
  1206.     height or depth to be negative.  Guard against SUP_RAISE quantity
  1207.     being negative.
  1208.  
  1209. Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
  1210.  
  1211.     * devps/generate/textmap: Add `an' (arrowhorizex).
  1212.     * tmac/tmac.ps: \(an overlaps horizontally.
  1213.     * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
  1214.  
  1215.     * devps/symbolchars: Add arrowverttp, arrowvertbt.
  1216.     * devps/textmap: Add arrowvertex.
  1217.     * eqn/delim.cc (delim_table): Add uparrow, downarrow and
  1218.     updownarrow delimiters.
  1219.     * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
  1220.  
  1221.     * tbl/table.cc (simple_entry::position_vertically,
  1222.     block_entry::position_vertically):  For a centered entry, perform
  1223.     the motion in two stages.
  1224.  
  1225.     * refer/refer.cc (split_punct): Don't call lookup_token if there
  1226.     is no token.
  1227.  
  1228. Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
  1229.  
  1230.     * troff/input.cc (token::next): Delete token_node after copying
  1231.     token.
  1232.  
  1233.     * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
  1234.     cur_point_size.
  1235.  
  1236.     * libdriver/printer.cc (printer::load_font): Delete old_font_table.
  1237.  
  1238.     * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
  1239.  
  1240. Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
  1241.  
  1242.     * grops/ps.cc (usage): -b option takes an argument.
  1243.  
  1244.     * devps/prologue (PLG): New procedure.
  1245.     * grops/ps.cc (main, usage): New -g option.
  1246.     (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
  1247.     length using PLG.
  1248.  
  1249. Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
  1250.  
  1251.     * include/cset.h: Include <limits.h> if we have it.
  1252.  
  1253.     * libgroff/illegal.cc: New file.
  1254.     * include/lib.h (illegal_input_char): Use table.
  1255.     * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
  1256.     * pic/lex.cc (ARG1): Renumber to 14.
  1257.     * eqn/lex.cc (ARG1: Likewise.
  1258.  
  1259.     * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
  1260.     (eg 1.05.90) correctly.
  1261.  
  1262. Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
  1263.  
  1264.     * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
  1265.     Rename $r and $R registers to $v and $V.
  1266.     ($r, $R): Initialize to 0.
  1267.     (@v, @V): New macros.
  1268.     (sz): Call @v.
  1269.     (@M): Call @V.
  1270.  
  1271.     * troff/input.cc (main, usage): Add -R option that says not to
  1272.     load troffrc.
  1273.     * eqn/main.cc (main, usage): Rename -n to -R.
  1274.  
  1275. Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
  1276.  
  1277.     * devps/DESC.in: Leave font positions 5-9 blank.
  1278.     * devdvi/DESC.in: Likewise.
  1279.  
  1280.     * grog/grog.pl: Handle `.PS <file' correctly.
  1281.  
  1282.     * troff/input.cc (input_stack::push): Improve error message when
  1283.     input stack limit exceeded.
  1284.  
  1285. Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
  1286.  
  1287.     * refer/refer.cc (main): Fix typo in handling of `a' option.
  1288.  
  1289.     * refer/refer.cc (do_bib): In state START after a newline remain
  1290.     in state START.
  1291.  
  1292.     * groff/groff.sh: Deleted.
  1293.     * groff/Makefile.sub: Delete handling of groff.sh.
  1294.  
  1295.     * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
  1296.     to determine whether to use \X'ps:...'.
  1297.     * tmac/troffrc: Set 0p register to 0.
  1298.     * tmac/tmac.ps: Set 0p register to 1.
  1299.  
  1300.     * groff/groff.cc: Support -X option. Give warning for -TXps and
  1301.     transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
  1302.     * tmac/troffrc: Support -r.X=1.
  1303.  
  1304.     * pic/troff.cc (troff_output::dot): Don't test
  1305.     zero_length_line_flag.
  1306.  
  1307. Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
  1308.  
  1309.     * include/lib.h: Declare getopt() and friends unless
  1310.     STDLIB_H_DECLARES_GETOPT is defined.
  1311.  
  1312.     * doc/chars.tr: Delete.
  1313.     * man/groff_char.man: New file.
  1314.  
  1315. Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
  1316.  
  1317.     * tmac/tmac.e (np, bu): Test \n($p with string expression in case
  1318.     user has changed register format.
  1319.  
  1320. Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
  1321.  
  1322.     * groff/groff.cc: Get rid of device_table.  Get postprocessor from
  1323.     `postpro' command in DESC file.  Get spooler command from `print'
  1324.     command in DESC file.  Execute spooler command with /bin/sh.
  1325.  
  1326.     * groff/groff.cc: Split Unix-specific parts into...
  1327.     * groff/pipeline.c: New file.
  1328.  
  1329.     * LICENSE: Delete.
  1330.     * COPYING: New file.
  1331.     * all files: Update copyright notices.
  1332.  
  1333.     * Rearrange files.  Redo Makefiles.  Use autoconf.
  1334.  
  1335. Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
  1336.  
  1337.     * troff/input.c (charinfo_to_node_list): Interpret character
  1338.     definition with escape_char of `\'.
  1339.  
  1340. Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
  1341.  
  1342.     * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
  1343.     Define INT_DIGITS as big enough for 64-bit integer.
  1344.     * lib/strtol.c: Don't include lib.h.
  1345.     * lib/lib.h: Delete ifdef __cplusplus stuff.
  1346.  
  1347. Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
  1348.  
  1349.     * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
  1350.     for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
  1351.     get DESC from current directory.
  1352.  
  1353. Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
  1354.  
  1355.     * tbl/main.c (main): Always reset the line number when reading
  1356.     from stdin.
  1357.  
  1358.     * tbl/table.c (table::print_single_hline, table::print_double_hline,
  1359.     table::define_bottom_macro, table::do_row, table::do_top): Round
  1360.     vertical spacing up to vertical resolution.
  1361.  
  1362. Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
  1363.  
  1364.     * ps/ps.h (enum resource_type): Avoid comma at end of
  1365.     enumerator-list.
  1366.     * dvi/dvi.c (class dvi_printer): Likewise.
  1367.     * dvi/tfmtodit.c (gf::load): Likewise.
  1368.     * refer/label.y (struct expression): Likewise.
  1369.     * refer/refer.c (class label_processing_state): Likewise.
  1370.     * refer/indxbib.c (do_file): Likewise.
  1371.     * troff/troff.c (enum warning_type): Likewise.
  1372.     * tbl/main.c (process_data): Likewise.
  1373.     * troff/charinfo.h (class charinfo):
  1374.  
  1375. Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
  1376.  
  1377.     * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
  1378.  
  1379. Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
  1380.  
  1381.     * groff.c: Move to new groff subdirectory.
  1382.     * groff/Makefile: New file.
  1383.     * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
  1384.  
  1385.     * man/mdate.sh: Use ls -L if supported.
  1386.  
  1387.     * Consolidate all header files produced by gendef into lib/defs.h.
  1388.     * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
  1389.     Don't include path.h.
  1390.     * lib/Makefile (path.h): Don't generate.
  1391.     * troff/input.c: Include defs.h. Don't include config.h.
  1392.     * troff/Makefile (config.h): Don't generate.
  1393.     * refer/index.h: Don't include suffix.h.
  1394.     * refer/index.c: Include defs.h.
  1395.     * refer/indxbib.c: Include defs.h.
  1396.     * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
  1397.     defs.h.
  1398.     * refer/Makefile (suffix.h, path.h): Don't generate.
  1399.     * groff.c: Don't include config.h. Include defs.h.
  1400.     * Makefile (config.h): Don't generate.
  1401.     (lib/defs.h): Generate.
  1402.     (topclean): Remove lib/defs.h.
  1403.  
  1404. Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
  1405.  
  1406.     * lib/malloc.c, lib/getpagesize.h: Deleted.
  1407.     * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
  1408.     related stuff.
  1409.     * lib/Makefile: Delete malloc-related stuff.
  1410.     * lib/new.c: Workaround COOKIE_BUG if necessary.
  1411.  
  1412.     * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
  1413.     needed header files directly.
  1414.     * refer/refer.h: Omit definition of DEFAULT_INDEX.
  1415.     * Makefile: Include definition of DEFAULT_INDEX in path.h.
  1416.  
  1417. Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
  1418.  
  1419.     * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
  1420.     argument.
  1421.     * lib/font (font::load_desc, font::load): Don't split argument of
  1422.     unknown command.
  1423.     (font::handle_unknown_font_command): Change type.
  1424.     * ps/ps.c (ps_font::handle_unknown_font_command,
  1425.     handle_unknown_desc_command): Change type.
  1426.     * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
  1427.  
  1428. Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
  1429.  
  1430.     * lib/font.h (font::handle_unknown_font_command): Add file and
  1431.     line arguments.
  1432.     * lib/font.c (font::handle_unknown_font_command):
  1433.     * ps/ps.c (ps_font::handle_unknown_font_command):
  1434.     * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
  1435.     lineno arguments.  Use _with_file_and_line functions for error
  1436.     reporting.
  1437.  
  1438.     * lib/fontfile.c (font::unknown_desc_command_handler): New static
  1439.     data member.
  1440.     * lib/font.c (font::set_unknown_desc_command_handler): New
  1441.     function.
  1442.     (font::load_desc): For unknown commands, call
  1443.     unknown_desc_command_handler if not null.
  1444.     * lib/font.h (class font): Declare them.
  1445.     (FONT_COMMAND_HANDLER): New typedef.
  1446.     * ps/ps.c (handle_unknown_desc_command): New function.
  1447.     (main): Set bflag if we had a -b option. Call
  1448.     font::set_unknown_desc_command_handler.
  1449.     (broken.h): Don't include.
  1450.     * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
  1451.     submake 
  1452.     * ps/devps/Makefile: Add `broken' command to DESC file using
  1453.     BROKEN_SPOOLER_FLAGS.
  1454.  
  1455.     * macros/tmac.e ([, ]): Add as synonyms for { and }.
  1456.  
  1457.     * macros/tmac.e ($p): Only exdent if \$3 > 0.
  1458.  
  1459.     * macros/tmac.e (@R, @S): New macros.
  1460.     Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
  1461.     ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
  1462.     Declare $H, $[0-9], .. macros with @S.
  1463.     Declare |0, |1, |2, |3 strings with @S.
  1464.  
  1465.     * macros/tmac.e (@S): Rename to @U.
  1466.  
  1467.     * macros/tmac.e (@z): Define @b and bp as empty instead of
  1468.     deleting them,
  1469.  
  1470.     * macros/tmac.e (@m): Deleted.
  1471.     (@h): Don't call @m.
  1472.     (@z): Don't set @m trap.
  1473.  
  1474.     * macros/tmac.e ($h, $f): Define |z as empty string.
  1475.  
  1476.     * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
  1477.     (@q): Likewise.
  1478.  
  1479.     * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
  1480.     removing them.
  1481.     ()f): Likewise for * register.
  1482.  
  1483.     * macros/tmac.e (sr): Don't ever scale the arguments. If the third
  1484.     argument is missing, don't change $R.  Call sr with three
  1485.     arguments when initializing.
  1486.  
  1487. Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
  1488.  
  1489.     * macros/tmac.e (sr): New macro.
  1490.     Initialize $r and $R using sr.
  1491.  
  1492.     * macros/tmac.e (,): Delete \*(#[.
  1493.  
  1494.     * troff/env.c (set_tabs): Read the tab type even if the position
  1495.     is bad.  Allow the position of the first tab stop to be negative.
  1496.  
  1497. Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
  1498.  
  1499.     * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
  1500.     _POSIX_VERSION.
  1501.     * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
  1502.     rather than -DPATHCONF_MISSING.
  1503.     * Makefile: Get rid of PATHCONF_MISSING.
  1504.  
  1505.     * refer/map.c: New file.
  1506.     * refer/index.c: Interface to mmap through map.c.  Rename map_size
  1507.     to map_len.
  1508.     * refer/Makefile: Handle map.c.
  1509.     * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
  1510.  
  1511. Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
  1512.  
  1513.     * Makefile: RANLIB should be `true' if there is no ranlib.
  1514.     * lib/Makefile (libgroff.a): Simplify.
  1515.     * driver/Makefile (libdriver.a): Simplify.
  1516.  
  1517.     * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
  1518.     * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
  1519.     defined.
  1520.  
  1521. Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
  1522.  
  1523.     * troff/env.c (compare_ranges): Declare as extern "C".
  1524.  
  1525.     * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
  1526.  
  1527.     * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
  1528.  
  1529. Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
  1530.  
  1531.     * pic/troff.c (troff_output::text): Merge in grops_output::text,
  1532.     but conditionalize use of \X based on \*(.T.
  1533.     (grops_output::*): Deleted.
  1534.     * pic/output.h: Delete declaration of make_grops_output.
  1535.     * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
  1536.     by default. -n sets it to 0.
  1537.     (usage): Corresponding changes.
  1538.     * groff.c (main): Don't pass -x or -p to pic.
  1539.     * groff.sh: Likewise.
  1540.  
  1541.     * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
  1542.     to be non-zero.
  1543.  
  1544.     * ps/devps/afmtodit: Change calculation of asc_boundary and
  1545.     desc_boundary.  Make these bounds inclusive.
  1546.     * ps/devps: Regenerate font files.
  1547.  
  1548. Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
  1549.  
  1550.     * macros/tmac.latin1: New file.
  1551.     * macros/tmac.tty-char: Use tmac.latin1.
  1552.     (tmac.tty-tr): Deleted.
  1553.     * macros/Makefile: Install tmac.latin1.
  1554.     * macros/tmac.dvi: Use tmac.latin1.
  1555.     * macros/troffrc: Translate \[char160] onto no-break space here.
  1556.     * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
  1557.  
  1558. Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
  1559.  
  1560.     * macros/tmac.Xps: Use `do' request.
  1561.  
  1562.     * macros/tmac.ps: Use `do' request.
  1563.  
  1564.     * macros/tmac.e (@C): Use `do' request.
  1565.  
  1566.     * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
  1567.     * macros/Makefile: Install tmac.X*.
  1568.  
  1569.     * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
  1570.     * tty/Makefile: Don't install tmac.tty*.
  1571.     * macros/Makefile: Install tmac.tty*.
  1572.  
  1573.     * dvi/tmac.dvi: Move to macros.
  1574.     * dvi/Makefile: Don't install tmac.dvi.
  1575.     * macros/Makefile: Install tmac.dvi.
  1576.  
  1577.     * ps/tmac.ps*: Move to macros.
  1578.     * ps/Makefile: Don't install tmac.ps*.
  1579.     * macros/Makefile: Install tmac.ps*.
  1580.  
  1581.     * eqn/box.c: Provide draw_lines parameter corresponding to -D
  1582.     option.
  1583.     * macros/eqnrc: Set draw_lines parameter based on device.
  1584.     * groff.c: Don't pass -D flag to eqn.
  1585.     * groff.sh: Likewise.
  1586.     * eqn/main.c: Warn about use of -D.
  1587.  
  1588.     * troff/input.c (process_startup_file): New function.
  1589.     (main): Call process_startup_file().
  1590.     * macros/troffrc: New file.
  1591.     * macros/Makefile: Install troffrc.
  1592.     * groff.c (main): Don't pass extra -m option to troff. For a 
  1593.     pseudo device pass the name of the pseudo device to troff using
  1594.     -d.
  1595.     * groff.sh: Likewise.
  1596.     * groff.c (possible_command::prepend_arg): Deleted.
  1597.  
  1598.     * troff/input.c (do_request): New function.
  1599.     (init_input_requests): Bind "do" to do_request.
  1600.  
  1601.     * eqn/main.c (main): Instead of loading eqnchar from device directory,
  1602.     load eqnrc from macro directory.
  1603.     * macros/eqnrc: New file.
  1604.     * macros/Makefile: Install eqnrc.
  1605.     * ps/devps/eqnchar: Deleted.
  1606.     * ps/devps/Makefile: Don't install eqnchar.
  1607.     * dvi/devdvi/eqnchar: Deleted.
  1608.     * dvi/devdvi/Makefile: Don't install eqnchar.
  1609.     * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
  1610.     variable optM.
  1611.  
  1612.     * lib/device.[ch]: New files.
  1613.     * lib/font.h (font::set_device_name, font::get_device_name):
  1614.     Deleted.
  1615.     * lib/fontfile.c: Use device.h.
  1616.     * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
  1617.     * troff/input.c: Delete definition of `device'.
  1618.     (main): Don't initialize device.
  1619.     * troff/troff.h: Include device.h rather than declaring device.
  1620.     * troff/Makefile: No need to handle DEVICE.
  1621.     * driver/input.c: Include device.h. Don't use
  1622.     font::{set,get}_device_name.
  1623.     * groff.c, Makefile: Rename device.h to config.h.
  1624.     * groff.c: Use library device variable.
  1625.     * eqn/main.c: Use library device variable.
  1626.     * eqn/Makefile: No need to handle DEVICE.
  1627.  
  1628.     * lib/searchpath.[ch]: New files.
  1629.     * lib/Makefile: Handle searchpath.[ch].
  1630.     * troff/input.c (open_file, init_dirs): Deleted.
  1631.     (macro_dirs): Deleted.
  1632.     (open_mac_file, macro_source): Use class search_path.
  1633.     (add_string, struct string_list): Move definition.
  1634.     (main): Change -M option to use macro_path. Delete call to
  1635.     init_dirs().
  1636.     * lib/fontfile.c (font::command_line_font_dir, font::open_file):
  1637.     Rewrite to use class search_path.
  1638.     * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
  1639.     * lib/Makefile: fontfile.c depends on searchpath.h.
  1640.     * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
  1641.     MACROPATH.
  1642.     * lib/macropath.[ch]: New files.
  1643.     * troff/Makefile: No need to handle MACROPATH.
  1644.  
  1645.     * troff/input.c: Delete DUMP code.
  1646.     * lib/fontfile.c, lib/font.h: Delete
  1647.     font::forget_command_line_font_dirs.
  1648.  
  1649.     * troff/input.c (push_token): New function.
  1650.     (handle_first_page_transition): Use push_token().
  1651.     (process_input_stack): Change handling of a space at the beginning
  1652.     of the line.
  1653.  
  1654. Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
  1655.  
  1656.     * troff/input.c (font_dirs): Delete unused variable.
  1657.  
  1658.     * eqn/lex.c (do_set): Correct error messages.
  1659.  
  1660. Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
  1661.  
  1662.     * troff/input.c (do_define_string): Allow the string name to be
  1663.     followed immediately by a tab.
  1664.     (define_character): Likewise.
  1665.  
  1666. Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
  1667.  
  1668.     * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
  1669.     be negative.
  1670.  
  1671.     * troff/input.c (input_iterator::is_file): New virtual function.
  1672.     (file_iterator::is_file): New function.
  1673.     (input_stack::end_file): New function.
  1674.     (input_stack::next_file): Handle the situation where there is no
  1675.     file on the input stack correctly.  Avoid making two passes over
  1676.     the input stack.
  1677.     (next_file): Make the filename optional; in this case call
  1678.     input_stack::end_file().
  1679.  
  1680. Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
  1681.  
  1682.     * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
  1683.     produce a real _ charater when the current font is CW and _
  1684.     otherwise.
  1685.  
  1686.     * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
  1687.     expression to work around gcc 2.2 bug.
  1688.  
  1689. Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
  1690.  
  1691.     * eqn/main.c (main): Don't give an error if we can't find eqnchar.
  1692.  
  1693.     * troff/env.c (environment::add_padding): New function.
  1694.     (environment::add_char): Use add_padding().
  1695.     (environment::space): Likewise.
  1696.     (environment::wrap_up_field): Add some padding if there is none
  1697.     and there's no current tab.
  1698.     * troff/env.h: Declare environment::add_padding.
  1699.  
  1700. Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
  1701.  
  1702.     * pic/pic.y: undef fmod and rand before declaring them.
  1703.  
  1704. Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
  1705.  
  1706.     * troff/input.c (main): If the DESC file specifies a font name of
  1707.     0, then leave the corresponding font position empty.
  1708.  
  1709.     * nroff.sh: New file.
  1710.     * Makefile (install.nobin): Install nroff.sh.
  1711.  
  1712.     * tty/devlatin1/R.proto: Add ao as synonym for de.
  1713.     * tty/tmac.tty-char: Define ao as o.
  1714.  
  1715.     * tty/dev{ascii,latin1}/R.proto: Add aq.
  1716.     * tty/tmac.tty-char: Delete definition of aq.
  1717.  
  1718. Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
  1719.  
  1720.     * troff/input.c (init_charset_table): Don't translate 0240.
  1721.     * ps/tmac.ps: Translate char160 to space.
  1722.     * dvi/tmac.dvi: Likewise.
  1723.     * tty/tmac.tty: Likewise.
  1724.  
  1725. Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
  1726.  
  1727.     * dvi/tmac.dvi: Add support for all Latin-1 characters.
  1728.  
  1729.     * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
  1730.     \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
  1731.     \(oe, \(r?, \(r!.
  1732.  
  1733.     * tty/tmac.tty-char: Add \(ah.
  1734.  
  1735.     * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
  1736.     No need to define \(FM and \(!/. Conditionalize all character
  1737.     definitions.
  1738.  
  1739.     * ps/devps/lgreekmap: Add +h, +f, +p.
  1740.  
  1741.     * ps/tmac.psnew: New file.
  1742.     * ps/Makefile: Install tmac.psnew.
  1743.  
  1744.     * troff/input.c (charinfo_to_node_list): Don't ever interpret
  1745.     character definitions in compatible mode.
  1746.  
  1747.     * troff/input.c (remove_character): New function.
  1748.     (init_input_requests): Bind remove_character to "rchar".
  1749.  
  1750.     * ps/tmac.psold: New file.
  1751.     * ps/Makefile: Install tmac.psold.
  1752.     * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
  1753.     characters into tmac.psold.  Make these definitions unconditional.
  1754.  
  1755.     * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
  1756.  
  1757.     * ps/tmac.ps: Don't define \('c and \('C.
  1758.  
  1759.     * ps/devps/textmap: Move Greek characters to...
  1760.     * ps/devps/symbolchars:
  1761.  
  1762. Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
  1763.  
  1764.     * ps/devps/text.enc: Add quotesingle.
  1765.     * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
  1766.     * tty/tmac.tty-char: Likewise.
  1767.     * dvi/devdvi/texmi.map: Add +h, +f, +p.
  1768.     * dvi/devdvi/texi.map: Add Fn.
  1769.     * dvi/devdvi/msam.map: Add lz.
  1770.     * dvi/tmac.dvi: Handle Bq, bq, aq.
  1771.  
  1772.     * pic/lex.c (get_token): Recognize 'th.
  1773.     * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
  1774.  
  1775. Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
  1776.  
  1777.     * ps/devps/textmap: Move di, mu, +- to...
  1778.     * ps/devps/symbolchars:
  1779.  
  1780.     * macros/tmac.s (@XS): Don't call par@reset or fi.
  1781.     (XA): Call LP. Turn off adjustment. Reduce line length.
  1782.  
  1783.     * macros/tmac.s: Initially alias XS to LP.
  1784.     (XS): Rename to @XS.
  1785.     (cov*ab-init): Alias XS to @XS.
  1786.  
  1787. Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
  1788.  
  1789.     * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
  1790.     TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
  1791.     (token::is_size, token::changes_env): Deleted.
  1792.     * troff/number.c (parse_term): No need to process \s explicitly.
  1793.     Call tok.next() only after scale indicator has been processed.
  1794.     * troff/input.c (do_overstrike, do_bracket): No need to process \s,
  1795.     \f etc explicitly.
  1796.     (token::next): Handle \s, \f, \S, \H immediately rather than
  1797.     returning them as tokens.
  1798.     (token::operator==, token::description, token::add_to_node_list,
  1799.     token::process): Remove handling of deleted tokens.
  1800.  
  1801.     * troff/env.c (environment::add_char): When adding padding
  1802.     indicator character, call start_line() if necessary.
  1803.  
  1804. Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
  1805.  
  1806.     * ps/devps/afmtodit: Don't output 0 kerns.
  1807.  
  1808.     * ps/devps/afmtodit: Remove directory from name of encoding in
  1809.     font description file.
  1810.  
  1811.     * ps/devps/afmtodit: Improve error messages.
  1812.  
  1813.     * ps/devps/afmtodit: Allow DESC file to be specified with -d.
  1814.  
  1815.     * ps/devps/Makefile: Incorporate FontMakefile. Rework.
  1816.     * ps/devps/FontMakefile: Deleted.
  1817.     * ps/devps/afmname: New file.
  1818.  
  1819.     * ps/devps/symbol.sed: New file.
  1820.     * ps/devps/symbol.diff: Deleted.
  1821.     * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
  1822.     Generate zapfdr.afm from zapfd.afm.
  1823.  
  1824.     * tty/tmac.tty (tty-char): Prefix definition with ".
  1825.  
  1826.     * macros/tmac.an (TP): Don't start a diversion if one has already
  1827.     been started.
  1828.  
  1829.     * tty/tmac.tty-char: Add Latin-1 characters.
  1830.  
  1831.     * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
  1832.  
  1833. Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
  1834.  
  1835.     * tbl/table.c (table::allocate): Delete old_vline, old_entry.
  1836.     Move declaration of struct horizontal_span.
  1837.  
  1838.     * tbl/table.c (table::table): Initialize span_list.
  1839.     (table::~table): Delete span_list.
  1840.  
  1841.     * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
  1842.  
  1843.     * ps/devps/Makefile: Avoid dependency on GNU make.
  1844.  
  1845.     * ps/tmac.ps: Check that character does not already exist before
  1846.     defining it.
  1847.  
  1848.     * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
  1849.     \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
  1850.     \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
  1851.     files.
  1852.  
  1853.     * tty/tmac.tty-char: New file.
  1854.     * tty/Makefile: Install tmac.tty-char.
  1855.     * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
  1856.     tmac.tty-char.
  1857.  
  1858.     * tty/tmac.tty: Fix definition of \(34.
  1859.  
  1860.     * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
  1861.     bracket-drawing characters onto |. Add *o.
  1862.  
  1863.     * troff/env.c (environment::wrap_up_tab): Increment field_spaces
  1864.     only if current_field.
  1865.  
  1866.     * troff/dictionary.c (dictionary::lookup): Free old_table after
  1867.     rehashing. 
  1868.  
  1869. Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
  1870.  
  1871.     * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
  1872.     whose glyphs are identical to glyphs of some Roman character.
  1873.  
  1874.     * tty/devlatin1/R.proto (bu): Deleted.
  1875.     * tty/devascii/R.proto (bu): Deleted.
  1876.     * tty/tmac.tty: Add definition of \(bu.
  1877.  
  1878.     * eqn/main.c (do_file): Pass FILE as argument.
  1879.     (main): Automatically load eqnchar.  New options -F and -n.
  1880.     Pass do_file an opened FILE.
  1881.     * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
  1882.     No need to include font.h.
  1883.     * groff.sh: Likewise.  Don't need to use - for standard input.
  1884.     Prefix files with -- if first file starts with -.
  1885.  
  1886.     * macros/tmac.e: Conditionalize use of \$* on \n(.g.
  1887.  
  1888.     * troff/env.c (environment::possibly_break_line): Don't set line
  1889.     to 0 across call to output_line().  Don't call output_line() until
  1890.     after discarding nodes after break.
  1891.  
  1892. Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
  1893.  
  1894.     * request.h (macro::empty): Declare it.
  1895.     * input.c (macro::empty): New method.
  1896.     (interpolate_macro):  Don't give a WARN_SPACE if the two-character
  1897.     macro is empty.
  1898.  
  1899. Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
  1900.  
  1901.     * troff/env.c (environment::start_field): Decrement space_total
  1902.     when a space is frozen.
  1903.  
  1904. Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
  1905.  
  1906.     * macros/tmac.an (R): Delete macro.
  1907.  
  1908.     * troff/input.c (get_copy, token::next): Support \# (like \" but
  1909.     newline is ignored).
  1910.  
  1911.     * troff/input.c (token::next): Fix error message in 'Y' case.
  1912.  
  1913. Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
  1914.  
  1915.     * eqn/delim.c (define_extensible_string): Recognize any prefix of
  1916.     a delimiter name.
  1917.  
  1918. Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
  1919.  
  1920.     * c++test.c: Include <osfcn.h>.
  1921.  
  1922.     * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
  1923.     <errno.h> doesn't.
  1924.  
  1925. Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
  1926.  
  1927.     * tbl/table.c (table::divide_span): Don't count column separation
  1928.     if expand was specified.
  1929.  
  1930.     * tbl/main.c (process_format): Don't ignore width specs in
  1931.     continued format.  Give warning for changing equal widths or
  1932.     column separation in continued format.
  1933.     (process_data): Set column separation, minimum width, equal
  1934.     columns at end of table.
  1935.  
  1936. Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
  1937.  
  1938.     * troff/node.c (kern_pair_node::add_discretionary_hyphen,
  1939.     node::add_discretionary_hyphen): Use soft_hyphen_char.
  1940.     (set_soft_hyphen_char): New function.
  1941.     (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
  1942.  
  1943.     * Makefile (c++tested): Give more helpful message if test fails.
  1944.  
  1945. Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
  1946.  
  1947.     * troff/input.c (init_charset_table): Translate 0240 to
  1948.     an unbreakable space.
  1949.  
  1950.     * troff/token.h (token::hyphen_indicator): New function.
  1951.     * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
  1952.     translation.
  1953.     * troff/input.c (translate): Allow translation to \%.
  1954.     * troff/node.c (node::add_char): Handle
  1955.     TRANSLATE_HYPHEN_INDICATOR.    
  1956.     (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
  1957.  
  1958.     * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
  1959.     for \(hy.
  1960.  
  1961.     * tty/devlatin1/R.proto: \(hy and - should print as 055.
  1962.  
  1963. Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
  1964.  
  1965.     * groff.c (run_commands): If the last command gets a SIGPIPE send
  1966.     a SIGPIPE to all children than haven't yet terminated.  When
  1967.     command terminates, set pid field to -1.
  1968.  
  1969. Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
  1970.  
  1971.     * groff.c (main): Pass an appropriate -filename option to gxditview.
  1972.  
  1973. Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
  1974.  
  1975.     * Makefile.bd (install): Remove existing program before copying.
  1976.  
  1977.     * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
  1978.     programs which have Unix counterparts to be installed with
  1979.     user-specified prefix.
  1980.  
  1981.     * troff/input.c (exit_troff): Don't check if exit_started.
  1982.     (exit_request): Don't call exit_troff if exit_started.
  1983.  
  1984.     * Makefile.bd (install.mm): Rename to install.dwbmm.
  1985.  
  1986. Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
  1987.  
  1988.     * driver/input.c (do_file): Add missing break for '#' case.
  1989.  
  1990. Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
  1991.  
  1992.     * troff/input.c (input_stack::clear):  Clear past any boundaries and
  1993.     then add the boundaries back.
  1994.  
  1995.     * troff/input.c (exit_troff): Return immediately if already
  1996.     exiting.
  1997.  
  1998.     * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
  1999.     end macro.
  2000.     (pg*end-page): If the text has ended and there are no more
  2001.     footnotes or keeps, exit.
  2002.  
  2003.     * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
  2004.  
  2005.     * troff/input.c (init_charset_table): Make \(rq transparent by
  2006.     default.
  2007.  
  2008.     * macros/tmac.an: Define lq and rq strings.
  2009.  
  2010.     * macros/tmac.s (Q, U): Define as \(lq and \(rq.
  2011.  
  2012. Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
  2013.  
  2014.     * troff/env.c (environment::final_break): New function.
  2015.     (environment::newline): Set prev_line_interrupted to 2 if
  2016.     exit_started.
  2017.     * troff/env.h: Declare environment::final_break.
  2018.     * troff/input.c (exit_troff): Call environment::final_break()
  2019.     instead of environment::do_break().
  2020.  
  2021.     * macros/Makefile: Install man.local if $(MACRODIR)/man.local
  2022.     doesn't already exist.
  2023.     * macros/man.local: New file.
  2024.     * macros/tmac.an: Load man.local.
  2025.     * macros/man.ultrix: New file.
  2026.  
  2027. Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
  2028.  
  2029.     * troff/input.c (exit_groff): Rename to...
  2030.     (exit_troff): New function.
  2031.  
  2032.     * troff/div.c (exit_started, done_end_macro,
  2033.     seen_last_page_ejector): New global variables.
  2034.     (began_page_in_end_macro): New static variable.
  2035.     (exit_flag): Deleted.
  2036.     (top_level_diversion::top_level_diversion): Initialize
  2037.     last_page_count.
  2038.     (top_level_diversion): More elaborate test for whether
  2039.     cleanup_and_exit() should be called.
  2040.     Set began_page_in_end_macro if the end macro isn't yet finished.
  2041.     * troff/div.h (top_level_diversion::last_page_count): New data
  2042.     member.
  2043.     (top_level_diversion::set_last_page): New function.
  2044.     (exit_started, done_end_macro, seen_last_page_ejector): Declare.
  2045.     * troff/env.c (do_break): Zero prev_line_interrupted.
  2046.     * troff/input.c (exit_flag): Delete declaration.
  2047.     (LAST_PAGE_EJECTOR): New magic cookie.
  2048.     (token::next): Handle LAST_PAGE_EJECTOR.
  2049.     (exit_groff): Set exit_started and done_end_macro instead of
  2050.     exit_flag.  Call top_level_diversion::set_last_page.  Push a
  2051.     LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
  2052.     another ejection after setting seen_last_page_ejector.
  2053.  
  2054. Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
  2055.  
  2056.     * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
  2057.  
  2058.     * macros/tmac.e (TH): Make sure there's room for the initial
  2059.     header.
  2060.  
  2061.     * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
  2062.     Set FVS in points rather than units.
  2063.  
  2064. Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
  2065.  
  2066.     * troff/div.c (top_level_diversion::add_trap): Don't consider the
  2067.     position of empty slots.
  2068.  
  2069. Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
  2070.  
  2071.     * ps/devps/S: Fix height and depth of parenrightex.
  2072.     * ps/devps/symbol.diff: Regenerate.
  2073.  
  2074. Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
  2075.  
  2076.     * tmac.e (u): Do underlining as in -mgs.
  2077.  
  2078. Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
  2079.  
  2080.     * tty/tty.c (tty_printer::end_page): If overstriking is
  2081.     suppressed, still turn overstruck horizontal and vertical lines
  2082.     into +.
  2083.  
  2084.     * lib/new.c: Back out Feb 24 change; no longer needed with gcc
  2085.     2.1.
  2086.  
  2087.     * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
  2088.  
  2089. Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
  2090.  
  2091.     * Version 1.05 released.
  2092.  
  2093. Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
  2094.  
  2095.     * tty/tty.c: Instead of keeping an array of glyphs and then
  2096.     sorting it, keep a ordered linked list of glyphs for each line.
  2097.  
  2098.     * driver/driver.h: Include stddef.h.
  2099.  
  2100.     * tty/tty.c (compare_glyph):
  2101.     * refer/refer.c (rcompare):
  2102.     * troff/env.c (compare_ranges): Arguments of qsort comparison
  2103.     function should be const void *.
  2104.  
  2105.     * troff/number.c (parse_term):
  2106.     * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
  2107.     switch statement.
  2108.  
  2109.     * refer/label.y (consider_authors): Don't access variables
  2110.     constructed under a condition outside that condition: put braces
  2111.     round for statement containing declaration; redeclare use of same
  2112.     variable later.
  2113.  
  2114.     * pic/pic.y (text_expr): Delete production that allows
  2115.     parenthesised text_expr.
  2116.     (expr): Allow a conditional_expr to appear in parentheses.
  2117.     (conditional_expr): Rename to any_expr.
  2118.  
  2119.     * mm: Install new version 1.01 from jh.
  2120.  
  2121.     * lib/font.c (font::get_width): Cache scaled widths.
  2122.     (font::font): Initialize widths_cache.
  2123.     (font::~font): Destroy widths_cache.
  2124.     * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
  2125.  
  2126. Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
  2127.  
  2128.     * c++test.c, c++test.ref: New files.
  2129.     * Makefile: Check that the C++ compiler works.
  2130.  
  2131.     * ps/tmac.pspic (PSPIC): Do a break.
  2132.  
  2133.     * ps/tmac.ps: Move definition of PSPIC into...
  2134.     * ps/tmac.pspic: New file.
  2135.     (PSPIC): Draw box around picture, but make it invisible to grops.
  2136.     * ps/tmac.ps: Load tmac.pspic.
  2137.     * ps/Makefile: Install tmac.pspic.
  2138.  
  2139. Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
  2140.  
  2141.     * lib/font.c (scale_round): If n is negative,
  2142.     subtract .5 before truncating floating point result.
  2143.  
  2144.     * lib/fontfile.c: Include <errno.h>.
  2145.  
  2146. Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
  2147.  
  2148.     * driver/input.c (get_char): Inline. Don't update current_lineno.
  2149.     Change callers to up date current_lineno if necessary.
  2150.     Use get_char() instead of getc(current_file).
  2151.  
  2152. Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
  2153.  
  2154.     * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
  2155.  
  2156. Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
  2157.  
  2158.     * tty/tty.c (tmac.tty): Define \(rg as (R).
  2159.  
  2160. Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
  2161.  
  2162.     * lib/lib.h: New define a_delete.
  2163.     * Use a_delete instead of delete when deleting an array of objects
  2164.     without destructors.
  2165.  
  2166.     * lib/lib.h: Rename adelete to ad_delete.
  2167.     * Change uses of adelete.
  2168.  
  2169. Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
  2170.  
  2171.     * eqn/eqn.y: Include lib.h.
  2172.  
  2173.     * troff/node.c (grow_font_table): Delete old_font_table.
  2174.  
  2175.     * mm: Install new version from jh.
  2176.  
  2177. Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
  2178.  
  2179.     * tbl/table.h (format_type): Make global instead of local to class
  2180.     entry_format.  Prefix enumerators with FORMAT_.
  2181.     * tbl/table.c, tbl/main.c: Corresponding changes.
  2182.     * refer/token.h (token_type): Make global.  Prefix enumerators
  2183.     with TOKEN_.
  2184.     * refer/token.[ch]: Corresponding changes.
  2185.     * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
  2186.  
  2187.     * troff/div.c (node::set_vertical_size): Don't name argument.
  2188.  
  2189. Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
  2190.  
  2191.     * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
  2192.     * lib/lib.h: Define adelete accordingly.
  2193.     * pic/object.c (graphic_object::graphic_object):
  2194.     * tbl/main.c (format::~format):
  2195.     * tbl/table.c (table::~table):
  2196.     * refer/ref.c (reference::~reference, reference::merge,
  2197.     reference::insert_field, reference::delete_field): Use adelete.
  2198.  
  2199.     * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
  2200.     * refer/token.h:
  2201.     * tbl/table.h: Corresponding changes.
  2202.  
  2203.     * common.c (common_output::dashed_arc, common_output::dotted_arc):
  2204.     Ensure total_angle is positive.
  2205.  
  2206. Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
  2207.  
  2208.     * refer/ref.c (reference::merge, reference::insert_field,
  2209.     reference::delete_field): Avoid delete[0].
  2210.  
  2211.     * refer/token.c (init_special_chars): Move calls to cmupper
  2212.     outside calls to init_two_char_letter to work around bug in gcc
  2213.     2.0.
  2214.  
  2215. Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
  2216.  
  2217.     * lib/new.c (operator new): Use __builtin_new for g++.
  2218.  
  2219.     * pic/object.c (graphic_object::~graphic_object):  Don't use
  2220.     delete [] on 0.
  2221.  
  2222.     * pic/object.c (output::compute_scale): Initialize max_width and
  2223.     max_height.
  2224.  
  2225. Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
  2226.  
  2227.     * troff/input.c (write_request): Call fflush.
  2228.  
  2229.     * troff/node.h (class composite_node): Move declaration to node.c
  2230.     * troff/input.c (charinfo_to_node): Rename to ...
  2231.     (charinfo_to_node_list): Return node list rather than composite
  2232.     node.
  2233.     * troff/node.c (make_composite_node): New function.
  2234.     (make_node, add_char): Call make_composite_node instead of
  2235.     charinfo_to_node.
  2236.     (class composite_node): Add a tfont * member.  Delete font_size
  2237.     member.
  2238.     (composite_node::composite_node, composite_node::copy,
  2239.     composite_node::size): Corresponding changes.
  2240.     (composite_node::tprint): Provide constant spacing, emboldening
  2241.     and track kerning as specified in tfont.
  2242.     (composite_node::width): Change width calculation accordingly.
  2243.     * troff/env.h (environment::composite): New member.
  2244.     (environment::is_composite, environment::set_composite): New
  2245.     functions.
  2246.     * troff/env.c (environment::environment): Initialize composite.
  2247.     * troff/input.c (charinfo_to_node): Call
  2248.     environment::set_composite.
  2249.     * troff/node.c (make_composite_node, make_glyph_node): Use the
  2250.     plain version of the tfont if the environment is composite.
  2251.  
  2252.     * troff/node.c (font_info::get_space_width): Additional argument
  2253.     giving space_size.  Handle constant space correctly. Scale by
  2254.     space_size unless constant spaced.
  2255.     (env_sentence_space_width): New function.
  2256.     * troff/node.h: Declare it.
  2257.     * troff/env.h (environment::get_space_size,
  2258.     environment::get_sentence_space_size,
  2259.     environment::get_narrow_space_width,
  2260.     environment::get_half_narrow_space_width): Make inline.
  2261.     (environment::get_space_width): Make inline.  Just call
  2262.     env_space_width.
  2263.     * troff/env.c: Delete definitions for funtions made inline.
  2264.     (environment::space_newline, environment::space): Use
  2265.     env_sentence_space_width(). Don't scale by space_size.
  2266.     * troff/node.h: Move declarations of env*space_width() functions
  2267.     into env.h.
  2268.  
  2269. Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
  2270.  
  2271.     * macros/tmac.s (PS): Don't try to set negative indent.
  2272.  
  2273. Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
  2274.  
  2275.     * pic/pic.y: Fix min function.
  2276.  
  2277. Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
  2278.  
  2279.     * man/mdate.sh: Clear LANGUAGE.
  2280.  
  2281. Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
  2282.  
  2283.     * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
  2284.     * pic/lex.c: New COMMAND keyword.
  2285.     * pic/pic.y (print_args, print_arg): New rules.
  2286.     (placeless_element): Use print_args for PRINT.
  2287.     New COMMAND element.
  2288.  
  2289. Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
  2290.  
  2291.     * troff/input.c (terminal): Handle missing argument correctly.
  2292.  
  2293.     * pic/pic.y (text_expr): New rule.
  2294.  
  2295.     * pic/pic.y: Implement := operator.
  2296.  
  2297. Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
  2298.  
  2299.     * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
  2300.     mdoc.
  2301.  
  2302. Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
  2303.  
  2304.     * ps/devps/dingbatsrmap: Include this in the distribution.
  2305.  
  2306.     * macros/tmac.doc: Replace with new version from 2nd Networking
  2307.     Release. Fix loading of doc-* files.
  2308.     * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
  2309.     * macros/tmac.doc.old: New file.  Apply fixes that had been
  2310.     applied to old tmac.doc.
  2311.     * macros/tmac.andoc: Check that we're running under groff.
  2312.     * macros/Makefile: Rework.
  2313.  
  2314. Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
  2315.  
  2316.     * tbl/table.h (format_type): 
  2317.     * refer/token.h (token_type): If NESTED_TYPES is defined, use
  2318.     typedef to make these types visible at file scope.
  2319.     * Makefile: Add NESTED_TYPES configuration option.
  2320.  
  2321.     * troff/div.c (mark): At the top level use the value of
  2322.     nl_reg_contents rather than the current vertical position.
  2323.  
  2324. Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
  2325.  
  2326.     * tty/tty.c: Implement \D for horizontal or vertical lines.
  2327.     (tty_printer::set_char): Use vec_used+2 as serial number.
  2328.     Don't allow size of vector to exceed USHRT_MAX-2.
  2329.     Split off part into...
  2330.     (tty_printer::add_char): New function.
  2331.     (tty_printer::draw): New function.
  2332.     (compare_glyph): Handle equal serial numbers.
  2333.     (tty_printer::end_page): Handle overstruck characters from \D.
  2334.     (main, usage): Implement -d option.
  2335.  
  2336. Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
  2337.  
  2338.     * tbl/main.c (process_format):
  2339.     * eqn/text.c (split_text):
  2340.     * troff/input.c (token::next): Use inner block for declarations
  2341.     with initializers in switch statement.
  2342.  
  2343. Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
  2344.  
  2345.     * pic/common.c (common_output::dash_line): Cope with zero-length
  2346.     lines.
  2347.  
  2348. Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
  2349.  
  2350.     * Version 1.04 released.
  2351.  
  2352. Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
  2353.  
  2354.     * macros/tmac.an (TH): Define a macro an-init to define variables
  2355.     based on command line arguments.
  2356.     (an-header): Call it.
  2357.  
  2358. Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
  2359.  
  2360.     * Makefile (install.mm): Rename to install.dwbmm.
  2361.  
  2362.     * Makefile: Integrate mm.
  2363.     * mm: New directory.
  2364.  
  2365. Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
  2366.  
  2367.     * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
  2368.     <sys/types.h>.
  2369.  
  2370.     * pic/troff.c (troff_output::simple_spline,
  2371.     troff_output::simple_polygon): Rename variable `v' to `d' to avoid
  2372.     shadowing parameter.
  2373.  
  2374.     * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
  2375.  
  2376.     * lib/ptable.h: Add explicit casts when converting from unsigned
  2377.     long to unsigned.
  2378.  
  2379.     * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
  2380.     * dvi/devdvi/Makefile: Install SA, SB.
  2381.  
  2382.     * refer/indxbib.c: Add declaration of mktemp.
  2383.  
  2384.     * refer/lookbib.c: Add declaration of isatty.
  2385.  
  2386. Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
  2387.  
  2388.     * pic/lex.c (interpolate_macro_with_args):  While collecting
  2389.     arguments, keep track of whether we're in a string.
  2390.  
  2391. Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
  2392.  
  2393.     * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
  2394.     down with \v, so as to avoid problems with top of page trap
  2395.     setting no space mode.
  2396.  
  2397. Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
  2398.  
  2399.     * eqn/lex.c (get_delimited_text): Allow tab before macro body.
  2400.  
  2401. Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
  2402.  
  2403.     * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
  2404.     Improve error message.
  2405.  
  2406. Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
  2407.  
  2408.     * ps/psrm.c (print_ps_string): Don't pass negative numbers to
  2409.     printf("%03o");
  2410.  
  2411. Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
  2412.  
  2413.     * groff.c (possible_command::execp): Always use _exit() after a
  2414.     failed exec.
  2415.  
  2416.     * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
  2417.     NO_SYS_WAIT_H     configuration options.
  2418.     * groff.c: Use these options.  Use POSIX-style macros to extract
  2419.     fields from the status returned by wait().
  2420.  
  2421. Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
  2422.  
  2423.     * tbl/table.c (table::compute_separation_factor): Allow the
  2424.     separation factor to drop to 0.
  2425.  
  2426. Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
  2427.  
  2428.     * refer/search.c: Include <errno.h>.
  2429.  
  2430. Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
  2431.  
  2432.     * pic/pic.y (YYDEBUG): Don't define for Borland C++.
  2433.  
  2434.     * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
  2435.     C++. 
  2436.  
  2437.     * pic/lex.c (input_stack::bol): Move definition out of class body.
  2438.  
  2439.     * pic/main.c: On MSDOS munge argv[0].
  2440.  
  2441.     * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
  2442.  
  2443.     * lib/ptable.c (hash_string): Use unsigned long rather than
  2444.     unsigned.
  2445.     (next_ptable_size): Use unsigned rather than int.  Give an error
  2446.     message if we've hit the largest table size.
  2447.     * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
  2448.     table size.
  2449.  
  2450.     * pic/object.h (object_spec): Make flags unsigned long.  Declare
  2451.     flags as const unisgned long rather than as enums.
  2452.  
  2453.     * pic/output.c: Deleted.
  2454.  
  2455.     * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
  2456.  
  2457.     * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
  2458.     Add additional argument.
  2459.     (line_entry::note_double_vrule_on_{left,right}): Set value of
  2460.     douvle_vrule_on_{right,left} flag according to argument.
  2461.     (simple_line_entry::simple_print,
  2462.     simple_line_entry::double_line_print): If adjacent to double vrule
  2463.     on a corner extend rather than shorten the rule by half the double
  2464.     vrule sep.
  2465.  
  2466.     * troff/number.c (parse_term): In checking for overflow, handle the
  2467.     case where the current horizontal position is negative.
  2468.  
  2469. Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
  2470.  
  2471.     * pic/object.c (draw_arrow): Check for object having zero length.
  2472.  
  2473. Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
  2474.  
  2475.     * eqn/main.c (do_file): Split off inline equation handling into...
  2476.     (inline_equation): New function.  Search for starting delimiter
  2477.     using...
  2478.     (delim_search): New function. Don't recognize a delimiter that
  2479.     occurs in the name of an escape sequence, number register, string
  2480.     etc.
  2481.  
  2482. Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
  2483.  
  2484.     * eqn/delim.c (delim_box::compute_metrics): Don't call
  2485.     define_extensible_string if left is 0.
  2486.     (delim_box::output):  Don't print the left delimiter if left is 0.
  2487.     (delim_box::debug_print): Check for left == 0 before calling printf.
  2488.  
  2489. Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
  2490.  
  2491.     * troff/Makefile (majorminor.c): Include only digits in
  2492.     minor_version.
  2493.  
  2494. Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
  2495.  
  2496.     * refer/dirnamemax.c: new file.
  2497.     * refer/genlimits.c: Deleted.
  2498.     * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
  2499.     Don't check path length.
  2500.     * refer/Makefile: Add dir_name_max.o; delete genlimits.
  2501.     * Makefile: Add PATHCONF_MISSING option.
  2502.  
  2503.     * refer/indxbib.c (get_cwd): New function.
  2504.     (main): Use get_cwd().
  2505.     * lib/getcwd.c: New file.
  2506.     * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
  2507.     GETCWD in SUBFLAGS.
  2508.     * lib/Makefile: Compile getcwd.o.
  2509.  
  2510.     * ps/tmac.psatk (psatk-defs): Define showpage after pushing
  2511.     userdict.
  2512.  
  2513.     * refer/indxbib.c (main): Check success of mktemp.
  2514.  
  2515.     * lib/tmpfile.c: New file.
  2516.     * lib/Makefile: Add tmpfile.c.
  2517.     * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
  2518.     * ps/ps.h: Delete declaration of mktemp().
  2519.     * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
  2520.     * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
  2521.     * driver/driver.h: No need now to include errno.h.
  2522.  
  2523.     * everywhere: Set errno to 0 before calling fopen().
  2524.  
  2525.     * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
  2526.     dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
  2527.     refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
  2528.  
  2529. Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
  2530.  
  2531.     * troff/env.h (translate_space_to_dummy): Declare it.
  2532.     * troff/env.c (environment::space_newline, environment::space):
  2533.     If translate_space_to_dummy is set then make the width of spaces 0.
  2534.     * troff/input.c (translate): If the second character of a
  2535.     translation is a space, translate to unbreakable space.  If the
  2536.     first character is a space, set or clear translate_space_to_dummy
  2537.     according to whether the second character is \&.  Weird!
  2538.  
  2539. Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
  2540.  
  2541.     * groff.c (run_commands): Don't use non-zero exit code because a
  2542.     command gets SIGPIPE.
  2543.  
  2544.     * groff.c, groff.sh: Use -mXps with -TXps.
  2545.  
  2546.     * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
  2547.     (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
  2548.     ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
  2549.     (ps_printer::special): New specials invis and endinvis.
  2550.     (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
  2551.     (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
  2552.     (ps_printer::end_page): Check that invis_count == 0.
  2553.     (ps_printer::invis_count): New member.
  2554.     (ps_printer::ps_printer): Initialize invis_count to 0.
  2555.  
  2556.     * troff/env.c (environment::hyphenate_line): Hyphenation
  2557.     indicator at beginning of word inhibits splitting after -, \(em
  2558.     etc.
  2559.  
  2560.     * pic/pic.y (element): Allow another element to follow } without
  2561.     any intervening separator.
  2562.  
  2563. Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
  2564.  
  2565.     * pic/lex.c (get_delimited): Allow tabs before delimiter.
  2566.  
  2567. Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
  2568.  
  2569.     * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
  2570.     declaration of wait() in header files.
  2571.     * Makefile: Get rid of -DHAVE_UNION_WAIT.
  2572.  
  2573.     * tbl/table.c (alphabetic_text_entry::add_tab): New function.
  2574.  
  2575.     * lib/lib.h: Declare return type of strerror as char *.
  2576.  
  2577.     * man/Makefile: Add g flag to sed substitutions.
  2578.     * Makefile (shgroff, bindist): Likewise.
  2579.  
  2580. Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
  2581.  
  2582.     * ps/ps.c (ps_printer::do_import): Move push of userdict into...
  2583.     * ps/devps/prologue (PBEGIN): Define showpage after pushing
  2584.     userdict.
  2585.  
  2586. Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
  2587.  
  2588.     * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
  2589.     userdict.
  2590.  
  2591. Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
  2592.  
  2593.     * man/mdate.sh: Handle the fact that BSD ls -l does not print the
  2594.     group.
  2595.  
  2596. Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
  2597.  
  2598.     * troff/input.c (define_number_reg):  If currently undefined,
  2599.     don't define it if the argument is an invalid expression.
  2600.  
  2601.     * Makefile: Ignore return value of `if' commands without `else'
  2602.     parts.
  2603.  
  2604.     * Makefile: Split up CPPDEFINES into a series of separate
  2605.     configuration options.
  2606.  
  2607.     * troff/input.c (init_registers): Use time_t instead of long
  2608.     unless LONG_FOR_TIME_T is defined.  Use returned result rather
  2609.     than passing pointer.
  2610.     * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
  2611.  
  2612.     * lib/Makefile (fontpath.h): Use gendef.
  2613.  
  2614. Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
  2615.  
  2616.     * troff/input.c (input_iterator::shift): Delete argument name.
  2617.     * troff/node.c (suppress_output_file::really_begin_page,
  2618.     suppress_output_file::really_transparent_char, node::ascii_print,
  2619.     node::tprint): Delete names of unused arguments.
  2620.  
  2621. Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
  2622.  
  2623.     * refer/label.y (string):  Pass $4 to command_error.
  2624.  
  2625. Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
  2626.  
  2627.     * Version 1.03 released.
  2628.  
  2629. Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
  2630.  
  2631.     * Makefile: Pass definition of SHELL in SUBFLAGS.
  2632.  
  2633.     * gendef: New file.
  2634.     * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
  2635.     ps/Makefile: Use gendef to construct header files that are
  2636.     constructed from the Makefile.
  2637.  
  2638.     * macros/Makefile: make all should build stripped version of tmac.e.
  2639.  
  2640.     * refer/Makefile (clean): Remove y.output.
  2641.  
  2642. Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
  2643.  
  2644.     * ps/pfbtops.c (main): Add -v option which prints out a version
  2645.     number.
  2646.     * ps/Makefile (pfbtops): Link with libgroff.a.
  2647.  
  2648. Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
  2649.  
  2650.     * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
  2651.     * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
  2652.  
  2653.     * refer/lkbib.c (main): Always terminate reference with blank
  2654.     line.
  2655.     * refer/lookbib.c (main): Likewise.
  2656.  
  2657.     * refer/linear.c (file_buffer::load): Check that the file is not a
  2658.     binary file.
  2659.  
  2660.     * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
  2661.     (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
  2662.     Delete second inclusion of <sys/param.h>.
  2663.  
  2664. Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
  2665.  
  2666.     * troff/token.h (token::special): Deleted.
  2667.  
  2668.     * tbl/main.c (process_format): Rework so that opt->tab_char is
  2669.     recognized only when appropriate.
  2670.  
  2671.     * ps/Makefile (clean): Remove pfbtops.
  2672.  
  2673. Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
  2674.  
  2675.     * lib/font.c (text_file::next): Don't return if we have got a
  2676.     blank line.
  2677.  
  2678. Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
  2679.  
  2680.     * refer/refer.c (store_reference): Get hash code from old_table[i]
  2681.     when rehashing the table.
  2682.  
  2683. Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
  2684.  
  2685.     * eqn/box.c (box::top_level): Save size and prev size using \R and
  2686.     restore it afterwards. Set the size to the size at the beginning
  2687.     of the line.
  2688.     * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
  2689.     SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
  2690.  
  2691.     * refer/Makefile (limits.h): Use ./genlimits.
  2692.  
  2693. Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
  2694.  
  2695.     * refer/index.c: Delete declarations of stat() and fstat().
  2696.  
  2697. Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
  2698.  
  2699.     * tty/tmac.tty: Add character definitions for \(>= and \(<=.
  2700.  
  2701. Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
  2702.  
  2703.     * etc/grog.sh, etc/grog.pl: Change regex for .PS.
  2704.  
  2705. Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
  2706.  
  2707.     * troff/input.c (token::get_char): Handle \e.
  2708.  
  2709.     * refer/linear.c: Delete declarations of fstat() and stat().
  2710.  
  2711. Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
  2712.  
  2713.     * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
  2714.     OP_DELETE_BROKEN stuff, since we now have a fix for g++.
  2715.  
  2716. Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
  2717.  
  2718.     * troff/input.c (do_define_macro): Improve error handling for end
  2719.     of file while defining macro.
  2720.  
  2721. Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
  2722.  
  2723.     * eqn/box.h: Fix declaration of set_gsize.
  2724.     * eqn/box.c (set_gsize): Make argument const char *.
  2725.     (gsize): Declare as char *.
  2726.     * eqn/main.c (main): Don't convert gsize to int.
  2727.     * eqn/lex.c (do_gsize): Pass char * to set_gsize.
  2728.  
  2729.     * Version 1.02 released.
  2730.  
  2731. Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
  2732.  
  2733.     * macros/tmac.andoc: New file.
  2734.     * macros/Makefile: Install tmac.andoc.
  2735.  
  2736.     * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
  2737.     operator new and delete on OP_DELETE_BROKEN not being defined.
  2738.     * Makefile: Mention OP_DELETE_BROKEN.
  2739.  
  2740. Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
  2741.  
  2742.     * Makefile (bindist): Pass SUBFLAGS.
  2743.  
  2744. Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
  2745.  
  2746.     * Makefile, groff.c: Pass definitions to groff.c via device.h.
  2747.  
  2748.     * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
  2749.     parameter.
  2750.  
  2751.     * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
  2752.  
  2753.     * ps/ps.h, ps/psrm.c: Make comment_table and
  2754.     header_comment_table local to resource_manager::process_file.
  2755.  
  2756.     * groff.sh: With -TXps pass -printCommand option to gxditview.
  2757.  
  2758.     * groff.c (possible_command::print): Implement using
  2759.     append_arg_to_string.
  2760.  
  2761.     * xditview: Merge in new implementation with own ChangeLog.
  2762.  
  2763. Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
  2764.  
  2765.     * groff.c (main): Implement PRINT_OPTION.
  2766.     (append_arg_to_string): New command.
  2767.     (device_table): Set PRINT_OPTION flag for Xps.
  2768.  
  2769. Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
  2770.  
  2771.     * troff/groff.h: Rename to troff.h.
  2772.  
  2773.     * pic/lex.c (lookup_keyword, docmp): New functions.
  2774.     (get_token): Use new lookup_keyword.
  2775.     Don't include key.h.
  2776.     * pic/key.[ch], pic/pic.gperf: Deleted.
  2777.     * pic/Makefile: Remove gperf stuff.
  2778.  
  2779.     * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
  2780.     into output.h.
  2781.     * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
  2782.  
  2783.     * troff/Makefile, troff/node.c: Move definition of
  2784.     STORE_WIDTH into node.c.
  2785.  
  2786.     * etc/grog.pl, etc/grog.sh: Support -mdoc.
  2787.  
  2788. Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
  2789.  
  2790.     * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
  2791.     dvi/devdvi/texb.map: Add lq and rq.
  2792.     dvi/devdvi: Regenerate fonts.
  2793.     * ps/devps/textmap: Add lq and rq.
  2794.     * ps/devps: Regenerate fonts.
  2795.     * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
  2796.     * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
  2797.  
  2798.     * pic/object.c (position_rectangle): When checking radius
  2799.     cope with possiblity that width or height is negative.
  2800.     (box_object::box_object): Have separate xrad and yrad with
  2801.     signs matching signs of dim components.
  2802.     (box_object::{north,south}_{east,west}): Use xrad and yrad.
  2803.     (box_object::print): With rounded boxes use absolute values
  2804.     for dim and rad arguments.
  2805.  
  2806.     * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
  2807.     in fontpath.h.
  2808.  
  2809.     * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
  2810.  
  2811.     * various files: Add explicit destructors to keep Saber CC +d
  2812.     happy.
  2813.  
  2814. Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
  2815.  
  2816.     * eqn/box.c (box::top_level): Restore fonts correctly after
  2817.     font changes in line containing inline equation.  Also
  2818.     restore previous font as well as current font.
  2819.     * eqn/pbox.h: Define necessary string and register names.
  2820.  
  2821.     * troff/input.c (token::next): Case 'R' calls do_register.
  2822.     (do_register): New function.
  2823.  
  2824. Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
  2825.  
  2826.     * groff.c, groff.sh: Support Xps device.  Allow each device
  2827.     to have a pseudo_name and a real_name.
  2828.  
  2829.     * groff.c (run_commands): Don't print `Broken pipe' messages.
  2830.  
  2831.     * ps/pfbtops.c: New file.
  2832.     * ps/Makefile: Add pfbtops.
  2833.  
  2834.     * troff/number.c (parse_term): Improved error message.
  2835.  
  2836. Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
  2837.  
  2838.     * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
  2839.  
  2840.     * Makefile: Integrate refer.
  2841.     * refer: New directory.
  2842.     * man/grefer.man, man/glookbib.man, man/gindxbib.man,
  2843.     man/lkbib.man: New files.
  2844.     * man/Makefile: Support refer man pages.
  2845.  
  2846.     * lib/lib.h: Declare is_prime.
  2847.     * lib/prime.c: New file.
  2848.  
  2849.     * troff/input.c (macro_source): New function.
  2850.     (init_input_requests): Bind "mso" to macro_source.
  2851.  
  2852.     * troff/env.c (environment::possibly_break_line): Maintain
  2853.     pointer to pointer to node to be split in ndp so as to avoid
  2854.     using address of freed node.
  2855.  
  2856.     * troff/env.c (environment::hyphenate_line): Maintain pointer to
  2857.     pointer to first node to be hyphenated in startp so as to
  2858.     avoid using address of freed node.
  2859.  
  2860.     * troff/env.c (class trie, class hyphen_trie): Make the
  2861.     elements of the trie be of type char not unsigned char.
  2862.     Declare arguments to be const char* instead of unsigned char *.
  2863.     
  2864.     * troff/env.c (hyphenate): Initialize hbuf[0].
  2865.  
  2866.     * troff/input.c (set_string): Declare p to be char * and cast
  2867.     *p to unsigned char when necessary.
  2868.  
  2869.     * troff/input.c (do_define_macro): Declare s to be const
  2870.     char*. Cast element to unisgned char when necessary, Declare
  2871.     d to be an int.  Handle EOF better.
  2872.  
  2873.     * troff/Makefile, troff/input.c: Different scheme for passing
  2874.     definitions of MACROPATH, HYPHENFILE and DEVICE.
  2875.  
  2876. Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
  2877.  
  2878.     * tty/devascii/R.proto: Delete entry for em.
  2879.     * tty/devlatin1/R.proto: Likewise.
  2880.  
  2881. Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
  2882.  
  2883.     * troff/input.c (translate): Stop when we get a space. Treat eof
  2884.     like newline.
  2885.  
  2886.     * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
  2887.  
  2888. Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
  2889.  
  2890.     * tbl/main.c (process_format): A font name following a `f'
  2891.     modifier that starts with a digit can be only one character long.
  2892.     Also deal with EOF on the second character of the font name.
  2893.  
  2894. Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
  2895.  
  2896.     * troff/input.c (token::next): Turn \~ into an
  2897.     unbreakable_space_node.
  2898.     * troff/node.c (unbreakable_space_node): New class.
  2899.     * troff/node.h: Declare it.
  2900.  
  2901. Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
  2902.  
  2903.     * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
  2904.     it's >= 0, before outputting it as a single byte.
  2905.  
  2906. Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
  2907.  
  2908.     * lib/font.c: Make font_char_metric::code an int.
  2909.     (font::get_code): Change return type to int.
  2910.     (font::load): Allow code to be arbitrary integer.
  2911.     * lib/font.h (font::get_code): Change return type to int.
  2912.     (font::number_to_index): Change argument type to int.
  2913.     * troff/input.c (token::next):  In case 'N', allow any value.
  2914.     Store value in token::val.
  2915.     (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
  2916.     (token::get_char, token::add_to_node_list, token::process): Get
  2917.     number from val.
  2918.     (charinfo::set_number): Change argument to int.
  2919.     (charinfo::get_number):  Require that NUMBERED flag be set.
  2920.     (get_charinfo_by_number): Store numbered characters not between 0
  2921.     and 255 in a dictionary.
  2922.     * troff/charinfo.h (get_charinfo_by_number): Change argument type
  2923.     to int.
  2924.     (charinfo::number): Change type to int.
  2925.     (charinfo::set_number): Change type of set_number to int.
  2926.     * troff/node.c (troff_output_file::put_char_width,
  2927.     troff_output_file::put_char): Test whether character is numbered
  2928.     using charinfo::numbered().
  2929.     * driver/printer.c (printer::set_numbered_char): Allow arbitrary
  2930.     values of num.
  2931.     * lib/nametoindex.c: New implementation to cope with arbitrary
  2932.     number characters.
  2933.  
  2934.     * troff/input.c (token::operator==): Test val for
  2935.     TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
  2936.     TOKEN_SIZE.
  2937.  
  2938.     * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
  2939.     (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
  2940.  
  2941. Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
  2942.  
  2943.     * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
  2944.     variable.
  2945.  
  2946.     * all Makefiles: rm targets of cp and >.
  2947.  
  2948.     * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
  2949.     it.
  2950.  
  2951.     * eqn/lex.c (def_table): Add dollar.
  2952.  
  2953. Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
  2954.  
  2955.     * troff/input.c (do_width): Push back newline before closing delim
  2956.     like do_bracket.
  2957.  
  2958. Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
  2959.  
  2960.     * groff.c (possible_command::prepend_arg): New function.
  2961.     (main): Prepend device -m option.
  2962.     * groff.sh: Put device -m options before command-line options.
  2963.  
  2964. Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
  2965.  
  2966.     * macros/tmac.an (IP): Quote argument to TP.
  2967.  
  2968.     * ps/ps.c (main): New option -b, which sets...
  2969.     (broken_flags): New variable.
  2970.     (ps_printer::~ps_printer): Incorporate the setup section in the
  2971.     prolog if (broken_flags & NO_SETUP_SECTION).
  2972.     (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
  2973.     (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
  2974.     ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
  2975.     ps_printer::print_needed_font_comment,
  2976.     ps_printer::print_supplied_font_comment,
  2977.     ps_printer::print_include_font_comments,
  2978.     ps_printer::lookup_doc_font, ps_printer::download_fonts,
  2979.     ps_printer::read_download_file, read_document_fonts, add_font,
  2980.     skip_line, parse_fonts_arg, document_font::document_font,
  2981.     document_font::~document_font, document_font::download,
  2982.     ps_output::include_file):  Deleted.
  2983.     (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
  2984.     rather than %!PS-Adobe-2.0.  Make calls to
  2985.     resource_manager::need_font for each font that we used. Replace
  2986.     calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
  2987.     print_supplied_font_comment, print_needed_font_comment by call to
  2988.     resource_manager::print_header_comments. Output %%Orientation
  2989.     comment. Output %%Requirements: numcopies comment if ncopies > 1.
  2990.     Don't output the prolog directly.  Instead call
  2991.     resource_manager::output_prolog.  Only define #copies when ncopies
  2992.     > 1.  Delete calls to print_include_font_comments  and
  2993.     download_fonts.  Add call to resource_manager::document_setup.
  2994.     (ps_printer::do_file): Call resource_manager::import_file instead
  2995.     of including it ourselves.
  2996.     (ps_printer::do_import): Likewise.  Also don't call
  2997.     merge_import_fonts. Push userdict on the dictionary stack before
  2998.     and pop it afterwards.
  2999.     Move declaration of ps_output into ps.h.
  3000.     * ps/psrm.c: New file implementing resource_manager class.
  3001.     * ps/ps.h: New file declaring ps_output and resource_manager
  3002.     classes.
  3003.     * ps/devps/zapfdr.ps:
  3004.     * ps/devps/symbolsl.ps:
  3005.     * ps/devps/prologue:  Use 3.0 conventions.
  3006.     * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
  3007.     Add default definition of BROKEN_SPOOLER_FLAGS.
  3008.     * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
  3009.     BROKEN_SPOOLER_FLAGS to SUBFLAGS.
  3010.  
  3011. Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
  3012.  
  3013.     * etc/grog.pl: New file.
  3014.     * Makefile (GROG): New variable.
  3015.     Add GROG to SUBFLAGS.
  3016.     * etc/Makefile (GROG): New variable.
  3017.     (install.nobin): Install $(GROG) rather than grog.sh.
  3018.  
  3019. Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
  3020.  
  3021.     * eqn/special.c (special_box::compute_metrics): Make the input and
  3022.     output strings the same.  Get the new height and depth from the
  3023.     predefined height and depth registers.  Also make subscript kern
  3024.     and skew available.
  3025.     (special_box::compute_subscript_kern, special_box::compute_skew):
  3026.     New functions.
  3027.  
  3028.     * eqn/box.c (pointer_box::compute_skew,
  3029.     simple_box::compute_metrics, box::top_level)
  3030.     * eqn/text.c (prime_box::compute_metrics,
  3031.     prime_box::comput_subscript_kern)
  3032.     * eqn/limit.c (limit_box::compute_metrics):
  3033.     * eqn/delim.c (build_extensible, delim_box::compute_metrics):
  3034.     * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
  3035.     negative numbers in `nr' requests with a leading 0.
  3036.  
  3037. Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
  3038.  
  3039.     * eqn/special.c: New file.
  3040.     * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
  3041.     Add new rule for simple.
  3042.     * eqn/lex.c (token_table): Add SPECIAL.
  3043.     * eqn/box.h: Declare make_special_box.
  3044.     * eqn/Makefile: Add special.[co].
  3045.  
  3046. Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
  3047.  
  3048.     * ps/devps/prologue: Possibly set packing to true while defining.
  3049.     Create grops dictionary here.  Initialize local variables before
  3050.     defining procedures.
  3051.     (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
  3052.     the dictionary stack. Set strokeadjust and overprint to false if
  3053.     the relevant operators are defined.
  3054.     (PEND): New procedure.
  3055.     * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
  3056.     prologue.  Do everything else in the setup section.
  3057.     (ps_printer::do_import): Just call PBEGIN and PEND around the
  3058.     picture. Also push userdict before, and pop it afterwards.
  3059.  
  3060. Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
  3061.  
  3062.     * troff/node.c (bracket_node::tprint): Brackets were being printed
  3063.     1m too low.
  3064.  
  3065.     * macros/tmac.an (SH, SS): Set fill mode.
  3066.  
  3067. Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
  3068.  
  3069.     * troff/div.c (top_level_diversion::begin_page): Set
  3070.     high_water_mark to 0.
  3071.  
  3072. Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
  3073.  
  3074.     * man/mdate.sh: New file.
  3075.     * man/mdate.c: Deleted.
  3076.     * man/Makefile: Use mdate.sh instead of mdate.
  3077.     (mdate): Deleted.
  3078.  
  3079.     * eqn/lex.c (do_gsize): Supply missing argument to error message.
  3080.  
  3081. Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
  3082.  
  3083.     * man/mdate.c: New file.
  3084.     * man/*.man: Replace modification date by @MDATE@.
  3085.     * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
  3086.     (mdate): New target.
  3087.  
  3088.     * lib/font.c (text_file::next): Deal with arbitrarily long lines.
  3089.     Remove illegal input characters.
  3090.  
  3091. Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
  3092.  
  3093.     * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
  3094.  
  3095. Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
  3096.  
  3097.     * troff/div.c (begin_page): Change behaviour when
  3098.     !first_page_begun and !break_flag.
  3099.  
  3100.     * troff/input.c (do_name_test): Return 0 if argument is empty.
  3101.  
  3102.     * troff/input.c (read_long_escape_name): Require closing ] to be
  3103.     at same input level as opening [.
  3104.  
  3105.     * troff/input.c (read_increment_and_escape_name): New function.
  3106.     (get_copy, process_input_stack): Use this for \n.
  3107.  
  3108. Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
  3109.  
  3110.     * troff/div.c (top_level_diversion::begin_page): Ignore the
  3111.     current value of page_number if !first_page_begun.
  3112.  
  3113.     * groff.c (main): Fix declaration of buf.
  3114.  
  3115.     * troff/input.c (do_name_test): New function.
  3116.     (token::next): Implement \A.
  3117.     (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
  3118.     (token::description, token::add_to_node_list, token::process):
  3119.     Handle TOKEN_ESCAPE.
  3120.     * troff/token.h: New token TOKEN_ESCAPE.
  3121.  
  3122. Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
  3123.  
  3124.     * pic/main.c (do_picture): Allow space before and after filename
  3125.     following `<'.  Check that the filename is not empty.
  3126.  
  3127. Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
  3128.  
  3129.     * Version 1.01 released. 
  3130.  
  3131.     * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
  3132.  
  3133.     * dvi/tmac.dvi: ftr HR to H.
  3134.  
  3135.     * macros/tmac.e: Round up computation of $r.
  3136.  
  3137.     * xditview/tmac.X:  Don't give up completely in compatibility mode.
  3138.     Use \n(.s instead of \n[.s].
  3139.  
  3140.     * dvi/tmac.dvi: Don't give up completely in compatibility mode.
  3141.     Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
  3142.     Add u to factors inside \s[...]. Rename frac to dvi-frac.
  3143.     Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
  3144.     short names in the char definitions.
  3145.  
  3146.     * ps/tmac.ps: Don't give up completely in compatibility mode.
  3147.     Fix the fraction definitions to use \n(.s and \(f/. Add an extra
  3148.     quote in front of \n(.s. Add u to factors inside \s[...].
  3149.  
  3150. Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
  3151.  
  3152.     * tty/tmac.tty: Call the nroff request.
  3153.  
  3154.     * macros/tmac.e ((x, )x):  Better definitions that work properly
  3155.     in a diversion.
  3156.     (@0, @1): Helper macros for (x.
  3157.  
  3158.     * macros/tmac.e ($s, hl): Use \l rather than \D.
  3159.  
  3160.     * tty/tmac.tty: Make it work better in compatibility mode.
  3161.     (pchar): Rename to tty-char.
  3162.  
  3163.     * macros/tmac.e (@E): New macro.
  3164.     (r, i, b, rb, bi): Use @E.
  3165.  
  3166.     * macros/tmac.e (@F): Don't use (;...) syntax.
  3167.  
  3168.     * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
  3169.     it was modified for groff.
  3170.  
  3171.     * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
  3172.  
  3173.     * macros/tmac.e (<., .>): Removed.
  3174.     ([., .]): If \n(.V>=1v, use [] instead of superscripting.
  3175.  
  3176.     * macros/tmac.e: Remove check that groff is being used.
  3177.  
  3178.     * macros/tmac.e (@C): Change families only if using groff; turn
  3179.     compatibility mode off while changing familes. Save compatibility
  3180.     mode before changing families and restore it afterwards.
  3181.  
  3182.     * macros/tmac.e (@h): Remove test for offset + line length.
  3183.  
  3184.     * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
  3185.     (lo, th, ac): Define to call @S instead of using als.
  3186.  
  3187.     * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
  3188.     the ratio of the vertical spacing to the point size in units
  3189.     expressed as a percentage.  Use these instead of $10r and $10R,
  3190.     Delete $10r and $10R.
  3191.  
  3192.     * lib/font.c (font::load): In default computation of space_width,
  3193.     divide by sizescale.  Use scale_round.
  3194.  
  3195.     * macros/tmac.an (TP): Don't call `nf'.
  3196.     (an-do-tag): Don't call `fi'.
  3197.  
  3198. Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
  3199.  
  3200.     * troff/input.c (process_input_stack): Handle the case where
  3201.     spaces at the beginning of an input line are followed by a
  3202.     newline.
  3203.  
  3204. Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
  3205.  
  3206.     * groff.c (device_table): Add PIC_X_OPTION for dvi device.
  3207.     * groff.sh: Use pic -x with the dvi device.
  3208.  
  3209.     * dvi/devdvi/FontMakefile (H): Don't use -s.
  3210.  
  3211.     * dvi/devdvi/HI, dvi/devdvi/HB: New files.
  3212.     * dvi/devdvi/Makefile: Add HI and HB to FONTS.
  3213.     * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
  3214.     in FONTS.
  3215.  
  3216. Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
  3217.  
  3218.     * ps/psfig.diff: New file.
  3219.     * ps/tmac.psfig: New file.
  3220.  
  3221. Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
  3222.  
  3223.     * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
  3224.     (]-): Don't call ref*do-tl.
  3225.  
  3226.     * macros/tmac.s (ref*end-print): Use XP if [F not defined.
  3227.  
  3228.     * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
  3229.     (fn@do-FS): Rename to fn*do-FS.
  3230.  
  3231.     * troff/input.c (transparent_translate): New function.
  3232.     (process_input_stack): Apply transparent_translate before calling
  3233.     diversion::transparent_output(unsigned char).
  3234.  
  3235. Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
  3236.  
  3237.     * troff/input.c (do_define_macro): Define the macro before calling
  3238.     skip_line.
  3239.  
  3240.     * xditview/Makefile: Add DEVICES variable.  Change install target
  3241.     to use this.
  3242.  
  3243. Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
  3244.  
  3245.     * groff.c (run_commands): Handle the possibility that there are
  3246.     child processes other than those forked by us.
  3247.  
  3248. Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
  3249.  
  3250.     * lib/string.c (string::append): New function.
  3251.     * lib/stringclass.h: Declare it.
  3252.  
  3253. Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
  3254.  
  3255.     * eqn/main.c (main): New option -N which sets
  3256.     no_newline_in_delim_flag. 
  3257.     (do_file): If no_newline_in_delim_flag is set don't allow newlines
  3258.     in delimiters.
  3259.     * groff.c (main): Pass -N on to eqn.
  3260.     (help, synopsis): Mention -N.
  3261.     * groff.sh: Implement -N.
  3262.  
  3263. Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
  3264.  
  3265.     * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
  3266.     (]-): Call ref*do-tl if ref*need-tl is non-zero.
  3267.     (XP): Allow as initializer.
  3268.  
  3269. Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
  3270.  
  3271.     * troff/env.c (environment::wrap_up_field): If field_spaces are
  3272.     non-zero and we have a current_tab, subtract padding from
  3273.     tab_distance.  If this makes tab_distance <= 0, use the next tab
  3274.     stop instead.  If there isn't any next tab or it's a left tab,
  3275.     wrap up the current tab.
  3276.     (environment::start_field): Initialize tab_precedes_field.
  3277.     (environment::wrap_up_tab): If there's a current field, update
  3278.     pre_field_width, field_distance and tab_precedes_field.
  3279.     * troff/env.h (environment::tab_precedes_field): New member.
  3280.  
  3281. Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
  3282.  
  3283.     * ps/ps.c (ps_printer::do_file): New function.
  3284.     (ps_printer::special): Bind to `file' special.
  3285.     (ps_printer::do_exec): Set ndefined_styles to 0.
  3286.  
  3287. Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
  3288.  
  3289.     * eqn/text.c (split_text): Grok \* and similar escapes sequences.
  3290.     Avoid stripping first character from the start of unrecognized
  3291.     escapes.  Use lex_error instead of error to report errors.
  3292.     * eqn/lex.c (get_token): Rework handling of escapes.
  3293.     (lex_error): Move declaration into...
  3294.     * eqn/eqn.h.
  3295.  
  3296.     * xditview/xditview.c (main): Make -page option work.
  3297.  
  3298.     * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
  3299.  
  3300. Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
  3301.  
  3302.     * macros/tmac.s (B2): Correct size of box.
  3303.  
  3304. Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
  3305.  
  3306.     * macros/tmac.s (B2): Postpone drawing the box until in the
  3307.     top-level diversion.
  3308.  
  3309.     * tty/tmac.tty: Add font translations for C, CR, CW.
  3310.  
  3311.     * groff.c (synopsis, help): Document -i.
  3312.     * groff.sh: Implement -i.
  3313.  
  3314.     * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
  3315.     Simplify the construction of SN.
  3316.  
  3317.     * troff/number.c (parse_term): Give `|' a higher precedence.
  3318.     * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
  3319.     accordingly.
  3320.  
  3321.     * macros/tmac.s (B2): Use par@finish instead of par@reset.
  3322.  
  3323. Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
  3324.  
  3325.     * lib/string.c (string::move): New function.
  3326.     * lib/stringclass.h: Declare it.
  3327.  
  3328. Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
  3329.  
  3330.     * troff/env.c (distribute_space): Add optional argument
  3331.     `force_forward'.
  3332.     (environment::wrap_up_field): Call distribute_space with
  3333.     `force_forward' argument of 1.
  3334.  
  3335. Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
  3336.  
  3337.     * lib/string.c, lib/stringclass.h (string::operator+=(char)):
  3338.     Inline it.  Move reallocation into...
  3339.     (string::grow1): New function.
  3340.     * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
  3341.     dependencies to include library header files.
  3342.     * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
  3343.  
  3344. Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
  3345.  
  3346.     * macros/tmac.s (@NH): Use the same number registers than -ms does
  3347.     for the heading level counters.  Use the same string that -ms does
  3348.     for the number for this heading.
  3349.  
  3350. Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
  3351.  
  3352.     * lib/new.c (operator new): Cast result of malloc to char *.
  3353.  
  3354.     * troff/input.c (spring_trap, lookup_request): Add assert that nm
  3355.     is not null.
  3356.  
  3357. Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
  3358.  
  3359.     * groff.c (main): Support -i.
  3360.  
  3361. Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
  3362.  
  3363.     * pic/pic.h: Include <osfcn.h>.
  3364.  
  3365.     * ps/ps.c: Add declaration of mktemp.
  3366.  
  3367.     * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
  3368.     * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
  3369.     argument as union wait *.
  3370.     (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
  3371.     argument to union wait *.
  3372.  
  3373. Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
  3374.  
  3375.     * tty/tmac.tty: Add definition of \(co.
  3376.  
  3377.     * pic/object.c (make_arc): Only increase radius when radius
  3378.     strictly less than d.
  3379.     (arc_object::update_bounding_box): May need to add 4.0 to end_quad
  3380.     more than once.
  3381.  
  3382.     * troff/env.c (environment::environment(symbol),
  3383.     environment::environment(const environment *)):  Initialize
  3384.     input_trap_count.
  3385.  
  3386. Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
  3387.  
  3388.     * tbl/main.c (main): Add exit(0).
  3389.  
  3390.     * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
  3391.  
  3392.     * pic/main.c (main):
  3393.     * eqn/main.c (main):
  3394.     * tbl/main.c (main):
  3395.     * etc/soelim.c (main):
  3396.     * driver/printer.c (printer::~printer):
  3397.     * troff/node.c (real_output_file::~real_output_file,
  3398.     real_output_file::flush):  Check for errors on stdout.
  3399.  
  3400.     * most files: Add 1991 to copyright notice.
  3401.  
  3402.     * macros/tmac.s: Don't test \n(.x and \n(.y.
  3403.  
  3404.     * troff/input.c (token::next): Rename `escape_char' label to
  3405.     `handle_escape_char' and `normal_char' label to
  3406.     `handle_normal_char'.
  3407.  
  3408. Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
  3409.  
  3410.     * groff.c (main, synopsis, help): Support -a option.
  3411.     * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
  3412.     to trflags while parsing options.
  3413.  
  3414. Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
  3415.  
  3416.     * troff/number.c (parse_term): With `m', `M' and `n' scale
  3417.     indicators, convert scale factor to hunits before scaling.
  3418.  
  3419. Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
  3420.  
  3421.     * lib/font.c (scale_round): Better test for overflow when n is
  3422.     negative.
  3423.  
  3424. Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
  3425.  
  3426.     * tbl/main.c (process_format): Add second argument of type
  3427.     options*. Change callers.  Allow opt->tab_char as well as '\t'
  3428.     between format items.
  3429.  
  3430. Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
  3431.  
  3432.     * macros/tmac.an (PD): With no arguments, make sure register PD is
  3433.     at least \n[.V].
  3434.     (TH): Call PD with no argument, instead of setting register PD
  3435.     directly.
  3436.  
  3437. Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
  3438.  
  3439.     * Version 1.00 released.
  3440.  
  3441. Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
  3442.  
  3443.     * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
  3444.  
  3445.     * dvi/devdvi/DESC: Mount CW instead of CR.
  3446.  
  3447.     * dvi/tmac.dvi: Add definition of \(tm.
  3448.  
  3449.     * dvi/devdvi/texsy.map: Add lh, and rh.
  3450.     * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
  3451.     * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
  3452.  
  3453.     * dvi/devdvi/FontMakefile: Generate H from cmss10.
  3454.     * dvi/devdvi/Makefile: Install H.
  3455.     * dvi/devdvi/H: New file.
  3456.  
  3457. Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
  3458.  
  3459.     * troff/env.c (vertical_spacing): Don't allow vertical spacing to
  3460.     be 0.
  3461.  
  3462. Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
  3463.  
  3464.     * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
  3465.  
  3466.     * macros/tmac.pic (PS): Avoid attempting to set negative indent.
  3467.  
  3468.     * macros/tmac.s (@EN): Handle the case where the equation is empty
  3469.     but the label is not.
  3470.  
  3471. Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
  3472.  
  3473.     * troff/groff.h: New warning category WARN_SPACE.
  3474.     * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
  3475.     WARN_SPACE to warning_table.
  3476.     (interpolate_macro): Give a warning of type WARN_SPACE if the name
  3477.     is longer than two characters and is not defined, but the first
  3478.     two characters do make a defined name.
  3479.  
  3480.     * PROBLEMS: New file.
  3481.  
  3482.     * CHANGES: New file.
  3483.     * README-0.6, README-1.00: Deleted.
  3484.  
  3485.     * groff.c, groff.sh: Add X75-12 and X100-12 devices.
  3486.     * xditview/devX75/Makefile: Make devX75-12.
  3487.     * xditview/devX100/Makefile: Make devX100-12.
  3488.  
  3489.     * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
  3490.     dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
  3491.  
  3492. Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
  3493.  
  3494.     * README-0.7: Rename to README-1.00.
  3495.  
  3496.     * macros/tmac.pic: New file.
  3497.     * macros/Makefile (install.nobin): Install tmac.pic.
  3498.  
  3499. Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
  3500.  
  3501.     * troff/env.c (hyphen_word): Correct the test for whether the
  3502.     token is a hyphen.  Reset npos to 0.
  3503.  
  3504.     * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
  3505.  
  3506. Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
  3507.  
  3508.     * macros/tmac.s (ds*common-end): Call par*reset.
  3509.     (PE): Likewise.
  3510.     (par@reset-indent): Deleted.
  3511.  
  3512.     * macros/tmac.s (@IP): Divert the label.
  3513.  
  3514. Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
  3515.  
  3516.     * xditview/draw.c (setGC): Use a line width of .1m rather than
  3517.     .04m by default; round rather than truncate value.
  3518.  
  3519.     * tbl/table.c (class empty_entry): New class.
  3520.     (empty_entry::empty_entry, empty_entry::line_type): New functions.
  3521.     (table::add_entry): Represent empty entries by objects of type
  3522.     empty_entry.
  3523.     (table_entry::line_type): Return -1.
  3524.     (table::determine_row_type): Ignore entries with line_type 0.
  3525.     Treat type -1 as non-lines.
  3526.  
  3527. Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
  3528.  
  3529.     * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
  3530.     macros/tmac.s: Rename \(-d to \(Sd.
  3531.  
  3532. Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
  3533.  
  3534.     * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
  3535.     * xditview/libXdvi/DviChar.c: Likewise.
  3536.     * dvi/devdvi/texsy.map: Add `<<', `>>'.
  3537.  
  3538. Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
  3539.  
  3540.     * troff/div.c (top_level_diversion::begin_page): Call
  3541.     init_output() if the_output is 0.
  3542.  
  3543. Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
  3544.  
  3545.     * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
  3546.     ESCAPE_c.
  3547.     (get_copy): Turn \E into ESCAPE_E.
  3548.     (token::process, asciify): Handle ESCAPE_E.
  3549.  
  3550.     * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
  3551.     (RD): New macro.
  3552.     (DS): Implement `.DS R'.
  3553.  
  3554. Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
  3555.  
  3556.     * macros/tmac.s (FS): New macro.
  3557.  
  3558.     * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
  3559.  
  3560.     * macros/tmac.s (cov*tl-init): Remove after first execution
  3561.     instead of aliasing to @nop.  Call top of page macro explicitly
  3562.     instead of setting trap; call @init first.  Set pg@top as top of
  3563.     page macro.
  3564.     (cov*auto-init): Deleted.  Set cov*tl-init instead of
  3565.     cov*auto-init as top of page trap. 
  3566.     (TL, LP): Do a break instead of calling cov*tl-init.
  3567.     (cov*print): With RP format but no TL, alias FS and FE to @FS and
  3568.     @FE; in this case also give a warning and always start another
  3569.     page. No need to set pg@top here.
  3570.     (cov*tl-init): Rename to cov*first-page-init.
  3571.  
  3572.     * macros/tmac.s (RP): Do `.pn 0'.
  3573.     (cov*tl-init): With RP format don't do `.pn 0'.
  3574.  
  3575.     * macros/tmac.s (pg@cs-top): Set no space mode.
  3576.  
  3577.     * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
  3578.     (cov*ab-init): Alias TL, AU and AI to these.
  3579.  
  3580. Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
  3581.  
  3582.     * macros/tmac.s (@EQ): Move the space before the equation into @EN
  3583.     (@EN): Do nothing unless \n[dl] is > 0.
  3584.  
  3585. Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
  3586.  
  3587.     * pic/object.c (ellipse_object::radius): New function.
  3588.  
  3589.     * VERSION: Change version to 0.7.
  3590.  
  3591.     * tbl/table.c (block_entry::do_divert): Declare return type as
  3592.     void.
  3593.     (block_entry::divert, alphabetic_block_entry::divert): Return 1.
  3594.  
  3595. Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
  3596.  
  3597.     * troff/column.c: New file.
  3598.     * troff/Makefile: Corresponding changes.
  3599.  
  3600.     * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
  3601.     Friend of vunits.
  3602.  
  3603.     * troff/div.c (top_level_diversion::space): If the space causes
  3604.     the first-page transition and springs a trap, truncate the space
  3605.     to 0.
  3606.  
  3607. Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
  3608.  
  3609.     * ps/ps.c (ps_printer::do_import): Add a `clear' after including
  3610.     the document.
  3611.  
  3612.     * pic/troff.c (troff_output::line_thickness,
  3613.     troff_output::set_fill): Do a horizontal motion to compensate for
  3614.     the width of the \D escape sequence.
  3615.  
  3616. Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
  3617.  
  3618.     * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
  3619.     (not X75).
  3620.  
  3621.     * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
  3622.     to printf.
  3623.  
  3624.     * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
  3625.     Supply empty definition.
  3626.     (text_entry::simple_print, simple_text_entry::simple_print):
  3627.     Delete declarations.
  3628.     (table::add_entry): Represent empty entries by objects of type
  3629.     `simple_entry'.
  3630.  
  3631. Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
  3632.  
  3633.     * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
  3634.  
  3635.     * tbl/table.c (left_text_entry::add_tab): New function.
  3636.  
  3637.     * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
  3638.     initialize like LP.
  3639.  
  3640. Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
  3641.  
  3642.     * troff/env.c (environment::start_field): Give an error message if
  3643.     there is no next tab.
  3644.  
  3645. Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
  3646.  
  3647.     * troff/env.c (hyphenate): Skip initial elements with zero
  3648.     hyphenation code.
  3649.  
  3650.     * macros/tmac.s (par@init): Keep VS in points rather than units.
  3651.  
  3652. Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
  3653.  
  3654.     * pic/main.c (main): Implement `-c' option.
  3655.     * pic/output.h: Declare make_tpic_output().
  3656.     * pic/tex.c (tex_output::set_pen_size): Make it virtual and
  3657.     protected.
  3658.     (tpic_output): New class.
  3659.     (tpic_output::tpic_output, tpic_output::set_pen_size,
  3660.     tpic_output::command, make_tpic_output): New functions.
  3661.  
  3662. Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
  3663.  
  3664.     * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
  3665.     if they're not already defined.
  3666.     * tbl/table.c (init_output): Don't test \n(.g.
  3667.  
  3668.     * troff/input.c (do_if_request): Delete `g' condition. Recognize
  3669.     `d', `r' and `c' conditions even in compatibility mode.
  3670.  
  3671. Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
  3672.  
  3673.     * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
  3674.     box.
  3675.  
  3676. Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
  3677.  
  3678.     * troff/env.h (environment::prev_line_interrupted): New member.
  3679.     (environment::get_prev_line_interrupted): New function.
  3680.     * troff/env.c (environment::newline): Set prev_line_interrupted.
  3681.     (environment::environment(const environment *),
  3682.     environment::environment(symbol)): Initialize
  3683.     prev_line_interrupted.
  3684.     * troff/input.c (process_input_stack): Don't give special
  3685.     treatment to space and newline at the beginning of the line if the
  3686.     previous line was interrupted.
  3687.  
  3688. Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
  3689.  
  3690.     * eqn/eqn.y: Disallow PRIME by itself.
  3691.     * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
  3692.     PRIME.
  3693.     (def_table): Remove definition of '.  Define prime to be `.
  3694.  
  3695.     * eqn/eqn.y: Split off part of rule `script' into a new rule
  3696.     `nonsup'.
  3697.  
  3698. Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
  3699.  
  3700.     * macros/tmac.s ({, }): New string aliases.
  3701.  
  3702. Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
  3703.  
  3704.     * README-0.7: New file.
  3705.  
  3706. Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
  3707.  
  3708.     * macros/tmac.s: New file.
  3709.     * man/groff_ms.man: New file.
  3710.     * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
  3711.     * Makefile.bd: Similarily.
  3712.     * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
  3713.     definition of TMAC_S.
  3714.     * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
  3715.     * macros/TODO: New file.
  3716.  
  3717. Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
  3718.  
  3719.     * troff/env.c (right_justify): New function.
  3720.     (init_env_requests): Bind this to request "rj".
  3721.     (center_lines): Set right_justify_lines to 0. If we get a bad
  3722.     integer, center 1 line.
  3723.     (environment::environment(symbol), environment::environment(const
  3724.     environment *)): Initialize right_justify_lines.
  3725.     (environment::get_right_justify_lines): New function.
  3726.     (init_env_requests): Bind this to number_register ".rj".
  3727.  
  3728.     * troff/env.c (environment::choose_breakpoint): Implement
  3729.     hyphenation_margin and hyphenation_space.
  3730.     (environment::get_hyphenation_space,
  3731.     environment::get_hyphenation_margin): New functions.
  3732.     (init_env_requests): Bind these to .hys and .hym.
  3733.     (hyphenation_space_request, hyphenation_margin_request): New
  3734.     functions
  3735.     (init_env_requests): Bind these to hys and hym.
  3736.     (environment::environment(symbol), environment::environment(const
  3737.     environment *)): Initialize hyphenation_margin and
  3738.     hyphenation_space.
  3739.     * troff/env.h: Corresponding changes to class environment.
  3740.  
  3741. Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
  3742.  
  3743.     * troff/div.c (blank_line): Always do a break.
  3744.  
  3745.     * eqn/box.c (do_text): Turn off escapes while appending text to
  3746.     string.
  3747.  
  3748. Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
  3749.  
  3750.     * troff/input.c (while_break_request, while_continue_request): New
  3751.     functions.
  3752.     (init_input_requests): Bind these to "break" and "continue".
  3753.     (while_depth, while_break_flag): New variables.
  3754.     (while_request): Update while_depth.  Break out of loop if
  3755.     while_break_flag is set.
  3756.  
  3757. Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
  3758.  
  3759.     * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
  3760.     rather than 0.
  3761.  
  3762. Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
  3763.  
  3764.     * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
  3765.  
  3766.     * stringify: New file.
  3767.     * Makefile (groff.o): Use stringify.
  3768.  
  3769.     * xditview/tmac.X: Remove definition of \(rn.
  3770.     * xditview/libXdvi/DviChar.c: Remove radicalex from
  3771.     Adobe_symbol_map.
  3772.  
  3773. Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
  3774.  
  3775.     * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
  3776.     (alphabetic_block_entry::alphabetic_block_entry,
  3777.     alphabetic_block_entry::divert, alphabetic_block_entry::print):
  3778.     New functions.
  3779.     (block_entry::divert): Split off body into ...
  3780.     (block_entry::do_divert): If the block is alphabetic, subtract 2n
  3781.     from the line length; also update the span width to dl+2n, and the
  3782.     alphabetic span width to dl.
  3783.  
  3784.     * driver/input.c (do_file):  While reading argument to D command,
  3785.     when expanding buffer, multiply szp by sizeof(int) rather than 2
  3786.     in the argument to memcpy.
  3787.  
  3788.     * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
  3789.     width of alphabetic columns.
  3790.  
  3791. Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
  3792.  
  3793.     * troff/node.c (lookup_family): Supply second argument to lookup.
  3794.  
  3795.     * troff/dictionary.c (dictionary::lookup): After an unsuccesful
  3796.     search, return immediately if v is 0.
  3797.  
  3798.     * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
  3799.     (troff_output::start_picture): Set this reg.
  3800.     (troff_output::end_picture): Remove this reg
  3801.     * eqn/box.c (box::extra_space): Don't produce `\x's if
  3802.     EQN_NO_EXTRA_SPACE_REG is defined.
  3803.  
  3804.     * eqn/eqn.y: Allow just a PRIME to be a `simple'.
  3805.     * eqn/text.c (split_text): Map ' to \(fm when it's the first
  3806.     character.
  3807.  
  3808. Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
  3809.  
  3810.     * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
  3811.     requests.
  3812.  
  3813.     * troff/div.c (top_level_diversion::top_level_diversion):
  3814.     Initialize page_number to 0.
  3815.  
  3816. Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
  3817.  
  3818.     * groff/troff (environment::environment(const environment *)):
  3819.     Initialize name to e->name, rather than "anonymous".
  3820.  
  3821. Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
  3822.  
  3823.     * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
  3824.     requested_page.  Split middle part into ...
  3825.     (FindPage): New function.
  3826.     (SetValues): If we don't yet know the last page, and the requested
  3827.     page is greater than the current page, call FindPage.
  3828.     Update the font_map_string before doing this.
  3829.  
  3830.     * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
  3831.     Translate \(lh and \(rh into left and right double arrows.
  3832.  
  3833.     * troff/node.c (class hyphen_inhibitor_node): New class.
  3834.     (hyphen_inhibitor_node::hyphen_inhibitor_node,
  3835.     hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
  3836.     hyphen_inhibitor_node::type,
  3837.     hyphen_inhibitor_node::get_hyphenation_type): New functions.
  3838.     (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
  3839.     than dbreak_node(0, 0) to represent a `\%' at the beginning of a
  3840.     word.
  3841.  
  3842. Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
  3843.  
  3844.     * troff/node.h (dummy_node::get_hyphenation_type,
  3845.     transparent_dummy_node::get_hyphenation_type):  Declare them.
  3846.     * troff/node.c: (dummy_node::get_hyphenation_type,
  3847.     transparent_dummy_node::get_hyphenation_type): New functions.
  3848.  
  3849. Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
  3850.  
  3851.     * xditview/libXdvi/draw.c: If M_PI not defined after including
  3852.     math.h, then define it.
  3853.  
  3854.     * xditview/Makefile: Add definition of AR. Pass it to the submake
  3855.     in libXdvi.
  3856.     * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
  3857.  
  3858. Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
  3859.  
  3860.     * troff/dictionary.h (object_dictionary::alias): Declare return
  3861.     value as int.
  3862.     * troff/dictionary.c (object_dictionary::alias): Return non-zero
  3863.     if the old name was defined.
  3864.     * troff/input.c (alias_macro): Give a warning if the old name was
  3865.     not defined.
  3866.     * troff/reg.c (alias_reg): Likewise.
  3867.  
  3868. Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
  3869.  
  3870.     * troff/input.c (token::next): Delete implementation of \R.
  3871.  
  3872.     * macros/Makefile: Strip comments from tmac.e while installing it.
  3873.  
  3874.     * troff/input.c: New variable `nroff_mode'.
  3875.     (troff_request, nroff_request): New functions.
  3876.     (init_input_requests): Bind `troff' and `nroff' to troff_request
  3877.     and nroff_request.
  3878.     (do_if_request): Compute results of t and n conditions from
  3879.     nroff_mode.
  3880.  
  3881.     * text/text.c (split_text): Fix typo in >=.
  3882.  
  3883.     * eqn/lex.c: Add definition of `==' to def_table.
  3884.  
  3885. Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
  3886.  
  3887.     * pic/tex.c (tex_output::start_picture): Change the definitions of
  3888.     \graph and \graphtemp so that they work properly with Plain TeX.
  3889.  
  3890.     * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
  3891.     argument to `ar' is not less than the first.
  3892.  
  3893.     * pic/pic.y: Allow a comma between elements of the variable list
  3894.     in the argument to `reset'.
  3895.  
  3896.     * pic/object.c (arc_object::arc_object): Fix computation of
  3897.     radius.
  3898.  
  3899.     * eqn/main.c (main): Add exit(0).
  3900.  
  3901. Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
  3902.  
  3903.     * troff/div.c (begin_page): Test no_space_mode after doing the
  3904.     break, but still push the page ejector cookie before doing the
  3905.     break.  Also set the next page number after doing the break.
  3906.     
  3907.     * xditview/xditview.c (NewFile): Don't set the title and icon name
  3908.     if this is the first file and its name is `-'.
  3909.     * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
  3910.     the X75 and X100 devices.
  3911.     (main): If a device has the XT_OPTION flag set and there's exactly
  3912.     one file argument, pass the driver -xrm and -title options to set
  3913.     the icon name and window title to the name of the file.
  3914.  
  3915.     * troff/env.c (environment_switch): If there was an argument but
  3916.     it wasn't a valid number or name, then pop an environment but
  3917.     don't give an error message on underflow.
  3918.  
  3919.     * troff/number.c (start_number): Correct spelling in error message.
  3920.  
  3921.     * troff/input.c (token::delimiter): Don't print an error message
  3922.     if err is false.
  3923.  
  3924.     * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
  3925.     ParseDrawFunction if dw->display_enable is true.
  3926.  
  3927. Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
  3928.  
  3929.     * pic/pic.y: Parse text positioning like normal attributes, so as
  3930.     to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
  3931.     positioning attribute.
  3932.  
  3933. Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
  3934.  
  3935.     * tbl/main.c (process_data): When in state START while reading a
  3936.     text block, don't change to state MIDDLE if c is a newline.
  3937.  
  3938. Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
  3939.  
  3940.     * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
  3941.     so as to avoid shadowing parameter.
  3942.  
  3943. Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
  3944.  
  3945.     * tbl/table.c (trim_space): Deleted.
  3946.     (table::add_entry): Don't call trim_space.
  3947.  
  3948. Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
  3949.  
  3950.     * VERSION: Change version to 0.6.
  3951.  
  3952.     * troff/number.c (parse_expr): Make == work.
  3953.  
  3954. Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
  3955.  
  3956.     * man/grog.man: New file.
  3957.     * man/Makefile: Add grog.n to MAN1PAGES.
  3958.     * etc/grog.sh: New file.
  3959.     * etc/Makefile: Install grog.sh as grog.
  3960.  
  3961. Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
  3962.  
  3963.     * troff/input.c (token::next): Implement \E.
  3964.  
  3965. Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
  3966.  
  3967.     * xditview/tmac.X: Change font translations to match tmac.ps.
  3968.  
  3969.     * troff/input.c (non_empty_name_warning): Don't give a warning if
  3970.     `\{' terminates the name.
  3971.  
  3972. Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
  3973.  
  3974.     * ps/devps/symbol.diff: New file.
  3975.     * ps/devps/FontMakefile: Mention symbol.diff.
  3976.  
  3977. Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
  3978.  
  3979.     * troff/node.c (font_position): Use get_long_name to read the
  3980.     external_name.
  3981.  
  3982.     * troff/env.c (environment_switch): If we get a number that's < 0
  3983.     or >= NENVIRONMENTS, treat it like a name.
  3984.     Change NENVIRONMENTS to 10.
  3985.  
  3986.     * troff/groff.h: Remove definition of FONTS_MAX.
  3987.     * troff/node.h (class font_family): Make map a pointer instead of
  3988.     an array. Add a map_size member. Make it a class. Make nm const
  3989.     and public. Make invalidate_fontno a friend.
  3990.     * troff/node.c: Define font_table_size. Make font_info a pointer
  3991.     rather than an array.
  3992.     (class troff_output_file): Allocate font_position dynamically. Add
  3993.     nfont_positions member.
  3994.     (troff_output_file::set_font): Grow font_position if necessary.
  3995.     (troff_output_file::~troff_output_file): Delete font_position.
  3996.     (troff_output_file::troff_output_file): Allocate font_position.
  3997.     (grow_font_table): New function.
  3998.     (troff_output_file::really_begin_page,
  3999.     troff_output_file:really_copy_page): Use nfont_positions rather
  4000.     than FONTS_MAX.
  4001.     (mount_font_no_translate, mount_style): Call grow_font_table if
  4002.     necessary.
  4003.     (font_family::font_family): Allocate map.
  4004.     (font_family::make_definite): Grow map if necessary. Use
  4005.     font_table_size instead of FONTS_MAX.
  4006.     (font_family::~font_family): New function.
  4007.     (invalidate_fontno): Use font_family::map_size.
  4008.     (get_fontno, env_space_width, env_half_narrow_space_width,
  4009.     env_narrow_space_width, symbol_fotno, is_good_fontno,
  4010.     get_bold_fontno, make_glyph_node): Use font_table_size rather than
  4011.     FONTS_MAX.
  4012.     (next_available_font_position): Never return 0.
  4013.  
  4014. Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
  4015.  
  4016.     * ps/tmac.ps: Add font translations for compatibility with dpost.
  4017.  
  4018. Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
  4019.  
  4020.     * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
  4021.     Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
  4022.     Move definitions baseline_sep, shift_down, column_sep,
  4023.     matrix_side_sep into...
  4024.     * eqn/box.c: Add them to param_table.
  4025.     * eqn/pbox.h: Add declarations to pbox.h.
  4026.  
  4027.     * troff/input.c (set_string): Cast value to unsigned char *.
  4028.  
  4029.     * troff/token.h (process_input_stack): Declare it static before
  4030.     declaring it a friend.
  4031.  
  4032. Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
  4033.  
  4034.     * dvi/devdvi/texex.map: Fix positions of extensible brace middle
  4035.     and bottom.
  4036.     * dvi/devdvi/EX: Regenerate.
  4037.  
  4038.     * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
  4039.     transparent.
  4040.  
  4041. Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
  4042.  
  4043.     * eqn/lex.c: In defaults_table, make definition of `dot' call
  4044.     `dot_def'.  Don't explicitly make it roman.  Similarily for other
  4045.     accents.
  4046.  
  4047.     * pic/lex.c (for_input::for_input): Add by_is_multiplicative
  4048.     argument.
  4049.     (for_input::get, for_input::peek): Use this.
  4050.     (do_for): Add by_is_multiplicative argument.
  4051.     * pic/pic.y: Change optional_by clause to allow '*' after `by'.
  4052.     Change semantic value of optional_by to be a double plus a flag
  4053.     saying whethet the by clause is multiplicative.
  4054.  
  4055.     * eqn/lex.c (get_delimited_text): Remember location of start of
  4056.     definition.  Improve error handling when EOF is encountered.
  4057.  
  4058.     * lib/font.h: Rename handle_x_command to
  4059.     handle_unknown_font_command.
  4060.     * lib/font.c (font::load): Call handle_unknown_font_command for
  4061.     any unknown command in the font description file.  Don't call
  4062.     handle_x_command. Include the name of the command in the argv.
  4063.     Improve message for unknown command after kernpairs or charset
  4064.     command.
  4065.     * ps/ps.c (ps_font::handle_x_command): Rename to
  4066.     handle_unknown_font_command.  Remove message about `x download'
  4067.     command.  Give error message for wrong number of arguments.
  4068.     * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
  4069.     * dvi/dvi.c (dvi_font::handle_x_command): Rename to
  4070.     handle_unknown_font_command. Give an error message for wrong
  4071.     number of arguments.  Rename design_size to designsize.
  4072.     * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
  4073.     checksum', `designsize' instead of `design_size'.
  4074.  
  4075. Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
  4076.  
  4077.     * eqn/*.[chy]: Change underaccent to uaccent.
  4078.  
  4079.     * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
  4080.     give it the same precedence as ACCENT.
  4081.     * eqn/other.c (make_underaccent_box): New function.
  4082.     * eqn/box.h: Declare it.
  4083.     * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
  4084.     def_table.
  4085.  
  4086. Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
  4087.  
  4088.     * pic/pic.y (reset_all): New function. Called in rule for RESET.
  4089.     (parse_init): Call reset_all.
  4090.     (define_variable): When defining scale reset only those
  4091.     pre-defined variables that are scaled.
  4092.     (defaults_table): Add `scale' as non-scaled value.
  4093.  
  4094.     * pic/pic.y: Redo parsing of text adjustments: parse adjustments
  4095.     together with the text; allow any number of positioning words;
  4096.     allow center as a positioning word.
  4097.  
  4098.     * pic/object.c (output::compute_scale): Get picture maximum height
  4099.     and width from variables called maxpswid and maxpsht.
  4100.     * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
  4101.  
  4102. Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
  4103.  
  4104.     * pic/object.c (object_spec::make_text): Multiply textht by number
  4105.     of text items.
  4106.  
  4107.     * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
  4108.     occur.
  4109.     (do_sprintf): New function.
  4110.     (pic.gperf): Add sprintf token.
  4111.     (text, sprintf): New rules.
  4112.  
  4113.     * pic/pic.y: `rand()' with no arguments returns a random number
  4114.     in the range [0,1).
  4115.  
  4116.     * pic/pic.y: Allow a bare expression to be an attribute: change
  4117.     precedences to support this.  Change optional_ordinal rule to
  4118.     optional_ordinal_last to avoid reduce/reduce conflict.
  4119.     * pic/object.c (object_spec::object_spec): Initialize direction.
  4120.  
  4121.     * pic/pic.y: Implement ^ operator meaning exponentiation.
  4122.  
  4123.     * troff/node.h: Add default argument to mount_font.
  4124.     * troff/node.c (font_position): Read an optional third argument
  4125.     giving the external_name.
  4126.     (mount_font): Add optional argument giving the external_name.
  4127.     (mount_font_not_translate): Have additional argument giving
  4128.     external name.  Use this name to load the font.  Pass both names
  4129.     to font_info::font_info.
  4130.     (font_info::font_info): Have additional argument giving
  4131.     external_name.
  4132.     (class tfont): New member external_name.
  4133.     (font_info::get_tfont): Use external name to construct tfont_spec.
  4134.  
  4135. Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
  4136.  
  4137.     * eqn/lex.c (init_table): Add argument giving device.  Define
  4138.     name of device to be "1".
  4139.     (do_ifdef): Counts as true if the argument has been defined with
  4140.     `define'.
  4141.     * eqn/main.c (main): Call init_table with device argument. Make
  4142.     device local to main.
  4143.     * eqn/eqn.h: Change declaration of init_table. Remove declaration
  4144.     of device.
  4145.  
  4146.     * pic/lex.c (get_delimited): Allow text to be delimited by
  4147.     matching {}s.  Don't recognize ending delimiter within a string.
  4148.  
  4149.     * troff/input.c (get_delim_name): New function.
  4150.     (token::next): Implement \C.
  4151.  
  4152.     * lib/font.c (font::load): Grok ---.  Add an alias for each
  4153.     character based on its code.
  4154.     (font::get_code_width): Deleted.
  4155.     * lib/font.h (class font): Declare font::number_to_index().
  4156.     Remove declaration of font::get_code_width.
  4157.     * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
  4158.     to indices of named characters.
  4159.     (font::number_to_index): New function.
  4160.     * troff/input.c (font::number_to_index): New function.
  4161.     (get_charinfo_by_number, charinfo::get_number,
  4162.     charinfo::set_number): New functions.
  4163.     (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
  4164.     (token::process, token::description, token::get_char,
  4165.     token::add_to_node_list, token::operator==): Handle
  4166.     TOKEN_NUMBERED_CHAR.
  4167.     * troff/charinfo.h: Declare get_charinfo_by_number,
  4168.     charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
  4169.     charinfo class.
  4170.     (charinfo::numbered): New function.
  4171.     * troff/token.h: Add TOKEN_NUMBERED_CHAR.
  4172.     * troff/env.h (class environment): Remove declaration of ...
  4173.     * troff/env.c (environment::make_numbered_char_node): Deleted.
  4174.     * troff/node.c (make_numbered_node): Deleted.
  4175.     (class numbered_glyph_node): Remove.
  4176.     (troff_output_file::put_char_width, troff_output_file::put_char):
  4177.     Handle numbered chars.
  4178.     (troff_output_file::numbered_char): Removed.
  4179.     (tfont::get_code_width): Removed.
  4180.     (make_glyph_node): Don't search special fonts for numbered
  4181.     characters.
  4182.     * troff/node.h: Remove declaration of make_numbered_node.
  4183.     * driver/input.c (do_file): Handle N command.
  4184.     * driver/printer.h: Add declaration of ...
  4185.     * driver/printer.c (printer::set_numbered_char): New function.
  4186.     * dvi/tfmtodit.c (main): Generate unnamed entries.
  4187.     * ps/devps/afmtodit: Likewise.
  4188.     * xditview/xtotroff.c (MapFont): Likewise.
  4189.     * xditview/libXdvi/parse.c (ParseInput): Grok N command.
  4190.  
  4191.     * tbl/main.c (process_format): If multiple widths are specified
  4192.     for a column but all the widths are the same, don't give an error
  4193.     message.
  4194.  
  4195.     * tbl/table.c (table::do_row): If the current row is all lines and
  4196.     the stuff doesn't contains a line, mark the top of the row after
  4197.     printing stuff before the row.  If the current row is not all
  4198.     lines and the stuff doesn't contain a line, don't unnecessarily
  4199.     mark the top of the row before printing the stuff.
  4200.     
  4201. Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
  4202.  
  4203.     * troff/groff.h: Remove MAX_PATH.
  4204.     * troff/input.c (open_file): Dynamically allocate space for the
  4205.     path.
  4206.     (open_mac_file, process_macro_file): Corresponding changes.
  4207.  
  4208. Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
  4209.  
  4210.     * troff/node.h (class output_file): Make copy_file pure.  Add
  4211.     vspace method ifdef COLUMN. Add is_printing method.
  4212.     * troff/node.c: Add class printing_reg. Add class
  4213.     real_output_file. Derive other output_file classes from
  4214.     real_output_file; in these classes rename begin_page to
  4215.     really_begin_page, print_line to really_print_line, copy_file to
  4216.     really_copy_file, transparent_char to really_transparent_char.
  4217.     Move output_file::flush to real_output_file. Add printing member
  4218.     to class output_file.
  4219.     * troff/div.h: Remove printing member from top_level_diversion.
  4220.     Add vspace member function to class diversion ifdef COLUMN. Add
  4221.     some declarations ifdef COLUMN.
  4222.     * troff/div.c (top_level_diversion::copy_file,
  4223.     top_level_diversion::transparent_output,
  4224.     top_level_diversion::output): Don't test printing member before
  4225.     output.
  4226.     * troff/input.c: Handle initial variable_space_request ifdef
  4227.     COLUMN.
  4228.     * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
  4229.     but comment it out.
  4230.  
  4231. Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
  4232.  
  4233.     * troff/div.c (diversion::need): Make any space forced.  If we
  4234.     sprung a trap, set truncated_space to minus the distance to the
  4235.     trap and set needed_space to the amount that was needed.
  4236.     (top_level_diversion::space): A forced space turns no_space_mode
  4237.     off.
  4238.     (class constant_vunits_reg): New class.
  4239.     (init_div_requests): Implement number registers .trunc and .ne
  4240.     using constant_vunits_reg.
  4241.     (class truncated_space_reg): Deleted.    
  4242.  
  4243.     * troff/div.h: Don't have a no_space_mode member in diversion.
  4244.     Instead have it in top_level_diversion.
  4245.     * troff/div.c (diversion::diversion): Don't initialize
  4246.     no_space_mode.
  4247.     (top_level_diversion::top_level_diversion): Initialize
  4248.     no_space_mode.
  4249.     (no_space, restore_spacing): Do nothing if curdiv != topdiv.
  4250.     (macro_diversion::output): Don't clear no_space_mode.
  4251.  
  4252.     * troff/input.c (diverted_space_node::reread): Don't call
  4253.     environment::do_break.  In fill mode, act like a blank line.
  4254.     (diverted_copy_file_node::reread): Don't call
  4255.     environment::do_break.
  4256.  
  4257.     * troff/div.c (blank_line): New function.
  4258.     * troff/div.h: Declare it.
  4259.     * troff/input.c (process_input_stack): Call it.
  4260.  
  4261.     * troff/div.c (truncated_space_reg::get_string): New function.
  4262.     (init_div_requests): Bind to .trunc.
  4263.     (space_request, top_level_diversion::space,
  4264.     top_level_diversion::output, macro_diversion::space,
  4265.     macro_diversion::output): Update truncated_space.
  4266.     (macro_diversion::output): Redo calculations when trap sprung.
  4267.     (macro_diversion::output, macro_diversion::space): No need for
  4268.     trap_flag.
  4269.  
  4270.     * troff/div.c (top_level_diversion::output): Set nl_reg_contents
  4271.     after truncating post line spacing.
  4272.  
  4273. Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
  4274.  
  4275.     * ps/devps/prologue (MF, SF): Make them work even if setfont is
  4276.     defined as a procedure rather than as an operator.
  4277.  
  4278. Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
  4279.  
  4280.     * troff/div.c (macro_diversion::space): Ignore no_space_mode.
  4281.  
  4282. Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
  4283.  
  4284.     * troff/div.c (top_level_diversion::output): Merge
  4285.     output_file::print_line and output_file::end_of_line member
  4286.     functions.
  4287.     * troff/div.h (class output_file):
  4288.     * troff/node.c (troff_output_file::print_line,
  4289.     troff_output_file::end_of_line, output_file::end_of_line,
  4290.     ascii_output_file::print_line, suppress_output_file::print_line):
  4291.     Corresponding changes.    
  4292.  
  4293. Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
  4294.  
  4295.     * troff/input.c (token::next): Don't give a warning for `\.'.
  4296.  
  4297.     * troff/env.c (environment::get_center_lines): New function.
  4298.     (init_env_requests): Bind number register .ce to it.
  4299.     * troff/env.h: Declare it.
  4300.     * tbl/table.c (table::init_output): Define reset macro to restore
  4301.     .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
  4302.     Then do .ce 0.
  4303.     (table::print): If center option not given, then imply center
  4304.     option if SAVED_CENTER_REG > 0.
  4305.  
  4306. Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
  4307.  
  4308.     * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
  4309.     Troff.ps from DOWNLOAD.
  4310.     
  4311.     * troff/Makefile: Change comment in DEFINES to avoid confusing
  4312.     System V make.
  4313.  
  4314.     * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
  4315.     code.  Don't try to catch errors with stopped.
  4316.     (check_line_lengths): New function.
  4317.     * ps/devps/prologue (EXEC): Deleted.
  4318.     (EBEGIN, EEND): New procedures.
  4319.  
  4320. Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
  4321.  
  4322.     * troff/input.c: Include request.h before node.h.
  4323.     * troff/node.c: Likewise.
  4324.     * troff/env.c: Likewise.
  4325.     * troff/div.c: Likewise.
  4326.     * troff/node.h (class special_node): Store argument as a macro
  4327.     rather than a char *.
  4328.     * troff/node.c (special_node::special_node, special_node::copy):
  4329.     Grok this.
  4330.     (special_node::~special_node): Deleted.
  4331.     (special_node::tprint): Deleted.
  4332.     (special_node::tprint_start, special_node::tprint_end,
  4333.     special_node::tprint_char): New functions.
  4334.     (troff_output_file::special): Deleted.
  4335.     (troff_output_file::start_special, troff_output_file::end_special,
  4336.     troff_output_file::special_char): New functions.
  4337.     * troff/input.c (special_node::tprint): New function.
  4338.     (do_special): Use macro not char *.
  4339.     (do_transparent_macro): Deleted.
  4340.     (token::next): Don't call do_transparent_macro.
  4341.  
  4342.     * troff/input.c (token::next): Add 'Y' case.
  4343.     (do_transparent_macro): New function.
  4344.     * troff/node.c (troff_output_file::special): Handle newlines with
  4345.     argument using new continuation convention.
  4346.     * driver/input.c (get_string): Cope with continuation convention.
  4347.     (do_file): Don't call skip_line after calling get_string(1).
  4348.     * ps/ps.c (ps_printer::special, ps_printer::do_import,
  4349.     ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
  4350.     arg.
  4351.     * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
  4352.     with +.
  4353.  
  4354. Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
  4355.  
  4356.     * troff/input.c (asciify): By default, illegal input characters
  4357.     should return empty string.
  4358.  
  4359.     * troff/input.c (copy_file): Handle first page transition like title.
  4360.     (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
  4361.  
  4362.     * troff/input.c (token::next): Improve error message for EOF after
  4363.     escape character.
  4364.     (input_char_description): New function.
  4365.     (get_char_for_escape_name): Use input_char_description.
  4366.     (token::next): Warn about unrecognized escape sequences.
  4367.     (warning_table): Add WARN_ESCAPE.
  4368.     * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
  4369.     accordingly.
  4370.  
  4371.     * troff/token.h: Remove declaration of process_input_stack.
  4372.  
  4373.     * troff/input.c: Remove declaration of init_hyphen_requests.
  4374.     * troff/request.h: Correct spelling in declaration of same.
  4375.  
  4376.     * troff/input.c (token::next): Check whether escape_char is 0.
  4377.  
  4378. Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
  4379.  
  4380.     * groff.c (main, usage, help): Implement -P and -L options.
  4381.     * groff.sh: Likewise.
  4382.  
  4383.     * troff/input.c (token::next): Use some gotos to avoid code
  4384.     duplication.
  4385.  
  4386.     * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
  4387.     Avoid calling symbol::symbol if name empty.
  4388.  
  4389. Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
  4390.  
  4391.     * troff/input.c (init_input_requests): Make \n(.x return the major
  4392.     version number and \n(.y return the minor version number.
  4393.     * troff/Makefile: Construct file majorminor.c defining
  4394.     major_version and minor_version automatically from ../VERSION.
  4395.  
  4396.     * troff/node.c (class glyph_node): Make operator new and operator
  4397.     delete public.
  4398.     (class ligature_node): Similarily.
  4399.  
  4400.     * troff/input.c (operator==(const macro &, const macro &)): New
  4401.     function.
  4402.     (non_interpreted_node::same): Use this.
  4403.     (string_iterator::string_iterator): Make macro& argument const.
  4404.  
  4405.     * troff/input.c (input_iterator::get): New function. Don't make
  4406.     asciify_macro or class non_interpreted_node friends of class
  4407.     input_iterator.
  4408.     (non_interpreted_node::interpret): Use input_iterator::get.
  4409.     (asciify_macro): Likewise.
  4410.  
  4411.     * troff/input.c (~token_node, ~string_iterator, ~arg_list,
  4412.     ~non_interpreted_node): Deleted.
  4413.     * troff/node.c: (~suppress_output_file, ~ascii_output_file):
  4414.     Deleted.
  4415.  
  4416.     * troff/symbol.h: Make all symbol member functions const.
  4417.  
  4418.     * lib/strtol.c: New file.
  4419.     * lib/Makefile: Add strtol.c.
  4420.     * Makefile: Define STRTOL as strtol.o to include strtol in
  4421.     libgroff.a.
  4422.  
  4423. Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
  4424.  
  4425.     * pic/troff.c (troff_output::simple_circle): Divide by scale.
  4426.  
  4427. Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
  4428.  
  4429.     * troff/input.c (do_special): Use input_level.
  4430.  
  4431.     * troff/token.h (TOKEN_BACKSPACE): New token.
  4432.     (token::backspace): New function.
  4433.     * troff/input.c (token::description, token::next, token::process):
  4434.     Grok TOKEN_BACKSPACE.
  4435.     (do_special): Turn TOKEN_BACKSPACE back into \b.
  4436.  
  4437.     * troff/token.h (token::leader): New function.
  4438.     * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
  4439.  
  4440.     * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
  4441.  
  4442.     * troff/input.c (do_special): Use token::description in error
  4443.     message.
  4444.  
  4445. Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
  4446.  
  4447.     * troff/input.c (decode_args): Combine quoted and
  4448.     quote_input_level variables. Make it a for (;;) loop.
  4449.  
  4450.     * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
  4451.  
  4452.     * troff/input.c (read_long_escape_name): The test for whether to
  4453.     expand buffer was off by 1.
  4454.     (read_string): Similarily.
  4455.  
  4456. Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
  4457.  
  4458.     * troff/input.c: Use `const int' rather than `static const int'.
  4459.  
  4460.     * troff/div.h (diversion::copy_file): Declare as pure virtual.
  4461.     (macro_diversion::copy_file): New function.
  4462.     * troff/node.h: New class diverted_copy_file_node.
  4463.     * troff/node.c: Implement it.
  4464.     * troff/input.c (copy_file): Use diversion::copy_file. Handle
  4465.     first page transition by pushing a diverted_copy_file_node.
  4466.     * troff/input.c (token::next, process_input_stack): Don't handle
  4467.     COPY_FILE_REQUEST.
  4468.  
  4469. Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
  4470.  
  4471.     * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
  4472.     whether space widths need adjusting.
  4473.  
  4474.     * troff/charinfo.h: Generalize translated_to_space to
  4475.     special_translation so as to allow translation to \&.
  4476.     * troff/input.c (translate): Allow translation to \&.
  4477.     (charinfo::*): Corresponding changes.
  4478.     * troff/node.c (make_node, node::add_char): Corresponding changes.
  4479.     * troff/node.h (dummy_node::dummy_node): Allow optional first
  4480.     argument.
  4481.  
  4482.     * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
  4483.     * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
  4484.     TOKEN_REQUEST.
  4485.     * troff/input.c (token::next): Turn a TITLE_REQUEST into a
  4486.     TOKEN_REQUEST with an argument of TITLE_REQUEST.
  4487.     (token::process): Grok that.
  4488.     * troff/input.c (copy_file): Handle first page transition like
  4489.     title by pushing a COPY_FILE_REQUEST cookie.
  4490.     (token::next, process_input_stack): Grok that.
  4491.     * troff/node.h (output_file::copy_file): Add x and y arguments.
  4492.     Make it non-pure.
  4493.     * troff/div.c (top_level_diversion::copy_file): Supply them.
  4494.     * troff/node.c (troff_output_file::copy_file): Add x and y
  4495.     arguments; moveto specified position.  Invalidate font_position
  4496.     array after copying file.
  4497.     (output_file::copy_file): New function.
  4498.     (suppressed_output_file::copy_file, ascii_output::copy_file):
  4499.     Removed.
  4500.     * troff/input.c (transparent_file): New function.
  4501.     (init_input_requests): Bind to "trf".
  4502.     (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
  4503.     (process_input_stack): Likewise.
  4504.  
  4505.     * troff/Makefile: Add ../lib/lib.h to GROFF_H.
  4506.  
  4507.     * troff/node.c (init_node_requests): New number registers .kern
  4508.     pointing to global_kern_mode, and .lg pointing to
  4509.     global_ligature_mode.
  4510.  
  4511.     * troff/node.c (ligature): Don't change it if we get a bad
  4512.     integer.
  4513.  
  4514.     * troff/input.c (do_define_string): Don't strip tabs.
  4515.  
  4516.     * troff/input.c (asciify_macro): Make the string_iterator auto.
  4517.  
  4518.     * troff/node.c (init_font_requests): Rename to...
  4519.     (init_node_requests):
  4520.     * troff/node.h: Change declaration.
  4521.     * troff/input.c (main): Change call.
  4522.  
  4523.     * troff/input.c (node::reread, diverted_space_node::reread): New
  4524.     methods.
  4525.     (process_input_stack): Call reread rather than
  4526.     get_diverted_space_node.
  4527.     * troff/node.c (node::get_diverted_space_node,
  4528.     diverted_space_node::get_diverted_space_node): Removed.
  4529.     * troff/node.h: Declare reread methods instead of
  4530.     get_diverted_space_node methods. Make `n' member private.
  4531.     * troff/input.c: (token::diverted_space): Removed.
  4532.     * troff/token.h: Removed declaration.
  4533.     
  4534.  
  4535. Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
  4536.  
  4537.     * eqn/script.c (script_box::compute_metrics): Don't let
  4538.     SUP_RAISE_FORMAT become negative.
  4539.  
  4540.     * tbl/table.c (table::do_row): Entries that don't end in the
  4541.     this row shouldn't make the row non-blank.
  4542.     
  4543.     * tbl/table.c (table::make_columns_equal): Only set the width of
  4544.     columns which are marked as equal.
  4545.     
  4546.     * tbl/main.c (process_data): Before issuing excess data error,
  4547.     if last character was a newline unget it; then get it again after
  4548.     the error.  Also include the contents of the entry in the message.
  4549.  
  4550.     * groff.c: New file.
  4551.     * Makefile: Build groff from groff.c.  Make it possible to use
  4552.     either groff.sh or groff.c as groff.
  4553.     * Makefile.bd: Similarily.
  4554.  
  4555. Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
  4556.  
  4557.     * groff.sh: Don't delay expansion of $@ in assignment to files.
  4558.     Remove occurrences of \".
  4559.  
  4560. Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
  4561.  
  4562.     * all Makefiles: Simplify and rearrange.
  4563.  
  4564.     * Makefile: Handle fmod like malloc.
  4565.     * lib/Makefile: Similarily.
  4566.     * lib/fmod.c: Remove #ifdef NEED_FMOD.
  4567.  
  4568.     * Makefile: Rename OPTIMISE to OPTIMIZE.
  4569.  
  4570.     * groff.sh: Remove assignment to PATH.
  4571.     * Makefile: Remove SHPATH variable.
  4572.     * Makefile.bd: Similarily.
  4573.  
  4574.     * groff.sh: Add -V option to print the pipeline instead of
  4575.     executing it.
  4576.  
  4577. Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
  4578.  
  4579.     * lib/font.c: Split off file searching into ...
  4580.     * lib/fontfile.c: New file.
  4581.  
  4582.     * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
  4583.  
  4584. Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
  4585.  
  4586.     * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
  4587.     Also change misleading comment.
  4588.     (table::do_vspan): Change similarily misleading comment.
  4589.     * tbl/main.c (process_data): A format row with an explicit `s'
  4590.     uses up a data line, even if all the other columns are `_' or `='.
  4591.  
  4592.     * troff/input.c (token::description): Fix description of
  4593.     TOKEN_DUMMY and TOKEN_EMPTY.
  4594.  
  4595. Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
  4596.  
  4597.     * groff.sh: Fix description of -Z in help message.
  4598.  
  4599. Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
  4600.  
  4601.     * pic/object.c (object_spec::make_object): Allow negative and zero
  4602.     line thicknesses.
  4603.     * pic/pic.y: Give linethick default value of -1.0.
  4604.     * pic/troff.c (troff_output::troff_output): Initialize
  4605.     last_line_thickness to BAD_THICKNESS.
  4606.     (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
  4607.     (troff_output::line_thickness): Canonicalize negative thicknesses
  4608.     to RELATIVE_THICKNESS.
  4609.     * pic/tex.c (tex_output::set_pen_size): Silently map negative line
  4610.     thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
  4611.     to -1.0.
  4612.     (tex_output::start_picture): Set pen_size to -2.0.
  4613.  
  4614.     * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
  4615.     0, then use 0 linewidth.
  4616.     (ps_printer::ps_printer): Initialize line_thickness to -1.
  4617.  
  4618.     * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
  4619.  
  4620.     * ps/devps/symbolchars: Remove `or'.
  4621.     * ps/tmac.ps: Implement \(or with .char.
  4622.  
  4623.     * ps/devps/symbolchars: Move most characters into textmap.
  4624.     * ps/devps/textmap: Add names for troff bracket characters. Remove
  4625.     ul, ru, br, bv.
  4626.  
  4627.     * ps/devps/TSymbol.ps: Removed.
  4628.     * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
  4629.     * ps/tmac.ps: Do with .char what TSymbol did.
  4630.     * ps/devps/download: Remove TSymbol.
  4631.  
  4632.     * ps/devps/T: Removed.
  4633.     * ps/devps/Troff.ps: Removed.
  4634.     * ps/devps/Troff.afm: Removed.
  4635.     * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
  4636.     * ps/devps/download: Remove Troff.
  4637.     * ps/devps/FontMakefile: Remove T target.
  4638.     * ps/devps/DESC-A4: Remove T from font list.
  4639.     * ps/devps/DESC-letter: Likewise.
  4640.  
  4641.     * troff/input.c (macro_to_node): Rename to ...
  4642.     (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
  4643.     character's definition while processing it.
  4644.     * troff/node.c (node::add_char, make_node): Change calls to
  4645.     macro_to_node accordingly.
  4646.  
  4647.     * troff/input.c (token::next): Translate \_ to \(ul.
  4648.  
  4649.     * tty/devascii/R.proto: Add `|'.
  4650.     * tty/devlatin1/R.proto: Likewise.
  4651.  
  4652. Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
  4653.  
  4654.     * man: Put the version number in all the man pages.
  4655.  
  4656. Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
  4657.  
  4658.     * Makefile.bd: New file.
  4659.     * README.bd: New file.
  4660.  
  4661.     * VERSION: New file.
  4662.     * lib/version.c: Removed.
  4663.     * lib/Makefile: Create version.c from ../VERSION. Remove version.c
  4664.     in clean target.
  4665.  
  4666.     * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
  4667.     environment variable.
  4668.  
  4669.     * all Makefiles: Split install target into install.bin for
  4670.     binaries, and install.nobin for everything else.
  4671.     * Makefile: Add bindist target.
  4672.  
  4673.     * man/afmtodit.man: New file.
  4674.     * man/Makefile: Add afmtodit.n to MAN1PAGES.
  4675.     * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
  4676.     in BINDIR.
  4677.     * ps/Makefile: Pass BINDIR to make install in devps.
  4678.  
  4679.     * ps/ps.c (ps_printer::set_char): Do nothing if the character is
  4680.     the space character.
  4681.  
  4682.     * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
  4683.  
  4684. Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
  4685.  
  4686.     * ps/ps.c: Redo font downloading.
  4687.     * ps/devps/download: New file.
  4688.     * ps/devps/Makefile: Add download to DEVICEFILES.
  4689.     * ps/devps/afmtodit: Remove -d option.
  4690.     * ps/devps/FontMakefile: Don't use -d option with afmtodit.
  4691.     * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
  4692.     * ps/devps/zapfdr.ps: Likewise.
  4693.     * ps/devps/TSymbol.ps: Likewise.
  4694.  
  4695. Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
  4696.  
  4697.     * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
  4698.  
  4699. Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
  4700.  
  4701.     * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
  4702.     then strip the first line if it starts with %.
  4703.     * Makefile: Add a comment about this.
  4704.  
  4705.     * man/tfmtodit.man: New file.
  4706.     * man/Makefile: Add tfmtodit.n to MAN1PAGES.
  4707.     * dvi/Makefile: Install tfmtodit in BINDIR.
  4708.  
  4709.     * dvi/tfmtodit.c (usage): Mention -v option.
  4710.  
  4711. Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
  4712.  
  4713.     * troff/node.c (troff_output_file::end_of_line): Call do_motion.
  4714.     * troff/node.c (troff_output_file::transparent_char): Don't call
  4715.     flush_tbuf.
  4716.  
  4717.     * eqn: Add check_tabs method to most box classes.
  4718.     * eqn/box.c (box::top_level): Call check_tabs.
  4719.  
  4720.     * eqn/script.c (script_box::output): Use \Z.
  4721.     * eqn/limit.c (limit_box::output): Use \Z.
  4722.  
  4723.     * eqn/box.c (box::top_level): Use itoa.
  4724.  
  4725. Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
  4726.  
  4727.     * dvi/tmac.dvi: Add font translations for CR, C, TT.
  4728.     * dvi/devdvi/Makefile: Don't make links to CW.
  4729.  
  4730.     * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
  4731.     HX, HD.
  4732.     * xditview/tmac.X: Likewise.
  4733.  
  4734.     * troff/node.c: Add font translation feature.
  4735.     (get_font_translation): New function.
  4736.     (symbol_fontno): Translate the font name.
  4737.     (mount_font_no_translate): Rename to mount_font to this.
  4738.     (mount_font): New function.
  4739.     (font_family::make_definite): Call mount_font_no_translate instead
  4740.     of mount_font.
  4741.     (mount_style): Translate the font name.
  4742.     (font_translate): New function.
  4743.     (init_font_requests): Bind "ftr" to font_translate.
  4744.  
  4745.     * ps/devps/prologue (SN): New procedure that rounds a position to
  4746.     the nearest (pixel + (.25,.25)).
  4747.     (DL): Use SN to round endpoints.
  4748.  
  4749.     * lib/version.c: Changed version to 0.5.
  4750.  
  4751. Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
  4752.  
  4753.     * Makefile: Move definition of PAGE to the very beginning, so that
  4754.     people are less likely to miss it.
  4755.  
  4756. Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
  4757.  
  4758.     * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
  4759.  
  4760.     * troff/env.c (environment::choose_breakpoint): Make `can't find
  4761.     breakpoint' error a warning of type WARN_BREAK.  Change message to
  4762.     `can't break line'.
  4763.     * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
  4764.     code 040000.
  4765.     * troff/input.c: Add WARN_BREAK to warning_table.  Include
  4766.     WARN_BREAK in DEFAULT_WARNING_MASK.
  4767.  
  4768.     * tty/tmac.tty: Add definition of \(+-.
  4769.  
  4770.     * groff.sh: Remove `--' option to set command.
  4771.  
  4772.     * dvi/devdvi/texsy.map: Remove duplicate md entry.
  4773.  
  4774.     * ps/devps/eqnchar: Better definition of cdot using md.
  4775.     * dvi/devdvi/eqnchar:  Likewise.
  4776.     * xditview/devX100/eqnchar:  Likewise.
  4777.     * xditview/devX75/eqnchar: Likewise.
  4778.     * eqn/lex.c: Add definition of cdot.
  4779.  
  4780. Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
  4781.  
  4782.     * troff/input.c (get_optional_char): New function.
  4783.     * troff/input.c (set_page_character): Use get_optional_char(),
  4784.     rather than has_arg() and tok.get_char(1).
  4785.     * troff/env.c (tab_character, leader_character, hyphen_char,
  4786.     field_characters): Likewise.
  4787.     (margin_character): Likewise.  Also always delete the
  4788.     margin_character_node.
  4789.  
  4790.     * troff/input.c (token::get_char): Use token::description.
  4791.  
  4792.     * troff/input.c (has_arg): Don't skip over tab and \}.
  4793.     * troff/number.c (start_number): Give a warning if the number
  4794.     starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
  4795.  
  4796. Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
  4797.  
  4798.     * troff/input.c (empty_name_warning, non_empty_name_warning): New
  4799.     functions.
  4800.     (get_name, get_long_name): Use these.  Rename `warn' argument to
  4801.     `required'.
  4802.  
  4803.     * troff/node.c (get_fontno): Test that the symbol is not null.
  4804.  
  4805.     * troff/input.c (token::description): New function.
  4806.     * troff/number.c (parse_term): Use token::description in `numeric
  4807.     expression expected' message.
  4808.     * troff/groff.h: Add WARN_MISSING.
  4809.     * troff/number.c (start_number): New function.
  4810.     * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
  4811.     get_incr_number): Use start_number().
  4812.     * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
  4813.     default.
  4814.     * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
  4815.     * troff/reg.c (alter_format): Use WARN_MISSING. Also use
  4816.     token::descripion.
  4817.     * troff/input.c (token::get_char): Use WARN_MISSING.
  4818.     * troff/input.c (token::delimiter): Use token::description.
  4819.     * troff/env.c (environment_switch): Back out Aug 3 change.
  4820.     * troff/input.c (has_arg): Skip over \}s and tabs but give a
  4821.     warning.
  4822.     * troff/token.h (token::tab): New function.
  4823.     * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
  4824.     * troff/reg.c (alter_format): Likewise.
  4825.     * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
  4826.  
  4827. Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
  4828.  
  4829.     * troff (most files): Redo warnings. Divide warnings into various
  4830.     categories; warning() has an additional first argument indicating
  4831.     the category it falls into.
  4832.     * troff/input.c (main): -w now takes an argument. New option -W.
  4833.     (enable_warning, disable_warning): New functions.
  4834.  
  4835.     * ps/devps/afmtodit: Add -a option to lie about the italic angle.
  4836.     * ps/devps/FontMakefile: Pretend TI has an angle of 7.
  4837.  
  4838. Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
  4839.  
  4840.     * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
  4841.     * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
  4842.     * xditview/devX75/eqnchar: Likewise.
  4843.     * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
  4844.  
  4845.     * eqn/other.c: When bar or over applies to a single character
  4846.     don't produce an overline_box or an underline_box. Instead produce
  4847.     an accent_box or an underaccent_box, with the accent a line
  4848.     whose width is accent_width.  New classes underaccent_box,
  4849.     overline_char_box and underline_char_box.
  4850.     * eqn/box.h: Move overline_box, underline_box, accent_box class
  4851.     declarations into eqn/other.c. Add declarations of
  4852.     make_underline_box, make_overline_box, make_accent_box.
  4853.     * eqn/eqn.y: Call make_overline_box, make_underline_box
  4854.     make_accent_box instead    of constructors.
  4855.     * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
  4856.  
  4857.     * eqn/other.c: Add accent_box::~accent_box.
  4858.     * eqn/box.h: Declare it.
  4859.  
  4860.     * groff.sh: With -Tps, use eqn -D.
  4861.  
  4862.     * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
  4863.     rather than \l.
  4864.     (underline_box::output): Similarily.
  4865.     (accent_box::output): Use \Z.
  4866.  
  4867.     * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
  4868.     bit smaller.)
  4869.  
  4870. Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
  4871.  
  4872.     * troff/div.c (top_level_diversion::transparent_output(unsigned
  4873.     char)): Use asciify.
  4874.     * troff/input.c (asciify): Don't make it static.
  4875.     * troff/token.h (asciify): Declare it.
  4876.     
  4877.     * troff/input.c (get_name, get_long_name, token::get_char,
  4878.     token::delimiter): Add an extra default argument which says
  4879.     whether a warning should be printed.
  4880.     * troff: Pass a non-zero argument to one of these rather than
  4881.     printing a warning directly.
  4882.  
  4883. Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
  4884.  
  4885.     * troff: Consistently use symbol::is_null.
  4886.  
  4887.     * troff/dictionary.h: Move some inline functions into
  4888.     dictionary.c.
  4889.  
  4890.     * troff/request.h: Move inline functions into input.c.
  4891.     (request_or_macro::invoke): Make it pure.
  4892.  
  4893.     * troff/input.c, troff/reg.h: New class `constant_int_reg'.
  4894.     * troff/input.c (init_input_requests): Use class constant_int_reg.
  4895.     (class compatible_reg): Deleted.
  4896.     * troff/div.c (init_div_requests): Use class constant_int_reg.
  4897.     (class last_post_line_extra_space_reg): Deleted.
  4898.  
  4899.     * troff/env.c (tab_character): Don't change the tab character if
  4900.     we get an invalid argument.
  4901.     (hyphen_char): Similarily.
  4902.  
  4903.     * troff/reg.c (alter_format): Check that nm is not null.
  4904.  
  4905.     * Makefile, groff.sh: Make it possible to customize the commands
  4906.     used for printing PostScript and dvi files. Also make it possible
  4907.     to customize the path used by groff.sh.
  4908.  
  4909.     * eqn/eqn.y: Make `left' right associative.
  4910.  
  4911. Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
  4912.  
  4913.     * pic/pic.h: Added definition of M_SQRT2 for those systems that
  4914.     don't have it.
  4915.  
  4916.     * pic/pic.h: Removed definition of INT_MAX.
  4917.  
  4918.     * troff/node.c (italic_corrected_node::vertical_extent): Omit
  4919.     `return'.
  4920.  
  4921.     * troff/input.c (token::next):  Handle \R like \n.
  4922.  
  4923. Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
  4924.  
  4925.     * ps/tmac.pc (PSPIC): Simplify.
  4926.  
  4927.     * troff/env.c (tab_stops::to_string):
  4928.     * pic/pic.y (object_type_name):
  4929.     * pic/troff.c (simple_output::line):
  4930.     * pic/tex.c (tex_output::spline):
  4931.     * pic/object.c (object_spec::make_object):
  4932.     * tbl/main.c (process_data):  Add cases to switch statements to
  4933.     avoid cfront warnings. (Some of these are spurious, since the
  4934.     switch already has a default case.)
  4935.  
  4936.     * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
  4937.     `ps-'.  Don't test systat; instead check number of arguments to
  4938.     ps-bb.
  4939.  
  4940. Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
  4941.  
  4942.     * macros/tmac.e: Do not decrease the page offset by 0.5i.
  4943.  
  4944.     * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
  4945.     Unlink the file as soon as we have opened it, so that we don't
  4946.     have to bother with signal handlers.
  4947.     (handler): Deleted.
  4948.     (fatal_error_exit): Deleted.
  4949.     (main): Don't call signal.
  4950.  
  4951.     * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
  4952.     can be ignored.
  4953.     * dvi/devdvi/Makefile: Use the -k option with S and MI.
  4954.  
  4955.     * pic/pic.y:  If there is a label, or an nth construction before
  4956.     the first `.' in the argument to `with', ignore it and generate a
  4957.     warning.
  4958.     * pic/lex.c (lex_warning): New function.
  4959.  
  4960.     * tbl/table.c (table::init_output): In section keep and release
  4961.     macro, use 0 indent when diverting and the correct indent when
  4962.     rereading.
  4963.  
  4964.     * troff/input.c (interpolate_number_format): Do not interpolate
  4965.     anything if the number register is not defined.
  4966.  
  4967.     * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
  4968.  
  4969. Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
  4970.  
  4971.     * ps/devps/prologue (PICTURE): Set components of graphics state to
  4972.     their default values.
  4973.  
  4974.     * ps/devps/text.enc: Add trademark
  4975.     * ps/devps/textmap: Add names for club, spade, heart, diamond,
  4976.     carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
  4977.     * ps/devps/symbolchars: Add names for summation and product.
  4978.  
  4979.     * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
  4980.     suchthat. Add pp. Add upper-case letters.
  4981.  
  4982.     * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
  4983.     diamond, carriagereturn, suchthat. Use Upsilon1 rather than
  4984.     Upsilon.
  4985.  
  4986.     * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
  4987.     rA (right angle bracket) to ra.  Introduce names for double-headed
  4988.     arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
  4989.     * ps/devps/textmap: Likewise for ps device.
  4990.     * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
  4991.     * tty/devascii/R.proto: Rename lA to la and rA to ra.
  4992.     * tty/devascii/R.proto: Likewise.
  4993.     * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
  4994.     \(uA, \(dA.
  4995.     * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
  4996.  
  4997.     * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
  4998.  
  4999.     * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
  5000.     def_table.
  5001.  
  5002. Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
  5003.  
  5004.     * troff/div.c (when_request): Use symbol::is_null rather than
  5005.     has_arg to determine whether we have an argument.
  5006.     (change_trap): Remove the trap if we get an invalid number. Give
  5007.     an error if we don't get at least the macro name.
  5008.     (diversion_trap): Remove trap if we get an invalid name or number.
  5009.  
  5010.     * troff/env.c (environment_switch): Pop if we get an invalid
  5011.     symbol or numeric expression.
  5012.  
  5013.     * troff/input.c (do_define_macro):  If EOF is encoutered while
  5014.     defining the macro, do tok.next() before returning.
  5015.  
  5016.     * troff/token.h (has_arg): Move definition from here, to ...
  5017.     * troff/input.c (has_arg): ... here
  5018.  
  5019.     * troff/env.c (space_size): Do nothing if we get an invalid argument.
  5020.     * troff/input.c (shift): Likewise.
  5021.  
  5022.     * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
  5023.     for `.c'.
  5024.  
  5025.     * pic/troff.c (troff_output::start_picture):  Comment out calls to
  5026.     `..'.
  5027.  
  5028.     * eqn/main.c (do_file): Subtract 1 from current_lineno if
  5029.     interpret_lf_args succeeds.
  5030.  
  5031.     * eqn/main.c (do_file): Don't recognize delimiter if preceded by
  5032.     \\.  This avoids problems with \$N.
  5033.  
  5034.     * groff.sh: Pass -C to preprocessors.
  5035.  
  5036.     * lib/lf.c (interpret_lf_args):  Be more flexible.
  5037.  
  5038.     * tbl/main.c (main): Add -C option.
  5039.     (table_input::get): Do not recognize TE if followed by character
  5040.     other than a space or newline unless -C option given.
  5041.     (process_input_file): Likewise for lf, TS.
  5042.     (process_data): Likewise for lf in text blocks.
  5043.  
  5044.     * eqn/main.c (main): Add -C option.
  5045.     (do_file): Don't recognize EQ, EN or lf if followed by character
  5046.     other than space or newline unless -C option given.
  5047.     * eqn/lex.c (file_input::read_line): Similarily.
  5048.     * eqn/eqn.h: Declare compatible_flag.
  5049.  
  5050.     * etc/soelim.c (main): Add -C option.
  5051.     (interpret_lf_args): Use version in libgroff.
  5052.     (do_file):
  5053.  
  5054.     * pic/main.c (main): Add -C option, which sets compatible_flag.
  5055.     (top_input::get), (top_input::peek):  If -C option not given,
  5056.     do not recognize .PS/.PE/.PF/.lf if followed by a character
  5057.     other than space or newline.
  5058.     * pic/lex.c (file_input::read_line): Similarily.
  5059.     * pic/pic.h: Add declaration of compatible_flag.
  5060.  
  5061. Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
  5062.  
  5063.     * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
  5064.  
  5065.     * troff/node.c, troff/node.h:  Add `asciify' methods to classes
  5066.     derived from node.  New class space_char_hmotion_node.
  5067.     * troff/input.c (asciify_macro): New function.
  5068.     * troff/input.c (init_input_requests): New request `asciify' bound
  5069.     to asciify_macro.
  5070.     * macros/mm.diff: New file.
  5071.     * Makefile:  In install.mm target use `patch' to apply
  5072.     macros/mm.diff.
  5073.  
  5074.     * troff/input.c (macro::print_size): Just print the size in bytes.
  5075.  
  5076.     * troff/div.c (return_request): Correct the argument
  5077.     interpretation.
  5078.  
  5079. Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
  5080.  
  5081.     * troff/node.h (class composite_node): Add sz member.
  5082.     * troff/node.c (composite_node::size): Return sz.
  5083.     * troff/input.c (macro_to_node):  Use the initial size in the
  5084.     environment as the size of the composite_node.
  5085.  
  5086.     * troff/node.c (node::zero_width_tprint):  Provide a reasonable
  5087.     default.
  5088.  
  5089. Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
  5090.  
  5091.     * troff/div.c (change_trap): If we get a bad number expression,
  5092.     do nothing.
  5093.  
  5094. Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
  5095.  
  5096.     * lib/matherr.c (matherr): Define this only if math.h defines
  5097.     TLOSS.
  5098.  
  5099. Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
  5100.  
  5101.     * troff/div.c (macro_diversion::distance_to_next_trap): If there
  5102.     no diversion trap return vunits(INT_MAX - vresolution).
  5103.  
  5104. Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
  5105.  
  5106.     * troff/input.c (do_zero_width): New implementation that doesn't
  5107.     use a temporary environment. Use instead:
  5108.     (token::add_to_node_list): New function.
  5109.     * troff/env.c (environment::get_prev_char_height),
  5110.     (environment::get_prev_char_height),
  5111.     (environment::get_prev_char_skew): New functions.
  5112.     (environment::get_prev_char): New function.
  5113.     (environment::get_prev_char_width): Change to use get_prev_char.
  5114.     (init_env_request): Implement new registers .cht, .cdp, .csk.
  5115.     * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
  5116.     \Z being processed in a separate environment.
  5117.  
  5118. Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
  5119.  
  5120.     * tbl/table.c: Removed TABLE_BOTTOM_REG.
  5121.  
  5122.     * tbl/table.c (table::init_output): In the section release macro,
  5123.     give a warning message if the section won't fit on one page.
  5124.  
  5125.     * tbl/table.c (table::do_top): Emit table keep only if table is
  5126.     boxed.
  5127.     (table::do_bottom): Likewise for table release.
  5128.     (table::table), (table::add_vertical_rule):  Remove reference to
  5129.     keep member.
  5130.     * tbl/table.h: Remove keep member.
  5131.  
  5132.     * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
  5133.     SECTION_RELEASE_MACRO, if there's not enough space before the next
  5134.     trap to output the diversion, call T# ourselves, set
  5135.     SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
  5136.     SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
  5137.     SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
  5138.     vertical position and return to it before turning traps on again.
  5139.     
  5140. Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
  5141.  
  5142.     * troff/node.c, troff/node.h: In classes derived from node,
  5143.     replace prev_char_width method by last_char_node method.
  5144.     * troff/env.c (environment::get_prev_char_width): Use
  5145.     node::last_char_node rather than node::get_prev_char_width.
  5146.  
  5147.     * Makefile: Added comment about -fno-inline on 68030-based
  5148.     Apollos.
  5149.  
  5150.     * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
  5151.     tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
  5152.     expressions using sizeof to int.
  5153.     * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
  5154.  
  5155.     * macros/tmac.e (TS):  Don't move @f back past the current
  5156.     position.
  5157.  
  5158. Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
  5159.  
  5160.     * ps/ps.c (main): Buffer stderr.
  5161.     * dvi/dvi.c (main): Likewise.
  5162.     * tty/tty.c (main): Likewise.
  5163.  
  5164.     * ps/ps.c (ps_printer::do_import): Improve error handling.
  5165.  
  5166.     * troff/input.c (abort_request): Use asciify.
  5167.  
  5168.     * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
  5169.     ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
  5170.     type of first argument int rather than char.  This works around a
  5171.     bug on the 68030 based Apollo using g++ 1.37.1.
  5172.  
  5173.     * tbl/table.h (class table): Add `keep' member.
  5174.     * tbl/table.c (table::table): Initialize `keep'.
  5175.     (table::add_vertical_rule): Set `keep' to 1.
  5176.     (table::do_top): Only emit table keep macro is `keep' is non-zero.
  5177.     (table::do_bottom): Likewise for table release macro.
  5178.     (table::do_row): Emit section keep macro even if the row is 0.
  5179.  
  5180. Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
  5181.  
  5182.     * macros/tmac.e (@C): Preserve the font family across the change
  5183.     in environments.
  5184.  
  5185. Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
  5186.  
  5187.     * lib/font.c: Initialize font::hor and font::vert to 1.
  5188.     (font::load_desc): Check the values of font::hor and font::vert.
  5189.  
  5190.     * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
  5191.     be included in a C compilation.
  5192.     (iftoa): Use INT_DIGITS. Include lib.h.
  5193.     (itoa): Likewise.
  5194.     (as_string): Likewise.
  5195.     * tbl/table.c: Removed definition of INT_DIGITS.
  5196.     * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
  5197.     * troff/input.c (input_input_requests): Likewise.
  5198.     * ps/ps.c (make_encoding_name): Likewise.
  5199.     (ps_printer::set_style): Likewise.
  5200.     (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead    of 12.
  5201.  
  5202.     * tty/devascii/R.proto: Map fm onto '.
  5203.     * tty/devlatin1/R.proto: Likewise.
  5204.  
  5205. Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
  5206.  
  5207.     * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
  5208.     argument to \w is at a different input level.
  5209.  
  5210.     * tbl/table.c (table::init_output): Define a new macro
  5211.     REPEATED_VPT_MACRO, like vpt but if in a diversion also
  5212.     transparently outputs itself.
  5213.     (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
  5214.     vpt.
  5215.     (table::do_row): Likewise.
  5216.  
  5217.     * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
  5218.     TRANSPARENT_STRING_NAME.
  5219.  
  5220.     * tbl/table.c (table::init_output): In the table release macro
  5221.     print an error message and don't produce any output if after
  5222.     issuing the need request the table still will not fit.  Also
  5223.     remove the diversion after bringing it back.
  5224.  
  5225.     * tbl/table.c (table::init_output): Define a new macro
  5226.     REPEATED_MARK_MACRO, like mk but if in a diversion also
  5227.     transparently outputs itself.
  5228.     (table::do_row): Mark row_top_reg using    REPEATED_MARK_MACRO. This
  5229.     is necessary because .TH might not call .T#.
  5230.     (table::do_top): Likewise TOP_REG.
  5231.     (table::define_bottom_macro): If TOP_REG is no longer valid, use
  5232.     #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
  5233.     table header might contain just the two top rules.
  5234.  
  5235. Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
  5236.  
  5237.     * troff/div.c: Implement new request `ptr' to print all traps.
  5238.  
  5239.     * troff/env.c (init_env_requests): Implement `.tabs' reg with
  5240.     init_string_env_reg.
  5241.     * troff/env.c (class tab_reg): Deleted.
  5242.  
  5243. Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
  5244.  
  5245.     * troff/div.c: New number register .pn returns the number of the
  5246.     next page as set by the pn request.
  5247.  
  5248.     * macros/tmac.an: Redid headers and footers.  Number each manual
  5249.     entry starting from 1 unless \nC is > 0, like Sun.  Added an
  5250.     optional 5th argument to .TH which specifies the manual name and
  5251.     appears in the center of the header.  Understand the X, P and D
  5252.     registers like Sun.
  5253.  
  5254. Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
  5255.  
  5256.     * troff/env.c (init_env_requests): New number register `.lt' to
  5257.     return the title length.
  5258.  
  5259.     * troff/node.h (class transparent_dummy_node): New class.
  5260.     * troff/node.c (class transparent_dummy_node): Provide member
  5261.     functions. 
  5262.     * troff/env.c (interrupt): Add a transparent_dummy_node, rather
  5263.     than a dummy_node.
  5264.  
  5265.     * troff/input.c (token::next): New escape sequence \).
  5266.     * troff/input.c (get_copy): Recognize \) in copy mode.
  5267.  
  5268.     * troff/input.c (input_stack::clear): New function.
  5269.     * troff/input.c (exit_request): Use input_stack::clear.
  5270.  
  5271.     * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
  5272.     * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
  5273.  
  5274.     * troff/env.c: Move set_page_character to input.c.  Move
  5275.     page_character to input.c also.
  5276.     * troff/env.c (title): Split off the reading of the parts of the
  5277.     title into read_title_parts.
  5278.     * troff/input.c (read_title_parts): New function.  Check the
  5279.     input_level when testing whether a token matches the delimiter.
  5280.  
  5281.     * troff/input.c (exit_request): New function.
  5282.     * troff/input.c (init_input_requests): Bind ex request to
  5283.     exit_request rather than exit_groff.
  5284.  
  5285.     * troff/input.c (exit_groff): Call tok.next() before
  5286.     process_input_stack().
  5287.  
  5288. Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
  5289.  
  5290.     * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
  5291.     * troff/env.h: ditto.
  5292.     * troff/input.c: ditto.
  5293.  
  5294.     * troff/env.c (environment::is_empty): Test pending_lines.
  5295.  
  5296.     * troff/env.c (environment::have_pending_lines): Removed.
  5297.  
  5298.     * troff/input.c: Add request to flush pending lines from the
  5299.     environment.
  5300.  
  5301.     * troff/env.c, troff/env.h: Add automatic widow control feature.
  5302.  
  5303.     * troff/input.c (exit_groff):  Do process_input_stack() after
  5304.     do_break() but before setting exit_flag to 2.
  5305.  
  5306.     * troff/input.c: Remove FLUSH_PENDING_LINES and
  5307.     TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
  5308.     environment after END_TRAP token seen, but only if there aren't
  5309.     any more traps still unfinished.
  5310.     * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
  5311.  
  5312. Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
  5313.  
  5314.     * troff/env.c: Rename the `retain_size' member of class
  5315.     pending_output_line to `no_fill'.
  5316.  
  5317.     * troff/env.c (title): When the line is output, make the
  5318.     retain_size argument !fill.
  5319.  
  5320.     * troff/node.h: Add `hyphenated' member to struct breakpoint.
  5321.     * troff/node.c (space_node::get_breakpoints),
  5322.     (dbreak_node::get_breakpoints):  Fill this in.
  5323.     * troff/env.c:  Allow specification of maximum number of
  5324.     consecutive hyphenated lines.
  5325.  
  5326.     * troff/env.c (environment::is_empty): Add test for !current_tab.
  5327.  
  5328. Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
  5329.  
  5330.     * troff/env.c (environment::hyphenate_line): Don't completely give
  5331.     up if the word is not to be hyphenated; continue so that breaks
  5332.     can be made at break_char_node's.
  5333.  
  5334.     * lib/lib.h: Only define INT_MAX if it's not already defined;
  5335.     undef INT_MIN if it's already defined.
  5336.  
  5337.     * Makefile: Make it easy to define CFRONT_ANSI_BUG.
  5338.  
  5339.     * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
  5340.     This works around a bug in AT&T C++ 2.0 used with an ANSI C
  5341.     compiler.
  5342.     
  5343.     * macros/tmac.an (an-header): Set no-space mode.
  5344.  
  5345.     * macros/tmac.an (TH): Start a new page if necessary.
  5346.  
  5347.     * Started using ChangeLog at version 0.4.
  5348.  
  5349. Local Variables:
  5350. version-control: never
  5351. End:
  5352.