Changeset 1791 in webkit for trunk/JavaScriptCore/kjs/regexp.cpp
- Timestamp:
- Aug 9, 2002, 9:31:50 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp.cpp
r1623 r1791 115 115 return UString::null; // don't rely on the return value if you pass ovector==0 116 116 #else 117 #ifdef APPLE_CHANGES118 117 const uint maxMatch = 10; 119 #else120 const int maxMatch = 10;121 #endif122 118 regmatch_t rmatch[maxMatch]; 123 119 … … 136 132 // map rmatch array to ovector used in PCRE case 137 133 nrSubPatterns = 0; 138 #ifdef APPLE_CHANGES139 134 for(uint j = 1; j < maxMatch && rmatch[j].rm_so >= 0 ; j++) 140 #else141 for(int j = 1; j < maxMatch && rmatch[j].rm_so >= 0 ; j++)142 #endif143 135 nrSubPatterns++; 144 136 int ovecsize = (nrSubPatterns+1)*3; // see above 145 137 *ovector = new int[ovecsize]; 146 #ifdef APPLE_CHANGES147 138 for (uint j = 0; j < nrSubPatterns + 1; j++) { 148 #else149 for (int j = 0; j < nrSubPatterns + 1; j++) {150 #endif151 139 if (j>maxMatch) 152 140 break; 153 141 (*ovector)[2*j] = rmatch[j].rm_so + i; 154 142 (*ovector)[2*j+1] = rmatch[j].rm_eo + i; 155 #ifdef APPLE_CHANGES156 } // balance extra { so we don't confuse prepare-ChangeLog157 #else158 143 } 159 #endif160 144 #endif 161 145
Note:
See TracChangeset
for help on using the changeset viewer.