projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ab3f6
)
aux/tgsi: fix some minor glitches in string routines
author
Keith Whitwell
<keithw@vmware.com>
Sun, 28 Mar 2010 16:30:55 +0000
(09:30 -0700)
committer
Keith Whitwell
<keithw@vmware.com>
Sun, 28 Mar 2010 17:42:38 +0000
(10:42 -0700)
Not sure why we are open-coding these rather than using standard
library functions.
src/gallium/auxiliary/tgsi/tgsi_text.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_text.c
b/src/gallium/auxiliary/tgsi/tgsi_text.c
index f918151daaabd0f11ca542d8c188c0e706554280..0b468a9184e0eb8251d36187bce799dc31109dfd 100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/
src/gallium/auxiliary/tgsi/tgsi_text.c
@@
-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 )