#!/usr/bin/tclsh
#
# This script is used to generate the array of strings and the enum
# that appear at the beginning of the C code implementation of a
# a TCL command and that define the available subcommands for that
# TCL command.
set prefix
while
puts " static const char *${prefix}_strs\[\] = \173"
set col 0
x
foreach name
put_item 0
finalize
puts " \175;"
puts " enum ${prefix}_enum \173"
foreach name
finalize
puts " \175;"