mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
aux/tgsi: fix some minor glitches in string routines
Not sure why we are open-coding these rather than using standard library functions.
This commit is contained in:
parent
42ab3f6fd2
commit
f97f46f269
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ static boolean is_digit_alpha_underscore( const char *cur )
|
|||
return is_digit( cur ) || is_alpha_underscore( cur );
|
||||
}
|
||||
|
||||
static boolean uprcase( char c )
|
||||
static char uprcase( char c )
|
||||
{
|
||||
if (c >= 'a' && c <= 'z')
|
||||
return c += 'A' - 'a';
|
||||
|
|
@ -76,7 +76,7 @@ streq_nocase_uprcase(const char *str1,
|
|||
str1++;
|
||||
str2++;
|
||||
}
|
||||
return TRUE;
|
||||
return *str1 == 0 && *str2 == 0;
|
||||
}
|
||||
|
||||
static boolean str_match_no_case( const char **pcur, const char *str )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue