;;
FN:)
file_name="$value"
+ array_name=${value%command_list}cmds
;;
AT:)
array_type="$value"
;;
- AN:)
- array_name="$value"
- ;;
IN:)
for i in $value; do
includes="$includes
done
}
-com_array()
+com_c_file()
{
echo "/** \file $file_name.c $c_file_comment */"
echo "$includes"
echo
}
-com_proto()
+com_header()
{
echo "/** \file $file_name.h $header_comment */"
echo
arg="$1"
shift
case "$arg" in
- "array")
- com_array
+ "c")
+ com_c_file
;;
- "proto")
- com_proto
+ "h")
+ com_header
;;
"man")
com_man $*