Implement new number register `.br' which is set to 1 if a macro has
commitd7669bf790aea44f42c0c698a457f7d27b88a367
authorWerner LEMBERG <wl@gnu.org>
Tue, 4 Apr 2006 20:20:05 +0000 (4 20:20 +0000)
committerWerner LEMBERG <wl@gnu.org>
Tue, 4 Apr 2006 20:20:05 +0000 (4 20:20 +0000)
treea3f425c0004bd78b4aee14b3036afea70ec1c8b7
parent5125e5be30a873151e13adc59ea3955af8555c47
Implement new number register `.br' which is set to 1 if a macro has
been called as .foo and to 0 if called as 'bar.  This is useful for
-mtrace so that requests can be reliably traced too.

* src/roff/troff/input.cpp (input_iterator): Add virtual function
`get_break_flag'.
(macro_iterator): Add `with_break' member and `get_break_flag'
function.
Update constructors.
(input_stack): Add function `get_break_flag'.
(break_flag_reg): New number register class.
(input_init_requests): Register `.br'.

* src/roff/troff/TODO: Updated.

* tmac/trace.tmac: s/!!sp/!!!sp/.
Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].

* docs/groff.texinfo, man/groff.man, man/groff_diff.man, NEWS:
Document it.
ChangeLog
NEWS
doc/groff.texinfo
man/groff.man
man/groff_diff.man
src/roff/troff/TODO
src/roff/troff/input.cpp
tmac/trace.tmac