summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-01-05 12:40:50 +0000
committertron <tron@openttd.org>2006-01-05 12:40:50 +0000
commit318fe153eb20f3987c0f4d1792cc25df3ee1ff45 (patch)
treed69972d96a0b32848f54422f41b00cf39d06c5f7 /console.c
parente588f86bb37c63f95495cf36da75bff24cfd7e29 (diff)
downloadopenttd-318fe153eb20f3987c0f4d1792cc25df3ee1ff45.tar.xz
(svn r3365) Staticise 36 functions
Diffstat (limited to 'console.c')
-rw-r--r--console.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/console.c b/console.c
index d6b60616f..7a52e172f 100644
--- a/console.c
+++ b/console.c
@@ -58,6 +58,10 @@ static void IConsoleClearCommand(void)
static inline void IConsoleResetHistoryPos(void) {_iconsole_historypos = ICON_HISTORY_SIZE - 1;}
+
+static void IConsoleHistoryAdd(const char* cmd);
+static void IConsoleHistoryNavigate(int direction);
+
// ** console window ** //
static void IConsoleWndProc(Window* w, WindowEvent* e)
{
@@ -322,7 +326,7 @@ void IConsoleOpen(void) {if (_iconsole_mode == ICONSOLE_CLOSED) IConsoleSwitch(
* scroll, etc. Put it to the beginning as it is the latest text
* @param cmd Text to be entered into the 'history'
*/
-void IConsoleHistoryAdd(const char *cmd)
+static void IConsoleHistoryAdd(const char* cmd)
{
free(_iconsole_history[ICON_HISTORY_SIZE - 1]);
@@ -335,7 +339,7 @@ void IConsoleHistoryAdd(const char *cmd)
* Navigate Up/Down in the history of typed commands
* @param direction Go further back in history (+1), go to recently typed commands (-1)
*/
-void IConsoleHistoryNavigate(signed char direction)
+static void IConsoleHistoryNavigate(int direction)
{
int i = _iconsole_historypos + direction;
@@ -687,7 +691,7 @@ static inline int IConsoleCopyInParams(char *dst, const char *src, uint bufpos)
* @param tokencount the number of parameters passed
* @param *tokens are the parameters given to the original command (0 is the first param)
*/
-void IConsoleAliasExec(const IConsoleAlias *alias, byte tokencount, char *tokens[ICON_TOKEN_COUNT])
+static void IConsoleAliasExec(const IConsoleAlias* alias, byte tokencount, char* tokens[ICON_TOKEN_COUNT])
{
const char *cmdptr;
char *aliases[ICON_MAX_ALIAS_LINES], aliasstream[ICON_MAX_STREAMSIZE];