From: Andre Noll Date: Thu, 11 Jun 2009 23:13:33 +0000 (+0200) Subject: Add osl.h include to generated command C files. X-Git-Tag: v0.4.0~75^2~8 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=12f0605c8cbea762030968a29eed47bfd4c77a96 Add osl.h include to generated command C files. --- 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