Ignore:
Timestamp:
Jan 6, 2006, 2:43:44 PM (19 years ago)
Author:
hyatt
Message:

Land all the changes to make JSCore build again on windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_exec.c

    r10798 r11918  
    18081808      GETUTF8CHARLEN(fc, ecode, length);
    18091809#if PCRE_UTF16
    1810       int dc;
    1811       ecode += length;
    1812       switch (md->end_subject - eptr)
    1813       {
    1814         case 0:
    1815           RRETURN(MATCH_NOMATCH);
    1816         case 1:
    1817           dc = *eptr++;
    1818           if (IS_LEADING_SURROGATE(dc))
     1810      {
     1811        int dc;
     1812        ecode += length;
     1813        switch (md->end_subject - eptr)
     1814        {
     1815          case 0:
    18191816            RRETURN(MATCH_NOMATCH);
    1820           break;
    1821         default:
    1822           GETCHARINC(dc, eptr);
    1823       }
    1824       if (fc != dc) RRETURN(MATCH_NOMATCH);
     1817          case 1:
     1818            dc = *eptr++;
     1819            if (IS_LEADING_SURROGATE(dc))
     1820              RRETURN(MATCH_NOMATCH);
     1821            break;
     1822          default:
     1823            GETCHARINC(dc, eptr);
     1824        }
     1825        if (fc != dc) RRETURN(MATCH_NOMATCH);
     1826     } 
    18251827#else
    18261828      if (length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
     
    19461948#ifdef SUPPORT_UTF8
    19471949#if PCRE_UTF16
    1948       length = 1;
     1950
     1951          length = 1;
    19491952      GETUTF8CHARLEN(fc, ecode, length);
     1953          {
    19501954      int utf16Length; // don't initialize on this line as workaround for Win32 compile problem
    19511955      utf16Length = fc > 0xFFFF ? 2 : 1;
     
    20512055        }
    20522056        /* Control never gets here */
     2057          }
    20532058#else
    20542059    if (utf8)
Note: See TracChangeset for help on using the changeset viewer.