diff options
author | tron <tron@openttd.org> | 2006-01-05 12:40:50 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-01-05 12:40:50 +0000 |
commit | e272b03feea5b4c870dd4af5be9071c903c6173d (patch) | |
tree | d69972d96a0b32848f54422f41b00cf39d06c5f7 /console.c | |
parent | 980e8f525b924491915571c2ed03469bd6751047 (diff) | |
download | openttd-e272b03feea5b4c870dd4af5be9071c903c6173d.tar.xz |
(svn r3365) Staticise 36 functions
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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]; |