summaryrefslogtreecommitdiffstats
path: root/tools/man2help2.tcl
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2002-05-08 23:48:13 (GMT)
committerdavygrvy <davygrvy@pobox.com>2002-05-08 23:48:13 (GMT)
commite4d8bccf51f328a796680c704d540f721dab6c22 (patch)
treec3de028e22f014e9a284725e17d0cad17908618f /tools/man2help2.tcl
parent6ade672c9f623f586985475583d49f6beb561176 (diff)
downloadtcl-e4d8bccf51f328a796680c704d540f721dab6c22.zip
tcl-e4d8bccf51f328a796680c704d540f721dab6c22.tar.gz
tcl-e4d8bccf51f328a796680c704d540f721dab6c22.tar.bz2
Thanks to Peter Spjuth <peter.spjuth@space.se>, again. My prior fix for
single-quote macro mis-understanding was wrong. Reverted to reimpliment the 'macro2' proc which handles single-quote macros and restored file.n text arrangement to avoid single-quotes on the first line.
Diffstat (limited to 'tools/man2help2.tcl')
-rw-r--r--tools/man2help2.tcl18
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/man2help2.tcl b/tools/man2help2.tcl
index 875f9a6..0b70fec 100644
--- a/tools/man2help2.tcl
+++ b/tools/man2help2.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: man2help2.tcl,v 1.10 2002/05/08 12:20:15 davygrvy Exp $
+# RCS: @(#) $Id: man2help2.tcl,v 1.11 2002/05/08 23:48:13 davygrvy Exp $
#
# Global variables used by these scripts:
@@ -684,6 +684,22 @@ proc char {name} {
}
+# macro2 --
+#
+# This procedure handles macros that are invoked with a leading "'"
+# character instead of space. Right now it just generates an
+# error diagnostic.
+#
+# Arguments:
+# name - The name of the macro (without the ".").
+# args - Any additional arguments to the macro.
+
+proc macro2 {name args} {
+ puts stderr "Unknown macro: '$name [join $args " "]"
+}
+
+
+
# SHmacro --
#
# Subsection head; handles the .SH macro.