]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 da4b3f86030a299e477093de629595849b2b0173..97bf003533ca3d474d1cadccdf7f335d3ec8783d 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 62ad96638c16c56b1a010f662d1affb4accf0bc1..a7f1b542a6532d0042af51e462ab264ee4f10e95 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 a6b512fe0fab2145af31fb2c4c7b8e5479641cc2..847d53d7283720a34a081361d49f2f2947734c7a 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