<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/groff-git.git/src/roff/troff/input.cpp, branch master</title>
<subtitle>git.savannah.gnu.org: git/groff.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/'/>
<entry>
<title>[troff]: Fix latent bug in pointer comparison.</title>
<updated>2023-02-09T19:09:47+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2023-02-09T19:09:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=36a6a482610dfbc0a0dd35bf962b43ab7ead917a'/>
<id>36a6a482610dfbc0a0dd35bf962b43ab7ead917a</id>
<content type='text'>
* src/roff/troff/input.cpp (token::next): Use correct kind of null
  object in comparison.  Fixes latent bug that would be exposed if we
  were to migrate from zero literals to `nullptr`.

Seen in bjarnigroff at
&lt;https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00083.html&gt;.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (token::next): Use correct kind of null
  object in comparison.  Fixes latent bug that would be exposed if we
  were to migrate from zero literals to `nullptr`.

Seen in bjarnigroff at
&lt;https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00083.html&gt;.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Savannah #63589.</title>
<updated>2023-02-05T09:06:19+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2023-02-04T21:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=45b628322b2a16b2fd0726f7ac0f48dad34f92bd'/>
<id>45b628322b2a16b2fd0726f7ac0f48dad34f92bd</id>
<content type='text'>
Correct numerous typos and solecisms throughout the source tree.

* ChangeLog:
* ChangeLog.115:
* ChangeLog.116:
* ChangeLog.117:
* ChangeLog.118:
* ChangeLog.119:
* ChangeLog.121:
* ChangeLog.122:
* Makefile.am:
* NEWS:
* PROBLEMS:
* README:
* contrib/chem/chem.am:
* contrib/chem/chem.pl:
* contrib/glilypond/README.txt:
* contrib/glilypond/glilypond.pl:
* contrib/hdtbl/groff_hdtbl.7.man:
* contrib/mm/ChangeLog:
* contrib/mm/m.tmac:
* contrib/pdfmark/pdfmark.ms:
* doc/automake.mom:
* doc/groff.texi:
* doc/me-revisions:
* doc/webpage.ms:
* m4/lib-link.m4:
* man/groff.7.man:
* man/groff_diff.7.man:
* man/roff.7.man:
* src/devices/grohtml/post-html.cpp:
* src/devices/grolbp/lbp.h:
* src/devices/gropdf/TODO:
* src/devices/gropdf/gropdf.1.man:
* src/devices/gropdf/gropdf.pl:
* src/devices/xditview/ChangeLog:
* src/devices/xditview/xditview.c:
* src/libs/libdriver/input.cpp:
* src/libs/libgroff/glyphuni.cpp:
* src/preproc/eqn/eqn.1.man:
* src/preproc/grn/gprint.h:
* src/preproc/grn/main.cpp:
* src/preproc/html/pre-html.cpp:
* src/preproc/preconv/preconv.cpp:
* src/preproc/tbl/table.cpp:
* src/roff/groff/pipeline.c:
* src/roff/groff/tests/substring_works.sh:
* src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh:
* src/roff/troff/div.cpp:
* src/roff/troff/input.cpp:
* src/roff/troff/troff.1.man:
* src/utils/grog/grog.pl:
* src/utils/indxbib/indxbib.cpp:
* src/utils/tfmtodit/tfmtodit.1.man:
* tmac/doc-old.tmac:
* tmac/doc.tmac:
* tmac/groff_man.7.man.in:
* tmac/hyphen.fr: Do it.

Fixes &lt;https://savannah.gnu.org/bugs/?63589&gt;.  Thanks to Bjarni Ingi
Gislason for the report.

* ANNOUNCE: Update bug counts.

I also killed some pointless white space, refilled affected lines at 72
columns where convenient and non-disruptive to existing text flow, and
corrected a misspelling of Ralph Corderoy's surname.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct numerous typos and solecisms throughout the source tree.

* ChangeLog:
* ChangeLog.115:
* ChangeLog.116:
* ChangeLog.117:
* ChangeLog.118:
* ChangeLog.119:
* ChangeLog.121:
* ChangeLog.122:
* Makefile.am:
* NEWS:
* PROBLEMS:
* README:
* contrib/chem/chem.am:
* contrib/chem/chem.pl:
* contrib/glilypond/README.txt:
* contrib/glilypond/glilypond.pl:
* contrib/hdtbl/groff_hdtbl.7.man:
* contrib/mm/ChangeLog:
* contrib/mm/m.tmac:
* contrib/pdfmark/pdfmark.ms:
* doc/automake.mom:
* doc/groff.texi:
* doc/me-revisions:
* doc/webpage.ms:
* m4/lib-link.m4:
* man/groff.7.man:
* man/groff_diff.7.man:
* man/roff.7.man:
* src/devices/grohtml/post-html.cpp:
* src/devices/grolbp/lbp.h:
* src/devices/gropdf/TODO:
* src/devices/gropdf/gropdf.1.man:
* src/devices/gropdf/gropdf.pl:
* src/devices/xditview/ChangeLog:
* src/devices/xditview/xditview.c:
* src/libs/libdriver/input.cpp:
* src/libs/libgroff/glyphuni.cpp:
* src/preproc/eqn/eqn.1.man:
* src/preproc/grn/gprint.h:
* src/preproc/grn/main.cpp:
* src/preproc/html/pre-html.cpp:
* src/preproc/preconv/preconv.cpp:
* src/preproc/tbl/table.cpp:
* src/roff/groff/pipeline.c:
* src/roff/groff/tests/substring_works.sh:
* src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh:
* src/roff/troff/div.cpp:
* src/roff/troff/input.cpp:
* src/roff/troff/troff.1.man:
* src/utils/grog/grog.pl:
* src/utils/indxbib/indxbib.cpp:
* src/utils/tfmtodit/tfmtodit.1.man:
* tmac/doc-old.tmac:
* tmac/doc.tmac:
* tmac/groff_man.7.man.in:
* tmac/hyphen.fr: Do it.

Fixes &lt;https://savannah.gnu.org/bugs/?63589&gt;.  Thanks to Bjarni Ingi
Gislason for the report.

* ANNOUNCE: Update bug counts.

I also killed some pointless white space, refilled affected lines at 72
columns where convenient and non-disruptive to existing text flow, and
corrected a misspelling of Ralph Corderoy's surname.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Trivially refactor ("constant_int_reg").</title>
<updated>2022-12-07T08:51:57+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-12-05T16:57:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=9b1201303eccf7cb8136e90a6eb64f33bafe3ccc'/>
<id>9b1201303eccf7cb8136e90a6eb64f33bafe3ccc</id>
<content type='text'>
Rename class `constant_int_reg` to `readonly_register`.  Say "readonly"
instead of "const" to try to avoid confusion with C++ constness.  Drop
"int" because integer-valued registers are the norm, not the exception.

* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (init_div_requests):
* src/roff/troff/input.cpp (top level, init_input_requests):
* src/roff/troff/node.cpp (init_node_requests):
* src/roff/troff/reg.h: Do it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename class `constant_int_reg` to `readonly_register`.  Say "readonly"
instead of "const" to try to avoid confusion with C++ constness.  Drop
"int" because integer-valued registers are the norm, not the exception.

* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (init_div_requests):
* src/roff/troff/input.cpp (top level, init_input_requests):
* src/roff/troff/node.cpp (init_node_requests):
* src/roff/troff/reg.h: Do it.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Trivially refactor ("constant_reg").</title>
<updated>2022-12-07T08:51:57+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-12-05T16:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=d28dca7a174aa10268bf83fc0360b506202a98d7'/>
<id>d28dca7a174aa10268bf83fc0360b506202a98d7</id>
<content type='text'>
Rename class `constant_reg` to `readonly_text_register`.  Say "readonly"
instead of "const" to try to avoid confusion with C++ constness.  Say
"text" because this class is _mostly_ used for interpolation of
string-valued registers like the version registers `.x`, `.y` and `.Y`.
Nevertheless there are some abuses (apparently because the constructors
for register classes don't accept integer parameters for
initialization--why?).

* src/roff/troff/input.cpp (top level)
  (readonly_text_register::readonly_text_register)
  (readonly_text_register::get_string)
  (main, init_registers, init_requests): Do it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename class `constant_reg` to `readonly_text_register`.  Say "readonly"
instead of "const" to try to avoid confusion with C++ constness.  Say
"text" because this class is _mostly_ used for interpolation of
string-valued registers like the version registers `.x`, `.y` and `.Y`.
Nevertheless there are some abuses (apparently because the constructors
for register classes don't accept integer parameters for
initialization--why?).

* src/roff/troff/input.cpp (top level)
  (readonly_text_register::readonly_text_register)
  (readonly_text_register::get_string)
  (main, init_registers, init_requests): Do it.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Trivially refactor ("number_reg_dic...").</title>
<updated>2022-12-07T08:51:57+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-12-05T15:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=ab2442e6386d93e1a9a3524b29b3ebed7e476c73'/>
<id>ab2442e6386d93e1a9a3524b29b3ebed7e476c73</id>
<content type='text'>
Rename `number_reg_dictionary` to `register_dictionary`.  It's shorter
_and_ non-abbreviated _and_ matches our documentation.

* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (page_number, init_div_requests):
* src/roff/troff/env.cpp (print_env, init_env_requests)
  (init_hyphen_requests):
* src/roff/troff/input.cpp (length_request, interpolate_number_format)
  (do_register, do_if_request, main, init_registers)
  (init_input_requests):
* src/roff/troff/node.cpp (get_register, init_node_requests):
* src/roff/troff/reg.cpp (top level, define_number_reg
  (inline_define_reg, alter_format, remove_reg, alias_reg, rename_reg)
  (print_number_regs):
* src/roff/troff/reg.h: Do it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename `number_reg_dictionary` to `register_dictionary`.  It's shorter
_and_ non-abbreviated _and_ matches our documentation.

* src/roff/troff/column.cpp (init_column_requests):
* src/roff/troff/div.cpp (page_number, init_div_requests):
* src/roff/troff/env.cpp (print_env, init_env_requests)
  (init_hyphen_requests):
* src/roff/troff/input.cpp (length_request, interpolate_number_format)
  (do_register, do_if_request, main, init_registers)
  (init_input_requests):
* src/roff/troff/node.cpp (get_register, init_node_requests):
* src/roff/troff/reg.cpp (top level, define_number_reg
  (inline_define_reg, alter_format, remove_reg, alias_reg, rename_reg)
  (print_number_regs):
* src/roff/troff/reg.h: Do it.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Recast diagnostic messages for clarity.</title>
<updated>2022-10-29T17:52:02+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-10-24T17:00:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=489c64c601bcc99b07d0dc36e267e7a02848b585'/>
<id>489c64c601bcc99b07d0dc36e267e7a02848b585</id>
<content type='text'>
* src/roff/troff/input.cpp (enable_warning, disable_warning): Recast
  diagnostic messages for clarity.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (enable_warning, disable_warning): Recast
  diagnostic messages for clarity.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Update usage message.</title>
<updated>2022-10-23T22:19:50+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-10-23T17:54:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=600e81d1c7fd37d1855fdc047ab5da9b71f73fdd'/>
<id>600e81d1c7fd37d1855fdc047ab5da9b71f73fdd</id>
<content type='text'>
* src/roff/troff/input.cpp (usage): Update usage message.  Present
  different modes of operation on separate output lines.  Revise
  metasyntactic variable names for clarity.
  - name -&gt; string
  The former is not wrong but is too general.  In practice there is no
  way to populate a macro or diversion from a command-line argument.
  - reg -&gt; register
  - expr -&gt; numeric-expression
  Use complete words and the exact terminology from our documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (usage): Update usage message.  Present
  different modes of operation on separate output lines.  Revise
  metasyntactic variable names for clarity.
  - name -&gt; string
  The former is not wrong but is too general.  In practice there is no
  way to populate a macro or diversion from a command-line argument.
  - reg -&gt; register
  - expr -&gt; numeric-expression
  Use complete words and the exact terminology from our documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Clarify diagnostic.</title>
<updated>2022-10-12T18:44:54+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-10-12T18:44:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=be51c5780bbce17589138bb9b34d65eb6f1728a7'/>
<id>be51c5780bbce17589138bb9b34d65eb6f1728a7</id>
<content type='text'>
* src/roff/troff/input.cpp (read_color_draw_node): Clarify diagnostic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (read_color_draw_node): Clarify diagnostic.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Improve diagnostic messages.</title>
<updated>2022-10-06T12:23:26+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-10-04T06:24:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=7b18d389afd05df1b6626296a55adf9e1ab57c56'/>
<id>7b18d389afd05df1b6626296a55adf9e1ab57c56</id>
<content type='text'>
* src/roff/troff/input.cpp (do_expr_test, do_zero_width): Use better
  terminology in diagnostic messages.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (do_expr_test, do_zero_width): Use better
  terminology in diagnostic messages.
</pre>
</div>
</content>
</entry>
<entry>
<title>[troff]: Fix Savannah #63151.</title>
<updated>2022-10-06T12:23:26+00:00</updated>
<author>
<name>G. Branden Robinson</name>
<email>g.branden.robinson@gmail.com</email>
</author>
<published>2022-10-04T05:27:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/groff-git.git/commit/?id=122f288e0b307c7caaac215a8cf18a96587ba6b3'/>
<id>122f288e0b307c7caaac215a8cf18a96587ba6b3</id>
<content type='text'>
* src/roff/troff/input.cpp (read_draw_node): Throw "delim" warning
  diagnostic when a drawing escape sequence ends the line without a
  closing delimiter.

Fixes &lt;https://savannah.gnu.org/bugs/?63151&gt;.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/roff/troff/input.cpp (read_draw_node): Throw "delim" warning
  diagnostic when a drawing escape sequence ends the line without a
  closing delimiter.

Fixes &lt;https://savannah.gnu.org/bugs/?63151&gt;.
</pre>
</div>
</content>
</entry>
</feed>
