mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-09 23:01:48 +00:00
strcmpi -> Q_strcmpi
This commit is contained in:
parent
19037862ec
commit
bdaaf508db
5 changed files with 12 additions and 10 deletions
|
@ -128,7 +128,7 @@ MEM_BOOL MEM_CALLBACK MyMemReporter2(MEM_ERROR_INFO *info)
|
|||
{
|
||||
if (StackCache[i]<0||StackCache[i]>=nStack)
|
||||
continue;
|
||||
if (!strcmpi(start,StackNames[StackCache[i]]))
|
||||
if (!Q_strcmpi(start,StackNames[StackCache[i]]))
|
||||
break;
|
||||
}
|
||||
if (i<48)
|
||||
|
@ -140,7 +140,7 @@ MEM_BOOL MEM_CALLBACK MyMemReporter2(MEM_ERROR_INFO *info)
|
|||
{
|
||||
for (i=0;i<nStack;i++)
|
||||
{
|
||||
if (!strcmpi(start,StackNames[i]))
|
||||
if (!Q_strcmpi(start,StackNames[i]))
|
||||
break;
|
||||
}
|
||||
if (i<nStack)
|
||||
|
|
|
@ -1065,8 +1065,10 @@ char *Q_strrchr( const char* string, int c );
|
|||
// NON-portable (but faster) versions
|
||||
#ifdef WIN32
|
||||
static inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strnicmp(s1, s2, n); }
|
||||
static inline int Q_strcmpi (const char *s1, const char *s2) { return strcmpi(s1, s2); }
|
||||
#else
|
||||
static inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strncasecmp(s1, s2, n); }
|
||||
static inline int Q_strcmpi (const char *s1, const char *s2) { return strcasecmp(s1, s2); }
|
||||
#endif
|
||||
|
||||
// buffer size safe library replacements
|
||||
|
|
|
@ -639,7 +639,7 @@ static qboolean Sys_ScanForCD( void ) {
|
|||
Result = GetVolumeInformation(drive,VolumeName,sizeof(VolumeName),&VolumeSerialNumber,
|
||||
&MaximumComponentLength,&FileSystemFlags,FileSystemName,sizeof(FileSystemName));
|
||||
|
||||
if (Result && (strcmpi(VolumeName,"JEDIOUTCAST") == 0 ) )
|
||||
if (Result && (Q_strcmpi(VolumeName,"JEDIOUTCAST") == 0 ) )
|
||||
{
|
||||
sprintf (test, "%s%s\\%s",drive, CD_BASEDIR, CD_EXE);
|
||||
f = fopen( test, "r" );
|
||||
|
|
|
@ -315,7 +315,7 @@ void CGPValue::Parse(char **dataPtr, CTextPool **textPool)
|
|||
{ // end of data - error!
|
||||
break;
|
||||
}
|
||||
else if (strcmpi(token, "]") == 0)
|
||||
else if (Q_strcmpi(token, "]") == 0)
|
||||
{ // ending brace for this list
|
||||
break;
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ void CGPGroup::SortObject(CGPObject *object, CGPObject **unsortedList, CGPObject
|
|||
last = 0;
|
||||
while(test)
|
||||
{
|
||||
if (strcmpi(object->GetName(), test->GetName()) < 0)
|
||||
if (Q_strcmpi(object->GetName(), test->GetName()) < 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -537,7 +537,7 @@ void CGPGroup::Parse(char **dataPtr, CTextPool **textPool)
|
|||
{ // end of data - error!
|
||||
break;
|
||||
}
|
||||
else if (strcmpi(token, "}") == 0)
|
||||
else if (Q_strcmpi(token, "}") == 0)
|
||||
{ // ending brace for this group
|
||||
break;
|
||||
}
|
||||
|
@ -546,14 +546,14 @@ void CGPGroup::Parse(char **dataPtr, CTextPool **textPool)
|
|||
|
||||
// read ahead to see what we are doing
|
||||
token = GetToken(dataPtr, true, true);
|
||||
if (strcmpi(token, "{") == 0)
|
||||
if (Q_strcmpi(token, "{") == 0)
|
||||
{ // new sub group
|
||||
name = (*textPool)->AllocText(lastToken, true, textPool);
|
||||
newSubGroup = AddGroup(name);
|
||||
newSubGroup->SetWriteable(mWriteable);
|
||||
newSubGroup->Parse(dataPtr, textPool);
|
||||
}
|
||||
else if (strcmpi(token, "[") == 0)
|
||||
else if (Q_strcmpi(token, "[") == 0)
|
||||
{ // new pair list
|
||||
name = (*textPool)->AllocText(lastToken, true, textPool);
|
||||
newPair = AddPair(name, 0);
|
||||
|
@ -620,7 +620,7 @@ const char *CGPGroup::FindPairValue(const char *key, const char *defaultVal)
|
|||
|
||||
while(mPair)
|
||||
{
|
||||
if (strcmpi(mPair->GetName(), key) == 0)
|
||||
if (Q_strcmpi(mPair->GetName(), key) == 0)
|
||||
{
|
||||
return mPair->GetTopValue();
|
||||
}
|
||||
|
|
|
@ -718,7 +718,7 @@ static qboolean Sys_ScanForCD( void ) {
|
|||
Result = GetVolumeInformation(drive,VolumeName,sizeof(VolumeName),&VolumeSerialNumber,
|
||||
&MaximumComponentLength,&FileSystemFlags,FileSystemName,sizeof(FileSystemName));
|
||||
|
||||
if (Result && (strcmpi(VolumeName,"JEDIOUTCAST") == 0 ) )
|
||||
if (Result && (Q_strcmpi(VolumeName,"JEDIOUTCAST") == 0 ) )
|
||||
{
|
||||
sprintf (test, "%s%s\\%s",drive, CD_BASEDIR, CD_EXE);
|
||||
f = fopen( test, "r" );
|
||||
|
|
Loading…
Reference in a new issue