summaryrefslogtreecommitdiff
path: root/src/console_internal.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
commit398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch)
tree54de30f4702263ee1489af162d6da840e35c0a87 /src/console_internal.h
parent793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff)
downloadopenttd-398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb.tar.xz
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/console_internal.h')
-rw-r--r--src/console_internal.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/console_internal.h b/src/console_internal.h
index 2adf602ab..6debe8a19 100644
--- a/src/console_internal.h
+++ b/src/console_internal.h
@@ -14,10 +14,8 @@
#include "console_type.h"
-enum {
- ICON_CMDLN_SIZE = 1024, ///< maximum length of a typed in command
- ICON_MAX_STREAMSIZE = 2048, ///< maximum length of a totally expanded command
-};
+static const uint ICON_CMDLN_SIZE = 1024; ///< maximum length of a typed in command
+static const uint ICON_MAX_STREAMSIZE = 2048; ///< maximum length of a totally expanded command
/** Return values of console hooks (#IConsoleHook). */
enum ConsoleHookResult {