From 12f0605c8cbea762030968a29eed47bfd4c77a96 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 12 Jun 2009 01:13:33 +0200 Subject: [PATCH 1/1] Add osl.h include to generated command C files. --- afs.cmd | 1 + command_util.sh | 7 +++++++ server.cmd | 1 + 3 files changed, 9 insertions(+) diff --git a/afs.cmd b/afs.cmd index da4b3f86..97bf0035 100644 --- a/afs.cmd +++ b/afs.cmd @@ -3,6 +3,7 @@ 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 IN: para error string afh afs server list user_list SN: list of afs commands TM: mood lyr img pl diff --git a/command_util.sh b/command_util.sh index 62ad9663..a7f1b542 100755 --- a/command_util.sh +++ b/command_util.sh @@ -26,6 +26,12 @@ read_header() AT:) array_type="$value" ;; + SI:) + for i in $value; do + system_includes="$system_includes +#include <$i.h>" + done + ;; IN:) for i in $value; do includes="$includes @@ -273,6 +279,7 @@ template_loop() com_c_file() { echo "/** \file $output_file.c $c_file_comment */" + echo "$system_includes" echo "$includes" echo "struct $array_type $array_name[] = {" while : ; do diff --git a/server.cmd b/server.cmd index a6b512fe..847d53d7 100644 --- a/server.cmd +++ b/server.cmd @@ -4,6 +4,7 @@ HC: prototypes for the server command handlers CC: array of server commands AT: server_command IN: para error string afh afs server list user_list +SI: osl SN: list of server commands --- N: ff -- 2.39.2