Changeset 38024 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 30, 2008, 10:36:06 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38022 r38024 1 2008-10-30 Benjamin K. Stuhl <[email protected]> 2 3 gcc 4.3.3/linux-x86 generates "suggest parentheses around && within ||" 4 warnings; add some parentheses to disambiguate things. No functional 5 changes, so no tests. 6 7 https://bugs.webkit.org/show_bug.cgi?id=21973 8 Add parentheses to clean up some gcc warnings 9 10 Reviewed by Dan Bernstein. 11 12 * wtf/ASCIICType.h: 13 (WTF::isASCIIAlphanumeric): 14 (WTF::isASCIIHexDigit): 15 1 16 2008-10-30 Kevin Lindeman <[email protected]> 2 17 -
trunk/JavaScriptCore/wtf/ASCIICType.h
r36974 r38024 52 52 inline bool isASCIIAlpha(int c) { return (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; } 53 53 54 inline bool isASCIIAlphanumeric(char c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; }55 inline bool isASCIIAlphanumeric(unsigned short c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; }54 inline bool isASCIIAlphanumeric(char c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'z'); } 55 inline bool isASCIIAlphanumeric(unsigned short c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'z'); } 56 56 #if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED) 57 inline bool isASCIIAlphanumeric(wchar_t c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; }57 inline bool isASCIIAlphanumeric(wchar_t c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'z'); } 58 58 #endif 59 inline bool isASCIIAlphanumeric(int c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; }59 inline bool isASCIIAlphanumeric(int c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'z'); } 60 60 61 61 inline bool isASCIIDigit(char c) { return (c >= '0') & (c <= '9'); } … … 66 66 inline bool isASCIIDigit(int c) { return (c >= '0') & (c <= '9'); } 67 67 68 inline bool isASCIIHexDigit(char c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'f'; }69 inline bool isASCIIHexDigit(unsigned short c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'f'; }68 inline bool isASCIIHexDigit(char c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); } 69 inline bool isASCIIHexDigit(unsigned short c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); } 70 70 #if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED) 71 inline bool isASCIIHexDigit(wchar_t c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'f'; }71 inline bool isASCIIHexDigit(wchar_t c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); } 72 72 #endif 73 inline bool isASCIIHexDigit(int c) { return c >= '0' && c <= '9' || (c | 0x20) >= 'a' && (c | 0x20) <= 'f'; }73 inline bool isASCIIHexDigit(int c) { return (c >= '0' && c <= '9') || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); } 74 74 75 75 inline bool isASCIIOctalDigit(char c) { return (c >= '0') & (c <= '7'); }
Note:
See TracChangeset
for help on using the changeset viewer.