home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd9f9c6
)
More of the same.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 21 Jan 2014 23:18:01 +0000
(
00:18
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 21 Jan 2014 23:18:01 +0000
(
00:18
+0100)
src/client/control.c
patch
|
blob
|
history
diff --git
a/src/client/control.c
b/src/client/control.c
index 8ab72db11151da6fd2932d5fe6d36bbd50a036b0..20f1fcf9ceccf177148e20d417d88c8593969ccc 100644
(file)
--- a/
src/client/control.c
+++ b/
src/client/control.c
@@
-23,16
+23,17
@@
-/* If "c
md" matches "match" in get_available_keycode_to_command(), execute "f"
- * with provided char arguments and return 1; else only return 0.
+/* If "c
ommand_id" matches "match" in get_available_keycode_to_command(),
+ *
execute "f"
with provided char arguments and return 1; else only return 0.
*/
*/
-static uint8_t try_cmd_0args(int cmd, char * match, void (* f) ());
-static uint8_t try_cmd_1args(int cmd, char * match, void (* f) (char), char c);
-static uint8_t try_cmd_2args(int cmd, char * match,
+static uint8_t try_cmd_0args(int command_id, char * match, void (* f) ());
+static uint8_t try_cmd_1args(int command_id, char * match,
+ void (* f) (char), char c);
+static uint8_t try_cmd_2args(int command_id, char * match,
void (* f) (char, char), char c1, char c2);
void (* f) (char, char), char c1, char c2);
-/* If "command_id" is id of command named "match", send (via try_send()) a
string
- * of "match" + " " + the string representation of "arg" to the server.
+/* If "command_id" is id of command named "match", send (via try_send()) a
+ *
string
of "match" + " " + the string representation of "arg" to the server.
*/
static uint8_t try_player_cmd(int command_id, char * match, char * command_name,
uint8_t arg);
*/
static uint8_t try_player_cmd(int command_id, char * match, char * command_name,
uint8_t arg);
@@
-51,9
+52,9
@@
static void wrap_mv_kb_mod(char c1, char c2);
-static uint8_t try_cmd_0args(int c
m
d, char * match, void (* f) ())
+static uint8_t try_cmd_0args(int c
ommand_i
d, char * match, void (* f) ())
{
{
- if (c
m
d == get_available_keycode_to_command(match))
+ if (c
ommand_i
d == get_available_keycode_to_command(match))
{
f();
return 1;
{
f();
return 1;
@@
-63,9
+64,10
@@
static uint8_t try_cmd_0args(int cmd, char * match, void (* f) ())
-static uint8_t try_cmd_1args(int cmd, char * match, void (* f) (char), char c)
+static uint8_t try_cmd_1args(int command_id, char * match,
+ void (* f) (char), char c)
{
{
- if (c
m
d == get_available_keycode_to_command(match))
+ if (c
ommand_i
d == get_available_keycode_to_command(match))
{
f(c);
return 1;
{
f(c);
return 1;
@@
-75,10
+77,10
@@
static uint8_t try_cmd_1args(int cmd, char * match, void (* f) (char), char c)
-static uint8_t try_cmd_2args(int c
m
d, char * match,
+static uint8_t try_cmd_2args(int c
ommand_i
d, char * match,
void (* f) (char, char), char c1, char c2)
{
void (* f) (char, char), char c1, char c2)
{
- if (c
m
d == get_available_keycode_to_command(match))
+ if (c
ommand_i
d == get_available_keycode_to_command(match))
{
f(c1, c2);
return 1;
{
f(c1, c2);
return 1;