summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/doctools/api_toc.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 19:39:39 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 19:39:39 (GMT)
commitea28451286d3ea4a772fa174483f9a7a66bb1ab3 (patch)
tree6ee9d8a7848333a7ceeee3b13d492e40225f8b86 /tcllib/modules/doctools/api_toc.tcl
parentb5ca09bae0d6a1edce939eea03594dd56383f2c8 (diff)
parent7c621da28f07e449ad90c387344f07a453927569 (diff)
downloadblt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.zip
blt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.tar.gz
blt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.tar.bz2
Merge commit '7c621da28f07e449ad90c387344f07a453927569' as 'tcllib'
Diffstat (limited to 'tcllib/modules/doctools/api_toc.tcl')
-rw-r--r--tcllib/modules/doctools/api_toc.tcl26
1 files changed, 26 insertions, 0 deletions
diff --git a/tcllib/modules/doctools/api_toc.tcl b/tcllib/modules/doctools/api_toc.tcl
new file mode 100644
index 0000000..42398cf
--- /dev/null
+++ b/tcllib/modules/doctools/api_toc.tcl
@@ -0,0 +1,26 @@
+# -*- tcl -*-
+# api_toc.tcl -- API placeholders
+#
+# Copyright (c) 2003 Andreas Kupries <andreas_kupries@sourceforge.net>
+
+################################################################
+# This file defines all commands expected from a doctoc formatter by the
+# doctools library. It is loaded into the formatter interpreter before
+# the code for a particular doctoc format is loaded. All commands defined
+# here return an error. This ensures the generation of errors if a
+# format forgets to define commands in the API.
+
+################################################################
+# Here it comes
+
+foreach __cmd {
+ toc_initialize toc_shutdown toc_setup toc_numpasses
+ toc_listvariables toc_varset
+ fmt_toc_begin fmt_toc_end fmt_division_start fmt_division_end
+ fmt_item fmt_comment fmt_plain_text
+} {
+ proc $__cmd {args} [list return "return -code error \"Unimplemented API command $__cmd\""]
+}
+unset __cmd
+
+################################################################