X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81c67e27fd6a168e26e5acba949eca36cd746421..270a909e20a2c652fd816ad14407113ad0319c9d:/src/common/intl.cpp?ds=sidebyside diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 1172719390..295cd6783a 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -310,7 +310,7 @@ bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName0) wxString szName = szName0; if(szName.Find('.') != -1) // contains a dot szName = szName.Left(szName.Find('.')); - + // FIXME VZ: I forgot the exact meaning of LC_PATH - anyone to remind me? // KB: search path where to find the mo files, probably : delimited #if 0 @@ -418,12 +418,18 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const size_t32 nIncr = 1 + (nHashVal % (m_nHashSize - 2)); - while ( TRUE ) { +#if defined(__VISAGECPP__) +// VA just can't stand while(1) or while(TRUE) + bool bOs2var = TRUE; + while(bOs2var) { +#else + while (1) { +#endif size_t32 nStr = Swap(m_pHashTable[nIndex]); if ( nStr == 0 ) return NULL; - if ( wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, nStr - 1)) == 0 ) + if ( strcmp(szOrig, StringAtOfs(m_pOrigTable, nStr - 1)) == 0 ) return StringAtOfs(m_pTransTable, nStr - 1); if ( nIndex >= m_nHashSize - nIncr) @@ -438,7 +444,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const current; while ( bottom < top ) { current = (bottom + top) / 2; - int res = wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, current)); + int res = strcmp(szOrig, StringAtOfs(m_pOrigTable, current)); if ( res < 0 ) top = current; else if ( res > 0 )