]> git.tuebingen.mpg.de Git - paraslash.git/commit
command_util.sh: Make it read the function prototype from the source file
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 16:06:46 +0000 (17:06 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 11 Feb 2007 16:06:46 +0000 (17:06 +0100)
commit0a405367cdc8f3b0f49fb5ec3798378a2fc4589b
tree0d55b4f34b3eaf5e8273a6b0670e62c4393ccdb0
parenteb0b03d2d24db75d1ece27b1cec133fc7df7d1c3
command_util.sh: Make it read the function prototype from the source file

This is much cleaner as the commands differ by gcc attribute usage,
e.g. __a_unused.  But it also means that in the source code

(a) the opening bracket for the function body must not be on
the same line (com_hist got this wrong),

(b) for all command handlers, the parameters must be called
fd, argc and argv,

(c) If a command handler uses __noreturn, that attribute must
be the first word, see audiod's com_term().

So change the few occasions where this was not the case.
audiod.cmd
audiod_command.c
command.c
command_util.sh
error.h
mysql_selector.c
mysql_selector.cmd
playlist_selector.cmd
random_selector.cmd
server.cmd