diff options
author | belugas <belugas@openttd.org> | 2007-03-21 03:06:21 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-03-21 03:06:21 +0000 |
commit | dcd510c81f3f995696bb8667fe13c63e53d47316 (patch) | |
tree | b96361ddddd1cec25475044a96a689ce7c9cd0d6 /src/newgrf_text.cpp | |
parent | 80ef389080b0efb8fce77775ac09de40a65f617c (diff) | |
download | openttd-dcd510c81f3f995696bb8667fe13c63e53d47316.tar.xz |
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r-- | src/newgrf_text.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index d5dfb5fcf..8f4457791 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -1,6 +1,6 @@ /* $Id$ */ -/** @file +/** @file newgrf_text.cpp * Implementation of Action 04 "universal holder" structure and functions. * This file implements a linked-lists of strings, * holding everything that the newgrf action 04 will send over to OpenTTD. @@ -122,7 +122,7 @@ const iso_grf iso_codes[] = { {"sv_SE", GRFLX_SWEDISH}, {"tr_TR", GRFLX_TURKISH}, {"uk_UA", GRFLX_UKRAINIAN}, - {"gen", GRFLB_GENERIC} //this is not iso code, but there has to be something... + {"gen", GRFLB_GENERIC} ///< this is not iso code, but there has to be something... }; @@ -180,12 +180,12 @@ struct GRFTextEntry { static uint _num_grf_texts = 0; static GRFTextEntry _grf_text[(1 << TABSIZE) * 3]; -static byte _currentLangID = GRFLX_ENGLISH; //by default, english is used. +static byte _currentLangID = GRFLX_ENGLISH; ///< by default, english is used. char *TranslateTTDPatchCodes(const char *str) { - char *tmp = MallocT<char>(strlen(str) * 10 + 1); /* Allocate space to allow for expansion */ + char *tmp = MallocT<char>(strlen(str) * 10 + 1); // Allocate space to allow for expansion char *d = tmp; bool unicode = false; WChar c; @@ -198,7 +198,7 @@ char *TranslateTTDPatchCodes(const char *str) } for (;;) { - const char *tmp = str; /* Used for UTF-8 decoding */ + const char *tmp = str; // Used for UTF-8 decoding c = (byte)*str++; if (c == 0) break; |