From 6a4f5e85c1e9eb6fd21477438762c4f95c29f30c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 28 Jun 2012 00:57:52 +0200 Subject: [PATCH 1/1] command_util: Kill HC and CC header lines. There is no point in pretty-printing the generated files. Nobody reads these files anyway and doxygen ignores them as well. --- afs.cmd | 2 -- audiod.cmd | 2 -- command_util.sh | 12 +----------- server.cmd | 2 -- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/afs.cmd b/afs.cmd index 11b16311..2dd55735 100644 --- a/afs.cmd +++ b/afs.cmd @@ -1,7 +1,5 @@ OF: afs_command_list SF: afs.c aft.c attribute.c -HC: Prototypes for the commands of the audio file selector. -CC: Array of commands for the audio file selector. AT: server_command SI: osl regex IN: para error crypt sideband command string afh afs server list user_list diff --git a/audiod.cmd b/audiod.cmd index c5890744..5ec57874 100644 --- a/audiod.cmd +++ b/audiod.cmd @@ -1,7 +1,5 @@ OF: audiod_command_list SF: audiod_command.c -HC: prototypes for the audiod command handlers -CC: array of audiod commands AT: audiod_command IN: list para sched audiod SN: list of audiod commands diff --git a/command_util.sh b/command_util.sh index 76b3445f..a66b56bb 100755 --- a/command_util.sh +++ b/command_util.sh @@ -10,12 +10,6 @@ read_header() ---) break ;; - HC:) - header_comment="$value" - ;; - CC:) - c_file_comment="$value" - ;; OF:) output_file="$value" array_name=${value%command_list}cmds @@ -47,8 +41,7 @@ read_header() 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 @@ -267,7 +260,6 @@ template_loop() com_c_file() { - echo "/** \file $output_file.c $c_file_comment */" echo "$system_includes" echo "$includes" echo "struct $array_type $array_name[] = {" @@ -290,8 +282,6 @@ com_c_file() com_header() { - echo "/** \file $output_file.h $header_comment */" - echo echo "extern struct $array_type $array_name[];" while : ; do read_one_command diff --git a/server.cmd b/server.cmd index d0e8f271..e676aa68 100644 --- a/server.cmd +++ b/server.cmd @@ -1,7 +1,5 @@ OF: server_command_list SF: command.c -HC: prototypes for the server command handlers -CC: array of server commands AT: server_command SI: osl regex IN: para error crypt sideband command string afh afs server list user_list -- 2.39.2