summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-03-09 00:18:20 +0000
committerwlemb <wlemb>2001-03-09 00:18:20 +0000
commitb0e4f58b4afa4e924818766dd78f3c8a804295c4 (patch)
tree5f6e48fb6b1f9d4a007054dbe262af14580e9b95 /man
parent5c15ebdf9477000c401785690b95997713e8aec8 (diff)
downloadgroff-b0e4f58b4afa4e924818766dd78f3c8a804295c4.tar.gz
Added the `return' request to end a macro immediately. It simply
pops iterators from the input stack until a macro iterator is found. * src/roff/troff/input.cc (input_iterator::is_macro, macro_iterator::is_macro): New member. (input_return_boundary): New class to signal an immediate return to while_request(). (input_stack::add_return_boundary, input_stack::is_return_boundary): New functions. (input_stack::clear): Use it. (input_stack::pop_macro): New function. (while_request): Use `is_return_boundary()'. (return_macro_request): New function. (init_input_requests): Use it. * src/roff/troff/TODO: Updated. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * src/roff/troff/input.cc (input_iterator::is_boundary): Minor cleanup.
Diffstat (limited to 'man')
-rw-r--r--man/groff.man3
1 files changed, 3 insertions, 0 deletions
diff --git a/man/groff.man b/man/groff.man
index 7b23cba4..0d7d3935 100644
--- a/man/groff.man
+++ b/man/groff.man
@@ -1500,6 +1500,9 @@ Remove the definitions of characters
.REQ .rd prompt
Read insertion.
.
+.REQ .return
+Return from a macro.
+.
.REQ .rj n
Right justify the next
.argument n