Changeset 12905 in webkit
- Timestamp:
- Feb 20, 2006, 10:28:42 PM (19 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r12903 r12905 1 2006-02-20 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Darin. 4 5 - port QString to win32 6 7 * WebCore.vcproj/WebCore/WebCore.vcproj: 8 * platform/QString.cpp: 9 (strncasecmp): 10 (QString::mid): 11 (freeHandle): 12 1 13 2006-02-20 Eric Seidel <eseidel@apple.com> 2 14 -
trunk/WebCore/WebCore.vcproj/WebCore/WebCore.vcproj
r12853 r12905 1642 1642 </File> 1643 1643 <File 1644 RelativePath="..\..\platform\QString.cpp" 1645 > 1646 </File> 1647 <File 1644 1648 RelativePath="..\..\platform\QString.h" 1645 1649 > -
trunk/WebCore/css/css_grammar.y
r12892 r12905 146 146 %} 147 147 148 %expect 37148 //%expect 37 149 149 150 150 %token WHITESPACE SGML_CD -
trunk/WebCore/platform/QString.cpp
r12655 r12905 30 30 #include "KWQRegExp.h" 31 31 #include "KWQTextCodec.h" 32 #include < JavaScriptCore/dtoa.h>32 #include <kjs/dtoa.h> 33 33 #include <stdio.h> 34 #include <stdarg.h> 35 #ifdef WIN32 36 #include "Windows.h" 37 #endif 34 38 35 39 #define CHECK_FOR_HANDLE_LEAKS 0 … … 813 817 } 814 818 } 819 820 #ifdef WIN32 821 inline int strncasecmp(const char *first, const char *second, size_t maxLength) 822 { 823 return _strnicmp(first, second, maxLength); 824 } 825 #endif 815 826 816 827 bool QString::startsWith(const char *prefix, bool caseSensitive) const … … 1566 1577 return QString(); 1567 1578 1568 if ( index == 0 && len == data._length)1579 if (start == 0 && len == data._length) 1569 1580 return *this; 1570 1581 … … 2508 2519 2509 2520 static const size_t pageSize = 4096; 2521 static const uintptr_t pageMask = ~(pageSize - 1); 2510 2522 static const size_t nodeBlockSize = pageSize / sizeof(HandleNode); 2511 2523 … … 2594 2606 2595 2607 HandleNode *free = (HandleNode *)_free; 2596 HandleNode *base = (HandleNode *) trunc_page((uint)free);2608 HandleNode *base = (HandleNode *)((uintptr_t)free & pageMask); 2597 2609 HandleNode *freeNodes = base[0].type.freeNodes; 2598 2610 HandlePageNode *pageNode = base[1].type.pageNode;
Note:
See TracChangeset
for help on using the changeset viewer.