Add osl.h include to generated command C files.
authorAndre Noll <maan@systemlinux.org>
Thu, 11 Jun 2009 23:13:33 +0000 (01:13 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 11 Jun 2009 23:13:33 +0000 (01:13 +0200)
afs.cmd
command_util.sh
server.cmd

diff --git a/afs.cmd b/afs.cmd
index da4b3f8..97bf003 100644 (file)
--- 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
index 62ad966..a7f1b54 100755 (executable)
@@ -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
index a6b512f..847d53d 100644 (file)
@@ -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