devel
| Line | |
|---|
| 1 | # -*- tcl -*- |
|---|
| 2 | # api_toc.tcl -- API placeholders |
|---|
| 3 | # |
|---|
| 4 | # Copyright (c) 2003 Andreas Kupries <andreas_kupries@sourceforge.net> |
|---|
| 5 | |
|---|
| 6 | ################################################################ |
|---|
| 7 | # This file defines all commands expected from a doctoc formatter by the |
|---|
| 8 | # doctools library. It is loaded into the formatter interpreter before |
|---|
| 9 | # the code for a particular doctoc format is loaded. All commands defined |
|---|
| 10 | # here return an error. This ensures the generation of errors if a |
|---|
| 11 | # format forgets to define commands in the API. |
|---|
| 12 | |
|---|
| 13 | ################################################################ |
|---|
| 14 | # Here it comes |
|---|
| 15 | |
|---|
| 16 | foreach __cmd { |
|---|
| 17 | toc_initialize toc_shutdown toc_setup toc_numpasses |
|---|
| 18 | toc_listvariables toc_varset |
|---|
| 19 | fmt_toc_begin fmt_toc_end fmt_division_start fmt_division_end |
|---|
| 20 | fmt_item fmt_comment fmt_plain_text |
|---|
| 21 | } { |
|---|
| 22 | proc $__cmd {args} [list return "return -code error \"Unimplemented API command $__cmd\""] |
|---|
| 23 | } |
|---|
| 24 | unset __cmd |
|---|
| 25 | |
|---|
| 26 | ################################################################ |
|---|
Note: See
TracBrowser
for help on using the repository browser.