@@ -324,7 +324,7 @@ void Reader::skipSpaces() {
324
324
}
325
325
}
326
326
327
- bool Reader::match (Location pattern, int patternLength) {
327
+ bool Reader::match (const Char* pattern, int patternLength) {
328
328
if (end_ - current_ < patternLength)
329
329
return false ;
330
330
int index = patternLength;
@@ -416,7 +416,7 @@ bool Reader::readCppStyleComment() {
416
416
}
417
417
418
418
void Reader::readNumber () {
419
- const char * p = current_;
419
+ Location p = current_;
420
420
char c = ' 0' ; // stopgap for already consumed character
421
421
// integral part
422
422
while (c >= ' 0' && c <= ' 9' )
@@ -956,7 +956,7 @@ class OurReader {
956
956
957
957
bool readToken (Token& token);
958
958
void skipSpaces ();
959
- bool match (Location pattern, int patternLength);
959
+ bool match (const Char* pattern, int patternLength);
960
960
bool readComment ();
961
961
bool readCStyleComment ();
962
962
bool readCppStyleComment ();
@@ -1287,7 +1287,7 @@ void OurReader::skipSpaces() {
1287
1287
}
1288
1288
}
1289
1289
1290
- bool OurReader::match (Location pattern, int patternLength) {
1290
+ bool OurReader::match (const Char* pattern, int patternLength) {
1291
1291
if (end_ - current_ < patternLength)
1292
1292
return false ;
1293
1293
int index = patternLength;
@@ -1380,7 +1380,7 @@ bool OurReader::readCppStyleComment() {
1380
1380
}
1381
1381
1382
1382
bool OurReader::readNumber (bool checkInf) {
1383
- const char * p = current_;
1383
+ Location p = current_;
1384
1384
if (checkInf && p != end_ && *p == ' I' ) {
1385
1385
current_ = ++p;
1386
1386
return false ;
0 commit comments