Ignore:
Timestamp:
Nov 29, 2007, 3:09:42 AM (18 years ago)
Author:
[email protected]
Message:

2007-11-24 Eric Seidel <[email protected]>

Reviewed by Sam.

removing more macros

  • pcre/pcre_compile.cpp: (could_be_empty_branch): (compile_branch): (calculateCompiledPatternLengthAndFlags):
  • pcre/pcre_exec.cpp: (match): (jsRegExpExecute):
  • pcre/pcre_internal.h:
  • pcre/pcre_xclass.cpp:
File:
1 edited

Legend:

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

    r28141 r28144  
    125125  const uschar *lcc;            /* Points to lower casing table */
    126126  const uschar *ctypes;         /* Points to table of type maps */
    127   BOOL   offset_overflow;       /* Set if too many extractions */
     127  bool   offset_overflow;       /* Set if too many extractions */
    128128  UChar*  start_subject;         /* Start of the subject string */
    129129  UChar*  end_subject;           /* End of the subject string */
    130130  UChar*  end_match_ptr;         /* Subject position at end match */
    131131  int    end_offset_top;        /* Highwater mark at end of match */
    132   BOOL   multiline;
    133   BOOL   caseless;
     132  bool   multiline;
     133  bool   caseless;
    134134} match_data;
    135135
     
    167167
    168168static void
    169 pchars(const UChar* p, int length, BOOL is_subject, match_data *md)
     169pchars(const UChar* p, int length, bool is_subject, match_data *md)
    170170{
    171171int c;
     
    196196*/
    197197
    198 static BOOL
     198static bool
    199199match_ref(int offset, UChar* eptr, int length, match_data *md)
    200200{
     
    412412    unsigned rdepth = 0;
    413413   
    414     BOOL cur_is_word;
    415     BOOL prev_is_word;
    416     BOOL is_group_start = true;
     414    bool cur_is_word;
     415    bool prev_is_word;
     416    bool is_group_start = true;
    417417    int min;
    418     BOOL minimize = false; /* Initialization not really needed, but some compilers think so. */
     418    bool minimize = false; /* Initialization not really needed, but some compilers think so. */
    419419   
    420420    MatchStack stack;
     
    20862086    int ocount = offsetcount - (offsetcount % 3);
    20872087   
    2088     BOOL using_temporary_offsets = false;
     2088    bool using_temporary_offsets = false;
    20892089    if (re->top_backref > 0 && re->top_backref >= ocount/3) {
    20902090        ocount = re->top_backref * 3 + 3;
     
    21252125     studied, there may be a bitmap of possible first characters. */
    21262126   
    2127     BOOL first_byte_caseless = false;
     2127    bool first_byte_caseless = false;
    21282128    int first_byte = -1;
    21292129    if (re->options & PCRE_FIRSTSET) {
     
    21362136     character" set. */
    21372137   
    2138     BOOL req_byte_caseless = false;
     2138    bool req_byte_caseless = false;
    21392139    int req_byte = -1;
    21402140    int req_byte2 = -1;
Note: See TracChangeset for help on using the changeset viewer.