mirror of https://github.com/OpenTTD/OpenTTD
(svn r249) -Fix: warning fix in console.c/h (Tron)
parent
d48ce392b2
commit
3562d814fb
|
@ -768,7 +768,7 @@ bool IConsoleCmdHookHandle(_iconsole_cmd * hook_cmd, byte type)
|
||||||
return proc(hook_cmd);
|
return proc(hook_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IConsoleCmdExec(byte * cmdstr)
|
void IConsoleCmdExec(const byte* cmdstr)
|
||||||
{
|
{
|
||||||
_iconsole_var * (*function)(byte argc, byte* argv[], byte argt[]);
|
_iconsole_var * (*function)(byte argc, byte* argv[], byte argt[]);
|
||||||
byte * tokens[20];
|
byte * tokens[20];
|
||||||
|
@ -799,7 +799,7 @@ void IConsoleCmdExec(byte * cmdstr)
|
||||||
longtoken=false;
|
longtoken=false;
|
||||||
valid_token=false;
|
valid_token=false;
|
||||||
skip_lt_change=false;
|
skip_lt_change=false;
|
||||||
l=strlen((char *) cmdstr);
|
l=strlen(cmdstr);
|
||||||
i=0;
|
i=0;
|
||||||
c=0;
|
c=0;
|
||||||
tokens[c] = tokenstream;
|
tokens[c] = tokenstream;
|
||||||
|
|
|
@ -66,7 +66,7 @@ _iconsole_var * _iconsole_vars; // list of registred vars
|
||||||
// ** console colors ** //
|
// ** console colors ** //
|
||||||
VARDEF byte _iconsole_color_default;
|
VARDEF byte _iconsole_color_default;
|
||||||
VARDEF byte _iconsole_color_error;
|
VARDEF byte _iconsole_color_error;
|
||||||
VARDEF byte _iconsole_color_warning;
|
VARDEF byte _iconsole_color_warning;
|
||||||
VARDEF byte _iconsole_color_debug;
|
VARDEF byte _iconsole_color_debug;
|
||||||
VARDEF byte _iconsole_color_commands;
|
VARDEF byte _iconsole_color_commands;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ void IConsoleCmdBufferNavigate(signed char direction);
|
||||||
void IConsolePrint(byte color_code, const byte* string);
|
void IConsolePrint(byte color_code, const byte* string);
|
||||||
void CDECL IConsolePrintF(byte color_code, const char *s, ...);
|
void CDECL IConsolePrintF(byte color_code, const char *s, ...);
|
||||||
void IConsoleDebug(byte* string);
|
void IConsoleDebug(byte* string);
|
||||||
void IConsoleError(const byte* string);
|
void IConsoleError(const byte* string);
|
||||||
void IConsoleWarning(const byte* string);
|
void IConsoleWarning(const byte* string);
|
||||||
|
|
||||||
// *** Commands *** //
|
// *** Commands *** //
|
||||||
|
@ -115,7 +115,7 @@ void IConsoleVarDump(_iconsole_var * var, const byte * dump_desc);
|
||||||
|
|
||||||
// *** Parser *** //
|
// *** Parser *** //
|
||||||
|
|
||||||
void IConsoleCmdExec(byte * cmdstr);
|
void IConsoleCmdExec(const byte* cmdstr);
|
||||||
|
|
||||||
// ** console std lib ** //
|
// ** console std lib ** //
|
||||||
void IConsoleStdLibRegister();
|
void IConsoleStdLibRegister();
|
||||||
|
|
Loading…
Reference in New Issue