Mercurial > hg > openttd
annotate src/console_func.h @ 13044:1f4a5608aba5 draft
(svn r17542) -Fix: don't access variables in the company struct after it has been deleted
-Cleanup: remove some never-used code
author | yexo <yexo@openttd.org> |
---|---|
date | Mon, 14 Sep 2009 22:09:50 +0000 |
parents | bc7926153e19 |
children | db80544f73f9 |
rev | line source |
---|---|
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
12778
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
3 /* |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
4 * This file is part of OpenTTD. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
8 */ |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
9 |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
10 /** @file console_func.h Console functions used outside of the console code. */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
11 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
12 #ifndef CONSOLE_FUNC_H |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 #define CONSOLE_FUNC_H |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
14 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
15 #include "console_type.h" |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
16 |
9337
ee85444554a1
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
rubidium <rubidium@openttd.org>
parents:
9336
diff
changeset
|
17 /* console modes */ |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 extern IConsoleModes _iconsole_mode; |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
20 /* console functions */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
21 void IConsoleInit(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
22 void IConsoleFree(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
23 void IConsoleClose(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
24 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
25 /* console output */ |
11085
8da1855e9f14
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
rubidium <rubidium@openttd.org>
parents:
9426
diff
changeset
|
26 void IConsolePrint(ConsoleColour colour_code, const char *string); |
11875
86fca539ec7a
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
smatz <smatz@openttd.org>
parents:
11085
diff
changeset
|
27 void CDECL IConsolePrintF(ConsoleColour colour_code, const char *format, ...) WARN_FORMAT(2, 3); |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
28 void IConsoleDebug(const char *dbg, const char *string); |
9426
c6a097a992cf
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium <rubidium@openttd.org>
parents:
9337
diff
changeset
|
29 void IConsoleWarning(const char *string); |
c6a097a992cf
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium <rubidium@openttd.org>
parents:
9337
diff
changeset
|
30 void IConsoleError(const char *string); |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
31 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
32 /* Parser */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
33 void IConsoleCmdExec(const char *cmdstr); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
34 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
35 #endif /* CONSOLE_FUNC_H */ |