mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Fix pnUtils for clang.
This commit is contained in:
@ -69,6 +69,25 @@ static uint32_t s_hashValue[] = {
|
||||
* Internal functions
|
||||
*
|
||||
***/
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
static unsigned IStrLen (const chartype str[]) {
|
||||
unsigned chars = 0;
|
||||
for (; *str++; ++chars)
|
||||
NULL_STMT;
|
||||
return chars;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
static void IStrCopy (chartype * dest, const chartype source[], unsigned chars) {
|
||||
while ((chars > 1) && ((*dest = *source++) != 0)) {
|
||||
--chars;
|
||||
++dest;
|
||||
}
|
||||
if (chars)
|
||||
*dest = 0;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
@ -207,17 +226,6 @@ static int IStrCmpI (const chartype str1[], const chartype str2[], unsigned char
|
||||
return 0;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
static void IStrCopy (chartype * dest, const chartype source[], unsigned chars) {
|
||||
while ((chars > 1) && ((*dest = *source++) != 0)) {
|
||||
--chars;
|
||||
++dest;
|
||||
}
|
||||
if (chars)
|
||||
*dest = 0;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// returns StrLen(dest)
|
||||
template<class chartype>
|
||||
@ -284,15 +292,6 @@ static chartype * IStrStrI (chartype source[], const chartype match[]) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
static unsigned IStrLen (const chartype str[]) {
|
||||
unsigned chars = 0;
|
||||
for (; *str++; ++chars)
|
||||
NULL_STMT;
|
||||
return chars;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
template<class chartype>
|
||||
static void IStrLower (chartype * dest, unsigned chars) {
|
||||
|
Reference in New Issue
Block a user