summaryrefslogtreecommitdiff
path: root/tmac/trace.tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-05-18 22:39:39 +0000
committerwlemb <wlemb>2003-05-18 22:39:39 +0000
commit8a41c54176f291913304f921606367a8bba07c2d (patch)
tree5018a96a6023dd1e7995503166c290532b3041d8 /tmac/trace.tmac
parenta1872d49e6bc8afffc8f22176cf05b6fc218e179 (diff)
downloadgroff-8a41c54176f291913304f921606367a8bba07c2d.tar.gz
* tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
aren't stretched in a tag (this can fail with unformatted boxes). Instead, insert a break and go back one line. * src/roff/troff/input.cc (return_macro_request): If called with argument pop macro twice. We need this to trace `return'. * tmac/trace.tmac: Handle `return'. Fix typos. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of registers `FPS', `FVS', and `FPD'.
Diffstat (limited to 'tmac/trace.tmac')
-rw-r--r--tmac/trace.tmac18
1 files changed, 13 insertions, 5 deletions
diff --git a/tmac/trace.tmac b/tmac/trace.tmac
index c341b762..a67d9192 100644
--- a/tmac/trace.tmac
+++ b/tmac/trace.tmac
@@ -17,12 +17,12 @@
. ec
. do !!de \$1
. ie "\$1"\\$0" .do tm1 "\\*[!!sp]*** de trace enter: \\$0 \\$@
-. el .do tm1 "\*[!!sp]*** trace enter \$1: \\$0 \\$@
+. el .do tm1 "\\*[!!sp]*** trace enter \$1: \\$0 \\$@
. do as !!sp " \"
. do nop \\*[!!\$1]\\
. do substring !!sp 1
. ie "\$1"\\$0" .do tm1 "\\*[!!sp]*** trace exit: \\$0 \\$@
-. el .do tm1 "\*[!!sp]*** trace exit \$1: \\$0 \\$@
+. el .do tm1 "\\*[!!sp]*** trace exit \$1: \\$0 \\$@
\..
.
. do ds !!d1 !!\$1
@@ -34,17 +34,17 @@
.
.rn am !!am
.
-.!!am am
+.!!de am
. do ecs
. ec
. do !!am \$1
. ie "\$1"\\$0" .do tm1 "\\*[!!sp]*** am trace enter: \\$0 \\$@
-. el .do tm1 "\*[!!sp]*** am trace enter \$1: \\$0 \\$@
+. el .do tm1 "\\*[!!sp]*** am trace enter \$1: \\$0 \\$@
. as !!sp " \"
. do nop \\*[!!\$1]\\
. substring !!sp 1
. ie "\$1"\\$0" .do tm1 "\\*[!!sp]*** trace exit: \\$0 \\$@
-. el .do tm1 "\*[!!sp]*** trace exit \$1: \\$0 \\$@
+. el .do tm1 "\\*[!!sp]*** trace exit \$1: \\$0 \\$@
\..
.
. do ds !!a1 !!\$1
@@ -54,6 +54,14 @@
. do ami !!a1 !!a2
..
.
+.rn return !!return
+.
+.!!de return
+. substring !!sp 1
+. tm1 "\*[!!sp]*** return
+. !!return twice
+..
+.
.ec
.
.cp \n(_C