Changeset 10798 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 8, 2005, 9:25:00 PM (20 years ago)
Author:
darin
Message:

Reviewed, tweaked, and landed by Darin.

  • kjs/config.h: Make sure HAVE_MMAP and HAVE_SBRK are off for Win32. Turn HAVE_ERRNO_H on for Mac OS X. Sort defines so they are easy to compare with each other. Remove #undef of DEBUG_COLLECTOR.
  • pcre/pcre_exec.c: (match): Work around strange MSVC complaint by splitting the definition of a local variable into a separate declaration and initialization.
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r10757 r10798  
     12005-10-08  Justin Haygood  <[email protected]>
     2
     3        Reviewed, tweaked, and landed by Darin.
     4
     5        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5189
     6          pcre_exec.c fails to compile using MSVC
     7        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5190
     8          KJS config.h adjustment for Win32
     9       
     10        * kjs/config.h: Make sure HAVE_MMAP and HAVE_SBRK are off for Win32.
     11        Turn HAVE_ERRNO_H on for Mac OS X. Sort defines so they are easy to compare
     12        with each other. Remove #undef of DEBUG_COLLECTOR.
     13        * pcre/pcre_exec.c: (match): Work around strange MSVC complaint by splitting
     14        the definition of a local variable into a separate declaration and
     15        initialization.
     16
    1172005-10-05  Geoffrey Garen  <[email protected]>
    218 
  • trunk/JavaScriptCore/kjs/config.h

    r10713 r10798  
    11#if __APPLE__
    22
     3#define HAVE_ERRNO_H 1
    34#define HAVE_FUNC_ISINF 1
    45#define HAVE_FUNC_ISNAN 1
     6#define HAVE_MMAP 1
     7#define HAVE_SBRK 1
    58#define HAVE_STRINGS_H 1
    69#define HAVE_SYS_PARAM_H 1
     
    1619#else
    1720
     21#define HAVE_ERRNO_H 1
    1822#define HAVE_FUNC_ISINF 1
    1923#define HAVE_FUNC_ISNAN 1
     24#define HAVE_MMAP 1
     25#define HAVE_SBRK 1
    2026#define HAVE_STRINGS_H 1
    2127#define HAVE_SYS_PARAM_H 1
    2228#define HAVE_SYS_TIME_H 1
    2329#define TIME_WITH_SYS_TIME 1
    24 #define HAVE_ERRNO_H 1
    2530
    2631#endif
     
    2934#define HAVE_ICU 1
    3035#define HAVE_PCREPOSIX 1
     36#define HAVE_STDINT_H 1
    3137#define HAVE_STRING_H 1
    32 #define HAVE_STDINT_H 1
    33 
    34 #define HAVE_MMAP 1
    35 #define HAVE_SBRK 1
    3638
    3739#ifdef __ppc__
    3840#define WORDS_BIGENDIAN 1
    3941#endif
    40 
    41 /* define to debug garbage collection */
    42 #undef DEBUG_COLLECTOR
    4342
    4443#define KXC_CHANGES 1
  • trunk/JavaScriptCore/pcre/pcre_exec.c

    r10663 r10798  
    19481948      length = 1;
    19491949      GETUTF8CHARLEN(fc, ecode, length);
    1950       int utf16Length = fc > 0xFFFF ? 2 : 1;
     1950      int utf16Length; // don't initialize on this line as workaround for Win32 compile problem
     1951      utf16Length = fc > 0xFFFF ? 2 : 1;
    19511952      if (min * utf16Length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
    19521953      ecode += length;
Note: See TracChangeset for help on using the changeset viewer.