From 25a07c795fdf275b85ccc3b6634f645a0eb1127e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Nov 2008 08:30:18 +0100 Subject: options: don't store disabled options Options which are disabled at compile time shouldn't reserve space for their values in the options struct. --- src/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index fa7fe2e3a..92ee27ea0 100644 --- a/src/command.c +++ b/src/command.c @@ -200,11 +200,13 @@ static command_definition_t cmds[] = { { { -1, -1, -1 }, 0, CMD_NONE, NULL, NULL } }; +#ifdef ENABLE_KEYDEF_SCREEN command_definition_t * get_command_definitions(void) { return cmds; } +#endif const char * key2str(int key) -- cgit v1.2.3