---)
break
;;
- HC:)
- header_comment="$value"
- ;;
- CC:)
- c_file_comment="$value"
- ;;
OF:)
output_file="$value"
array_name=${value%command_list}cmds
template_members="$value"
esac
done
- if test -z "$header_comment" -o -z "$c_file_comment" \
- -o -z "$output_file"; then
+ if test -z "$output_file"; then
echo "header error" 1&>2
exit 1
fi
com_c_file()
{
- echo "/** \file $output_file.c $c_file_comment */"
echo "$system_includes"
echo "$includes"
echo "struct $array_type $array_name[] = {"
com_header()
{
- echo "/** \file $output_file.h $header_comment */"
- echo
echo "extern struct $array_type $array_name[];"
while : ; do
read_one_command