Changeset 14457 in webkit for trunk/JavaScriptCore/pcre


Ignore:
Timestamp:
May 17, 2006, 9:15:21 PM (19 years ago)
Author:
staikos
Message:

Reviewed by Maciej, Alexey, and Eric.

  • Use // in .c files to compile with non-C99 and non-GCC compilers.
  • Change include to <wtf/HashTraits.h> from "HashTraits.h" to avoid -I
  • Use correct parentheses and correct mask for utf-32 support.
Location:
trunk/JavaScriptCore/pcre
Files:
3 edited

Legend:

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

    r12069 r14457  
    4747
    4848
    49 // WARNING: These macros evaluate their parameters more than once.
     49/* WARNING: These macros evaluate their parameters more than once. */
    5050#if PCRE_UTF16
    5151#define CTYPES(cd, x) ((x) <= 255 ? (cd)->ctypes[(x)] : 0)
     
    29292929          namelen = ptr - name - 1;
    29302930
    2931           // FIXME: This won't work for UTF-16.
     2931          /* FIXME: This won't work for UTF-16. */
    29322932          for (i = 0; i < cd->names_found; i++)
    29332933            {
  • trunk/JavaScriptCore/pcre/pcre_exec.c

    r12069 r14457  
    19521952      GETUTF8CHARLEN(fc, ecode, length);
    19531953      {
    1954       int utf16Length; // don't initialize on this line as workaround for Win32 compile problem
     1954      int utf16Length; /* don't initialize on this line as workaround for Win32 compile problem */
    19551955      utf16Length = fc > 0xFFFF ? 2 : 1;
    19561956      if (min * utf16Length > md->end_subject - eptr) RRETURN(MATCH_NOMATCH);
  • trunk/JavaScriptCore/pcre/pcre_get.c

    r14256 r14457  
    6666pcre_get_stringnumber(const pcre *code, const pcre_char *stringname)
    6767{
    68 // FIXME: This doesn't work for UTF-16 because the name table has 8-bit characters in it!
     68/* FIXME: This doesn't work for UTF-16 because the name table has 8-bit characters in it! */
    6969#if !PCRE_UTF16
    7070int rc;
Note: See TracChangeset for help on using the changeset viewer.