diff options
author | Johannes Schickel | 2010-06-24 22:00:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-06-24 22:00:45 +0000 |
commit | 17a96b3bd2f0c24fdf581aac8cffabb575fd8c82 (patch) | |
tree | 534bee5bd8cb7267ad87931ee7562edad6823a86 /common | |
parent | 968e10795ffdf2e17a7ca678ca5e303b0d265795 (diff) | |
download | scummvm-rg350-17a96b3bd2f0c24fdf581aac8cffabb575fd8c82.tar.gz scummvm-rg350-17a96b3bd2f0c24fdf581aac8cffabb575fd8c82.tar.bz2 scummvm-rg350-17a96b3bd2f0c24fdf581aac8cffabb575fd8c82.zip |
Yet another slight variable renaming to match our conventions.
svn-id: r50242
Diffstat (limited to 'common')
-rw-r--r-- | common/messages.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/messages.cpp b/common/messages.cpp index dde7f1504c..b33e2ab115 100644 --- a/common/messages.cpp +++ b/common/messages.cpp @@ -1,6 +1,6 @@ // generated by po2c 1.0.2-scummvm - Do not modify -static const char * const _po2c_msgids[] = { +static const char * const _messageIds[] = { /* 0 */ "", /* 1 */ " Are you sure you want to quit ? ", /* 2 */ " Looking for a plugin supporting this gameid... ", @@ -1012,13 +1012,13 @@ const PoLangEntry _translations[] = { // code -static const struct PoMessageEntry *_currentTranslation = NULL; -static int _currentTranslationMessageEntries = 0; +static const PoMessageEntry *_currentTranslation = NULL; +static int _currentTranslationMessageEntryCount = 0; static const char *_currentTranslationCharset = NULL; void po2c_setlang(const char *lang) { _currentTranslation = NULL; - _currentTranslationMessageEntries = 0; + _currentTranslationMessageEntryCount = 0; _currentTranslationCharset = NULL; // if lang is NULL or "", deactivate it @@ -1044,7 +1044,7 @@ void po2c_setlang(const char *lang) { // if found, count entries if (_currentTranslation != NULL) { for (const PoMessageEntry *m = _currentTranslation; m->msgid != -1; ++m) - ++_currentTranslationMessageEntries; + ++_currentTranslationMessageEntryCount; } } @@ -1055,13 +1055,13 @@ const char *po2c_gettext(const char *msgid) { // binary-search for the msgid int leftIndex = 0; - int rightIndex = _currentTranslationMessageEntries - 1; + int rightIndex = _currentTranslationMessageEntryCount - 1; while (rightIndex >= leftIndex) { const int midIndex = (leftIndex + rightIndex) / 2; - const struct PoMessageEntry * const m = &_currentTranslation[midIndex]; + const PoMessageEntry * const m = &_currentTranslation[midIndex]; - const int compareResult = strcmp(msgid, _po2c_msgids[m->msgid]); + const int compareResult = strcmp(msgid, _messageIds[m->msgid]); if (compareResult == 0) return m->msgstr; |