Changeset 12905 in webkit


Ignore:
Timestamp:
Feb 20, 2006 10:28:42 PM (18 years ago)
Author:
mjs
Message:

Reviewed by Darin.

  • port QString to win32
  • WebCore.vcproj/WebCore/WebCore.vcproj:
  • platform/QString.cpp: (strncasecmp): (QString::mid): (freeHandle):
Location:
trunk/WebCore
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r12903 r12905  
     12006-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
    1132006-02-20  Eric Seidel  <eseidel@apple.com>
    214
  • trunk/WebCore/WebCore.vcproj/WebCore/WebCore.vcproj

    r12853 r12905  
    16421642                        </File>
    16431643                        <File
     1644                                RelativePath="..\..\platform\QString.cpp"
     1645                                >
     1646                        </File>
     1647                        <File
    16441648                                RelativePath="..\..\platform\QString.h"
    16451649                                >
  • trunk/WebCore/css/css_grammar.y

    r12892 r12905  
    146146%}
    147147
    148 %expect 37
     148//%expect 37
    149149
    150150%token WHITESPACE SGML_CD
  • trunk/WebCore/platform/QString.cpp

    r12655 r12905  
    3030#include "KWQRegExp.h"
    3131#include "KWQTextCodec.h"
    32 #include <JavaScriptCore/dtoa.h>
     32#include <kjs/dtoa.h>
    3333#include <stdio.h>
     34#include <stdarg.h>
     35#ifdef WIN32
     36#include "Windows.h"
     37#endif
    3438
    3539#define CHECK_FOR_HANDLE_LEAKS 0
     
    813817    }
    814818}
     819
     820#ifdef WIN32
     821inline int strncasecmp(const char *first, const char *second, size_t maxLength)
     822{
     823    return _strnicmp(first, second, maxLength);
     824}
     825#endif
    815826
    816827bool QString::startsWith(const char *prefix, bool caseSensitive) const
     
    15661577            return QString();
    15671578       
    1568         if ( index == 0 && len == data._length )
     1579        if (start == 0 && len == data._length)
    15691580            return *this;
    15701581
     
    25082519
    25092520static const size_t pageSize = 4096;
     2521static const uintptr_t pageMask = ~(pageSize - 1);
    25102522static const size_t nodeBlockSize = pageSize / sizeof(HandleNode);
    25112523
     
    25942606
    25952607    HandleNode *free = (HandleNode *)_free;
    2596     HandleNode *base = (HandleNode *)trunc_page((uint)free);
     2608    HandleNode *base = (HandleNode *)((uintptr_t)free & pageMask);
    25972609    HandleNode *freeNodes = base[0].type.freeNodes;
    25982610    HandlePageNode *pageNode = base[1].type.pageNode;
Note: See TracChangeset for help on using the changeset viewer.