Ticket #51524: patch-src-snowleopard-HeaderMap.diff
File patch-src-snowleopard-HeaderMap.diff, 588 bytes (added by kenneth.f.cunningham@…, 8 years ago) |
---|
-
tools/clang/lib/Lex/HeaderMap.cpp
old new 26 26 #include <memory> 27 27 using namespace clang; 28 28 29 static size_t 30 strnlen(const char *s, size_t maxlen) 31 { 32 size_t len; 33 34 for (len = 0; len < maxlen; len++, s++) { 35 if (!*s) 36 break; 37 } 38 return (len); 39 } 40 41 29 42 /// HashHMapKey - This is the 'well known' hash function required by the file 30 43 /// format, used to look up keys in the hash table. The hash table uses simple 31 44 /// linear probing based on this function.